Skip to content
Browse files

Bump version to 1.0.0

  • Loading branch information...
1 parent 1bb2a75 commit 7287e854ea5f98408ef7c610d34468a43d5a047a @gazay committed Jun 24, 2011
Showing with 10 additions and 4 deletions.
  1. +9 −3 README.md
  2. +1 −1 lib/gon/version.rb
View
12 README.md
@@ -21,9 +21,15 @@ In action of your controller you put something like this:
@your_array = [1,2]
@your_hash = {'a' => 1, 'b' => 2}
Gon.your_int = @your_int
-Gon.your_other_int = 345 + @your_int
+Gon.your_other_int = 345 + Gon.your_int
Gon.your_array = @your_array
+Gon.your_array << Gon.your_int
Gon.your_hash = @your_hash
+
+Gon.all_variables # > {:your_int => 123, :your_other_int => 468, :your_array => [1, 2, 123], :your_hash => {'a' => 1, 'b' => 2}}
+Gon.your_array # > [1, 2, 123]
+
+Gon.clear # Gon.all_variables now is {}
```
In javascript file for view of this action write call to your variable:
@@ -40,13 +46,13 @@ alert(Gon.your_hash)
Puts this line into `Gemfile` then run `$ bundle`:
``` ruby
-gem 'gon', '0.3.0'
+gem 'gon', '1.0.0'
```
Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
``` ruby
-config.gem 'gon', :version => '0.3.0'
+config.gem 'gon', :version => '1.0.0'
```
Or manually install gon gem: `$ gem install gon`
View
2 lib/gon/version.rb
@@ -1,3 +1,3 @@
module Gon
- VERSION = '0.3.0'
+ VERSION = '1.0.0'
end

0 comments on commit 7287e85

Please sign in to comment.
Something went wrong with that request. Please try again.