openlab_ruby 0.0.5 → 0.0.7
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.
- checksums.yaml +4 -4
- data/lib/openlab/client.rb +3 -2
- data/lib/openlab/version.rb +1 -1
- data/lib/openlab_ruby.rb +3 -1
- metadata +30 -30
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 70b093131cc5e44eb9ad113976135b67d856926872a5078b02b1735893decf71
         | 
| 4 | 
            +
              data.tar.gz: cdf89892920cda85796c9f766de04ebc59e8eba730e17047b7f5fa1abc02d241
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: c6260ab1c9d7e8aae50db300ece9589fc41b74916cf28e85c903051c5cc7bcb8c3394b7dd4646644facf1095a58606eafa453eb96c82fa90d759b323c60cdc18
         | 
| 7 | 
            +
              data.tar.gz: '09648f6f2a2ad98d840cc4cce1b5047843e52fc1f4fbd50f7001a06a1eced6b7f9d3f2ee7f7eed0a270efef5f92eefbb8c550b90ee784dd7c69191fcb1d490d4'
         | 
    
        data/lib/openlab/client.rb
    CHANGED
    
    | @@ -9,10 +9,11 @@ module Openlab | |
| 9 9 |  | 
| 10 10 | 
             
                def initialize(app_secret: nil)
         | 
| 11 11 | 
             
                  @app_secret = app_secret || Openlab.config.app_secret
         | 
| 12 | 
            -
                  app_secret = @app_secret
         | 
| 13 12 |  | 
| 13 | 
            +
                  self.class.default_options[:verify] = Openlab.config.httparty_verify
         | 
| 14 | 
            +
                  self.class.default_options[:verify_peer] = Openlab.config.httparty_verify_peer
         | 
| 14 15 | 
             
                  self.class.base_uri Openlab.config.base_uri
         | 
| 15 | 
            -
                  self.class.headers 'Accept' => 'application/json', 'Authorization' => "Token token=#{app_secret}"
         | 
| 16 | 
            +
                  self.class.headers 'Accept' => 'application/json', 'Authorization' => "Token token=#{@app_secret}"
         | 
| 16 17 | 
             
                end
         | 
| 17 18 |  | 
| 18 19 | 
             
                def projects
         | 
    
        data/lib/openlab/version.rb
    CHANGED
    
    
    
        data/lib/openlab_ruby.rb
    CHANGED
    
    | @@ -16,12 +16,14 @@ module Openlab | |
| 16 16 | 
             
              end
         | 
| 17 17 |  | 
| 18 18 | 
             
              class Config
         | 
| 19 | 
            -
                attr_accessor :app_secret, :base_uri
         | 
| 19 | 
            +
                attr_accessor :app_secret, :base_uri, :httparty_verify, :httparty_verify_peer
         | 
| 20 20 | 
             
                attr_reader :api_version_path
         | 
| 21 21 |  | 
| 22 22 | 
             
                def initialize
         | 
| 23 23 | 
             
                  @base_uri = 'https://openprojects.fab-manager.com'
         | 
| 24 24 | 
             
                  @api_version_path = '/api/v1'
         | 
| 25 | 
            +
                  @httparty_verify = true
         | 
| 26 | 
            +
                  @httparty_verify_peer = true
         | 
| 25 27 | 
             
                end
         | 
| 26 28 | 
             
              end
         | 
| 27 29 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: openlab_ruby
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.7
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Nicolas Florentin
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2022-03-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: httparty
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: '0. | 
| 19 | 
            +
                    version: '0.20'
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - "~>"
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: '0. | 
| 26 | 
            +
                    version: '0.20'
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: rails
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -137,45 +137,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 137 137 | 
             
                - !ruby/object:Gem::Version
         | 
| 138 138 | 
             
                  version: '0'
         | 
| 139 139 | 
             
            requirements: []
         | 
| 140 | 
            -
            rubygems_version: 3. | 
| 140 | 
            +
            rubygems_version: 3.2.29
         | 
| 141 141 | 
             
            signing_key:
         | 
| 142 142 | 
             
            specification_version: 4
         | 
| 143 143 | 
             
            summary: Openlab is an api wrapper for Openlab api
         | 
| 144 144 | 
             
            test_files:
         | 
| 145 145 | 
             
            - test/openlab_ruby_test.rb
         | 
| 146 | 
            -
            - test/dummy/ | 
| 147 | 
            -
            - test/dummy/ | 
| 148 | 
            -
            - test/dummy/ | 
| 146 | 
            +
            - test/dummy/app/controllers/application_controller.rb
         | 
