maremma 4.7.4 → 4.8

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
  SHA256:
3
- metadata.gz: 697abf8580ed58c4ef57716c9d83bda6710cb4f67aef25d79f1d064156d45422
4
- data.tar.gz: c576589b41d0e82626e475b77e2d825ad63191fc0c1f8cae8d9bb9ec13c04a69
3
+ metadata.gz: 7b228c0b9c5c03982f9a328200fd772e5b881a2d3678a4ac98d8fdfb078933e7
4
+ data.tar.gz: fe8015a6670d03df835304db59bbb0ce583bfcda4705b0c566d146db8401fd1b
5
5
  SHA512:
6
- metadata.gz: 607429c4aaa49b9af6237c0336d088fb6a4b22b3d398dfd4b61e8d1e5574e1701c6da9b25a7d8a353b4916007a839a42f0b29ffe0c0514a121196b0ea859095c
7
- data.tar.gz: 57f5399a211e3669cbf9593652f1688add6fea68e920199d68f8855c4ddc54e952a06646788d7eb4d0a95fd78f28cc37c91d0aaf6fdf6e90a766bde096f285b8
6
+ metadata.gz: 5318d3803d11f356cd86b7a25fe53526a94cbd2f8c8cf7d8f88fd555c2548723c854b3790655d174ed977c1323968a72daff47e3813c358a4362b7c7007a2e00
7
+ data.tar.gz: 8d00dc936f379711b1b0ff367d87bc222759f4e39a888a7a08940d9ebc7208d4d86c25d934473773e848bf4086a8b4c514382e933ca3440bc091794a00f657fc
data/Gemfile.lock CHANGED
@@ -1,79 +1,76 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maremma (4.7.4)
4
+ maremma (4.8)
5
5
  activesupport (>= 4.2.5)
6
6
  addressable (>= 2.3.6)
7
7
  builder (~> 3.2, >= 3.2.2)
8
8
  excon (~> 0.71.0)
9
- faraday (~> 0.17.3)
9
+ faraday (~> 1.0, >= 1.0.1)
10
10
  faraday-encoding (~> 0.0.4)
11
- faraday_middleware (~> 0.14.0)
12
- nokogiri (~> 1.11.2)
11
+ faraday_middleware (~> 1.0)
12
+ nokogiri (~> 1.10.4)
13
13
  oj (>= 2.8.3)
14
14
  oj_mimic_json (~> 1.0, >= 1.0.1)
15
15
 
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- activesupport (6.1.3)
19
+ activesupport (6.0.3.2)
20
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
21
- i18n (>= 1.6, < 2)
22
- minitest (>= 5.1)
23
- tzinfo (~> 2.0)
24
- zeitwerk (~> 2.3)
21
+ i18n (>= 0.7, < 2)
22
+ minitest (~> 5.1)
23
+ tzinfo (~> 1.1)
24
+ zeitwerk (~> 2.2, >= 2.2.2)
25
25
  addressable (2.7.0)
26
26
  public_suffix (>= 2.0.2, < 5.0)
27
- ast (2.4.2)
27
+ ast (2.4.1)
28
28
  builder (3.2.4)
29
- concurrent-ruby (1.1.8)
30
- crack (0.4.5)
31
- rexml
32
- diff-lcs (1.4.4)
33
- docile (1.3.5)
29
+ concurrent-ruby (1.1.6)
30
+ crack (0.4.3)
31
+ safe_yaml (~> 1.0.0)
32
+ diff-lcs (1.3)
33
+ docile (1.3.2)
34
34
  excon (0.71.1)
35
- faraday (0.17.4)
35
+ faraday (1.0.1)
36
36
  multipart-post (>= 1.2, < 3)
37
37
  faraday-encoding (0.0.5)
38
38
  faraday
39
- faraday_middleware (0.14.0)
40
- faraday (>= 0.7.4, < 1.0)
39
+ faraday_middleware (1.0.0)
40
+ faraday (~> 1.0)
41
41
  hashdiff (1.0.1)
