gon 5.2.3 → 6.0.0

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.

@@ -18,10 +18,10 @@ describe Gon::Global do
18
18
  end
19
19
 
20
20
  it 'supports all data types' do
21
- Gon.global.clear
22
21
  Gon.global.int = 1
23
22
  Gon.global.float = 1.1
24
23
  Gon.global.string = 'string'
24
+ Gon.global.symbol = :symbol
25
25
  Gon.global.array = [1, 'string']
26
26
  Gon.global.hash_var = { :a => 1, :b => '2' }
27
27
  Gon.global.hash_w_array = { :a => [2, 3] }
@@ -34,18 +34,14 @@ describe Gon::Global do
34
34
 
35
35
  before(:each) do
36
36
  Gon.clear
37
- Gon.global.clear
38
- expect(ActionView::Base.
39
- instance_methods.
40
- map(&:to_s).
41
- include?('include_gon')).to eq(true)
37
+ expect(ActionView::Base.instance_methods).to include(:include_gon)
42
38
  @base = ActionView::Base.new
43
39
  @base.request = request
44
40
  end
45
41
 
46
42
  it 'outputs correct js with an integer' do
47
43
  Gon.global.int = 1
48
- expect(@base.include_gon).to eq("<script type=\"text/javascript\">" +
44
+ expect(@base.include_gon).to eq("<script>" +
49
45
  "\n//<![CDATA[\n" +
50
46
  "window.gon={};" +
51
47
  "gon.global={\"int\":1};" +
@@ -56,7 +52,7 @@ describe Gon::Global do
56
52
  it 'outputs correct js with an integer and integer in Gon' do
57
53
  Gon.int = 1
58
54
  Gon.global.int = 1
59
- expect(@base.include_gon).to eq("<script type=\"text/javascript\">" +
55
+ expect(@base.include_gon).to eq("<script>" +
60
56
  "\n//<![CDATA[\n" +
61
57
  "window.gon={};" +
62
58
  "gon.global={\"int\":1};" +
@@ -67,7 +63,7 @@ describe Gon::Global do
67
63
 
68
64
  it 'outputs correct js with a string' do
69
65
  Gon.global.str = %q(a'b"c)
70
- expect(@base.include_gon).to eq("<script type=\"text/javascript\">" +
66
+ expect(@base.include_gon).to eq("<script>" +
71
67
  "\n//<![CDATA[\n" +
72
68
  "window.gon={};" +
73
69
  "gon.global={\"str\":\"a'b\\\"c\"};" +
@@ -78,7 +74,7 @@ describe Gon::Global do
78
74
  it 'outputs correct js with a script string' do
79
75
  Gon.global.str = %q(</script><script>alert('!')</script>)
80
76
  escaped_str = "\\u003c/script\\u003e\\u003cscript\\u003ealert('!')\\u003c/script\\u003e"
81
- expect(@base.include_gon).to eq("<script type=\"text/javascript\">" +
77
+ expect(@base.include_gon).to eq("<script>" +
82
78
  "\n//<![CDATA[\n" +
83
79
  "window.gon={};" +
84
80
  "gon.global={\"str\":\"#{escaped_str}\"};" +
@@ -88,7 +84,7 @@ describe Gon::Global do
88
84
 
89
85
  it 'outputs correct js with a unicode line separator' do
90
86
  Gon.global.str = "\u2028"
91
- expect(@base.include_gon).to eq("<script type=\"text/javascript\">" +
87
+ expect(@base.include_gon).to eq("<script>" +
92
88
  "\n//<![CDATA[\n" +
93
89
  "window.gon={};" +
94
90
  "gon.global={\"str\":\"&#x2028;\"};" +
@@ -99,7 +95,7 @@ describe Gon::Global do
99
95
  it 'outputs locally overridden value' do
100
96
  Gon.str = 'local value'
101
97
  Gon.global.str = 'global value'
102
- expect(@base.include_gon(global_root: '')).to eq("<script type=\"text/javascript\">" +
98
+ expect(@base.include_gon(global_root: '')).to eq("<script>" +
103
99
  "\n//<![CDATA[\n" +
104
100
  "window.gon={};" +
105
101
  "gon.str=\"local value\";" +
@@ -107,18 +103,26 @@ describe Gon::Global do
107
103
  "</script>")
108
104
  end
109
105
 
106
+ it "includes the tag attributes in the script tag" do
107
+ Gon.global.int = 1
108
+ expect(@base.include_gon(nonce: 'test')).to eq("<script nonce=\"test\">" +
109
+ "\n//<![CDATA[\n" +
110
+ "window.gon={};" +
111
+ "gon.global={\"int\":1};" +
112
+ "\n//]]>\n" +
113
+ "</script>")
114
+ end
115
+
110
116
  end
111
117
 
112
118
  it 'returns exception if try to set public method as variable' do
113
- Gon.global.clear
114
- expect { Gon.global.all_variables = 123 }.to raise_error
115
- expect { Gon.global.rabl = 123 }.to raise_error
119
+ expect { Gon.global.all_variables = 123 }.to raise_error(RuntimeError)
120
+ expect { Gon.global.rabl = 123 }.to raise_error(RuntimeError)
116
121
  end
117
122
 
118
123
  context 'with jbuilder and rabl' do
119
124
 
120
125
  before :each do
121
- Gon.global.clear
122
126
  controller.instance_variable_set('@objects', objects)
123
127
  end
124
128
 
@@ -136,8 +140,8 @@ describe Gon::Global do
136
140
  end
137
141
 
138
142
  it 'should throw exception, if use rabl or jbuilder without :template' do
139
- expect { Gon.global.rabl }.to raise_error
140
- expect { Gon.global.jbuilder }.to raise_error
143
+ expect { Gon.global.rabl }.to raise_error(RuntimeError)
144
+ expect { Gon.global.jbuilder }.to raise_error(RuntimeError)
141
145
  end
142
146
 
143
147
  end
@@ -14,12 +14,12 @@ describe Gon do
14
14
  let(:objects) { [1, 2] }
15
15
 
16
16
  it 'render json from jbuilder template' do
17
- Gon.jbuilder 'spec/test_data/sample.json.jbuilder', :controller => controller
17
+ Gon.jbuilder :template => 'spec/test_data/sample.json.jbuilder', :controller => controller
18
18
  expect(Gon.objects.length).to eq(2)
19
19
  end
20
20
 
21
21
  it 'render json from jbuilder template with locals' do
22
- Gon.jbuilder 'spec/test_data/sample_with_locals.json.jbuilder',
22
+ Gon.jbuilder :template => 'spec/test_data/sample_with_locals.json.jbuilder',
23
23
  :controller => controller,
24
24
  :locals => { :some_local => 1234, :some_complex_local => OpenStruct.new(:id => 1234) }
25
25
  expect(Gon.some_local).to eq(1234)
@@ -27,7 +27,7 @@ describe Gon do
27
27
  end
28
28
 
29
29
  it 'render json from jbuilder template with locals' do
30
- Gon.jbuilder 'spec/test_data/sample_with_helpers.json.jbuilder', :controller => controller
30
+ Gon.jbuilder :template => 'spec/test_data/sample_with_helpers.json.jbuilder', :controller => controller
31
31
  expect(Gon.date).to eq('about 6 hours')
32
32
  end
33
33
 
@@ -40,31 +40,38 @@ describe Gon do
40
40
  private :private_controller_method
41
41
  end
42
42
 
43
- Gon.jbuilder 'spec/test_data/sample_with_controller_method.json.jbuilder', :controller => controller
43
+ Gon.jbuilder :template => 'spec/test_data/sample_with_controller_method.json.jbuilder', :controller => controller
44
44
  expect(Gon.data_from_method).to eq('gon test helper works')
45
45
  end
46
46
 
47
47
  it 'render json from jbuilder template with a partial' do
48
48
  controller.view_paths << 'spec/test_data'
49
- Gon.jbuilder 'spec/test_data/sample_with_partial.json.jbuilder', :controller => controller
49
+ Gon.jbuilder :template => 'spec/test_data/sample_with_partial.json.jbuilder', :controller => controller
50
50
  expect(Gon.objects.length).to eq(2)
51
51
  end
52
52
 
53
- end
53
+ context 'within Rails' do
54
+ before do
55
+ module ::Rails
56
+ end
54
57
 
55
- it 'should raise error if you use gon.jbuilder without requiring jbuilder gem' do
56
- Gon.send(:remove_const, :Jbuilder)
58
+ allow(Rails).to receive_message_chain("application.routes.url_helpers.instance_methods") { [:user_path] }
59
+ controller.instance_variable_set('@user_id', 1)
60
+ end
57
61
 
58
- expect { Gon.jbuilder 'some_path' }.to raise_error
59
- load 'jbuilder.rb'
60
- load 'gon/jbuilder.rb'
61
- end
62
+ after do
63
+ Object.send(:remove_const, :Rails)
64
+ end
62
65
 
63
- end
66
+ it 'includes url_helpers' do
67
+ expect(controller).to receive(:user_path) { |id| "/users/#{id}" }
68
+ Gon.jbuilder :template => 'spec/test_data/sample_url_helpers.json.jbuilder', :controller => controller
69
+ expect(Gon.url).to eq '/users/1'
70
+ end
71
+ end
64
72
 
73
+ end
65
74
 
66
- def request
67
- @request ||= double 'request', :env => {}
68
75
  end
69
76
 
70
77
  end
@@ -56,7 +56,7 @@ describe Gon do
56
56
 
57
57
  it 'raise exception if rabl or rabl-rails is not included' do
58
58
  Object.send :remove_const, :RablRails # ensure_rabl_rails_is_loaded method already removed Rabl
59
- expect { Gon.rabl :template => 'spec/test_data/sample.rabl', :controller => controller}.to raise_error
59
+ expect { Gon.rabl :template => 'spec/test_data/sample.rabl', :controller => controller}.to raise_error(RuntimeError)
60
60
  ensure_rabl_rails_is_loaded # load up rabl-rails again, we're not done testing
61
61
  end
62
62
 
@@ -54,20 +54,20 @@ describe Gon do
54
54
 
55
55
  it 'raise exception if rabl is not included' do
56
56
  Gon.send :remove_const, 'Rabl'
57
- expect { Gon.rabl :template => 'spec/test_data/sample.rabl', :controller => controller }.to raise_error
57
+ expect { Gon.rabl :template => 'spec/test_data/sample.rabl', :controller => controller }.to raise_error(NameError)
58
58
  load 'rabl.rb'
59
59
  load 'gon/rabl.rb'
60
60
  end
61
61
 
62
- context '.get_template_path' do
62
+ context '.template_path' do
63
63
  context 'template is specified' do
64
64
 
65
65
  it 'add the extension if not included in the template name' do
66
- expect(Gon::Base.send(:get_template_path, { :template => 'spec/test_data/sample' }, 'rabl')).to eql('spec/test_data/sample.rabl')
66
+ expect(Gon::EnvFinder.send(:template_path, { :template => 'spec/test_data/sample' }, 'rabl')).to eql('spec/test_data/sample.rabl')
67
67
  end
68
68
 
69
69
  it 'return the specified template' do
70
- expect(Gon::Base.send(:get_template_path, { :template => 'spec/test_data/sample.rabl' }, 'rabl')).to eql('spec/test_data/sample.rabl')
70
+ expect(Gon::EnvFinder.send(:template_path, { :template => 'spec/test_data/sample.rabl' }, 'rabl')).to eql('spec/test_data/sample.rabl')
71
71
  end
72
72
 
73
73
  end
@@ -85,7 +85,7 @@ describe Gon do
85
85
 
86
86
  context 'the action doesn as a template at a different format' do
87
87
  it 'return the same template as the action with rabl extension' do
88
- expect(Gon::Base.send(:get_template_path, { :controller => controller }, 'rabl')).to eql('app/views/action_controller/base/show.json.rabl')
88
+ expect(Gon::EnvFinder.send(:template_path, { :controller => controller }, 'rabl')).to eql('app/views/action_controller/base/show.json.rabl')
89
89
  end
90
90
  end
91
91
 
@@ -94,8 +94,4 @@ describe Gon do
94
94
 
95
95
  end
96
96
 
97
- def request
98
- @request ||= double 'request', :env => {}
99
- end
100
-
101
97
  end
@@ -2,15 +2,15 @@ require 'spec_helper'
2
2
 
3
3
  describe Gon do
4
4
 
5
- describe '.get_template_path' do
5
+ describe '.template_path' do
6
6
  context 'template is specified' do
7
7
 
8
8
  it 'add the extension if not included in the template name' do
9
- expect(Gon::Base.send(:get_template_path, { :template => 'spec/test_data/sample' }, 'jbuilder')).to eql('spec/test_data/sample.jbuilder')
9
+ expect(Gon::EnvFinder.send(:template_path, { :template => 'spec/test_data/sample' }, 'jbuilder')).to eql('spec/test_data/sample.jbuilder')
10
10
  end
11
11
 
12
12
  it 'return the specified template' do
13
- expect(Gon::Base.send(:get_template_path, { :template => 'spec/test_data/sample.jbuilder' }, 'jbuilder')).to eql('spec/test_data/sample.jbuilder')
13
+ expect(Gon::EnvFinder.send(:template_path, { :template => 'spec/test_data/sample.jbuilder' }, 'jbuilder')).to eql('spec/test_data/sample.jbuilder')
14
14
  end
15
15
 
16
16
  end
@@ -28,15 +28,11 @@ describe Gon do
28
28
 
29
29
  context 'the action doesn as a template at a different format' do
30
30
  it 'return the same template as the action with rabl extension' do
31
- expect(Gon::Base.send(:get_template_path, { :controller => controller }, 'jbuilder')).to eql('app/views/action_controller/base/show.json.jbuilder')
31
+ expect(Gon::EnvFinder.send(:template_path, { :controller => controller }, 'jbuilder')).to eql('app/views/action_controller/base/show.json.jbuilder')
32
32
  end
33
33
  end
34
34
 
35
35
  end
36
36
  end
37
37
 
38
- def request
39
- @request ||= double 'request', :env => {}
40
- end
41
-
42
38
  end
@@ -24,7 +24,7 @@ end
24
24
 
25
25
  describe 'threading behaviour' do
26
26
  before do
27
- Gon.unstub(:current_gon)
27
+ allow(Gon).to receive(:current_gon).and_call_original
28
28
  end
29
29
 
30
30
  it 'is threadsafe' do
@@ -48,13 +48,13 @@ describe Gon::Watch do
48
48
  env = Gon.send(:current_gon).instance_variable_get(:@request_env)
49
49
  env['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'
50
50
 
51
- controller.stub(request: ActionDispatch::Request.new(env))
51
+ allow(controller).to receive_messages(request: ActionDispatch::Request.new(env))
52
52
  Gon.send(:current_gon).env['action_controller.instance'] = controller
53
53
  end
54
54
 
55
55
  context 'when request variable is json safe content' do
56
56
  before do
57
- controller.stub(params: {
57
+ allow(controller).to receive_messages(params: {
58
58
  gon_return_variable: true,
59
59
  gon_watched_variable: 'safety'})
60
60
  end
@@ -69,7 +69,7 @@ describe Gon::Watch do
69
69
  let(:expected) { %Q{"\\u003cscript\\u003e'\\"\\u003c/script\\u003e&#x2028;Dangerous"} }
70
70
 
71
71
  before do
72
- controller.stub(params: {
72
+ allow(controller).to receive_messages(params: {
73
73
  gon_return_variable: true,
74
74
  gon_watched_variable: 'danger'})
75
75
  end
@@ -1,13 +1,18 @@
1
- require 'gon'
2
-
1
+ require 'rails/railtie'
3
2
  # We don't require rails for specs, but jbuilder works only in rails.
4
3
  # And it checks version of rails. I've decided to configure jbuilder for rails v4
5
4
  module Rails
6
5
  module VERSION
7
6
  MAJOR = 4
8
7
  end
8
+
9
+ def self.version
10
+ '4.2.0'
11
+ end
9
12
  end
10
13
 
14
+ require 'gon'
15
+
11
16
  require 'jbuilder'
12
17
  require 'rabl'
13
18
  require 'rabl-rails'
@@ -46,6 +51,8 @@ def ensure_rabl_rails_is_loaded
46
51
  load 'rabl-rails/compiler.rb'
47
52
  load 'rabl-rails/renderers/hash.rb'
48
53
  load 'rabl-rails/renderers/json.rb'
54
+ load 'rabl-rails/renderers/xml.rb'
55
+ load 'rabl-rails/renderers/plist.rb'
49
56
  load 'rabl-rails.rb'
50
57
  load 'rabl-rails/template.rb'
51
58
  load 'rabl-rails/library.rb'
@@ -0,0 +1 @@
1
+ json.url user_path(@user_id)
metadata CHANGED
@@ -1,139 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gon
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.3
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gazay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.3.0
19
+ version: '2.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.3.0
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: request_store
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.5
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.5
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: multi_json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rabl
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.11.3
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 0.11.3
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rabl-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '3.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '3.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: jbuilder
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: railties
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2.3'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.3'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rake
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - ">="
143
+ - - "~>"
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - ">="
150
+ - - "~>"
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  description: If you need to send some data to your js files and you don't want to
@@ -160,10 +174,12 @@ files:
160
174
  - lib/gon.rb
161
175
  - lib/gon/base.rb
162
176
  - lib/gon/compatibility/old_rails.rb
177
+ - lib/gon/env_finder.rb
163
178
  - lib/gon/escaper.rb
164
179
  - lib/gon/global.rb
165
180
  - lib/gon/helpers.rb
166
181
  - lib/gon/jbuilder.rb
182
+ - lib/gon/jbuilder/parser.rb
167
183
  - lib/gon/json_dumper.rb
168
184
  - lib/gon/rabl.rb
169
185
  - lib/gon/request.rb
@@ -183,6 +199,7 @@ files:
183
199
  - spec/test_data/sample.json.jbuilder
184
200
  - spec/test_data/sample.rabl
185
201
  - spec/test_data/sample_rabl_rails.rabl
202
+ - spec/test_data/sample_url_helpers.json.jbuilder
186
203
  - spec/test_data/sample_with_controller_method.json.jbuilder
187
204
  - spec/test_data/sample_with_helpers.json.jbuilder
188
205
  - spec/test_data/sample_with_helpers.rabl
@@ -199,38 +216,18 @@ require_paths:
199
216
  - lib
200
217
  required_ruby_version: !ruby/object:Gem::Requirement
201
218
  requirements:
202
- - - ">="
219
+ - - ">"
203
220
  - !ruby/object:Gem::Version
204
- version: '0'
221
+ version: 1.8.7
205
222
  required_rubygems_version: !ruby/object:Gem::Requirement
206
223
  requirements:
207
224
  - - ">="
208
225
  - !ruby/object:Gem::Version
209
226
  version: '0'
210
227
  requirements: []
211
- rubyforge_project: gon
212
- rubygems_version: 2.2.2
228
+ rubyforge_project:
229
+ rubygems_version: 2.4.5
213
230
  signing_key:
214
231
  specification_version: 4
215
232
  summary: Get your Rails variables in your JS
216
- test_files:
217
- - spec/gon/basic_spec.rb
218
- - spec/gon/global_spec.rb
219
- - spec/gon/jbuilder_spec.rb
220
- - spec/gon/rabl_with_rabl_rails_spec.rb
221
- - spec/gon/rabl_with_rabl_spec.rb
222
- - spec/gon/templates_spec.rb
223
- - spec/gon/thread_spec.rb
224
- - spec/gon/watch_spec.rb
225
- - spec/spec_helper.rb
226
- - spec/test_data/_sample_partial.json.jbuilder
227
- - spec/test_data/sample.json.jbuilder
228
- - spec/test_data/sample.rabl
229
- - spec/test_data/sample_rabl_rails.rabl
230
- - spec/test_data/sample_with_controller_method.json.jbuilder
231
- - spec/test_data/sample_with_helpers.json.jbuilder
232
- - spec/test_data/sample_with_helpers.rabl
233
- - spec/test_data/sample_with_helpers_rabl_rails.rabl
234
- - spec/test_data/sample_with_locals.json.jbuilder
235
- - spec/test_data/sample_with_partial.json.jbuilder
236
- has_rdoc:
233
+ test_files: []