rails-api 0.3.0 → 0.3.1

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: b28c4566c34870ed999653a0e313daf06bd1b0da
4
- data.tar.gz: f7c2d51b73e60f0f557e93c7f672b0087a4751c3
3
+ metadata.gz: a4ea50fca1f486fc7d1d232b8295bb67c341a88c
4
+ data.tar.gz: d2c349cce24922db210c93ff6b3970e221ecf3b2
5
5
  SHA512:
6
- metadata.gz: 9dc88bdd19ab2495b8e53e52b4431474e9e9f112177ec6d6a5cbf6248e6a764b921e27b3d19a231431a69b622fa83bde76a22c94806d31db8fbfc38fab2bd84e
7
- data.tar.gz: 988cec2b4327f322fbcb1c365e06c23708d0e92bf4272b099b3fc73a7dfae234acf8fdca925c2cfaf4f76a39dc8a7b840c4326c856c0cc3f9c46739267ea9886
6
+ metadata.gz: eaab8457e8dce7dec7edf508e26f4f3bc87e17f8b0fc8183e05d96ffd9e597687e4a4d765e9ed215aea7570f6ee8e23190558e48fb05e578c536f6b891f96fbf
7
+ data.tar.gz: e80d72538c688ed519c5aa35d6deb713df62580ce1621f9071e50dc406758263954cc9f255b705c78899b7d54bf885a90d480899b000898d857ac9e0de6c086c
@@ -155,8 +155,12 @@ module ActionController
155
155
  include mod
156
156
  end
157
157
 
158
+ DEFAULT_PROTECTED_INSTANCE_VARIABLES = begin
159
+ (Rails::VERSION::MAJOR < 4 || Rails::VERSION::MINOR < 1) ? Array : Set
160
+ end.new
161
+
158
162
  def self.protected_instance_variables
159
- Set.new
163
+ DEFAULT_PROTECTED_INSTANCE_VARIABLES
160
164
  end
161
165
 
162
166
  if Rails::VERSION::MAJOR >= 4
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module API
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Santiago Pastorino and Carlos Antonio da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack