occi-api 4.0.1 → 4.1.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 +2 -8
 - data/Gemfile +0 -8
 - data/README.md +12 -8
 - data/lib/occi/api/version.rb +1 -1
 - data/occi-api.gemspec +2 -3
 - metadata +5 -7
 - data/ext/mkrf_conf.rb +0 -34
 
    
        data/.travis.yml
    CHANGED
    
    | 
         @@ -1,10 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            language: ruby
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            before_install:
         
     | 
| 
       4 
     | 
    
         
            -
              - sudo apt-get install -qq libonig-dev
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
3 
     | 
    
         
             
            rvm:
         
     | 
| 
       7 
     | 
    
         
            -
              - 1.8.7
         
     | 
| 
       8 
4 
     | 
    
         
             
              - 1.9.3
         
     | 
| 
       9 
5 
     | 
    
         
             
              - 2.0.0
         
     | 
| 
       10 
6 
     | 
    
         
             
              - ruby-head
         
     | 
| 
         @@ -21,10 +17,6 @@ matrix: 
     | 
|
| 
       21 
17 
     | 
    
         
             
                - rvm: ruby-head
         
     | 
| 
       22 
18 
     | 
    
         
             
                - rvm: jruby-head
         
     | 
| 
       23 
19 
     | 
    
         
             
              exclude:
         
     | 
| 
       24 
     | 
    
         
            -
                - rvm: 1.8.7
         
     | 
| 
       25 
     | 
    
         
            -
                  jdk: openjdk7
         
     | 
| 
       26 
     | 
    
         
            -
                - rvm: 1.8.7
         
     | 
| 
       27 
     | 
    
         
            -
                  jdk: oraclejdk7
         
     | 
| 
       28 
20 
     | 
    
         
             
                - rvm: 1.9.3
         
     | 
| 
       29 
21 
     | 
    
         
             
                  jdk: openjdk7
         
     | 
| 
       30 
22 
     | 
    
         
             
                - rvm: 1.9.3
         
     | 
| 
         @@ -41,3 +33,5 @@ matrix: 
     | 
|
| 
       41 
33 
     | 
    
         
             
            branches:
         
     | 
| 
       42 
34 
     | 
    
         
             
              only:
         
     | 
| 
       43 
35 
     | 
    
         
             
                - master
         
     | 
| 
      
 36 
     | 
    
         
            +
                - 4.0.x
         
     | 
| 
      
 37 
     | 
    
         
            +
                - 4.1.x
         
     | 
    
        data/Gemfile
    CHANGED
    
    | 
         @@ -6,11 +6,3 @@ group :development do 
     | 
|
| 
       6 
6 
     | 
    
         
             
              gem 'vcr', :git => 'git://github.com/arax/vcr.git', :branch => 'test_framework_patches', :ref => 'e82e843ceddd8822acea59846b015bcabf1906df'
         
     | 
| 
       7 
7 
     | 
    
         
             
              gem 'rubygems-tasks', :git => 'git://github.com/postmodern/rubygems-tasks.git'
         
     | 
| 
       8 
8 
     | 
    
         
             
            end
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            platforms :jruby do
         
     | 
| 
       11 
     | 
    
         
            -
              gem 'jruby-openssl' if ((defined? JRUBY_VERSION) && (JRUBY_VERSION.split('.')[1].to_i < 7))
         
     | 
| 
       12 
     | 
    
         
            -
            end
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            platforms :ruby_18 do
         
     | 
| 
       15 
     | 
    
         
            -
                gem 'oniguruma'
         
     | 
| 
       16 
     | 
    
         
            -
            end
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -10,25 +10,23 @@ Requirements 
     | 
|
| 
       10 
10 
     | 
    
         
             
            ------------
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
            ### Ruby
         
     | 
| 
       13 
     | 
    
         
            -
            *  
     | 
| 
       14 
     | 
    
         
            -
            *  
     | 
| 
       15 
     | 
    
         
            -
            *  
     | 
| 
       16 
     | 
    
         
            -
            * rake installed (e.g., `gem install rake`)
         
     | 
