locomotivecms_coal 1.0.0.pre.alpha.2 → 1.0.0.pre.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a8f142dbb0800706987fe62347716b7d5928b54
4
- data.tar.gz: 83488a8289d95c6b88f45ca9f936d16703257de0
3
+ metadata.gz: e2d33fc0152aa303a2de3a82826a9b4b3d153ff8
4
+ data.tar.gz: 5d9720c5e28c435a0b0d299eb437477779deaf33
5
5
  SHA512:
6
- metadata.gz: 94c6a362f32059241e7980251a914d9973fde88123678ee4a716ac4b63b7473d13c1c2cc389e40808068f29475cd15e1eb0d7bae4a18bcf3a7b31376ff9159f5
7
- data.tar.gz: 102af54aebaa85d419c03cbad4fc2416f8236fb362afb0f4ffda122b12d46afafc2e7f7d41ec5bc33b267ae299abcb1312ebb9496cc31a50fae85cff2cc30774
6
+ metadata.gz: 492dda6e3af90dd2438d0a3f4f5057bd4aa4e449fbe22e5945369cb60da0e59e4016759267572b96e1657aaad14228a8bf971ba190c677836c622c09ba69cfca
7
+ data.tar.gz: e13be9b37035568852e0484e18a89dbb1094b46624059a3efce9387cf197d88a0639aba03d9be8fa2798c2e91cb7c07ccbff2b92584e4c8e5369d7a605a15e6f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- locomotivecms_coal (1.0.0.pre.alpha.2)
4
+ locomotivecms_coal (1.0.0.pre.alpha.3)
5
5
  activesupport (~> 4.2.1)
6
6
  faraday (~> 0.9.1)
7
7
  faraday_middleware (~> 0.9.1)
@@ -16,6 +16,10 @@ module Locomotive::Coal
16
16
  end
17
17
  end
18
18
 
19
+ def respond_to?(name, include_private = false)
20
+ self.attributes.key?(name.to_s) || super
21
+ end
22
+
19
23
  end
20
24
 
21
25
  end
@@ -3,6 +3,6 @@
3
3
  # 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0
4
4
  module Locomotive
5
5
  module Coal
6
- VERSION = '1.0.0-alpha.2'
6
+ VERSION = '1.0.0-alpha.3'
7
7
  end
8
8
  end
@@ -15,4 +15,15 @@ describe Locomotive::Coal::Resource do
15
15
  it { is_expected.to eq 'Hello world' }
16
16
  end
17
17
 
18
+ describe '#respond_to?' do
19
+ let(:name) { :title }
20
+ subject { resource.respond_to?(name) }
21
+ it { is_expected.to eq true }
22
+
23
+ context 'unknown attribute' do
24
+ let(:name) { :body }
25
+ it { is_expected.to eq false }
26
+ end
27
+ end
28
+
18
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_coal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.2
4
+ version: 1.0.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue