gon 2.2.0 → 2.2.2

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 +2 -2
  2. data/lib/gon.rb +1 -3
  3. data/lib/gon/version.rb +1 -1
  4. metadata +69 -106
data/README.md CHANGED
@@ -302,13 +302,13 @@ wouldn't work. You can read about this in common usage above.
302
302
  Puts this line into `Gemfile` then run `$ bundle`:
303
303
 
304
304
  ``` ruby
305
- gem 'gon', '2.2.0'
305
+ gem 'gon', '2.2.2'
306
306
  ```
307
307
 
308
308
  Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
309
309
 
310
310
  ``` ruby
311
- config.gem 'gon', :version => '2.2.0'
311
+ config.gem 'gon', :version => '2.2.2'
312
312
  ```
313
313
 
314
314
  Or manually install gon gem: `$ gem install gon`
data/lib/gon.rb CHANGED
@@ -66,10 +66,8 @@ module Gon
66
66
  if options.first.is_a? String
67
67
  warn "[DEPRECATION] view_path argument is now optional. If you need to specify it please use #{builder}(:template => 'path')"
68
68
  options = options.extract_options!.merge(:template => options[0])
69
- elsif options.first.is_a? Hash
70
- options = options ? options.first : { }
71
69
  else
72
- raise ArgumentError.new("You pass wrong argument type to template generator method: #{options.first.class.to_s}")
70
+ options = (options && options.first.is_a?(Hash)) ? options.first : { }
73
71
  end
74
72
 
75
73
  builder_module = get_builder(builder_name)
@@ -1,3 +1,3 @@
1
1
  module Gon
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.2'
3
3
  end
metadata CHANGED
@@ -1,118 +1,90 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gon
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.2
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 2
9
- - 0
10
- version: 2.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - gazay
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-03-07 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: actionpack
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70212800500820 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 2
31
- - 3
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 2.3.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: json
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70212800500820
25
+ - !ruby/object:Gem::Dependency
26
+ name: json
27
+ requirement: &70212800500400 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
48
33
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: rabl
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70212800500400
36
+ - !ruby/object:Gem::Dependency
37
+ name: rabl
38
+ requirement: &70212800499560 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
62
44
  type: :development
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: rspec
66
45
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70212800499560
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &70212800498540 !ruby/object:Gem::Requirement
68
50
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
76
55
  type: :development
77
- version_requirements: *id004
78
- - !ruby/object:Gem::Dependency
79
- name: jbuilder
80
56
  prerelease: false
81
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70212800498540
58
+ - !ruby/object:Gem::Dependency
59
+ name: jbuilder
60
+ requirement: &70212800497080 !ruby/object:Gem::Requirement
82
61
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
90
66
  type: :development
91
- version_requirements: *id005
92
- - !ruby/object:Gem::Dependency
93
- name: rake
94
67
  prerelease: false
95
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *70212800497080
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: &70212800496140 !ruby/object:Gem::Requirement
96
72
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- hash: 3
101
- segments:
102
- - 0
103
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
104
77
  type: :development
105
- version_requirements: *id006
106
- 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!
107
- email:
78
+ prerelease: false
79
+ version_requirements: *70212800496140
80
+ description: If you need to send some data to your js files and you don't want to
81
+ do this with long way trough views and parsing - use this force!
82
+ email:
108
83
  - alex.gaziev@gmail.com
109
84
  executables: []
110
-
111
85
  extensions: []
112
-
113
86
  extra_rdoc_files: []
114
-
115
- files:
87
+ files:
116
88
  - .gitignore
117
89
  - .travis.yml
118
90
  - Gemfile
@@ -134,38 +106,29 @@ files:
134
106
  - spec/test_data/sample_with_partial.json.jbuilder
135
107
  homepage: https://github.com/gazay/gon
136
108
  licenses: []
137
-
138
109
  post_install_message:
139
110
  rdoc_options: []
140
-
141
- require_paths:
111
+ require_paths:
142
112
  - lib
143
- required_ruby_version: !ruby/object:Gem::Requirement
113
+ required_ruby_version: !ruby/object:Gem::Requirement
144
114
  none: false
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- hash: 3
149
- segments:
150
- - 0
151
- version: "0"
152
- required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
120
  none: false
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
157
- hash: 3
158
- segments:
159
- - 0
160
- version: "0"
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
161
125
  requirements: []
162
-
163
126
  rubyforge_project: gon
164
127
  rubygems_version: 1.8.15
165
128
  signing_key:
166
129
  specification_version: 3
167
130
  summary: Get your Rails variables in your JS
168
- test_files:
131
+ test_files:
169
132
  - spec/gon/gon_spec.rb
170
133
  - spec/test_data/_sample_partial.json.jbuilder
171
134
  - spec/test_data/sample.json.jbuilder