| 147 | 
            +
            - test/dummy/app/views/layouts/application.html.erb
         | 
| 148 | 
            +
            - test/dummy/app/assets/config/manifest.js
         | 
| 149 | 
            +
            - test/dummy/app/assets/javascripts/application.js
         | 
| 150 | 
            +
            - test/dummy/app/assets/stylesheets/application.css
         | 
| 151 | 
            +
            - test/dummy/app/helpers/application_helper.rb
         | 
| 152 | 
            +
            - test/dummy/bin/rake
         | 
| 149 153 | 
             
            - test/dummy/bin/setup
         | 
| 154 | 
            +
            - test/dummy/bin/bundle
         | 
| 150 155 | 
             
            - test/dummy/bin/rails
         | 
| 151 | 
            -
            - test/dummy/ | 
| 152 | 
            -
            - test/dummy/ | 
| 153 | 
            -
            - test/dummy/public/500.html
         | 
| 154 | 
            -
            - test/dummy/public/favicon.ico
         | 
| 155 | 
            -
            - test/dummy/public/422.html
         | 
| 156 | 
            -
            - test/dummy/app/helpers/application_helper.rb
         | 
| 157 | 
            -
            - test/dummy/app/assets/stylesheets/application.css
         | 
| 158 | 
            -
            - test/dummy/app/assets/javascripts/application.js
         | 
| 159 | 
            -
            - test/dummy/app/assets/config/manifest.js
         | 
| 160 | 
            -
            - test/dummy/app/views/layouts/application.html.erb
         | 
| 161 | 
            -
            - test/dummy/app/controllers/application_controller.rb
         | 
| 162 | 
            -
            - test/dummy/Rakefile
         | 
| 163 | 
            -
            - test/dummy/README.rdoc
         | 
| 164 | 
            -
            - test/dummy/config/environment.rb
         | 
| 165 | 
            -
            - test/dummy/config/boot.rb
         | 
| 156 | 
            +
            - test/dummy/config/secrets.yml
         | 
| 157 | 
            +
            - test/dummy/config/routes.rb
         | 
| 166 158 | 
             
            - test/dummy/config/locales/en.yml
         | 
| 167 | 
            -
            - test/dummy/config/environments/development.rb
         | 
| 168 159 | 
             
            - test/dummy/config/environments/production.rb
         | 
| 160 | 
            +
            - test/dummy/config/environments/development.rb
         | 
| 169 161 | 
             
            - test/dummy/config/environments/test.rb
         | 
| 162 | 
            +
            - test/dummy/config/environment.rb
         | 
| 170 163 | 
             
            - test/dummy/config/application.rb
         | 
| 164 | 
            +
            - test/dummy/config/boot.rb
         | 
| 171 165 | 
             
            - test/dummy/config/initializers/backtrace_silencers.rb
         | 
| 172 | 
            -
            - test/dummy/config/initializers/ | 
| 166 | 
            +
            - test/dummy/config/initializers/mime_types.rb
         | 
| 173 167 | 
             
            - test/dummy/config/initializers/filter_parameter_logging.rb
         | 
| 168 | 
            +
            - test/dummy/config/initializers/session_store.rb
         | 
| 169 | 
            +
            - test/dummy/config/initializers/wrap_parameters.rb
         | 
| 170 | 
            +
            - test/dummy/config/initializers/assets.rb
         | 
| 174 171 | 
             
            - test/dummy/config/initializers/cookies_serializer.rb
         | 
| 175 | 
            -
            - test/dummy/config/initializers/mime_types.rb
         | 
| 176 172 | 
             
            - test/dummy/config/initializers/inflections.rb
         | 
| 177 | 
            -
            - test/dummy/config | 
| 178 | 
            -
            - test/dummy/ | 
| 179 | 
            -
            - test/dummy/ | 
| 180 | 
            -
            - test/dummy/ | 
| 173 | 
            +
            - test/dummy/config.ru
         | 
| 174 | 
            +
            - test/dummy/Rakefile
         | 
| 175 | 
            +
            - test/dummy/public/favicon.ico
         | 
| 176 | 
            +
            - test/dummy/public/422.html
         | 
| 177 | 
            +
            - test/dummy/public/500.html
         | 
| 178 | 
            +
            - test/dummy/public/404.html
         | 
| 179 | 
            +
            - test/dummy/log/test.log
         | 
| 180 | 
            +
            - test/dummy/README.rdoc
         | 
| 181 181 | 
             
            - test/test_helper.rb
         |