reuters 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/reuters/builder.rb +1 -1
- data/lib/reuters/version.rb +1 -1
- data/spec/reuters/builder_spec.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2Y5MDEzNzIzYTliYTMxZGM2NzAxNzQ1Njc1NjA2MWRkYjJjZjMxZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDM5ZGIyODg1NTA4Yzc5MzAyODFhMzI2OGE0ZjdjZDhhOWE3ZTc0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWVhNjhjOGEzNTM0Y2NkYjNhZTgwNmY1MDk1NGI0ZmJlNDExZTlhZDlhMjlk
|
10
|
+
YTI0NDU4NjE1ZDQyMzgwODY2OTFhY2NjY2M1ZjRhYjQyMzlmNThmNjAxODUw
|
11
|
+
M2VlNTBmNWYwZjQxYTIxYzc4MDBiNWE0MDZkMDk5MmEyYzI1MDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzlmYWIzZDQwY2U0MDkxOGIzNDhkNjkxNTUyYzdiMmY5N2ZkNGE2NjBkOTdk
|
14
|
+
NWVjMzg2N2ZkNzNjNDNiZjcwODk1ZmYyYjc1OTIxZWI3YWM1NGEzZDVhNTAx
|
15
|
+
MjM3OTc2ZDMyMDEwNWVmYTAxZDA2ZWVhMTdkOTNmNGE2ZWQyNDQ=
|
data/lib/reuters/builder.rb
CHANGED
@@ -85,7 +85,7 @@ module Reuters
|
|
85
85
|
# @return [Boolean] True if the key exists, false otherwise
|
86
86
|
def attribute_key?(key, attr_key)
|
87
87
|
attrs = attribute_keys(key)
|
88
|
-
attrs.include?(camelize(attr_key) || attrs.include?(attr_key)
|
88
|
+
attrs.include?(camelize(attr_key)) || attrs.include?(attr_key)
|
89
89
|
end
|
90
90
|
|
91
91
|
# Returns all keys inside the attributes hash.
|
data/lib/reuters/version.rb
CHANGED
@@ -30,15 +30,17 @@ describe Reuters::Builder do
|
|
30
30
|
|
31
31
|
before do
|
32
32
|
@builder.hold_key
|
33
|
-
@builder.
|
33
|
+
@builder.business_entity(include: true).string_value(value: "QUOTE.FUND", negated: false)
|
34
|
+
@builder.attributes({ business_entity: { 'xmlns' => "http://test" } }, false)
|
35
|
+
# @builder.attributes(hold_key: { "test_build" => "Type" })
|
34
36
|
end
|
35
37
|
|
36
38
|
it "should allow camelcase keys" do
|
37
|
-
expect(@builder.attribute_key?(:
|
39
|
+
expect(@builder.attribute_key?(:business_entity, "Include")).to be_true
|
38
40
|
end
|
39
41
|
|
40
42
|
it "should allow underscore keys" do
|
41
|
-
expect(@builder.attribute_key?(:
|
43
|
+
expect(@builder.attribute_key?(:business_entity, 'xmlns')).to be_true
|
42
44
|
end
|
43
45
|
|
44
46
|
end
|