occi-api 4.0.0.beta.2 → 4.0.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.
@@ -5,17 +5,27 @@
5
5
  module Net
6
6
  class HTTP
7
7
 
8
- if defined? SSL_ATTRIBUTES
8
+ old_verbose, $VERBOSE = $VERBOSE, nil
9
+
10
+ if RUBY_VERSION =~ /^2\.0/
11
+ # For Rubies 2.0.x
12
+ SSL_IVNAMES = SSL_IVNAMES.concat [:@extra_chain_cert]
13
+ SSL_ATTRIBUTES = SSL_ATTRIBUTES.concat [:extra_chain_cert]
14
+
15
+ attr_accessor :extra_chain_cert
16
+ elsif RUBY_VERSION =~ /^1\.9/
9
17
  # For Rubies 1.9.x
10
- old_verbose, $VERBOSE = $VERBOSE, nil
11
18
  SSL_ATTRIBUTES = SSL_ATTRIBUTES.concat %w(extra_chain_cert)
12
- $VERBOSE = old_verbose
13
19
 
14
20
  attr_accessor :extra_chain_cert
15
- else
21
+ elsif RUBY_VERSION =~ /^1\.8/
16
22
  # For legacy Rubies 1.8.x
17
23
  ssl_context_accessor :extra_chain_cert
24
+ else
25
+ # Nothing, not sure what to do!
18
26
  end
19
27
 
28
+ $VERBOSE = old_verbose
29
+
20
30
  end
21
31
  end
@@ -1,5 +1,5 @@
1
1
  module Occi
2
2
  module Api
3
- VERSION = "4.0.0.beta.2" unless defined?(::Occi::Api::VERSION)
3
+ VERSION = "4.0.0" unless defined?(::Occi::Api::VERSION)
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta.2
5
- prerelease: 6
4
+ version: 4.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florian Feldhaus
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-08-01 00:00:00.000000000 Z
14
+ date: 2013-08-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: occi-core
@@ -371,9 +371,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
371
371
  required_rubygems_version: !ruby/object:Gem::Requirement
372
372
  none: false
373
373
  requirements:
374
- - - ! '>'
374
+ - - ! '>='
375
375
  - !ruby/object:Gem::Version
376
- version: 1.3.1
376
+ version: '0'
377
377
  requirements: []
378
378
  rubyforge_project:
379
379
  rubygems_version: 1.8.25