gon 6.2.1 → 6.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd7174b8f5d1b62bee948c0f44209496833d931a77feb0e5d1c9b77ec32ea477
4
- data.tar.gz: d704723d05a03958b993a20e6f71a71f06d5ddd66407fa7dc56b118ce5db3170
3
+ metadata.gz: d3011b64184a618203097a39e862d2003267b1cd01174fd10277036bd2bccf76
4
+ data.tar.gz: 4103a6703347a5c5cd35502d9a0655730e3889686346042dc702ba7bebe58dbf
5
5
  SHA512:
6
- metadata.gz: b3f2e623bc54fe8058ca00e9cce8b3f15e9f9129833d5a99ae5aecf7b1365f63084ed9e8a307b759273c8fa561298cd246c0bf9fac87f97014ab93d4007989e5
7
- data.tar.gz: 81aed53ece55c3dae69aea03741867b97c0389fcd1500401de2c6c2d4f25d63fa670056e3c73385a78d20bb5b57f0bdf9d846b769eaf1577e6668b52da7772da
6
+ metadata.gz: df7d4d73cebf80666e8a5f65c04fb8368c83fe53f600976c93f6c8136873add54e9af82df246440b851b18c1254d21f191498d2254cb537734ae8101f5277187
7
+ data.tar.gz: 0af70690d9acd62e3550ce7bea2142ddc9a518b41b921db60b70fa092fdf0344b6758adb24cbe90c7825b56e81edfb0ed987f88f73937c3191f5bd1af0041fb4
@@ -5,8 +5,8 @@ env:
5
5
  - "RABL_GEM=rabl-rails"
6
6
 
7
7
  rvm:
8
- - 2.3.3
9
- - 2.4.0
8
+ - 2.2.10
9
+ - 2.3.7
10
+ - 2.4.4
11
+ - 2.5.1
10
12
  - ruby-head
11
- # uncomment this line if your project needs to run something other than `rake`:
12
- # script: bundle exec rspec spec
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2011-2016 gazay
3
+ Copyright (c) 2011-2019 Alexey Gaziev
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.files = `git ls-files`.split("\n")
17
17
  s.require_paths = ['lib']
18
- s.required_ruby_version = '> 1.8.7'
18
+ s.required_ruby_version = '>= 2.2.0'
19
19
  s.add_dependency 'actionpack', '>= 3.0'
20
20
  s.add_dependency 'request_store', '>= 1.0'
21
21
  s.add_dependency 'multi_json'
@@ -1,9 +1,10 @@
1
1
  require 'securerandom'
2
2
 
3
3
  class Gon
4
- module GonHelpers
4
+ module ControllerHelpers
5
5
  private
6
6
 
7
+ # override this since ActionDispatch::Request#uuid appears only in Rails 3.2.1
7
8
  def gon_request_uuid
8
9
  @gon_request_uuid ||= SecureRandom.uuid
9
10
  end
@@ -52,5 +52,9 @@ class Gon
52
52
  end
53
53
  end
54
54
 
55
- ActionView::Base.send :include, Gon::ViewHelpers
56
- ActionController::Base.send :include, Gon::ControllerHelpers
55
+ ActiveSupport.on_load :action_view do
56
+ ActionView::Base.send :include, Gon::ViewHelpers
57
+ end
58
+ ActiveSupport.on_load :action_controller do
59
+ ActionController::Base.send :include, Gon::ControllerHelpers
60
+ end
@@ -1,3 +1,3 @@
1
1
  class Gon
2
- VERSION = '6.2.1'
2
+ VERSION = '6.3.1'
3
3
  end
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.2.1
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gazay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-11 00:00:00.000000000 Z
11
+ date: 2019-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -215,17 +215,16 @@ require_paths:
215
215
  - lib
216
216
  required_ruby_version: !ruby/object:Gem::Requirement
217
217
  requirements:
218
- - - ">"
218
+ - - ">="
219
219
  - !ruby/object:Gem::Version
220
- version: 1.8.7
220
+ version: 2.2.0
221
221
  required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
223
  - - ">="
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubyforge_project:
228
- rubygems_version: 2.7.6
227
+ rubygems_version: 3.0.3
229
228
  signing_key:
230
229
  specification_version: 4
231
230
  summary: Get your Rails variables in your JS