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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3f2ab2081c5d4a1ba365f371b1c8784ef51a214
4
- data.tar.gz: fb22a12ed8ccad14dc2f1bcda6e4f3dc2600bc1b
3
+ metadata.gz: 92cf939c6c87c4e69bcbe24db9d93ec2882c51a6
4
+ data.tar.gz: 549f159fdf57f395d7f835c400621aa8094e4fa2
5
5
  SHA512:
6
- metadata.gz: 91c9ee1b9a94cc1d3da4a1e159e8812c829763ce322ce3514a883dc4decb783d79d58b36f08ccd0b29f2ae854a1348e8c4c42c83be3445b6f8fbf63a8f68124a
7
- data.tar.gz: 6ed3bb5cbb6f4d51d35f522e1101150d160f6cf0fff06406174ffc17432acac2a1ec6cba7ef9bf38ecaa5465f661e595a06ec8a483f113c9167ada6f9f49c52e
6
+ metadata.gz: 60286e9470ed3da27f17549912055dd9cc918f8d49689cc2baa08b48b9fe0bcb3a486cc44581c0276b254897bfc6ad502f83a1fa88bafb787b2a9a4592c2be89
7
+ data.tar.gz: dda8e258f5d431d4e92beed827ce9308efa50e93cd2ee6342aec608273280e7c33fafc5e0ed5deba294f6e46412966f12ec199758cca2d181917ef92ad527ecc
@@ -1,3 +1,3 @@
1
1
  module Quovo
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -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.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
  - - ">="
@@ -1 +0,0 @@
1
- service_name: travis-ci
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- .storage
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
- coverage
12
- .DS_Store
@@ -1,12 +0,0 @@
1
- Style/Documentation:
2
- Enabled: false
3
- Metrics/MethodLength:
4
- Enabled: false
5
- Metrics/ParameterLists:
6
- Enabled: false
7
- Metrics/LineLength:
8
- Enabled: false
9
- Metrics/AbcSize:
10
- Exclude:
11
- - 'bin/console'
12
- - 'tests/**'
@@ -1,6 +0,0 @@
1
- sudo: false
2
- cache: bundler
3
- language: ruby
4
- rvm:
5
- - 2.2
6
- before_install: gem install bundler
@@ -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