Skip to content

Commit 7287e85

Browse files
committed
Bump version to 1.0.0
1 parent 1bb2a75 commit 7287e85

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ In action of your controller you put something like this:
2121
@your_array = [1,2]
2222
@your_hash = {'a' => 1, 'b' => 2}
2323
Gon.your_int = @your_int
24-
Gon.your_other_int = 345 + @your_int
24+
Gon.your_other_int = 345 + Gon.your_int
2525
Gon.your_array = @your_array
26+
Gon.your_array << Gon.your_int
2627
Gon.your_hash = @your_hash
28+
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]
31+
32+
Gon.clear # Gon.all_variables now is {}
2733
```
2834

2935
In javascript file for view of this action write call to your variable:
@@ -40,13 +46,13 @@ alert(Gon.your_hash)
4046
Puts this line into `Gemfile` then run `$ bundle`:
4147

4248
``` ruby
43-
gem 'gon', '0.3.0'
49+
gem 'gon', '1.0.0'
4450
```
4551

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

4854
``` ruby
49-
config.gem 'gon', :version => '0.3.0'
55+
config.gem 'gon', :version => '1.0.0'
5056
```
5157

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

lib/gon/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Gon
2-
VERSION = '0.3.0'
2+
VERSION = '1.0.0'
33
end

0 commit comments

Comments
 (0)