profitbricks 0.5.1 → 0.9.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.
- data/.travis.yml +3 -3
 - data/CHANGELOG.md +11 -0
 - data/Gemfile +9 -5
 - data/Gemfile.lock +1 -0
 - data/README.md +4 -2
 - data/Rakefile +22 -16
 - data/lib/profitbricks.rb +1 -1
 - data/lib/profitbricks/profitbricks.rb +5 -0
 - data/spec/spec_helper.rb +5 -1
 - metadata +8 -8
 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,3 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            === 0.9.0 / 2012-04-12
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            * 1 major enhancement:
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
              * Tests are passing on rbx in 1.8 and 1.9 mode and JRuby 1.9
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            * 2 bug fixes:
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
              * Fix the specs for mri 1.8
         
     | 
| 
      
 10 
     | 
    
         
            +
              * skip SSL certificate validation on JRuby 1.9 when SSL_CERT_DIR is not set
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       1 
12 
     | 
    
         
             
            === 0.5.1 / 2012-04-11
         
     | 
| 
       2 
13 
     | 
    
         | 
| 
       3 
14 
     | 
    
         
             
            * 2 bug fixes:
         
     | 
    
        data/Gemfile
    CHANGED
    
    | 
         @@ -6,12 +6,16 @@ group :test, :development do 
     | 
|
| 
       6 
6 
     | 
    
         
             
              gem 'rspec'
         
     | 
| 
       7 
7 
     | 
    
         
             
              gem 'savon_spec'
         
     | 
| 
       8 
8 
     | 
    
         
             
              gem 'simplecov', :require => false
         
     | 
| 
       9 
     | 
    
         
            -
              gem ' 
     | 
| 
       10 
     | 
    
         
            -
              gem 'hoe-git'
         
     | 
| 
       11 
     | 
    
         
            -
              gem 'hoe-gemspec'
         
     | 
| 
       12 
     | 
    
         
            -
              gem 'hoe-bundler'
         
     | 
| 
      
 9 
     | 
    
         
            +
              gem 'rake'
         
     | 
| 
       13 
10 
     | 
    
         
             
              gem 'ZenTest'
         
     | 
| 
       14 
     | 
    
         
            -
               
     | 
| 
      
 11 
     | 
    
         
            +
              platforms :mri do
         
     | 
| 
      
 12 
     | 
    
         
            +
                gem 'autotest-fsevent'
         
     | 
| 
      
 13 
     | 
    
         
            +
                # Temporary fix till hoe works with rbx in 1.9 mode
         
     | 
| 
      
 14 
     | 
    
         
            +
                gem 'hoe'
         
     | 
| 
      
 15 
     | 
    
         
            +
                gem 'hoe-git'
         
     | 
| 
      
 16 
     | 
    
         
            +
                gem 'hoe-gemspec'
         
     | 
| 
      
 17 
     | 
    
         
            +
                gem 'hoe-bundler'
         
     | 
| 
      
 18 
     | 
    
         
            +
              end
         
     | 
| 
       15 
19 
     | 
    
         
             
            end
         
     | 
| 
       16 
20 
     | 
    
         | 
| 
       17 
21 
     | 
    
         
             
            platforms :jruby do
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -8,9 +8,11 @@ 
     | 
|
| 
       8 
8 
     | 
    
         
             
            A Ruby client for the ProfitBricks API.
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
            ## Dependencies
         
     | 
