fog-core 1.32.1 → 1.33.0

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
  SHA1:
3
- metadata.gz: afdce5d9207a895da4a113cf11456fe1118083df
4
- data.tar.gz: 830b638596caa985de0903912f4dc00690582bae
3
+ metadata.gz: 7d605204f5bd63a3aa0464c11805b8fe50bbbb37
4
+ data.tar.gz: b4ede19d6cdea2dc37e5ab35bc06a3e2929d0f91
5
5
  SHA512:
6
- metadata.gz: 08105b0a526766ba9fe9808bd4c84c9aa4119998ab1136ff6f5e0fc8b46b49e01121610547f472c1decc268c8ac2f5d8d1553376e1ca9b56229539fbe154b2b3
7
- data.tar.gz: 7ad4e9e0c2f031ed72b00e899d5b18a2e07ee5fc15bae1824c09cd38d88d9b701876b738aac6464f1dbdbe44695d24adf589e64097779b6c5cfe718fba68d573
6
+ metadata.gz: d96a35c48dcd91b5c3281d8456896e7877974d15118bb5998fd192fec9a5498e6df3c169dbca503f106030ba5c01c71135f1fcddda2fc205e1579c9210f87fef
7
+ data.tar.gz: 431f8b1309f00ec1580197aebabbf14554730602d11c060b300af5f26757c3417c8d47c102d5d53cede28c6152462269d51e98c84c5f5a40b3e46d51a24b0632
@@ -2,15 +2,11 @@ language: ruby
2
2
 
3
3
  gemfile:
4
4
  - Gemfile
5
- - Gemfile.1.8.7
6
5
 
7
6
  rvm:
8
- - 1.8.7
9
- - 1.9.2
10
- - 1.9.3
11
7
  - 2.0.0
12
- - jruby-18mode
13
- - jruby-19mode
8
+ - 2.2.0
9
+ - jruby9k
14
10
  - jruby-head
15
11
 
16
12
  sudo: false
@@ -22,26 +18,9 @@ matrix:
22
18
  - rvm: 2.1.0
23
19
  gemfile: Gemfile
24
20
  env: COVERAGE=true
25
- exclude:
26
- - rvm: 1.8.7
27
- gemfile: Gemfile
28
- - rvm: 1.9.2
29
- gemfile: Gemfile.1.8.7
30
- - rvm: 1.9.3
31
- gemfile: Gemfile.1.8.7
32
- - rvm: 2.0.0
33
- gemfile: Gemfile.1.8.7
34
- - rvm: 2.1.0
35
- gemfile: Gemfile.1.8.7
36
- - rvm: jruby-18mode
37
- gemfile: Gemfile
38
- - rvm: jruby-19mode
39
- gemfile: Gemfile.1.8.7
40
- - rvm: jruby-head
41
- gemfile: Gemfile.1.8.7
42
-
43
21
  allow_failures:
44
22
  - rvm: jruby-head
23
+ - rvm: jruby9k
45
24
 
46
25
  notifications:
47
26
  email: false
@@ -1,6 +1,9 @@
1
1
  * Aaron Patterson <aaron.patterson@gmail.com>
2
2
  * Akira Matsuda <ronnie@dio.jp>
3
3
  * Anatol <anatol.pomozov@gmail.com>
4
+ * Artem <temikus@google.com>
5
+ * Artem Yakimenko <temikus@google.com>
6
+ * Brandon Dunne <bdunne@redhat.com>
4
7
  * Bryan Paxton <starbelly@pobox.com>
5
8
  * Chris Johnson <wchrisjohnson@gmail.com>
6
9
  * Chris Sinjakli <chris@sinjakli.co.uk>
data/README.md CHANGED
@@ -4,6 +4,13 @@ Shared classes and tests for fog providers and services.
4
4
 
