codily 0.3.0 → 0.3.1

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: 9101d20d4d6d01e3dca68580eb3604844848c74c
4
- data.tar.gz: f0d018dace390dc03f9d4331ff9966c300378d40
3
+ metadata.gz: 7c22316dd8578f104d34d07740a5cac9beca82f4
4
+ data.tar.gz: d29f853f1e99481e07a4eaec1fd901ce57a0fecd
5
5
  SHA512:
6
- metadata.gz: 7a6c69fea4315b52b6de100fd1990f045197a2737fc5dd282fbf49f70a8ee94bbec784fd732d99884008ec2350b746c5e2684ad77088ba35cfd9be9fcb9e721d
7
- data.tar.gz: 36734debdd91241dc72e7e5a9dff19ff9d24ec28b478d4cdee6fcfea5b113bec50b8a5b23bf40797dc728834157423018f217142e612fdcad5bdf52fcdbf0ec5
6
+ metadata.gz: d0f8a70265eab89097a6c99cfdbef889552dd2c1e0e173bc6052fa75b08f0f1b01382f9f61f37e4d3890bf45c2c8cb72f8558bd3b6adc3603f3d80485153415d
7
+ data.tar.gz: 8c646dbd2310f6cfd1ac0b44ff7be8f62400006929895ddd4a1230f77330431ab69d2e9c13afc250780007944c4edff385916d28ef3e8f2ddb487c1f33d24548
@@ -153,7 +153,9 @@ module Codily
153
153
  list = root.list_element(klass)
154
154
  element = klass.new(root, obj, &block)
155
155
  element_query = element.__send__(key2)
156
- candidate = list.each_value.find { |_| _.__send__(key2) == element_query }
156
+ candidate = list.each_value.find { |_|
157
+ element_query == _.__send__(key2) && element.key == _.key
158
+ }
157
159
  if candidate
158
160
  if block
159
161
  raise AlreadyDefined
@@ -29,6 +29,9 @@ module Codily
29
29
  cache_condition
30
30
  request_condition
31
31
  )
32
+ force_integer! *%i(
33
+ status
34
+ )
32
35
  end
33
36
 
34
37
  def content(obj = nil)
@@ -1,3 +1,3 @@
1
1
  module Codily
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codily
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
  - Sorah Fukumori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastly
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.6.7
134
+ rubygems_version: 2.6.11
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Codificate Fastly configuration