| 
      
 13 
     | 
    
         
            +
            * Ruby 1.9.3 is required
         
     | 
| 
      
 14 
     | 
    
         
            +
            * RubyGems have to be installed
         
     | 
| 
      
 15 
     | 
    
         
            +
            * Rake has to be installed (e.g., `gem install rake`)
         
     | 
| 
       17 
16 
     | 
    
         | 
| 
       18 
17 
     | 
    
         
             
            ### Libraries/packages
         
     | 
| 
       19 
18 
     | 
    
         
             
            * libxslt1-dev/libxslt-devel
         
     | 
| 
       20 
19 
     | 
    
         
             
            * libxml2-dev/libxml2-devel
         
     | 
| 
       21 
     | 
    
         
            -
            * **only if using Ruby 1.8.7:** libonig-dev/oniguruma-devel (Linux) or oniguruma (Mac)
         
     | 
| 
       22 
20 
     | 
    
         | 
| 
       23 
21 
     | 
    
         
             
            ### Examples
         
     | 
| 
       24 
22 
     | 
    
         
             
            For distros based on Debian:
         
     | 
| 
       25 
23 
     | 
    
         
             
            ~~~
         
     | 
| 
       26 
     | 
    
         
            -
            apt-get install ruby rubygems ruby-dev libxslt1-dev libxml2-dev 
     | 
| 
      
 24 
     | 
    
         
            +
            apt-get install ruby rubygems ruby-dev libxslt1-dev libxml2-dev
         
     | 
| 
       27 
25 
     | 
    
         
             
            ~~~
         
     | 
| 
       28 
26 
     | 
    
         | 
| 
       29 
27 
     | 
    
         
             
            For distros based on RHEL:
         
     | 
| 
       30 
28 
     | 
    
         
             
            ~~~
         
     | 
| 
       31 
     | 
    
         
            -
            yum install libxml2-devel libxslt-devel ruby-devel openssl-devel gcc gcc-c++ ruby rubygems 
     | 
| 
      
 29 
     | 
    
         
            +
            yum install libxml2-devel libxslt-devel ruby-devel openssl-devel gcc gcc-c++ ruby rubygems
         
     | 
| 
       32 
30 
     | 
    
         
             
            ~~~
         
     | 
| 
       33 
31 
     | 
    
         | 
| 
       34 
32 
     | 
    
         
             
            Installation
         
     | 
| 
         @@ -262,7 +260,8 @@ The OCCI gem includes its own logging mechanism using a message queue. By defaul 
     | 
|
| 
       262 
260 
     | 
    
         
             
            A new OCCI Logger can be initialized by specifying the log destination (either a filename or an IO object like
         
     | 
| 
       263 
261 
     | 
    
         
             
            STDOUT) and the log level.
         
     | 
| 
       264 
262 
     | 
    
         | 
| 
       265 
     | 
    
         
            -
                Occi::Log.new 
     | 
| 
      
 263 
     | 
    
         
            +
                logger = Occi::Log.new STDOUT
         
     | 
| 
      
 264 
     | 
    
         
            +
                logger.level = Occi::Log::INFO
         
     | 
| 
       266 
265 
     | 
    
         | 
| 
       267 
266 
     | 
    
         
             
            You can create multiple Loggers to receive the log output.
         
     | 
| 
       268 
267 
     | 
    
         | 
| 
         @@ -273,6 +272,11 @@ You can always, even if there is no logger defined, log output using the class m 
     | 
|
| 
       273 
272 
     | 
    
         
             
            Changelog
         
     | 
| 
       274 
273 
     | 
    
         
             
            ---------
         
     | 
| 
       275 
274 
     | 
    
         | 
| 
      
 275 
     | 
    
         
            +
            ### Version 4.1
         
     | 
| 
      
 276 
     | 
    
         
            +
            * Dropped Ruby 1.8.x support
         
     | 
| 
      
 277 
     | 
    
         
            +
            * Dropped jRuby 1.6.x support
         
     | 
