cartograph 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/cartograph/dsl.rb +1 -0
- data/lib/cartograph/version.rb +1 -1
- data/spec/lib/cartograph/dsl_spec.rb +11 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5865c17d497c9424e7bc2a4e5cb352aae87615b
|
4
|
+
data.tar.gz: 663a7e2759737124ed2838bef794017b8bcc7245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19233a0f2fd2263d62cda6eb5f553848277e37bcb34590ab943f95ed1d2ff382aa00ed68093acc8a672e1468a829ef6964ad28813a4a6a42ac8bc7bd624718c5
|
7
|
+
data.tar.gz: ca89cfc1f7d0012d3319adfa2b15fa1864604cf73447ef02b0f2c96309bd4980e5b5f6e144716432124433c711c479b684f1869e9696d29a4aa7d4d0eb8f2a74
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@ Cartograph Changelog
|
|
3
3
|
|
4
4
|
### master
|
5
5
|
|
6
|
+
### [v1.0.3][v1.0.3] (October 10, 2019)
|
7
|
+
|
8
|
+
* Fixed payload without root key
|
9
|
+
([4d940ae](https://github.com/kyrylo/cartograph/commit/4d940aeb31353a6f53ea43021a42ccf4ccf7dae9))
|
10
|
+
|
6
11
|
### [v1.0.2][v1.0.2] (November 7, 2017)
|
7
12
|
|
8
13
|
* Fixed the "possibly useless use of ... in void context" warning
|
@@ -20,3 +25,4 @@ Cartograph Changelog
|
|
20
25
|
[v1.0.0]: https://github.com/kyrylo/cartograph/releases/tag/v1.0.0
|
21
26
|
[v1.0.1]: https://github.com/kyrylo/cartograph/releases/tag/v1.0.1
|
22
27
|
[v1.0.2]: https://github.com/kyrylo/cartograph/releases/tag/v1.0.2
|
28
|
+
[v1.0.3]: https://github.com/kyrylo/cartograph/releases/tag/v1.0.3
|
data/lib/cartograph/dsl.rb
CHANGED
data/lib/cartograph/version.rb
CHANGED
@@ -253,5 +253,16 @@ describe Cartograph::DSL do
|
|
253
253
|
expect(extracted[1].name).to eq(scoped[1][:name])
|
254
254
|
end
|
255
255
|
end
|
256
|
+
|
257
|
+
context "when the key is a hash" do
|
258
|
+
let(:json) do
|
259
|
+
{ name: { first_name: '', last_name: '' } }
|
260
|
+
end
|
261
|
+
|
262
|
+
it "doesn't raise error" do
|
263
|
+
expect { mapped.extract_collection(json.to_json, :read) }
|
264
|
+
.not_to raise_error
|
265
|
+
end
|
266
|
+
end
|
256
267
|
end
|
257
268
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartograph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Ross
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.6.
|
116
|
+
rubygems_version: 2.6.14.4
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Cartograph makes it easy to generate and convert JSON. It's intention is
|