gon 6.3.1 → 6.3.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.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/CHANGELOG.md +257 -127
- data/README.md +4 -0
- data/gon.gemspec +3 -2
- data/lib/gon/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4be940f45c3dff8c909d94552a81b3240ccea1dd42d5c442c18400278564286
|
4
|
+
data.tar.gz: 86efc334a694c3a9825ec909f34bd5138b601de0108172863adb4d651eccdb28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9adb780569a41eb32cf547f7ffebf22b184fdda8c63aa6d7c2e5e9b0efe789e2ec5a187cec83d4ca4ef0bc068148708adf1a7541752dcad83228dc4c5cf08920
|
7
|
+
data.tar.gz: da49fd8d8e2b683bd69fa2e5f37e8f912faa4496a3f81739022b68f2bea5cd1762c0b3b54c25426756499e8096c9822ff36ce7e854e771db28237988c5e4385b
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
tidelift: "rubygems/gon"
|
data/CHANGELOG.md
CHANGED
@@ -1,129 +1,259 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
##
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
##
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
##
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
3
|
+
## [Unreleased]
|
4
|
+
|
5
|
+
## [6.3.2] - 2019-11-18
|
6
|
+
### Security
|
7
|
+
- Restrict possibility of vulnerable i18n legacy verision (0.3.6.pre)
|
8
|
+
installation
|
9
|
+
|
10
|
+
## [6.3.1] - 2019-11-18
|
11
|
+
### Changed
|
12
|
+
- ActionView::Base and ActionController::Base should be loaded inside
|
13
|
+
ActiveSupport.on_load hook. Thanks to @amatsuda
|
14
|
+
- Require Ruby >= 2.2.2 (activesupport). Thanks to @nicolasleger
|
15
|
+
- Update old_rails.rb to reflect GonHelpers -> ControllerHelpers name change.
|
16
|
+
Thanks to @etipton
|
17
|
+
|
18
|
+
## [6.2.1] - 2018-07-11
|
19
|
+
### Changed
|
20
|
+
- Update README: correct spelling mistake. Thanks to @EdwardBetts
|
21
|
+
- Autoload test classes only in test env. Thanks to @wilddima
|
22
|
+
|
23
|
+
### Fixed
|
24
|
+
- Fix keys cache. Thanks to @ertrzyiks
|
25
|
+
- fixing tests by running with rabl and rabl-rails separately. Thanks to
|
26
|
+
@dsalahutdinov
|
27
|
+
|
28
|
+
## [6.2.0] - 2017-10-04
|
29
|
+
### Added
|
30
|
+
- Introduce keys cache. Thanks to @vlazar
|
31
|
+
- Add possibleErrorCallback to watch params. Thanks to @etagwerker
|
32
|
+
|
33
|
+
### Changed
|
34
|
+
- Update readme with PhoenixGon hex link. Thanks to @khusnetdinov
|
35
|
+
- Fix code highlighting in README. Thanks to @ojab
|
36
|
+
- Refactoring: use attr_reader
|
37
|
+
|
38
|
+
### Removed
|
39
|
+
- Remove unnecessary json dependency.
|
40
|
+
- Remove rubysl and rubinius-developer_tools gem.
|
41
|
+
|
42
|
+
## [6.1.0] - 2016-07-11
|
43
|
+
### Deprecated
|
44
|
+
- env is deprecated and will be removed from Rails 5.0. Thanks to @dlupu
|
45
|
+
|
46
|
+
### Fixed
|
47
|
+
- fix merging routes bug. Thanks to @strikyflo
|
48
|
+
- Show what method was used in public methods error.
|
49
|
+
|
50
|
+
### Changed
|
51
|
+
- Use 'need_tag' as option name to prevent calling 'tag' method. Thanks to
|
52
|
+
@june29
|
53
|
+
- Update README; comment out gon.clear from sample code. Thanks to
|
54
|
+
@speee-nakajima
|
55
|
+
- Update README; Replace the include_gon method with render_data method.
|
56
|
+
- Refactoring: use attr_accessor method.
|
57
|
+
- Refactoring: use attr_reader method.
|
58
|
+
|
59
|
+
## [6.0.1] - 2015-07-22
|
60
|
+
### Changed
|
61
|
+
- Free dependencies
|
62
|
+
|
63
|
+
## [6.0.0] - 2015-07-22
|
64
|
+
### Added
|
65
|
+
- nonce option. Thanks to @joeljackson
|
66
|
+
|
67
|
+
### Changed
|
68
|
+
- Refactoring
|
69
|
+
- Included rails url_helpers into jbuilder. Thanks to @razum2um
|
70
|
+
|
71
|
+
## [5.2.3] - 2014-11-03
|
72
|
+
### Added
|
73
|
+
- Coffescript implementation of watch.js. Thanks to @willcosgrove
|
74
|
+
- unwatchAll function in watch.js. Thanks to @willcosgrove
|
75
|
+
|
76
|
+
## [5.2.2] - 2014-10-31
|
77
|
+
### Added
|
78
|
+
- support for controller helper methods in jbuilder
|
79
|
+
|
80
|
+
## [5.2.1] - 2014-10-28
|
81
|
+
### Added
|
82
|
+
- merge variable feature (for merge hash-like variables instead of overriding
|
83
|
+
them). Thanks to @jalkoby
|
84
|
+
|
85
|
+
### Fixed
|
86
|
+
- fix for jbuilder module. Thanks to @jankovy
|
87
|
+
|
88
|
+
## [5.2.0] - 2014-08-26
|
89
|
+
### Added
|
90
|
+
- namespace_check option. Thanks to @tommyh
|
91
|
+
- AMD compatible version of including gon. Thanks to @vijoc
|
92
|
+
|
93
|
+
### Changed
|
94
|
+
- Only inject gon into ActionController::Base-like object in spec_helper. Thanks
|
95
|
+
to @kevinoconnor7
|
96
|
+
|
97
|
+
### Fixed
|
98
|
+
- fix issue where include_gon would raise exception if the controller did not
|
99
|
+
assign any gon variables. Thanks to @asalme
|
100
|
+
|
101
|
+
## [5.1.2] - 2014-07-22
|
102
|
+
### Changed
|
103
|
+
- Clarifying helpers, dump gon#watch content to safe json before render. Thanks
|
104
|
+
to @Strech
|
105
|
+
|
106
|
+
## [5.1.1] - 2014-07-17
|
107
|
+
### Added
|
108
|
+
- global_root option. Thanks to @rafaelliu
|
109
|
+
- MultiJson support. Thanks to @Strech
|
110
|
+
|
111
|
+
## [5.1.0] - 2014-06-29
|
112
|
+
### Fixed
|
113
|
+
- Many fixes. Thanks to @Silex, @kilefritz, @irobayna, @kyrylo, @randoum,
|
114
|
+
@jackquack, @tuvistavie, @Strech for awesome commits and help!
|
115
|
+
|
116
|
+
## [5.0.4] - 2014-02-13
|
117
|
+
### Fixed
|
118
|
+
- Fix check for get and assign variables for Gon.global
|
119
|
+
|
120
|
+
## [5.0.3] - 2014-02-12
|
121
|
+
### Removed
|
122
|
+
- Revert changes in gemspec
|
123
|
+
|
124
|
+
## [5.0.2] - 2014-02-12
|
125
|
+
### Fixed
|
126
|
+
- Fix issue when there is no gon object for current thread and rendering
|
127
|
+
include_gon (#108 part) (wasn't fixed) (@gregmolnar)
|
128
|
+
|
129
|
+
## [5.0.1] - 2013-12-30
|
130
|
+
### Fixed
|
131
|
+
- Fix issue when there is no gon object for current thread and rendering
|
132
|
+
include_gon (#108 part)
|
133
|
+
|
134
|
+
## [5.0.0] - 2013-12-26
|
135
|
+
### Changed
|
136
|
+
- Gon is threadsafe now! (@razum2um)
|
137
|
+
- Camelcasing with depth (@MaxSchmeling)
|
138
|
+
- Optional CDATA and style refactoring (@torbjon)
|
139
|
+
- jBuilder supports not only String and Hash types of locals (@steakchaser)
|
140
|
+
- Using ActionDispatch::Request#uuid instead of ActionDispatch::Request#id
|
141
|
+
(@sharshenov)
|
142
|
+
|
143
|
+
## [4.1.1] - 2013-06-04
|
144
|
+
### Fixed
|
145
|
+
- Fixed critical XSS vulnerability https://github.com/gazay/gon/issues/84
|
146
|
+
(@vadimr & @Hebo)
|
147
|
+
|
148
|
+
## [4.1.0] - 2013-04-14
|
149
|
+
### Added
|
150
|
+
- rabl-rails support (@jtherrell)
|
151
|
+
|
152
|
+
### Changed
|
153
|
+
- Refactored script tag generation (@toothrot)
|
154
|
+
- Stop support for MRI 1.8.7
|
155
|
+
- Accepting locals in jbuilder templates
|
156
|
+
|
157
|
+
## [4.0.3] - 2013-04-14
|
158
|
+
!!!IMPORTANT!!! Last version with compatibility for MRI 1.8.7
|
159
|
+
|
160
|
+
### Added
|
161
|
+
- new method `Gon#push` for assign variables through Hash-like objects (@topdev)
|
162
|
+
### Changed
|
163
|
+
- Fixes for 1.8.7 compatibility.
|
164
|
+
|
165
|
+
## [4.0.2] - 2012-12-17
|
166
|
+
### Fixed
|
167
|
+
- Fixed gon.watch in JS without callback and options
|
168
|
+
|
169
|
+
## [4.0.1] - 2012-10-25
|
170
|
+
### Added
|
171
|
+
- option :locals to gon.rabl functionality
|
172
|
+
|
173
|
+
### Changed
|
174
|
+
- Gon#set_variable and Gon#get_variable moved to public scope
|
175
|
+
|
176
|
+
### Removed
|
177
|
+
- BlankSlate requirement (@phoet)
|
178
|
+
|
179
|
+
## [4.0.0] - 2012-07-23
|
180
|
+
### Added
|
181
|
+
- gon.watch functionality (thanks to @brainopia and @kossnocorp)
|
182
|
+
- Compatibility with jbuilder paths for partial! method
|
183
|
+
|
184
|
+
### Changed
|
185
|
+
- Little bit refactoring - Gon now is a class
|
186
|
+
|
187
|
+
### Fixed
|
188
|
+
- Fixed some bugs
|
189
|
+
|
190
|
+
## [3.0.5] - 2012-06-22
|
191
|
+
### Added
|
192
|
+
- type text/javascript option (@torbjon)
|
193
|
+
|
194
|
+
### Changed
|
195
|
+
- A litlle bit refactoring
|
196
|
+
- Made compatible with active support json encoding for escaping script tags
|
197
|
+
|
198
|
+
### Fixed
|
199
|
+
- bug for init option
|
200
|
+
- clear if init true (@torbjon)
|
201
|
+
|
202
|
+
## [3.0.4] - 2012-06-02
|
203
|
+
### Fixed
|
204
|
+
- Fix bug with gon clear with global variables, bump version
|
205
|
+
|
206
|
+
## [3.0.3] - 2012-05-22
|
207
|
+
### Added
|
208
|
+
- init option (@torbjon)
|
209
|
+
|
210
|
+
### Changed
|
211
|
+
- Include ActionView::Helpers into Gon::JBuilder
|
212
|
+
|
213
|
+
## [3.0.2] - 2012-04-28
|
214
|
+
### Added
|
215
|
+
- need_tag option (@afa)
|
216
|
+
|
217
|
+
## [3.0.0] - 2012-04-17
|
218
|
+
### Added
|
219
|
+
- Added Gon.global for using gon everywhere
|
220
|
+
|
221
|
+
### Changed
|
222
|
+
- Almost all code refactored
|
223
|
+
- Included ActionView::Helpers into Rabl::Engine
|
224
|
+
|
225
|
+
## [2.3.0] - 2012-04-09
|
226
|
+
### Changed
|
227
|
+
- Don't really remember what was before this version
|
228
|
+
|
229
|
+
[Unreleased]: https://github.com/gazay/gon/compare/v6.3.1...master
|
230
|
+
[6.3.1]: https://github.com/gazay/gon/compare/v6.2.1...v6.3.1
|
231
|
+
[6.2.1]: https://github.com/gazay/gon/compare/v6.2.0...v6.2.1
|
232
|
+
[6.2.0]: https://github.com/gazay/gon/compare/v6.1.0...v6.2.0
|
233
|
+
[6.1.0]: https://github.com/gazay/gon/compare/v6.0.1...v6.1.0
|
234
|
+
[6.0.1]: https://github.com/gazay/gon/compare/v6.0.0...v6.0.1
|
235
|
+
[6.0.0]: https://github.com/gazay/gon/compare/v5.2.3...v6.0.0
|
236
|
+
[5.2.3]: https://github.com/gazay/gon/compare/v5.2.2...v5.2.3
|
237
|
+
[5.2.2]: https://github.com/gazay/gon/compare/v5.2.1...v5.2.2
|
238
|
+
[5.2.1]: https://github.com/gazay/gon/compare/v5.2.0...v5.2.1
|
239
|
+
[5.2.0]: https://github.com/gazay/gon/compare/v5.1.2...v5.2.0
|
240
|
+
[5.1.2]: https://github.com/gazay/gon/compare/v5.1.1...v5.1.2
|
241
|
+
[5.1.1]: https://github.com/gazay/gon/compare/v5.1.0...v5.1.1
|
242
|
+
[5.1.0]: https://github.com/gazay/gon/compare/v5.0.4...v5.1.0
|
243
|
+
[5.0.4]: https://github.com/gazay/gon/compare/v5.0.3...v5.0.4
|
244
|
+
[5.0.3]: https://github.com/gazay/gon/compare/v5.0.2...v5.0.3
|
245
|
+
[5.0.2]: https://github.com/gazay/gon/compare/v5.0.1...v5.0.2
|
246
|
+
[5.0.1]: https://github.com/gazay/gon/compare/v5.0.0...v5.0.1
|
247
|
+
[5.0.0]: https://github.com/gazay/gon/compare/v4.1.1...v5.0.0
|
248
|
+
[4.1.1]: https://github.com/gazay/gon/compare/v4.1.0...v4.1.1
|
249
|
+
[4.1.0]: https://github.com/gazay/gon/compare/v4.0.3...v4.1.0
|
250
|
+
[4.0.3]: https://github.com/gazay/gon/compare/v4.0.2...v4.0.3
|
251
|
+
[4.0.2]: https://github.com/gazay/gon/compare/v4.0.1...v4.0.2
|
252
|
+
[4.0.1]: https://github.com/gazay/gon/compare/v4.0.0...v4.0.1
|
253
|
+
[4.0.0]: https://github.com/gazay/gon/compare/v3.0.5...v4.0.0
|
254
|
+
[3.0.5]: https://github.com/gazay/gon/compare/v3.0.4...v3.0.5
|
255
|
+
[3.0.4]: https://github.com/gazay/gon/compare/v3.0.3...v3.0.4
|
256
|
+
[3.0.3]: https://github.com/gazay/gon/compare/v3.0.2...v3.0.3
|
257
|
+
[3.0.2]: https://github.com/gazay/gon/compare/v3.0.0...v3.0.2
|
258
|
+
[3.0.0]: https://github.com/gazay/gon/compare/v2.3.0...v3.0.0
|
259
|
+
[2.3.0]: https://github.com/gazay/gon/releases/tag/v2.3.0
|
data/README.md
CHANGED
@@ -237,3 +237,7 @@ Special thanks to @brainopia, @kossnocorp and @ai.
|
|
237
237
|
## License
|
238
238
|
|
239
239
|
The MIT License
|
240
|
+
|
241
|
+
## Security Contact
|
242
|
+
|
243
|
+
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
|
data/gon.gemspec
CHANGED
@@ -16,14 +16,15 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.require_paths = ['lib']
|
18
18
|
s.required_ruby_version = '>= 2.2.0'
|
19
|
-
s.add_dependency 'actionpack', '>= 3.0'
|
19
|
+
s.add_dependency 'actionpack', '>= 3.0.20'
|
20
|
+
s.add_dependency 'i18n', '>= 0.7'
|
20
21
|
s.add_dependency 'request_store', '>= 1.0'
|
21
22
|
s.add_dependency 'multi_json'
|
22
23
|
s.add_development_dependency 'rabl', '0.11.3'
|
23
24
|
s.add_development_dependency 'rabl-rails'
|
24
25
|
s.add_development_dependency 'rspec', '>= 3.0'
|
25
26
|
s.add_development_dependency 'jbuilder'
|
26
|
-
s.add_development_dependency 'railties', '>= 3.0'
|
27
|
+
s.add_development_dependency 'railties', '>= 3.0.20'
|
27
28
|
s.add_development_dependency 'rake'
|
28
29
|
s.add_development_dependency 'pry'
|
29
30
|
end
|
data/lib/gon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.3.
|
4
|
+
version: 6.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gazay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.20
|
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:
|
26
|
+
version: 3.0.20
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: i18n
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.7'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: request_store
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +128,14 @@ dependencies:
|
|
114
128
|
requirements:
|
115
129
|
- - ">="
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
131
|
+
version: 3.0.20
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
138
|
+
version: 3.0.20
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: rake
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,6 +172,7 @@ executables: []
|
|
158
172
|
extensions: []
|
159
173
|
extra_rdoc_files: []
|
160
174
|
files:
|
175
|
+
- ".github/FUNDING.yml"
|
161
176
|
- ".gitignore"
|
162
177
|
- ".travis.yml"
|
163
178
|
- CHANGELOG.md
|