maremma 4.7.1 → 4.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -6
- data/lib/maremma.rb +3 -0
- data/lib/maremma/version.rb +1 -1
- data/spec/maremma_spec.rb +9 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad21e93b25fe99e7c8f0423b3acaeaa78ac3b319f39c77f032d24fd147ba6831
|
4
|
+
data.tar.gz: b6fddb388939d6118c9ef856f5b4efde237c4fda64681e1f65c5c09b0afad2d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4647e2fdcf6a4669922e7a7125754b953ac25ab1000c8cba3084f1081d296d444e21aa9cd6809d54777c296aabc455dac54034311421b904090315d44b3a50e
|
7
|
+
data.tar.gz: '0028c906efd402b7d46909f40b6ea22551e08a06dcad753358c1f8bd461c90c2616e1d7c3eb6642a1aa4acc66af7f7ede2b40be2996d0297d03be03702731ae8'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
maremma (4.7.
|
4
|
+
maremma (4.7.2)
|
5
5
|
activesupport (>= 4.2.5)
|
6
6
|
addressable (>= 2.3.6)
|
7
7
|
builder (~> 3.2, >= 3.2.2)
|
@@ -25,8 +25,9 @@ GEM
|
|
25
25
|
addressable (2.7.0)
|
26
26
|
public_suffix (>= 2.0.2, < 5.0)
|
27
27
|
ast (2.4.1)
|
28
|
+
bigdecimal (2.0.0)
|
28
29
|
builder (3.2.4)
|
29
|
-
concurrent-ruby (1.1.
|
30
|
+
concurrent-ruby (1.1.7)
|
30
31
|
crack (0.4.3)
|
31
32
|
safe_yaml (~> 1.0.0)
|
32
33
|
diff-lcs (1.4.4)
|
@@ -39,7 +40,7 @@ GEM
|
|
39
40
|
faraday_middleware (0.14.0)
|
40
41
|
faraday (>= 0.7.4, < 1.0)
|
41
42
|
hashdiff (1.0.1)
|
42
|
-
i18n (1.8.
|
43
|
+
i18n (1.8.5)
|
43
44
|
concurrent-ruby (~> 1.0)
|
44
45
|
jaro_winkler (1.5.4)
|
45
46
|
mini_portile2 (2.4.0)
|
@@ -47,7 +48,8 @@ GEM
|
|
47
48
|
multipart-post (2.1.1)
|
48
49
|
nokogiri (1.10.10)
|
49
50
|
mini_portile2 (~> 2.4.0)
|
50
|
-
oj (3.10.
|
51
|
+
oj (3.10.12)
|
52
|
+
bigdecimal (>= 1.0, < 3)
|
51
53
|
oj_mimic_json (1.0.1)
|
52
54
|
parallel (1.19.2)
|
53
55
|
parser (2.7.1.4)
|
@@ -82,7 +84,7 @@ GEM
|
|
82
84
|
rubocop (>= 0.71.0)
|
83
85
|
ruby-progressbar (1.10.1)
|
84
86
|
safe_yaml (1.0.5)
|
85
|
-
simplecov (0.
|
87
|
+
simplecov (0.19.0)
|
86
88
|
docile (~> 1.1)
|
87
89
|
simplecov-html (~> 0.11)
|
88
90
|
simplecov-html (0.12.2)
|
@@ -95,7 +97,7 @@ GEM
|
|
95
97
|
addressable (>= 2.3.6)
|
96
98
|
crack (>= 0.3.2)
|
97
99
|
hashdiff (>= 0.4.0, < 2.0.0)
|
98
|
-
zeitwerk (2.
|
100
|
+
zeitwerk (2.4.0)
|
99
101
|
|
100
102
|
PLATFORMS
|
101
103
|
ruby
|
data/lib/maremma.rb
CHANGED
data/lib/maremma/version.rb
CHANGED
data/spec/maremma_spec.rb
CHANGED
@@ -61,6 +61,15 @@ describe Maremma do
|
|
61
61
|
expect(stub).to have_been_requested
|
62
62
|
end
|
63
63
|
|
64
|
+
it "get json with umlaut" do
|
65
|
+
url = "https://api.ror.org/organizations?page=1&query=münster"
|
66
|
+
stub = stub_request(:get, url).to_return(:body => data.to_json, :status => 200, :headers => { "Content-Type" => "application/json" })
|
67
|
+
response = subject.get(url)
|
68
|
+
expect(response.body).to eq("data" => data)
|
69
|
+
expect(response.headers).to eq("Content-Type"=>"application/json")
|
70
|
+
expect(stub).to have_been_requested
|
71
|
+
end
|
72
|
+
|
64
73
|
it "get xml raw" do
|
65
74
|
stub = stub_request(:get, url).to_return(:body => data.to_xml, :status => 200, :headers => { "Content-Type" => "application/xml" })
|
66
75
|
response = subject.get(url, accept: "xml", raw: true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maremma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -369,8 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
369
369
|
- !ruby/object:Gem::Version
|
370
370
|
version: '0'
|
371
371
|
requirements: []
|
372
|
-
|
373
|
-
rubygems_version: 2.7.7
|
372
|
+
rubygems_version: 3.0.8
|
374
373
|
signing_key:
|
375
374
|
specification_version: 4
|
376
375
|
summary: Simplified network calls
|