gon 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 347cb6eaf0a7cb61c671f49effabb88900ab6769
4
- data.tar.gz: 7fd46106f1c2c9a9fbad29b539f15b1900bd578a
3
+ metadata.gz: 4c821696b6d4a8ba7c715ac87e8fc7e34e7696fa
4
+ data.tar.gz: 0cd052df88b75160786d86929a13d62947c5b10f
5
5
  SHA512:
6
- metadata.gz: 7a016546634113a2a450ffb1776cec8e19f6b6885bbcba1d84f8b248d05f8daa966917dc6ad7b7e6b3a84f123b464e6597e58558a8385e85121b07fdd62f442f
7
- data.tar.gz: 21ba461ab0c74534e82a42828787c8d27b4ddda0a6a5d6ac917d4dace43638669b79826610df2792948de253c380d3868a39cc87180ec7536ae8298c1b69a490
6
+ metadata.gz: bf0d8b204ab3c103289c89338f7b98534f2c8da68fb18af90ebd9c69497afef02bddedca4865fdccea8cc32395f4464b41d475d37941143e76257285f8ab2e91
7
+ data.tar.gz: ba5a6cd137050b52b066261e756ff6176ba1285d393a0d1291a33e464e1928576897131ce8e9a1fdb29afb09c772aa22c0be7b821f57646dd36eced63fb13785
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 5.0.4
4
+
5
+ * Fix check for get and assign variables for Gon.global
6
+
3
7
  ## 5.0.3
4
8
 
5
9
  * Revert changes in gemspec
data/lib/gon.rb CHANGED
@@ -25,7 +25,7 @@ class Gon
25
25
  if public_method_name?(method)
26
26
  raise 'You can\'t use Gon public methods for storing data'
27
27
  end
28
- unless current_gon
28
+ if self == Gon && !current_gon
29
29
  raise 'Assign request-specific gon variables only through `gon` helper, not through Gon constant'
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  class Gon
2
- VERSION = '5.0.3'
2
+ VERSION = '5.0.4'
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: 5.0.3
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - gazay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-13 00:00:00.000000000 Z
11
+ date: 2014-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack