fog-core 2.1.0 → 2.6.0

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.
Files changed (85) hide show
  1. checksums.yaml +5 -5
  2. data/.github/FUNDING.yml +2 -0
  3. data/.github/dependabot.yml +10 -0
  4. data/.github/workflows/ci.yml +32 -0
  5. data/.rubocop.yml +16 -12
  6. data/.rubocop_todo.yml +724 -0
  7. data/CONTRIBUTING.md +5 -1
  8. data/Gemfile +1 -1
  9. data/README.md +2 -1
  10. data/Rakefile +2 -14
  11. data/SECURITY.md +6 -0
  12. data/changelog.md +241 -141
  13. data/fog-core.gemspec +13 -9
  14. data/lib/fog/account.rb +0 -16
  15. data/lib/fog/billing.rb +0 -11
  16. data/lib/fog/compute/models/server.rb +7 -3
  17. data/lib/fog/compute.rb +3 -25
  18. data/lib/fog/core/association.rb +1 -0
  19. data/lib/fog/core/attributes/default.rb +7 -0
  20. data/lib/fog/core/attributes.rb +42 -5
  21. data/lib/fog/core/cache.rb +58 -55
  22. data/lib/fog/core/collection.rb +9 -3
  23. data/lib/fog/core/connection.rb +4 -6
  24. data/lib/fog/core/current_machine.rb +1 -1
  25. data/lib/fog/core/errors.rb +1 -1
  26. data/lib/fog/core/logger.rb +5 -2
  27. data/lib/fog/core/mock.rb +7 -2
  28. data/lib/fog/core/model.rb +34 -5
  29. data/lib/fog/core/provider.rb +37 -4
  30. data/lib/fog/core/scp.rb +16 -11
  31. data/lib/fog/core/service.rb +5 -5
  32. data/lib/fog/core/services_mixin.rb +62 -10
  33. data/lib/fog/core/ssh.rb +49 -25
  34. data/lib/fog/core/stringify_keys.rb +0 -2
  35. data/lib/fog/core/time.rb +2 -2
  36. data/lib/fog/core/uuid.rb +2 -8
  37. data/lib/fog/core/version.rb +3 -1
  38. data/lib/fog/core/wait_for.rb +2 -1
  39. data/lib/fog/core/wait_for_defaults.rb +2 -0
  40. data/lib/fog/core.rb +57 -59
  41. data/lib/fog/dns.rb +0 -11
  42. data/lib/fog/formatador.rb +9 -8
  43. data/lib/fog/monitoring.rb +0 -11
  44. data/lib/fog/network.rb +0 -12
  45. data/lib/fog/schema/data_validator.rb +1 -0
  46. data/lib/fog/storage.rb +15 -30
  47. data/lib/fog/support.rb +0 -12
  48. data/lib/fog/test_helpers/collection_helper.rb +2 -0
  49. data/lib/fog/test_helpers/formats_helper.rb +2 -2
  50. data/lib/fog/test_helpers/helper.rb +3 -3
  51. data/lib/fog/test_helpers/minitest/assertions.rb +1 -1
  52. data/lib/fog/test_helpers/minitest/expectations.rb +1 -1
  53. data/lib/fog/test_helpers/mock_helper.rb +84 -84
  54. data/lib/fog/test_helpers/succeeds_helper.rb +2 -2
  55. data/lib/fog/test_helpers/types_helper.rb +1 -0
  56. data/lib/fog/vpn.rb +0 -12
  57. data/lib/tasks/test_task.rb +4 -5
  58. metadata +58 -85
  59. data/.travis.yml +0 -39
  60. data/spec/compute/models/server_spec.rb +0 -229
  61. data/spec/compute_spec.rb +0 -95
  62. data/spec/connection_spec.rb +0 -105
  63. data/spec/core/cache_spec.rb +0 -191
  64. data/spec/core/model_spec.rb +0 -36
  65. data/spec/core/stringify_keys_spec.rb +0 -38
  66. data/spec/core/whitelist_keys_spec.rb +0 -36
  67. data/spec/credentials_spec.rb +0 -88
  68. data/spec/current_machine_spec.rb +0 -36
  69. data/spec/fake_app/fake_service.rb +0 -18
  70. data/spec/fake_app/models/collection.rb +0 -5
  71. data/spec/fake_app/models/model.rb +0 -2
  72. data/spec/fake_app/requests/request.rb +0 -11
  73. data/spec/fog_attribute_spec.rb +0 -549
  74. data/spec/formatador_spec.rb +0 -154
  75. data/spec/identity_spec.rb +0 -95
  76. data/spec/mocking_spec.rb +0 -84
  77. data/spec/service_spec.rb +0 -201
  78. data/spec/spec_helper.rb +0 -19
  79. data/spec/storage_spec.rb +0 -114
  80. data/spec/test_helpers/formats_helper_spec.rb +0 -121
  81. data/spec/test_helpers/schema_validator_spec.rb +0 -101
  82. data/spec/timeout_spec.rb +0 -20
  83. data/spec/utils_spec.rb +0 -29
  84. data/spec/uuid_spec.rb +0 -11
  85. data/spec/wait_for_spec.rb +0 -30