42
- i18n (1.8.9)
42
+ i18n (1.8.3)
43
43
  concurrent-ruby (~> 1.0)
44
44
  jaro_winkler (1.5.4)
45
- mini_portile2 (2.5.0)
46
- minitest (5.14.4)
45
+ mini_portile2 (2.4.0)
46
+ minitest (5.14.1)
47
47
  multipart-post (2.1.1)
48
- nokogiri (1.11.2)
49
- mini_portile2 (~> 2.5.0)
50
- racc (~> 1.4)
51
- oj (3.11.3)
48
+ nokogiri (1.10.9)
49
+ mini_portile2 (~> 2.4.0)
50
+ oj (3.10.6)
52
51
  oj_mimic_json (1.0.1)
53
- parallel (1.20.1)
54
- parser (3.0.0.0)
55
- ast (~> 2.4.1)
56
- public_suffix (4.0.6)
57
- racc (1.5.2)
52
+ parallel (1.19.2)
53
+ parser (2.7.1.3)
54
+ ast (~> 2.4.0)
55
+ public_suffix (4.0.5)
58
56
  rack (2.2.3)
59
57
  rack-test (0.8.3)
60
58
  rack (>= 1.0, < 3)
61
59
  rainbow (3.0.0)
62
- rake (13.0.3)
63
- rexml (3.2.4)
64
- rspec (3.10.0)
65
- rspec-core (~> 3.10.0)
66
- rspec-expectations (~> 3.10.0)
67
- rspec-mocks (~> 3.10.0)
68
- rspec-core (3.10.1)
69
- rspec-support (~> 3.10.0)
70
- rspec-expectations (3.10.1)
60
+ rake (13.0.1)
61
+ rspec (3.9.0)
62
+ rspec-core (~> 3.9.0)
63
+ rspec-expectations (~> 3.9.0)
64
+ rspec-mocks (~> 3.9.0)
65
+ rspec-core (3.9.2)
66
+ rspec-support (~> 3.9.3)
67
+ rspec-expectations (3.9.2)
71
68
  diff-lcs (>= 1.2.0, < 2.0)
72
- rspec-support (~> 3.10.0)
73
- rspec-mocks (3.10.2)
69
+ rspec-support (~> 3.9.0)
70
+ rspec-mocks (3.9.1)
74
71
  diff-lcs (>= 1.2.0, < 2.0)
75
- rspec-support (~> 3.10.0)
76
- rspec-support (3.10.2)
72
+ rspec-support (~> 3.9.0)
73
+ rspec-support (3.9.3)
77
74
  rubocop (0.77.0)
78
75
  jaro_winkler (~> 1.5.1)
79
76
  parallel (~> 1.10)
@@ -83,22 +80,22 @@ GEM
83
80
  unicode-display_width (>= 1.4.0, < 1.7)
84
81
  rubocop-performance (1.6.1)
85
82
  rubocop (>= 0.71.0)
86
- ruby-progressbar (1.11.0)
87
- simplecov (0.21.2)
83
+ ruby-progressbar (1.10.1)
84
+ safe_yaml (1.0.5)
85
+ simplecov (0.18.5)
88
86
  docile (~> 1.1)
89
87
  simplecov-html (~> 0.11)
90
- simplecov_json_formatter (~> 0.1)
91
- simplecov-html (0.12.3)
92
- simplecov_json_formatter (0.1.2)
93
- tzinfo (2.0.4)
94
- concurrent-ruby (~> 1.0)
88
+ simplecov-html (0.12.2)
89
+ thread_safe (0.3.6)
90
+ tzinfo (1.2.7)
91
+ thread_safe (~> 0.1)
95
92
  unicode-display_width (1.6.1)
96
93
  vcr (3.0.3)
97
- webmock (3.12.1)
94
+ webmock (3.8.3)
98
95
  addressable (>= 2.3.6)
99
96
  crack (>= 0.3.2)
100
97
  hashdiff (>= 0.4.0, < 2.0.0)
101
- zeitwerk (2.4.2)
98
+ zeitwerk (2.3.0)
102
99
 