| 
       11 
     | 
    
         
            -
            A Ruby interpreter (MRI 1.8.7 
     | 
| 
       12 
     | 
    
         
            -
            Examples work on Rubinius, but the tests do not pass.
         
     | 
| 
      
 11 
     | 
    
         
            +
            A Ruby interpreter (MRI 1.8.7/1.9.2/1.9.3, JRuby 1.8/1.9 and Rubinius 1.8/1.9).
         
     | 
| 
       13 
12 
     | 
    
         | 
| 
      
 13 
     | 
    
         
            +
            To get the SSL certificate verification on JRuby 1.9 to work (at least on ubuntu/debian) export the following environment variable:
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            	export SSL_CERT_DIR=/etc/ssl/certs
         
     | 
| 
       14 
16 
     | 
    
         | 
| 
       15 
17 
     | 
    
         
             
            ## Installation
         
     | 
| 
       16 
18 
     | 
    
         
             
            	gem install profitbricks
         
     | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -2,7 +2,6 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            require 'rubygems'
         
     | 
| 
       5 
     | 
    
         
            -
            require 'hoe'
         
     | 
| 
       6 
5 
     | 
    
         
             
            require "rspec/core/rake_task"
         
     | 
| 
       7 
6 
     | 
    
         | 
| 
       8 
7 
     | 
    
         
             
            # Hoe.plugin :compiler
         
     | 
| 
         @@ -10,22 +9,29 @@ require "rspec/core/rake_task" 
     | 
|
| 
       10 
9 
     | 
    
         
             
            # Hoe.plugin :inline
         
     | 
| 
       11 
10 
     | 
    
         
             
            # Hoe.plugin :racc
         
     | 
| 
       12 
11 
     | 
    
         
             
            # Hoe.plugin :rubyforge
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            Hoe.plugin : 
     | 
| 
       16 
     | 
    
         
            -
            Hoe.plugin : 
     | 
| 
       17 
     | 
    
         
            -
            Hoe. 
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
            Hoe. 
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
      
 12 
     | 
    
         
            +
            if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby'
         
     | 
| 
      
 13 
     | 
    
         
            +
              require 'hoe'
         
     | 
| 
      
 14 
     | 
    
         
            +
              Hoe.plugin :git
         
     | 
| 
      
 15 
     | 
    
         
            +
              Hoe.plugin :gemspec
         
     | 
| 
      
 16 
     | 
    
         
            +
              Hoe.plugin :bundler
         
     | 
| 
      
 17 
     | 
    
         
            +
              Hoe.plugin :gemcutter
         
     | 
| 
      
 18 
     | 
    
         
            +
              Hoe.plugins.delete :rubyforge
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              Hoe.spec 'profitbricks' do
         
     | 
| 
      
 21 
     | 
    
         
            +
                developer('Dominik Sander', 'git@dsander.de')
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                self.readme_file = 'README.md'
         
     | 
| 
      
 24 
     | 
    
         
            +
                self.history_file = 'CHANGELOG.md'
         
     | 
| 
      
 25 
     | 
    
         
            +
                self.extra_deps << ["savon"]
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              task :prerelease => [:clobber, :check_manifest, :test]
         
     | 
| 
      
 29 
     | 
    
         
            +
            else
         
     | 
| 
      
 30 
     | 
    
         
            +
              RSpec::Core::RakeTask.new(:spec) do |spec|
         
     | 
| 
      
 31 
     | 
    
         
            +
                spec.pattern = 'spec/**/*_spec.rb'
         
     | 
| 
      
 32 
     | 
    
         
            +
                spec.rspec_opts = ['--backtrace']
         
     | 
| 
      
 33 
     | 
    
         
            +
              end
         
     | 
| 
       25 
34 
     | 
    
         
             
            end
         
     | 
| 
       26 
35 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
            task :prerelease => [:clobber, :check_manifest, :test]
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
36 
     | 
    
         
             
            task :default => :spec
         
     | 
| 
       31 
37 
     | 
    
         
             
            task :test => :spec
         
     | 
    
        data/lib/profitbricks.rb
    CHANGED
    
    
| 
         @@ -11,12 +11,17 @@ module Profitbricks 
     | 
|
| 
       11 
11 
     | 
    
         
             
                Savon.configure do |config|
         
     | 
| 
       12 
12 
     | 
    
         
             
                  config.raise_errors = false 
         
     | 
| 
       13 
13 
     | 
    
         
             
                  config.log = Profitbricks::Config.log
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
       14 
15 
     | 
    
         
             
                end
         
     | 
| 
       15 
16 
     | 
    
         
             
                HTTPI.log = false
         
     | 
| 
       16 
17 
     | 
    
         | 
| 
       17 
18 
     | 
    
         
             
                @client = Savon::Client.new do |wsdl, http|
         
     | 
| 
       18 
19 
     | 
    
         
             
                  wsdl.endpoint = "https://api.profitbricks.com/1.1"
         
     | 
| 
       19 
20 
     | 
    
         
             
                  wsdl.document = "https://api.profitbricks.com/1.1/wsdl"
         
     | 
| 
      
 21 
     | 
    
         
            +
                  if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' && !ENV['SSL_CERT_DIR']
         
     | 
| 
      
 22 
     | 
    
         
            +
                    puts "Warning: SSL certificate verification has been disabled"
         
     | 
| 
      
 23 
     | 
    
         
            +
                    http.auth.ssl.verify_mode = :none
         
     | 
| 
      
 24 
     | 
    
         
            +
                  end
         
     | 
| 
       20 
25 
     | 
    
         
             
                  http.auth.basic Profitbricks::Config.username, Profitbricks::Config.password
         
     | 
| 
       21 
26 
     | 
    
         
             
                end
         
     | 
| 
       22 
27 
     | 
    
         | 
    
        data/spec/spec_helper.rb
    CHANGED
    
    | 
         @@ -33,9 +33,13 @@ Savon.configure do |config| 
     | 
|
| 
       33 
33 
     | 
    
         
             
              config.log_level = :error
         
     | 
| 
       34 
34 
     | 
    
         
             
            end
         
     | 
| 
       35 
35 
     | 
    
         
             
            HTTPI.log = false
         
     | 
| 
       36 
     | 
    
         
            -
            client = Savon::Client.new do
         
     | 
| 
      
 36 
     | 
    
         
            +
            client = Savon::Client.new do |wsdl, http|
         
     | 
| 
       37 
37 
     | 
    
         
             
              wsdl.endpoint = "https://api.profitbricks.com/1.1"
         
     | 
| 
       38 
38 
     | 
    
         
             
              wsdl.document = "https://api.profitbricks.com/1.1/wsdl"
         
     | 
| 
      
 39 
     | 
    
         
            +
              if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' && !ENV['SSL_CERT_DIR']
         
     | 
| 
      
 40 
     | 
    
         
            +
                puts "Warning: SSL certificate verification has been disabled"
         
     | 
| 
      
 41 
     | 
    
         
            +
                http.auth.ssl.verify_mode = :none
         
     | 
| 
      
 42 
     | 
    
         
            +
              end
         
     | 
| 
       39 
43 
     | 
    
         
             
            end
         
     | 
| 
       40 
44 
     | 
    
         | 
| 
       41 
45 
     | 
    
         
             
            Profitbricks.configure do |config|
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: profitbricks
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.9.0
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,11 +9,11 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2012-04- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2012-04-12 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: savon
         
     | 
| 
       16 
     | 
    
         
            -
              requirement: & 
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: &16481560 !ruby/object:Gem::Requirement
         
     | 
| 
       17 
17 
     | 
    
         
             
                none: false
         
     | 
| 
       18 
18 
     | 
    
         
             
                requirements:
         
     | 
| 
       19 
19 
     | 
    
         
             
                - - ! '>='
         
     | 
| 
         @@ -21,10 +21,10 @@ dependencies: 
     | 
|
| 
       21 
21 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       22 
22 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       23 
23 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       24 
     | 
    
         
            -
              version_requirements: * 
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: *16481560
         
     | 
| 
       25 
25 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       26 
26 
     | 
    
         
             
              name: rdoc
         
     | 
| 
       27 
     | 
    
         
            -
              requirement: & 
     | 
| 
      
 27 
     | 
    
         
            +
              requirement: &16480040 !ruby/object:Gem::Requirement
         
     | 
| 
       28 
28 
     | 
    
         
             
                none: false
         
     | 
| 
       29 
29 
     | 
    
         
             
                requirements:
         
     | 
| 
       30 
30 
     | 
    
         
             
                - - ~>
         
     | 
| 
         @@ -32,10 +32,10 @@ dependencies: 
     | 
|
| 
       32 
32 
     | 
    
         
             
                    version: '3.10'
         
     | 
| 
       33 
33 
     | 
    
         
             
              type: :development
         
     | 
| 
       34 
34 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       35 
     | 
    
         
            -
              version_requirements: * 
     | 
| 
      
 35 
     | 
    
         
            +
              version_requirements: *16480040
         
     | 
| 
       36 
36 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       37 
37 
     | 
    
         
             
              name: hoe
         
     | 
| 
       38 
     | 
    
         
            -
              requirement: & 
     | 
| 
      
 38 
     | 
    
         
            +
              requirement: &16478660 !ruby/object:Gem::Requirement
         
     | 
| 
       39 
39 
     | 
    
         
             
                none: false
         
     | 
| 
       40 
40 
     | 
    
         
             
                requirements:
         
     | 
| 
       41 
41 
     | 
    
         
             
                - - ~>
         
     | 
| 
         @@ -43,7 +43,7 @@ dependencies: 
     | 
|
| 
       43 
43 
     | 
    
         
             
                    version: '3.0'
         
     | 
| 
       44 
44 
     | 
    
         
             
              type: :development
         
     | 
| 
       45 
45 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       46 
     | 
    
         
            -
              version_requirements: * 
     | 
| 
      
 46 
     | 
    
         
            +
              version_requirements: *16478660
         
     | 
| 
       47 
47 
     | 
    
         
             
            description: A Ruby client for the ProfitBricks API.
         
     | 
| 
       48 
48 
     | 
    
         
             
            email:
         
     | 
| 
       49 
49 
     | 
    
         
             
            - git@dsander.de
         
     |