| 
      
 278 
     | 
    
         
            +
            * Updated dependencies
         
     | 
| 
      
 279 
     | 
    
         
            +
             
     | 
| 
       276 
280 
     | 
    
         
             
            ### Version 4.0
         
     | 
| 
       277 
281 
     | 
    
         
             
            * added extended support for OCCI-OS
         
     | 
| 
       278 
282 
     | 
    
         
             
            * added full support for OS Keystone authentication
         
     | 
    
        data/lib/occi/api/version.rb
    CHANGED
    
    
    
        data/occi-api.gemspec
    CHANGED
    
    | 
         @@ -17,9 +17,8 @@ Gem::Specification.new do |gem| 
     | 
|
| 
       17 
17 
     | 
    
         
             
              gem.files         = `git ls-files`.split("\n")
         
     | 
| 
       18 
18 
     | 
    
         
             
              gem.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
         
     | 
| 
       19 
19 
     | 
    
         
             
              gem.require_paths = ["lib"]
         
     | 
| 
       20 
     | 
    
         
            -
              gem.extensions    = 'ext/mkrf_conf.rb'
         
     | 
| 
       21 
20 
     | 
    
         | 
| 
       22 
     | 
    
         
            -
              gem.add_dependency 'occi-core', '~> 4.0 
     | 
| 
      
 21 
     | 
    
         
            +
              gem.add_dependency 'occi-core', '~> 4.1.0'
         
     | 
| 
       23 
22 
     | 
    
         
             
              gem.add_dependency 'httparty'
         
     | 
| 
       24 
23 
     | 
    
         
             
              gem.add_dependency 'amqp'
         
     | 
| 
       25 
24 
     | 
    
         
             
              gem.add_dependency 'json'
         
     | 
| 
         @@ -35,5 +34,5 @@ Gem::Specification.new do |gem| 
     | 
|
| 
       35 
34 
     | 
    
         
             
              gem.add_development_dependency "rspec-http"
         
     | 
| 
       36 
35 
     | 
    
         
             
              gem.add_development_dependency "webmock", "~> 1.9.3"
         
     | 
| 
       37 
36 
     | 
    
         | 
| 
       38 
     | 
    
         
            -
              gem.required_ruby_version     = ">= 1. 
     | 
| 
      
 37 
     | 
    
         
            +
              gem.required_ruby_version     = ">= 1.9.3"
         
     | 
| 
       39 
38 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: occi-api
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 4.0 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 4.1.0
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -20,7 +20,7 @@ dependencies: 
     | 
|
| 
       20 
20 
     | 
    
         
             
                requirements:
         
     | 
| 
       21 
21 
     | 
    
         
             
                - - ~>
         
     | 
| 
       22 
22 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       23 
     | 
    
         
            -
                    version: 4.0 
     | 
| 
      
 23 
     | 
    
         
            +
                    version: 4.1.0
         
     | 
| 
       24 
24 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       25 
25 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       26 
26 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -28,7 +28,7 @@ dependencies: 
     | 
|
| 
       28 
28 
     | 
    
         
             
                requirements:
         
     | 
| 
       29 
29 
     | 
    
         
             
                - - ~>
         
     | 
| 
       30 
30 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       31 
     | 
    
         
            -
                    version: 4.0 
     | 
| 
      
 31 
     | 
    
         
            +
                    version: 4.1.0
         
     | 
| 
       32 
32 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       33 
33 
     | 
    
         
             
              name: httparty
         
     | 
| 
       34 
34 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -244,8 +244,7 @@ email: 
     | 
|
| 
       244 
244 
     | 
    
         
             
            - piotr.kasprzak@gwdg.de
         
     | 
| 
       245 
245 
     | 
    
         
             
            - xparak@mail.muni.cz
         
     | 
| 
       246 
246 
     | 
    
         
             
            executables: []
         
     | 
| 
       247 
     | 
    
         
            -
            extensions:
         
     | 
| 
       248 
     | 
    
         
            -
            - ext/mkrf_conf.rb
         
     | 