5
5
  [![Build Status](https://secure.travis-ci.org/fog/fog-core.png?branch=master)](http://travis-ci.org/fog/fog-core)
6
6
 
7
+ ## Ruby version
8
+
9
+ Fog-core requires Ruby `2.0.0` or later.
10
+
11
+ Ruby `1.8` and `1.9` support was dropped in `fog-v2.0.0` as a backwards incompatible
12
+ change. Please use the later fog `1.x` versions if you require `1.8.7` or `1.9.x` support.
13
+
7
14
  ## Installation
8
15
 
9
16
  Add this line to your application's Gemfile:
@@ -17,13 +17,12 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
+ spec.required_ruby_version = '>= 1.9'
20
21
 
21
22
  spec.add_dependency("builder")
22
23
  spec.add_dependency("excon", "~> 0.45")
23
24
  spec.add_dependency("formatador", "~> 0.2")
24
25
  spec.add_dependency("mime-types")
25
- spec.add_dependency("net-scp", "~> 1.1")
26
- spec.add_dependency("net-ssh", ">= 2.1.3")
27
26
 
28
27
  spec.add_development_dependency("coveralls")
29
28
  spec.add_development_dependency("minitest")
@@ -65,7 +65,6 @@ module Fog
65
65
  end
66
66
 
67
67
  def scp(local_path, remote_path, upload_options = {})
68
- require "net/scp"
69
68
  requires :ssh_ip_address, :username
70
69
 
71
70
  Fog::SCP.new(ssh_ip_address, username, ssh_options).upload(local_path, remote_path, upload_options)
@@ -74,14 +73,12 @@ module Fog
74
73
  alias_method :scp_upload, :scp
75
74
 
76
75
  def scp_download(remote_path, local_path, download_options = {})
77
- require "net/scp"
78
76
  requires :ssh_ip_address, :username
79
77
 
80
78
  Fog::SCP.new(ssh_ip_address, username, ssh_options).download(remote_path, local_path, download_options)
81
79
  end
82
80
 
83
81
  def ssh(commands, options = {}, &blk)
84
- require "net/ssh"
85
82
  requires :ssh_ip_address, :username
86
83
 
87
84
  options = ssh_options.merge(options)
@@ -40,7 +40,12 @@ module Fog
40
40
 
41
41
  class Real
42
42
  def initialize(address, username, options)
43
- require "net/scp"
43
+ begin
44
+ require "net/scp"
45
+ rescue LoadError
46
+ Fog::Logger.warning("'net/ssh' missing, please install and try again.")
47
+ exit(1)
48
+ end
44
49
 
45
50
  key_manager = Net::SSH::Authentication::KeyManager.new(nil, options)
46
51
 
@@ -34,7 +34,12 @@ module Fog
34
34
 
35
35
  class Real
36
36
  def initialize(address, username, options)
37
- require "net/ssh"
37
+ begin
38
+ require "net/ssh"
39
+ rescue LoadError
40
+ Fog::Logger.warning("'net/ssh' missing, please install and try again.")
41
+ exit(1)
42
+ end
38
43
 
39
44
  key_manager = Net::SSH::Authentication::KeyManager.new(nil, options)
40
45
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "1.32.1"
3
+ VERSION = "1.33.0"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ def collection_tests(collection, params = {}, mocks_implemented = true)
30
30
  tests("Enumerable") do
31
31
  pending if Fog.mocking? && !mocks_implemented
32
32
 
33
- methods = %w(all any? find detect collect map find_index flat_map
33
+ methods = %w(all? any? find detect collect map find_index flat_map
34
34
  collect_concat group_by none? one?)
35
35
 
36
36
  # JRuby 1.7.5+ issue causes a SystemStackError: stack level too deep
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.1
4
+ version: 1.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Light
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-12 00:00:00.000000000 Z
12
+ date: 2015-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -67,34 +67,6 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: net-scp
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '1.1'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '1.1'
84
- - !ruby/object:Gem::Dependency
85
- name: net-ssh
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 2.1.3
91
- type: :runtime
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: 2.1.3
98
70
  - !ruby/object:Gem::Dependency
99
71
  name: coveralls
100
72
  requirement: !ruby/object:Gem::Requirement
@@ -221,7 +193,6 @@ files:
221
193
  - CONTRIBUTING.md
222
194
  - CONTRIBUTORS.md
223
195
  - Gemfile
224
- - Gemfile.1.8.7
225
196
  - LICENSE.md
226
197
  - README.md
227
198
  - Rakefile
@@ -334,7 +305,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
334
305
  requirements:
335
306
  - - ">="
336
307
  - !ruby/object:Gem::Version
337
- version: '0'
308
+ version: '1.9'
338
309
  required_rubygems_version: !ruby/object:Gem::Requirement
339
310
  requirements:
340
311
  - - ">="
@@ -342,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
313
  version: '0'
343
314
  requirements: []
344
315
  rubyforge_project:
345
- rubygems_version: 2.2.2
316
+ rubygems_version: 2.4.5.1
346
317
  signing_key:
347
318
  specification_version: 4
348
319
  summary: Shared classes and tests for fog providers and services.
@@ -1,13 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem 'nokogiri', '~>1.5.11'
4
- gem 'mime-types', '~>1.16'
5
- gem 'rest-client', '~> 1.6.7'
6
-
7
- group :development, :test do
8
- gem 'rake', '~> 10.1.0'
9
- # This is here because gemspec doesn't support require: false
10
- gem 'coveralls', :require => false
11
- end
12
-
13
- gemspec