ddy_remote_resource 1.2.2 → 1.2.3

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: b75b31568bd5a246694f34d65c20226e97c2620f7afd6f11750af62ed594b458
4
- data.tar.gz: 3bdce3777b2ea4fc6a72371ec9e117a3f41bd304316cd0f8eb064e8fa3c0fa8e
3
+ metadata.gz: bc832463abbb4ae23f60450dd26d5ea1c0877936bec0bd73240fa5e57146500c
4
+ data.tar.gz: bce2d906670cc76c1ce5a3d078556d6bb36db600257427481c29abc4a70f2fcc
5
5
  SHA512:
6
- metadata.gz: d0c20de26d1ae69f00878158fa2730fffa0cf43a1b6981a55faec3e435950009700fee9d600160698b45b235d9ffa42c8ee8848bb8e5a8eaab6935461976d554
7
- data.tar.gz: 9cd8475b745edad03b039567d5353b7a7b5077ad4d2721bd91b6b114a35d4a44554d417b060f3a069e20fa911232e5ec080183c1328f09e4e2ea1301713d3025
6
+ metadata.gz: adb4cba41affef80d801a7797643f71430303ce62e1a1243ad17f2c8590ae6e83baa19c5f5bba5b237084daf9637c0c11cb159abd5e2e8a713631a6f573217af
7
+ data.tar.gz: 665c40303743c338d00423c05e0e7307ea8f617c536078ee92452e7b4f56758e2f477db96fba6f9734815d326b35da975b0cf30d303693b1057bab645203d823
data/.gitignore CHANGED
@@ -22,3 +22,4 @@ tmp
22
22
  *.a
23
23
  mkmf.log
24
24
  sandbox/
25
+ *.DS_Store
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.7.6
data/.travis.yml CHANGED
@@ -1,3 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.6.8
3
+ - 2.6.10
4
+ - 2.7.6
5
+ - 3.0.4
6
+ - 3.1.2
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in remote_resource.gemspec
4
4
  gemspec
5
-
6
- gem 'webmock', git: 'https://github.com/JanDintel/webmock.git', branch: 'feature/ignore-json-keys-order'
data/README.md CHANGED
@@ -11,9 +11,6 @@ To replace `ActiveResource` by providing a dynamic and customizable API interfac
11
11
  Add this line to your application's Gemfile:
12
12
 
13
13
  ```ruby
14
- # Use this to fetch the gem from Gitlab
15
- gem 'remote_resource', git: 'git@lab.digidentity.eu:jvanderpas/remote_resource.git'
16
-
17
14
  # Use this to fetch the gem from RubyGems.org
18
15
  gem 'ddy_remote_resource', require: 'remote_resource'
19
16
  ```
@@ -30,7 +30,7 @@ module RemoteResource
30
30
  raise(RemoteResource::CollectionOptionKeyError, "`collection_prefix` variable `#{key}` is missing from `collection_options`") if check_collection_options
31
31
  value = key
32
32
  end
33
- URI.parser.escape(value.to_s)
33
+ URI::DEFAULT_PARSER.escape(value.to_s)
34
34
  end
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module RemoteResource
2
- VERSION = '1.2.2'.freeze
2
+ VERSION = '1.2.3'.freeze
3
3
  end
@@ -6,7 +6,7 @@ require 'remote_resource/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'ddy_remote_resource'
8
8
  spec.version = RemoteResource::VERSION
9
- spec.authors = ['Digidentity', 'Jan van der Pas']
9
+ spec.authors = ['Digidentity', 'Johnny Dongelmans', 'Jan van der Pas']
10
10
  spec.email = ['development@digidentity.com']
11
11
  spec.summary = %q{RemoteResource, a gem to use resources with REST services.}
12
12
  spec.description = %q{RemoteResource, a gem to use resources with REST services. A replacement for ActiveResource gem.}
@@ -22,13 +22,13 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency 'rake', '~> 10.4'
23
23
  spec.add_development_dependency 'rspec', '~> 3.1'
24
24
  spec.add_development_dependency 'pry', '~> 0.10'
25
- # spec.add_development_dependency 'webmock', '~> 1.24'
25
+ spec.add_development_dependency 'webmock', '~> 3'
26
26
  spec.add_development_dependency 'guard', '~> 2.14'
27
27
  spec.add_development_dependency 'guard-rspec', '~> 4.7'
28
28
  spec.add_development_dependency 'terminal-notifier-guard', '~> 1.6'
29
29
 
