maremma 4.7.1 → 4.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e40b2744bef4afaf0dc6a5e115eebd23ca4bd6ce8817dc749a5889e835d4821d
4
- data.tar.gz: c6cdc22ea0eabd0634e10ffa16be88be7271fd8a23ac12c7979dbfcfcfeb49fa
3
+ metadata.gz: ad21e93b25fe99e7c8f0423b3acaeaa78ac3b319f39c77f032d24fd147ba6831
4
+ data.tar.gz: b6fddb388939d6118c9ef856f5b4efde237c4fda64681e1f65c5c09b0afad2d7
5
5
  SHA512:
6
- metadata.gz: 8723e9a1d12316bd3338b435b7c7ae03b10a50ae49c8abd47eeee5be826d83da2d8dc345356155df9b0ba92eb84a06aa161d71cfd75f2330a304b5da0c652c04
7
- data.tar.gz: 0151e566cac4ecefc79f3caebd28203eadb1b53f9c44eaafb6b98ebee82e7d9b2814507c59094444231993771ab0a5807d5d0f7f53abfa043aa5fcffbf154a8a
6
+ metadata.gz: c4647e2fdcf6a4669922e7a7125754b953ac25ab1000c8cba3084f1081d296d444e21aa9cd6809d54777c296aabc455dac54034311421b904090315d44b3a50e
7
+ data.tar.gz: '0028c906efd402b7d46909f40b6ea22551e08a06dcad753358c1f8bd461c90c2616e1d7c3eb6642a1aa4acc66af7f7ede2b40be2996d0297d03be03702731ae8'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maremma (4.7.1)
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.6)
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.3)
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.6)
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.18.5)
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.3.1)
100
+ zeitwerk (2.4.0)
99
101
 
100
102
  PLATFORMS
101
103
  ruby
@@ -55,6 +55,9 @@ module Maremma
55
55
  def self.method(url, options={})
56
56
  is_valid_url?(url)
57
57
 
58
+ # normalize url
59
+ url = Addressable::URI.parse(url).normalize
60
+
58
61
  options[:data] ||= {}
59
62
  options[:headers] = set_request_headers(url, options)
60
63
 
@@ -1,3 +1,3 @@
1
1
  module Maremma
2
- VERSION = "4.7.1"
2
+ VERSION = "4.7.2"
3
3
  end
@@ -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.1
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-07-11 00:00:00.000000000 Z
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
- rubyforge_project:
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