quovo 1.0.0 → 1.0.1
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/quovo/version.rb +1 -1
 - data/quovo.gemspec +5 -1
 - metadata +2 -7
 - data/.coveralls.yml +0 -1
 - data/.gitignore +0 -12
 - data/.rubocop.yml +0 -12
 - data/.travis.yml +0 -6
 - data/bin/console +0 -53
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 92cf939c6c87c4e69bcbe24db9d93ec2882c51a6
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 549f159fdf57f395d7f835c400621aa8094e4fa2
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 60286e9470ed3da27f17549912055dd9cc918f8d49689cc2baa08b48b9fe0bcb3a486cc44581c0276b254897bfc6ad502f83a1fa88bafb787b2a9a4592c2be89
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: dda8e258f5d431d4e92beed827ce9308efa50e93cd2ee6342aec608273280e7c33fafc5e0ed5deba294f6e46412966f12ec199758cca2d181917ef92ad527ecc
         
     | 
    
        data/lib/quovo/version.rb
    CHANGED
    
    
    
        data/quovo.gemspec
    CHANGED
    
    | 
         @@ -14,6 +14,10 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       14 
14 
     | 
    
         
             
              spec.description   = 'Quovo RESTful API client, configurable, thread-safe and well-tested'
         
     | 
| 
       15 
15 
     | 
    
         
             
              spec.license       = 'MIT'
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
              spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^tests/}) }
         
     | 
| 
       18 
17 
     | 
    
         
             
              spec.require_paths = ['lib']
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
              spec.required_ruby_version = '>= 2.0'
         
     | 
| 
      
 20 
     | 
    
         
            +
              spec.files  = `git ls-files -z`.split("\x0").reject do |f| 
         
     | 
| 
      
 21 
     | 
    
         
            +
                f.match(%r{^(tests|bin|)/}) || f[0] == '.'
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
       19 
23 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: quovo
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Alex Gorkunov
         
     | 
| 
         @@ -19,15 +19,10 @@ executables: [] 
     | 
|
| 
       19 
19 
     | 
    
         
             
            extensions: []
         
     | 
| 
       20 
20 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       21 
21 
     | 
    
         
             
            files:
         
     | 
| 
       22 
     | 
    
         
            -
            - ".coveralls.yml"
         
     | 
| 
       23 
     | 
    
         
            -
            - ".gitignore"
         
     | 
| 
       24 
     | 
    
         
            -
            - ".rubocop.yml"
         
     | 
| 
       25 
     | 
    
         
            -
            - ".travis.yml"
         
     | 
| 
       26 
22 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       27 
23 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       28 
24 
     | 
    
         
             
            - README.md
         
     | 
| 
       29 
25 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       30 
     | 
    
         
            -
            - bin/console
         
     | 
| 
       31 
26 
     | 
    
         
             
            - lib/quovo.rb
         
     | 
| 
       32 
27 
     | 
    
         
             
            - lib/quovo/api.rb
         
     | 
| 
       33 
28 
     | 
    
         
             
            - lib/quovo/api/accounts.rb
         
     | 
| 
         @@ -77,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       77 
72 
     | 
    
         
             
              requirements:
         
     | 
| 
       78 
73 
     | 
    
         
             
              - - ">="
         
     | 
| 
       79 
74 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       80 
     | 
    
         
            -
                  version: '0'
         
     | 
| 
      
 75 
     | 
    
         
            +
                  version: '2.0'
         
     | 
| 
       81 
76 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       82 
77 
     | 
    
         
             
              requirements:
         
     | 
| 
       83 
78 
     | 
    
         
             
              - - ">="
         
     | 
    
        data/.coveralls.yml
    DELETED
    
    | 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            service_name: travis-ci
         
     | 
    
        data/.gitignore
    DELETED
    
    
    
        data/.rubocop.yml
    DELETED
    
    
    
        data/.travis.yml
    DELETED
    
    
    
        data/bin/console
    DELETED
    
    | 
         @@ -1,53 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            #!/usr/bin/env ruby
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            require 'bundler/setup'
         
     | 
| 
       4 
     | 
    
         
            -
            require 'quovo'
         
     | 
| 
       5 
     | 
    
         
            -
            require 'pry'
         
     | 
| 
       6 
     | 
    
         
            -
            require 'json'
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            def reconfigure!
         
     | 
| 
       9 
     | 
    
         
            -
              Quovo.configure do |config|
         
     | 
| 
       10 
     | 
    
         
            -
                config.username = ARGV[0]
         
     | 
| 
       11 
     | 
    
         
            -
                config.password = ARGV[1]
         
     | 
| 
       12 
     | 
    
         
            -
                config.debug    = true
         
     | 
| 
       13 
     | 
    
         
            -
                config.token_storage = Object.new.tap do |o|
         
     | 
| 
       14 
     | 
    
         
            -
                  def o.path
         
     | 
| 
       15 
     | 
    
         
            -
                    '../.storage'
         
     | 
| 
       16 
     | 
    
         
            -
                  end
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
                  def o.storage
         
     | 
| 
       19 
     | 
    
         
            -
                    @storage ||= begin
         
     | 
| 
       20 
     | 
    
         
            -
                                   data = File.exist?(path) ? File.read(path) : nil
         
     | 
| 
       21 
     | 
    
         
            -
                                   data ? JSON.parse(data) : {}
         
     | 
| 
       22 
     | 
    
         
            -
                                 end
         
     | 
| 
       23 
     | 
    
         
            -
                  end
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                  def o.read(key)
         
     | 
| 
       26 
     | 
    
         
            -
                    storage[key]
         
     | 
| 
       27 
     | 
    
         
            -
                  end
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
                  def o.write(key, value)
         
     | 
| 
       30 
     | 
    
         
            -
                    storage[key] = value
         
     | 
| 
       31 
     | 
    
         
            -
                    File.write(path, storage.to_json)
         
     | 
| 
       32 
     | 
    
         
            -
                  end
         
     | 
| 
       33 
     | 
    
         
            -
                end
         
     | 
| 
       34 
     | 
    
         
            -
              end
         
     | 
| 
       35 
     | 
    
         
            -
            end
         
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
            def reload!
         
     | 
| 
       38 
     | 
    
         
            -
              Quovo.instance_variables.each do |var|
         
     | 
| 
       39 
     | 
    
         
            -
                Quovo.instance_variable_set(var, nil)
         
     | 
| 
       40 
     | 
    
         
            -
              end
         
     | 
| 
       41 
     | 
    
         
            -
              Quovo.clear_hooks!
         
     | 
| 
       42 
     | 
    
         
            -
              original_verbose = $VERBOSE
         
     | 
| 
       43 
     | 
    
         
            -
              $VERBOSE = nil
         
     | 
| 
       44 
     | 
    
         
            -
              $LOADED_FEATURES
         
     | 
| 
       45 
     | 
    
         
            -
                .select { |file| file =~ %r{\/quovo\/} }
         
     | 
| 
       46 
     | 
    
         
            -
                .each { |file| load(file) }
         
     | 
| 
       47 
     | 
    
         
            -
              $VERBOSE = original_verbose
         
     | 
| 
       48 
     | 
    
         
            -
              reconfigure!
         
     | 
| 
       49 
     | 
    
         
            -
              'Reloaded!'
         
     | 
| 
       50 
     | 
    
         
            -
            end
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
            reconfigure!
         
     | 
| 
       53 
     | 
    
         
            -
            Pry.start
         
     |