30
- spec.add_runtime_dependency 'activesupport', '>= 4.1', '< 7'
31
- spec.add_runtime_dependency 'activemodel', '>= 4.1', '< 7'
30
+ spec.add_runtime_dependency 'activesupport', '>= 4.1', '< 8'
31
+ spec.add_runtime_dependency 'activemodel', '>= 4.1', '< 8'
32
32
  spec.add_runtime_dependency 'virtus', '~> 1.0', '>= 1.0.4'
33
33
  spec.add_runtime_dependency 'mime-types', '~> 3.0'
34
34
  spec.add_runtime_dependency 'ethon'
@@ -21,8 +21,8 @@ RSpec.describe '#save' do
21
21
  id: 12,
22
22
  title: 'Lorem Ipsum',
23
23
  body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
24
- featured: false,
25
24
  created_at: Time.new(2015, 10, 4, 9, 30, 0),
25
+ featured: false
26
26
  }
27
27
  }
28
28
  end
@@ -39,8 +39,8 @@ RSpec.describe '#save' do
39
39
  data: {
40
40
  title: 'Lorem Ipsum',
41
41
  body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
42
- featured: false,
43
42
  created_at: Time.new(2015, 10, 4, 9, 30, 0),
43
+ featured: false
44
44
  }
45
45
  }
46
46
  end
@@ -103,8 +103,8 @@ RSpec.describe '#save' do
103
103
  data: {
104
104
  title: 'Lore',
105
105
  body: '',
106
- featured: true,
107
106
  created_at: Time.new(2015, 10, 4, 9, 30, 0),
107
+ featured: true
108
108
  }
109
109
  }
110
110
  end
@@ -181,8 +181,8 @@ RSpec.describe '#save' do
181
181
  data: {
182
182
  title: 'Lorem Ipsum',
183
183
  body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
184
- featured: false,
185
184
  created_at: nil,
185
+ featured: false
186
186
  }
187
187
  }
188
188
  end
@@ -246,8 +246,8 @@ RSpec.describe '#save' do
246
246
  data: {
247
247
  title: 'Lore',
248
248
  body: '',
249
- featured: true,
250
- created_at: nil
249
+ created_at: nil,
250
+ featured: true
251
251
  }
252
252
  }
253
253
  end
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  RSpec.describe RemoteResource::VERSION do
4
- it { is_expected.to eql '1.2.2' }
4
+ it { is_expected.to eql '1.2.3' }
5
5
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddy_remote_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Digidentity
8
+ - Johnny Dongelmans
8
9
  - Jan van der Pas
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2021-11-10 00:00:00.000000000 Z
13
+ date: 2022-07-04 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: bundler
@@ -67,6 +68,20 @@ dependencies:
67
68
  - - "~>"
68
69
  - !ruby/object:Gem::Version
69
70
  version: '0.10'
71
+ - !ruby/object:Gem::Dependency
72
+ name: webmock
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '3'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '3'
70
85
  - !ruby/object:Gem::Dependency
71
86
  name: guard
72
87
  requirement: !ruby/object:Gem::Requirement
@@ -118,7 +133,7 @@ dependencies:
118
133
  version: '4.1'
119
134
  - - "<"
120
135
  - !ruby/object:Gem::Version
121
- version: '7'
136
+ version: '8'
122
137
  type: :runtime
123
138
  prerelease: false
124
139
  version_requirements: !ruby/object:Gem::Requirement
@@ -128,7 +143,7 @@ dependencies:
128
143
  version: '4.1'
129
144
  - - "<"
130
145
  - !ruby/object:Gem::Version
131
- version: '7'
146
+ version: '8'
132
147
  - !ruby/object:Gem::Dependency
133
148
  name: activemodel
134
149
  requirement: !ruby/object:Gem::Requirement
@@ -138,7 +153,7 @@ dependencies:
138
153
  version: '4.1'
139
154
  - - "<"
140
155
  - !ruby/object:Gem::Version
141
- version: '7'
156
+ version: '8'
142
157
  type: :runtime
143
158
  prerelease: false
144
159
  version_requirements: !ruby/object:Gem::Requirement
@@ -148,7 +163,7 @@ dependencies:
148
163
  version: '4.1'
149
164
  - - "<"
150
165
  - !ruby/object:Gem::Version
151
- version: '7'
166
+ version: '8'
152
167
  - !ruby/object:Gem::Dependency
153
168
  name: virtus
154
169
  requirement: !ruby/object:Gem::Requirement
@@ -308,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
308
323
  - !ruby/object:Gem::Version
309
324
  version: '0'
310
325
  requirements: []
311
- rubygems_version: 3.2.15
326
+ rubygems_version: 3.3.15
312
327
  signing_key:
313
328
  specification_version: 4
314
329
  summary: RemoteResource, a gem to use resources with REST services.