103
100
  PLATFORMS
104
101
  ruby
data/lib/maremma.rb CHANGED
@@ -55,9 +55,6 @@ 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
-
61
58
  options[:data] ||= {}
62
59
  options[:headers] = set_request_headers(url, options)
63
60
 
@@ -1,3 +1,3 @@
1
1
  module Maremma
2
- VERSION = "4.7.4".freeze
2
+ VERSION = "4.8"
3
3
  end
data/maremma.gemspec CHANGED
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "addressable", ">= 2.3.6"
23
23
  s.add_dependency "builder", "~> 3.2", ">= 3.2.2"
24
24
  s.add_dependency "excon", "~> 0.71.0"
25
- s.add_dependency 'faraday', "~> 0.17.3"
25
+ s.add_dependency 'faraday', "~> 1.0", ">= 1.0.1"
26
26
  s.add_dependency "faraday-encoding", "~> 0.0.4"
27
- s.add_dependency "faraday_middleware", "~> 0.14.0"
28
- s.add_dependency "nokogiri", "~> 1.11.2"
27
+ s.add_dependency "faraday_middleware", "~> 1.0"
28
+ s.add_dependency "nokogiri", "~> 1.10.4"
29
29
  s.add_dependency "oj", ">= 2.8.3"
30
30
  s.add_dependency "oj_mimic_json", "~> 1.0", ">= 1.0.1"
31
31
  s.add_development_dependency "bundler", "~> 2.0"
data/spec/maremma_spec.rb CHANGED
@@ -61,15 +61,6 @@ 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
-
73
64
  it "get xml raw" do
74
65
  stub = stub_request(:get, url).to_return(:body => data.to_xml, :status => 200, :headers => { "Content-Type" => "application/xml" })
75
66
  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
4
+ version: '4.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-26 00:00:00.000000000 Z
11
+ date: 2020-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -78,14 +78,20 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 0.17.3
81
+ version: '1.0'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 1.0.1
82
85
  type: :runtime
83
86
  prerelease: false
84
87
  version_requirements: !ruby/object:Gem::Requirement
85
88
  requirements:
86
89
  - - "~>"
87
90
  - !ruby/object:Gem::Version
88
- version: 0.17.3
91
+ version: '1.0'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 1.0.1
89
95
  - !ruby/object:Gem::Dependency
90
96
  name: faraday-encoding
91
97
  requirement: !ruby/object:Gem::Requirement
@@ -106,28 +112,28 @@ dependencies:
106
112
  requirements:
107
113
  - - "~>"
108
114
  - !ruby/object:Gem::Version
109
- version: 0.14.0
115
+ version: '1.0'
110
116
  type: :runtime
111
117
  prerelease: false
112
118
  version_requirements: !ruby/object:Gem::Requirement
113
119
  requirements:
114
120
  - - "~>"
115
121
  - !ruby/object:Gem::Version
116
- version: 0.14.0
122
+ version: '1.0'
117
123
  - !ruby/object:Gem::Dependency
118
124
  name: nokogiri
119
125
  requirement: !ruby/object:Gem::Requirement
120
126
  requirements:
121
127
  - - "~>"
122
128
  - !ruby/object:Gem::Version
123
- version: 1.11.2
129
+ version: 1.10.4
124
130
  type: :runtime
125
131
  prerelease: false
126
132
  version_requirements: !ruby/object:Gem::Requirement
127
133
  requirements:
128
134
  - - "~>"
129
135
  - !ruby/object:Gem::Version
130
- version: 1.11.2
136
+ version: 1.10.4
131
137
  - !ruby/object:Gem::Dependency
132
138
  name: oj
133
139
  requirement: !ruby/object:Gem::Requirement
@@ -369,7 +375,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
375
  - !ruby/object:Gem::Version
370
376
  version: '0'
371
377
  requirements: []
372
- rubygems_version: 3.0.8
378
+ rubyforge_project:
379
+ rubygems_version: 2.7.7
373
380
  signing_key:
374
381
  specification_version: 4
375
382
  summary: Simplified network calls