| 
      
 247 
     | 
    
         
            +
            extensions: []
         
     | 
| 
       249 
248 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       250 
249 
     | 
    
         
             
            files:
         
     | 
| 
       251 
250 
     | 
    
         
             
            - .gitignore
         
     | 
| 
         @@ -259,7 +258,6 @@ files: 
     | 
|
| 
       259 
258 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       260 
259 
     | 
    
         
             
            - examples/dsl_example.rb
         
     | 
| 
       261 
260 
     | 
    
         
             
            - examples/x509auth_example.rb
         
     | 
| 
       262 
     | 
    
         
            -
            - ext/mkrf_conf.rb
         
     | 
| 
       263 
261 
     | 
    
         
             
            - features/cassettes/Create_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml
         
     | 
| 
       264 
262 
     | 
    
         
             
            - features/cassettes/Delete_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml
         
     | 
| 
       265 
263 
     | 
    
         
             
            - features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__application_json_200_.yml
         
     | 
| 
         @@ -367,7 +365,7 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       367 
365 
     | 
    
         
             
              requirements:
         
     | 
| 
       368 
366 
     | 
    
         
             
              - - ! '>='
         
     | 
| 
       369 
367 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       370 
     | 
    
         
            -
                  version: 1. 
     | 
| 
      
 368 
     | 
    
         
            +
                  version: 1.9.3
         
     | 
| 
       371 
369 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       372 
370 
     | 
    
         
             
              none: false
         
     | 
| 
       373 
371 
     | 
    
         
             
              requirements:
         
     | 
    
        data/ext/mkrf_conf.rb
    DELETED
    
    | 
         @@ -1,34 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'rubygems'
         
     | 
| 
       2 
     | 
    
         
            -
            require 'rubygems/command.rb'
         
     | 
| 
       3 
     | 
    
         
            -
            require 'rubygems/dependency_installer.rb' 
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            begin
         
     | 
| 
       6 
     | 
    
         
            -
              Gem::Command.build_args = ARGV
         
     | 
| 
       7 
     | 
    
         
            -
            rescue NoMethodError
         
     | 
| 
       8 
     | 
    
         
            -
              # do nothing but warn the user
         
     | 
| 
       9 
     | 
    
         
            -
              warn "Gem::Command doesn't have a method named 'build_args'!"
         
     | 
| 
       10 
     | 
    
         
            -
            end 
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            warn 'Installing platform-specific dependencies.'
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            warn 'Installing the most recent version of \'rake\''
         
     | 
| 
       15 
     | 
    
         
            -
            inst = Gem::DependencyInstaller.new
         
     | 
| 
       16 
     | 
    
         
            -
            inst.install "rake"
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            if RUBY_PLATFORM == "java"
         
     | 
| 
       19 
     | 
    
         
            -
              warn 'Installing dependencies specific for jRuby'
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
              jrver = (JRUBY_VERSION || "").split('.').map{ |elm| elm.to_i }
         
     | 
| 
       22 
     | 
    
         
            -
              if jrver[0] == 1 && jrver[1] < 7
         
     | 
| 
       23 
     | 
    
         
            -
                warn 'Installing \'jruby-openssl\' for jRuby 1.6.x'
         
     | 
| 
       24 
     | 
    
         
            -
                inst.install "jruby-openssl"
         
     | 
| 
       25 
     | 
    
         
            -
              end
         
     | 
| 
       26 
     | 
    
         
            -
            else
         
     | 
| 
       27 
     | 
    
         
            -
              # Nothing to install for rOCCI-api here
         
     | 
| 
       28 
     | 
    
         
            -
              #warn 'Installing dependencies specific for Ruby'
         
     | 
| 
       29 
     | 
    
         
            -
            end
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
            # create dummy rakefile to indicate success
         
     | 
| 
       32 
     | 
    
         
            -
            f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
         
     | 
| 
       33 
     | 
    
         
            -
            f.write "task :default\n"
         
     | 
| 
       34 
     | 
    
         
            -
            f.close
         
     |