gon 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gon might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/README.md +4 -2
  2. data/lib/gon.rb +3 -1
  3. data/lib/gon/version.rb +1 -1
  4. metadata +73 -71
data/README.md CHANGED
@@ -5,6 +5,8 @@ If you need to send some data to your js files and you don't want to do this wit
5
5
 
6
6
  Now with [Jbuilder](https://github.com/rails/jbuilder) and [Rabl](https://github.com/nesquena/rabl) support!
7
7
 
8
+ For Sinatra available [gon-sinatra](https://github.com/gazay/gon-sinatra).
9
+
8
10
  ## An example of typical use
9
11
 
10
12
  When you need to send some start data from your controller to your js
@@ -269,13 +271,13 @@ wouldn't work. You can read about this in common usage above.
269
271
  Puts this line into `Gemfile` then run `$ bundle`:
270
272
 
271
273
  ``` ruby
272
- gem 'gon', '2.0.5'
274
+ gem 'gon', '2.0.6'
273
275
  ```
274
276
 
275
277
  Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
276
278
 
277
279
  ``` ruby
278
- config.gem 'gon', :version => '2.0.5'
280
+ config.gem 'gon', :version => '2.0.6'
279
281
  ```
280
282
 
281
283
  Or manually install gon gem: `$ gem install gon`
data/lib/gon.rb CHANGED
@@ -1,4 +1,6 @@
1
- gem 'blankslate'
1
+ if RUBY_VERSION =~ /9/ && defined?(Jbuilder)
2
+ gem 'blankslate'
3
+ end
2
4
  require 'action_view'
3
5
  require 'action_controller'
4
6
  require 'gon/helpers'
@@ -1,3 +1,3 @@
1
1
  module Gon
2
- VERSION = '2.0.5'
2
+ VERSION = '2.0.6'
3
3
  end
metadata CHANGED
@@ -1,79 +1,77 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gon
3
- version: !ruby/object:Gem::Version
4
- version: 2.0.5
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.6
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - gazay
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-12-22 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2012-01-23 00:00:00 +08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
15
16
  name: actionpack
16
- requirement: &2153437540 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 2.3.0
22
17
  type: :runtime
23
- prerelease: false
24
- version_requirements: *2153437540
25
- - !ruby/object:Gem::Dependency
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.3.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
26
  name: rabl
27
- requirement: &2153437120 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
27
  type: :runtime
34
- prerelease: false
35
- version_requirements: *2153437120
36
- - !ruby/object:Gem::Dependency
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
37
36
  name: json
38
- requirement: &2153436660 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
37
  type: :runtime
45
- prerelease: false
46
- version_requirements: *2153436660
47
- - !ruby/object:Gem::Dependency
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
48
46
  name: rspec
49
- requirement: &2153426500 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
47
  type: :development
56
- prerelease: false
57
- version_requirements: *2153426500
58
- - !ruby/object:Gem::Dependency
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ - !ruby/object:Gem::Dependency
59
56
  name: jbuilder
60
- requirement: &2153425980 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
57
  type: :development
67
- prerelease: false
68
- version_requirements: *2153425980
69
- description: If you need to send some data to your js files and you don't want to
70
- do this with long way trough views and parsing - use this force!
71
- email:
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ description: If you need to send some data to your js files and you don't want to do this with long way trough views and parsing - use this force!
66
+ email:
72
67
  - alex.gaziev@gmail.com
73
68
  executables: []
69
+
74
70
  extensions: []
71
+
75
72
  extra_rdoc_files: []
76
- files:
73
+
74
+ files:
77
75
  - .gitignore
78
76
  - Gemfile
79
77
  - README.md
@@ -89,31 +87,35 @@ files:
89
87
  - spec/test_data/sample.json.jbuilder
90
88
  - spec/test_data/sample.rabl
91
89
  - spec/test_data/sample_with_partial.json.jbuilder
90
+ has_rdoc: true
92
91
  homepage: https://github.com/gazay/gon
93
92
  licenses: []
93
+
94
94
  post_install_message:
95
95
  rdoc_options: []
96
- require_paths:
96
+
97
+ require_paths:
97
98
  - lib
98
- required_ruby_version: !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ! '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: "0"
104
+ version:
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: "0"
110
+ version:
110
111
  requirements: []
112
+
111
113
  rubyforge_project: gon
112
- rubygems_version: 1.8.6
114
+ rubygems_version: 1.3.5
113
115
  signing_key:
114
116
  specification_version: 3
115
117
  summary: Get your Rails variables in your JS
116
- test_files:
118
+ test_files:
117
119
  - spec/gon/gon_spec.rb
118
120
  - spec/test_data/_sample_partial.json.jbuilder
119
121
  - spec/test_data/sample.json.jbuilder