data/CONTRIBUTING.md CHANGED
@@ -8,7 +8,11 @@ New contributors are always welcome, when it doubt please ask questions. We stri
8
8
  * Offer feedback on open [pull requests](https://github.com/fog/fog-core/pulls).
9
9
  * Review open [issues](https://github.com/fog/fog-core/issues) for things to help on.
10
10
  * [Create an issue](https://github.com/fog/fog-core/issues/new) to start a discussion on additions or features.
11
- * Fork the project, add your changes and tests to cover them in a topic branch.
11
+ * Fork the project
12
+ * Setup
13
+ * bundle install
14
+ * bundle exec rake
15
+ * Add your changes and tests to cover them in a topic branch.
12
16
  * Commit your changes and rebase against `fog/fog-core` to ensure everything is up to date.
13
17
  * [Submit a pull request](https://github.com/fog/fog-core/compare/)
14
18
 
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
  gemspec
data/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  Shared classes and tests for fog providers and services.
4
4
 
5
- [![Build Status](https://travis-ci.org/fog/fog-core.svg?branch=master)](https://travis-ci.org/fog/fog-core)
5
+ [![Build Status](https://github.com/fog/fog-core/actions/workflows/ci.yml/badge.svg)](https://github.com/fog/fog-core/actions/workflows/ci.yml)
6
+ [![Gem Version](https://badge.fury.io/rb/fog-core.svg)](https://rubygems.org/gems/fog-core)
6
7
 
7
8
  ## Ruby version
8
9
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require 'bundler/setup'
1
+ require "bundler/gem_tasks"
2
2
 
3
- task :default => [:test]
3
+ task default: [:test]
4
4
 
5
5
  require "rake/testtask"
6
6
 
@@ -9,15 +9,3 @@ Rake::TestTask.new do |t|
9
9
  t.libs << "spec"
10
10
  t.pattern = "spec/**/*_spec.rb"
11
11
  end
12
-
13
- task :travis do
14
- mock = 'true' || ENV['FOG_MOCK']
15
- sh("export FOG_MOCK=#{mock} && rake")
16
-
17
- if ENV['COVERAGE']
18
- require 'coveralls/rake/task'
19
-
20
- Coveralls::RakeTask.new
21
- Rake::Task["coveralls:push"].invoke
22
- end
23
- end
data/SECURITY.md ADDED
@@ -0,0 +1,6 @@
1
+ ## Security contact information
2
+
3
+ To report a security vulnerability, please contact
4
+ [Tidelift security](https://tidelift.com/security).
5
+
6
+ Tidelift will coordinate the fix and disclosure.
data/changelog.md CHANGED
@@ -1,295 +1,395 @@
1
+ 2.6.0 10/24/2024
2
+ ==========================================================
3
+
4
+ - bump to excon ~> 1.0
5
+
6
+ 2.5.0 08/02/2024
7
+ ==========================================================
8
+
9
+ - drop spec files from gem package
10
+ - fix 3.4+ ruby issues (string literals and base64)
11
+ - bump rubocop target
12
+ - remove stale actions
13
+ - fixes to ci
14
+ - add security policy
15
+ - add gem version badge
16
+ - add funding info
17
+
18
+ 2.4.0 01/03/2024
19
+ ==========================================================
20
+
21
+ - fixes for caching/restoring collection attributes
22
+ - add explicit CRUD methods to models, make returns more consistent
23
+ - add filter_attributes method
24
+ - allow cache loading with aliases
25
+ - update rubocop config and apply styles/fixes
26
+ - fix minitest compatibility
27
+ - remove coveralls
28
+ - fixes for method delegation for ruby 3.x
29
+ - update ruby versions in test matrix
30
+
31
+
32
+ 2.3.0 03/08/2022
33
+ ==========================================================
34
+
35
+ - fix v2.2.4 changelog
36
+ - bump actions/stale
37
+ - bump actions/checkout
38
+ - avoid loading unnecessary service via autoload
39
+ - update ruby.yml
40
+ - continue tests dispite head errors
41
+ - bump actions/checkout
42
+ - bump formatador requirement
43
+ - utilize reusable actions workflows
44
+ - bump reusable actions
45
+ - fix cache test for ruby 3.1+
46
+ - tweak format of reusable workflows
47
+
48
+ 2.2.4 04/28/2020
49
+ ==========================================================
50
+
51
+ - Add FOG_DEBUG in addition to DEBUG to allow avoiding namespace collisions
52
+ - Add github actions configuration
53
+ - Update succeeds helper to expected syntax for ruby 3+
54
+
55
+ 2.2.3 09/16/2020
56
+ ==========================================================
57
+
58
+ Fix provider lookup to properly symbolize newly underscored names
59
+
60
+ 2.2.2 09/15/2020
61
+ ==========================================================
62
+
63
+ Fix #underscore name to be class method (instead of instance method)
64
+
65
+ 2.2.1 09/15/2020
66
+ ==========================================================
67
+
68
+ - Change to verify_host_key never in ssh/scp if supported
69
+ - Allow either downcased and underscored provider names for broader compatability
70
+
71
+ 2.2.0 12/17/2019
72
+ ==========================================================
73
+
74
+ - Add explanation for service/provider format deprecation.
75
+ - Fix formatting of changelog
76
+ - Better logging around required providers for easier debugging.
77
+ - bump excon version
78
+ - add bundler gem tasks
79
+
80
+ 2.1.2 09/04/2018
81
+ ==========================================================
82
+
83
+ - fix typo in ssh options handling
84
+
85
+ 2.1.1 09/04/2018
86
+ ==========================================================
87
+
88
+ - deprecate attributes not defined by DSL
89
+ - fix path_prefix warnings
90
+ - update to enforce best practices
91
+ - extract parts of ssh to private methods
92
+ - deprecate wrong provider names
93
+
94
+
1
95
  2.1.0 03/10/2018
2
96
  ==========================================================
3
97
 
4
- remove libvirt_uri duplication
5
- fix dnsimple auth variables
6
- add kubevirt provider
7
- fix net-ssh paranoid deprecation
8
- fix nil fetch on object reload
98
+ - remove libvirt_uri duplication
99
+ - fix dnsimple auth variables
100
+ - add kubevirt provider
101
+ - fix net-ssh paranoid deprecation
102
+ - fix nil fetch on object reload
9
103
 
10
104
  2.0.0 01/03/2018
11
105
  ==========================================================
12
106
 
13
- fix association reload
14
- drop ruby <2 support
15
- fix net-ssh usage
16
- add mime-type dependency
107
+ - Breaking Changes
108
+ - Association reload - model#reload now resets the model
109
+ to the current remote state. See discussion in
110
+ https://github.com/fog/fog-aws/pull/433,
111
+ particularly 24ea4675bfd28c93d1344bf666ebafd0f4826b8f
112
+ - drop ruby <2 support
113
+ - Added
114
+ - add mime-type dependency
115
+ - Fixed
116
+ - fix deprecation warning from net-ssh
17
117
 
18
118
  1.45.0 08/01/2017
19
119
  ==========================================================
20
120
 
21
- remove xmlrpc requirement/usage
22
- fix for nested const across ruby versions
23
- remove array#sample usage for legacy ruby compatibility
24
- simplify uniq for cache and fix for legacy ruby
25
- remove debugging puts from cache
26
- tweak tins version for 1.9
27
- loosen 2.1.x travis config to 2.1
28
- add 1.9 compatible term-ansicolor
29
- fix rubocop for 1.9.3
30
- enable metadata for cache
31
- add specs for server#sshable
32
- add exponential backoff for server#sshable?
33
- add server#ready? to base server for clarity
34
- bump excon dependency
121
+ - remove xmlrpc requirement/usage
122
+ - fix for nested const across ruby versions
123
+ - remove array#sample usage for legacy ruby compatibility
124
+ - simplify uniq for cache and fix for legacy ruby
125
+ - remove debugging puts from cache
126
+ - tweak tins version for 1.9
127
+ - loosen 2.1.x travis config to 2.1
128
+ - add 1.9 compatible term-ansicolor
129
+ - fix rubocop for 1.9.3
130
+ - enable metadata for cache
131
+ - add specs for server#sshable
132
+ - add exponential backoff for server#sshable?
133
+ - add server#ready? to base server for clarity
134
+ - bump excon dependency
35
135
 
36
136
  1.44.3 05/25/2017
37
137
  ==========================================================
38
138
 
39
- fix cache when no home directory defined
139
+ - fix cache when no home directory defined
40
140
 
41
141
  1.44.2 05/18/2017
42
142
  ==========================================================
43
143
 
44
- fix homedirectory usage for caching
144
+ - fix homedirectory usage for caching
45
145
 
46
146
  1.44.1 05/01/2017
47
147
  ==========================================================
48
148
 
49
- remove xml-rpc dependency (as it is causing issues)
149
+ - remove xml-rpc dependency (as it is causing issues)
50
150
 
51
151
  1.44.0 04/28/2017
52
152
  ==========================================================
53
153
 
54
- add basic caching support
154
+ - add basic caching support
55
155
 
56
156
  1.43.0 09/28/2016
57
157
  ==========================================================
58
158
 
59
- fix digitalocean compatibility
60
- update README badges
159
+ - fix digitalocean compatibility
160
+ - update README badges
61
161
 
62
162
  1.42.0 07/05/2016
63
163
  ==========================================================
64
164
 
65
- make namespace detection fix 1.8.x compatible
165
+ - make namespace detection fix 1.8.x compatible
66
166
 
67
167
  1.41.0 07/01/2016
68
168
  ==========================================================
69
169
 
70
- bump as 1.40.1 is not showing up in some cases
170
+ - bump as 1.40.1 is not showing up in some cases
71
171
 
72
172
  1.40.1 06/28/2016
73
173
  ==========================================================
74
174
 
75
- fix namespace constant detection
175
+ - fix namespace constant detection
76
176
 
77
177
  1.40.0 05/19/2016
78
178
  ==========================================================
79
179
 
80
- add minitest helpers for schema (parity to shindo)
180
+ - add minitest helpers for schema (parity to shindo)
81
181
 
82
182
  1.39.0 05/11/2016
83
183
  ==========================================================
84
184
 
85
- cleanup warnings
86
- add NFV module
87
- only dup frozen strings
185
+ - cleanup warnings
186
+ - add NFV module
187
+ - only dup frozen strings
88
188
 
89
189
  1.38.0 04/20/2016
90
190
  ==========================================================
91
191
 
92
- more specific service not found error
93
- fix string freeze issue for ruby 2.3
94
- bump excon dep
192
+ - more specific service not found error
193
+ - fix string freeze issue for ruby 2.3
194
+ - bump excon dep
95
195
 
96
196
  1.37.0 03/31/2016
97
197
  ==========================================================
98
198
 
99
- remove hp from providers
100
- re-raise mime-type error, rather than exiting
101
- fix tests
102
- add introspection module
199
+ - remove hp from providers
200
+ - re-raise mime-type error, rather than exiting
201
+ - fix tests
202
+ - add introspection module
103
203
 
104
204
  1.36.0 02/23/2016
105
205
  ==========================================================
106
206
 
107
- default digitalocean to v2
108
- fix eager/auto-loading
109
- add cloud-at-cost
207
+ - default digitalocean to v2
208
+ - fix eager/auto-loading
209
+ - add cloud-at-cost
110
210
 
111
211
  1.35.0 11/24/2015
112
212
  ==========================================================
113
213
 
114
- make mime/types require optional
115
- fix warnings about net-ssh vs net-cp
214
+ - make mime/types require optional
215
+ - fix warnings about net-ssh vs net-cp
116
216
 
117
217
  1.34.0 11/16/2015
118
218
  ==========================================================
119
219
 
120
- make net/ssh and net/scp requires optional
220
+ - make net/ssh and net/scp requires optional
121
221
 
122
222
  1.33.0 11/15/2015
123
223
  ==========================================================
124
224
 
125
- relax net/ssh and net/scp requirement
225
+ - relax net/ssh and net/scp requirement
126
226
 
127
227
  1.32.1 08/12/2015
128
228
  ==========================================================
129
229
 
130
- expose identities in models
230
+ - expose identities in models
131
231
 
132
232
  1.32.0 07/02/2015
133
233
  ==========================================================
134
234
 
135
- fix/refactor service initializers
235
+ - fix/refactor service initializers
136
236
 
137
237
  1.31.1 06/17/2015
138
238
  ==========================================================
139
239
 
140
- fixes around unknown providers/services
240
+ - fixes around unknown providers/services
141
241
 
142
242
  1.31.0 06/17/2015
143
243
  ==========================================================
144
244
 
145
- use relative paths
146
- add digital ocean examples
147
- reinstate baremetal
148
- add softlayer examples
149
- add digital ocean v2 support
150
- setup fog model equality to check identities (if available)
151
- use Fog.interval in wait_for
152
- reduce memory footprint
153
- fix account handling
245
+ - use relative paths
246
+ - add digital ocean examples
247
+ - reinstate baremetal
248
+ - add softlayer examples
249
+ - add digital ocean v2 support
250
+ - setup fog model equality to check identities (if available)
251
+ - use Fog.interval in wait_for
252
+ - reduce memory footprint
253
+ - fix account handling
154
254
 
155
255
  1.30.0 04/02/2015
156
256
  ==========================================================
157
257
 
158
- bump excon dep
159
- use float times, instead of integers for Fog::Time
160
- don't raise if final wait_for yield true
161
- fix bug around formatador and #map on models
162
- fix around `to_time` to avoid conflicts with Rails monkey patches
163
- update specs
164
- update style
165
- fix `WhitelistKeys` for 1.8.7
166
- remove unreachable code
167
- convert hash helpers to minispec
168
- fix require order for coverage
169
- fix ruby 2.2 warning
170
- bump excon dependency
171
- fix readme link
258
+ - bump excon dep
259
+ - use float times, instead of integers for Fog::Time
260
+ - don't raise if final wait_for yield true
261
+ - fix bug around formatador and #map on models
262
+ - fix around `to_time` to avoid conflicts with Rails monkey patches
263
+ - update specs
264
+ - update style
265
+ - fix `WhitelistKeys` for 1.8.7
266
+ - remove unreachable code
267
+ - convert hash helpers to minispec
268
+ - fix require order for coverage
269
+ - fix ruby 2.2 warning
270
+ - bump excon dependency
271
+ - fix readme link
172
272
 
173
273
  1.29.0 02/19/2015
174
274
  ==========================================================
175
275
 
176
- minor refactoring
177
- add ability to add additional user agent info to requests
276
+ - minor refactoring
277
+ - add ability to add additional user agent info to requests
178
278
 
179
279
  1.28.0 01/30/2015
180
280
  ==========================================================
181
281
 
182
- add Fog::Baremetal
282
+ - add Fog::Baremetal
183
283
 
184
284
  1.27.4 01/26/2015
185
285
  ==========================================================
186
286
 
187
- model fix for new formatador usage
188
- fixes around formatador delegation
287
+ - model fix for new formatador usage
288
+ - fixes around formatador delegation
189
289
 
190
290
  1.27.3 12/01/2014
191
291
  ==========================================================
192
292
 
193
- rubocop fixes for fog collection
194
- simpler ruby version checking/skipping
195
- fix requires_one
293
+ - rubocop fixes for fog collection
294
+ - simpler ruby version checking/skipping
295
+ - fix requires_one
196
296
 
197
297
  1.27.2 18/12/2014
198
298
  ==========================================================
199
299
 
200
- fix several requires in service abstraction code
300
+ - fix several requires in service abstraction code
201
301
 
202
302
  1.27.1 12/12/2014
203
303
  ==========================================================
204
304
 
205
- fix typo in model load paths fix
305
+ - fix typo in model load paths fix
206
306
 
207
307
  1.27.0 12/12/2014
208
308
  ==========================================================
209
309
 
210
- return fog/bin stuff to fog/fog
211
- add support for multiple request/model load paths
310
+ - return fog/bin stuff to fog/fog
311
+ - add support for multiple request/model load paths
212
312
 
213
313
 
214
314
  1.26.0 12/02/2014
215
315
  ==========================================================
216
316
 
217
- remove rackspace logic
218
- use new travis builds
219
- fix error handling around credential fetch
220
- move fog/bin stuff to fog-core
221
- fix circular reference in collection.rb
317
+ - remove rackspace logic
318
+ - use new travis builds
319
+ - fix error handling around credential fetch
320
+ - move fog/bin stuff to fog-core
321
+ - fix circular reference in collection.rb
222
322
 
223
323
 
224
324
  1.25.0 11/18/2014
225
325
  ==========================================================
226
326
 
227
- add alias options for associations
228
- improve spec message
229
- add feature to overwrite keys on hash of attributes generation
230
- remove method_missing from model
231
- add rubocop
232
- fix rubocop warnings
233
- return collections on association getters
234
- fix require bug in service
235
- put fog and fog-core versions in user agent
236
- don't mutate/destroy encoding in get_body_size
237
- fix error output in from const_get usage
238
- separate to have distinct version from fog
327
+ - add alias options for associations
328
+ - improve spec message
329
+ - add feature to overwrite keys on hash of attributes generation
330
+ - remove method_missing from model
331
+ - add rubocop
332
+ - fix rubocop warnings
333
+ - return collections on association getters
334
+ - fix require bug in service
335
+ - put fog and fog-core versions in user agent
336
+ - don't mutate/destroy encoding in get_body_size
337
+ - fix error output in from const_get usage
338
+ - separate to have distinct version from fog
239
339
 
240
340
 
241
341
  1.24.0 08/26/2014
242
342
  ==========================================================
243
343
 
244
- fixes for defaulting attributes
245
- add method for getting all attributes
246
- add methods for associations
247
- add all_attributes, all_associations and all_associations_and_attributes helper methods
248
- remove no-longer-needed gem update on travis
249
- add all_values
250
- fixes to avoid path conflicts with fog/fog
344
+ - fixes for defaulting attributes
345
+ - add method for getting all attributes
346
+ - add methods for associations
347
+ - add all_attributes, all_associations and all_associations_and_attributes helper methods
348
+ - remove no-longer-needed gem update on travis
349
+ - add all_values
350
+ - fixes to avoid path conflicts with fog/fog
251
351
 
252
352
  1.23.0 07/16/2014
253
353
  ==========================================================
254
354
 
255
- attribute whitelisting
256
- abstract out stringify for possible reuse
257
- more specific naming
258
- reorg
259
- add path_prefix
260
- fix time conversion to work with XMLRPC
261
- add more specific per-type attribute tests
262
- lock down rest-client for 1.8.7
263
- allow namespace flipflop for dns
264
- fix identity lookup
265
- better default attribute value setting
266
- bump excon
355
+ - attribute whitelisting
356
+ - abstract out stringify for possible reuse
357
+ - more specific naming
358
+ - reorg
359
+ - add path_prefix
360
+ - fix time conversion to work with XMLRPC
361
+ - add more specific per-type attribute tests
362
+ - lock down rest-client for 1.8.7
363
+ - allow namespace flipflop for dns
364
+ - fix identity lookup
365
+ - better default attribute value setting
366
+ - bump excon
267
367
 
268
368
  1.22.0 04/17/2014 1c086852e40e4c1ad7ed138834e4a1505ddb1416
269
369
  ==========================================================
270
370
 
271
- attribute whitelisting
272
- abstract out stringify for possible reuse
273
- more specific naming
274
- reorg
275
- add path_prefix
276
- fix time conversion to work with XMLRPC
277
- add more specific per-type attribute tests
278
- lock down rest-client for 1.8.7
279
- allow namespace flipflop for dns
280
- fix identity lookup
281
- better default attribute value setting
282
- bump excon
371
+ - attribute whitelisting
372
+ - abstract out stringify for possible reuse
373
+ - more specific naming
374
+ - reorg
375
+ - add path_prefix
376
+ - fix time conversion to work with XMLRPC
377
+ - add more specific per-type attribute tests
378
+ - lock down rest-client for 1.8.7
379
+ - allow namespace flipflop for dns
380
+ - fix identity lookup
381
+ - better default attribute value setting
382
+ - bump excon
283
383
 
284
384
  1.22.0 04/17/2014 1c086852e40e4c1ad7ed138834e4a1505ddb1416
285
385
  ==========================================================
286
386
 
287
- tests/cleanup/fixes
387
+ - tests/cleanup/fixes
288
388
 
289
389
  1.21.1 03/18/2014 3a803405ba60ded421f4bd14677cd3c76cb7e6ab
290
390
  ==========================================================
291
391
 
292
- remove json/xml modules and code
293
- add travis/coveralls
294
- update from upstream
295
- bump/loosen excon dependency
392
+ - remove json/xml modules and code
393
+ - add travis/coveralls
394
+ - update from upstream
395
+ - bump/loosen excon dependency
data/fog-core.gemspec CHANGED
@@ -1,5 +1,6 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path("lib", __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require "fog/core/version"
5
6
 
@@ -13,28 +14,31 @@ Gem::Specification.new do |spec|
13
14
  spec.homepage = "https://github.com/fog/fog-core"
14
15
  spec.license = "MIT"
15
16
 
16
- spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).reject {|f| f.start_with? ('spec/') }
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.required_ruby_version = '>= 2.0.0'
21
+ spec.required_ruby_version = ">= 2.0"
22
22
 
23
23
  spec.add_dependency("builder")
24
+ spec.add_dependency("excon", "~> 1.0")
25
+ spec.add_dependency("formatador", ">= 0.2", "< 2.0")
24
26
  spec.add_dependency("mime-types")
25
- spec.add_dependency("excon", "~> 0.58")
26
- spec.add_dependency("formatador", "~> 0.2")
27
27
 
28
28
  # https://github.com/fog/fog-core/issues/206
29
29
  # spec.add_dependency("xmlrpc") if RUBY_VERSION.to_s >= "2.4"
30
30
 
31
- spec.add_development_dependency("tins") if RUBY_VERSION.to_s > "2.0"
32
- spec.add_development_dependency("coveralls")
33
31
  spec.add_development_dependency("minitest")
34
32
  spec.add_development_dependency("minitest-stub-const")
35
33
  spec.add_development_dependency("pry")
36
34
  spec.add_development_dependency("rake")
37
35
  spec.add_development_dependency("rubocop")
36
+ spec.add_development_dependency("rubocop-minitest")
37
+ spec.add_development_dependency("rubocop-rake")
38
38
  spec.add_development_dependency("thor")
39
+ spec.add_development_dependency("tins")
39
40
  spec.add_development_dependency("yard")
41
+
42
+ spec.metadata["changelog_uri"] = spec.homepage + "/blob/master/changelog.md"
43
+ spec.metadata["rubygems_mfa_required"] = "true"
40
44
  end
data/lib/fog/account.rb CHANGED
@@ -1,21 +1,5 @@
1
1
  module Fog
2
2
  module Account
3
3
  extend Fog::ServicesMixin
4
-
5
- def self.new(orig_attributes)
6
- attributes = orig_attributes.dup
7
- provider = attributes.delete(:provider).to_s.downcase.to_sym
8
-
9
- if provider == :stormondemand
10
- require "fog/account/storm_on_demand"
11
- Fog::Account::StormOnDemand.new(attributes)
12
- else
13
- super(orig_attributes)
14
- end
15
- end
16
-
17
- def self.providers
18
- Fog.services[:account] || []
19
- end
20
4
  end
21
5
  end