Skip to content

Commit 9feb32b

Browse files
committed
Bump version to 1.1.0 - this... is... STABLE!!!
1 parent bcce7ae commit 9feb32b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,39 @@ In action of your controller you put something like this:
2020
@your_int = 123
2121
@your_array = [1,2]
2222
@your_hash = {'a' => 1, 'b' => 2}
23-
Gon.your_int = @your_int
24-
Gon.your_other_int = 345 + Gon.your_int
25-
Gon.your_array = @your_array
26-
Gon.your_array << Gon.your_int
27-
Gon.your_hash = @your_hash
23+
gon.your_int = @your_int
24+
gon.your_other_int = 345 + gon.your_int
25+
gon.your_array = @your_array
26+
gon.your_array << gon.your_int
27+
gon.your_hash = @your_hash
2828

29-
Gon.all_variables # > {:your_int => 123, :your_other_int => 468, :your_array => [1, 2, 123], :your_hash => {'a' => 1, 'b' => 2}}
30-
Gon.your_array # > [1, 2, 123]
29+
gon.all_variables # > {:your_int => 123, :your_other_int => 468, :your_array => [1, 2, 123], :your_hash => {'a' => 1, 'b' => 2}}
30+
gon.your_array # > [1, 2, 123]
3131

32-
Gon.clear # Gon.all_variables now is {}
32+
gon.clear # gon.all_variables now is {}
3333
```
3434

3535
In javascript file for view of this action write call to your variable:
3636

3737
``` js
38-
alert(Gon.your_int)
39-
alert(Gon.your_other_int)
40-
alert(Gon.your_array)
41-
alert(Gon.your_hash)
38+
alert(gon.your_int)
39+
alert(gon.your_other_int)
40+
alert(gon.your_array)
41+
alert(gon.your_hash)
4242
```
4343

4444
## Installation
4545

4646
Puts this line into `Gemfile` then run `$ bundle`:
4747

4848
``` ruby
49-
gem 'gon', '1.0.0'
49+
gem 'gon', '1.1.0'
5050
```
5151

5252
Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
5353

5454
``` ruby
55-
config.gem 'gon', :version => '1.0.0'
55+
config.gem 'gon', :version => '1.1.0'
5656
```
5757

5858
Or manually install gon gem: `$ gem install gon`

0 commit comments

Comments
 (0)