zinc-api 0.0.3 → 0.0.4
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/bin/{zinc-api-console → console} +4 -6
- data/zinc-api.gemspec +1 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84d6bd56e23d2c6f87a1818cbe139ef4b44fa537
|
4
|
+
data.tar.gz: d5de094f8c5f615f32f5f9631633b5e4cdbbced8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a2f2ddadb61d4181825679d1b8bde7ec61e1924265c643ceb84d69c316efb794e0ce97d763b7a7ccac00ad284880be05b69c5b01efc6aee0bf5c845bcd50ff6
|
7
|
+
data.tar.gz: f0ab482b4768f4e13bdddaed0280c1fde8221a99f73cd32299fc44f42283f5864fab507bd37bb5ef9b3469e7faa42ffadd56421cc3affd49d2618376c23eebf5
|
@@ -1,27 +1,25 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'bundler/setup'
|
4
|
-
require 'rest-client'
|
5
4
|
require 'zinc'
|
5
|
+
require 'awesome_print'
|
6
|
+
require 'pry'
|
6
7
|
|
7
8
|
begin
|
8
9
|
Zinc.api_path = File.read('/tmp/.zinc-api-path').chomp
|
9
10
|
puts "Zinc.api_path: #{Zinc.api_path}"
|
10
11
|
rescue Errno::ENOENT
|
11
|
-
puts "No
|
12
|
+
puts "No /tmp/.zinc-api-path file, using default: #{Zinc.api_path}"
|
12
13
|
end
|
13
14
|
|
14
15
|
begin
|
15
16
|
Zinc.access_token = File.read('/tmp/.zinc-access-token').chomp
|
16
17
|
puts "Zinc.access_token: #{Zinc.access_token}"
|
17
18
|
rescue Errno::ENOENT
|
18
|
-
puts "No
|
19
|
+
puts "No /tmp/.zinc-access-token file - you'll have to set Zinc.access_token manually from the console."
|
19
20
|
end
|
20
21
|
|
21
22
|
Zinc.logger.level = Logger::DEBUG
|
22
23
|
|
23
|
-
require 'awesome_print'
|
24
|
-
require 'pry'
|
25
|
-
|
26
24
|
AwesomePrint.pry!
|
27
25
|
Pry.start
|
data/zinc-api.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# gem push zinc-api-{VERSION}.gem
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'zinc-api'
|
8
|
-
s.version = '0.0.
|
8
|
+
s.version = '0.0.4'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.licenses = ['MIT']
|
11
11
|
s.authors = ['Chris Estreich']
|
@@ -22,6 +22,5 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.files = `git ls-files`.split("\n")
|
24
24
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
25
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
26
25
|
s.require_paths = ['lib']
|
27
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zinc-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Estreich
|
@@ -27,8 +27,7 @@ dependencies:
|
|
27
27
|
description: Ruby bindings for the Zinc API.
|
28
28
|
email:
|
29
29
|
- chris@tophatter.com
|
30
|
-
executables:
|
31
|
-
- zinc-api-console
|
30
|
+
executables: []
|
32
31
|
extensions: []
|
33
32
|
extra_rdoc_files:
|
34
33
|
- README.md
|
@@ -42,7 +41,7 @@ files:
|
|
42
41
|
- LICENSE.md
|
43
42
|
- README.md
|
44
43
|
- Rakefile
|
45
|
-
- bin/
|
44
|
+
- bin/console
|
46
45
|
- lib/zinc.rb
|
47
46
|
- lib/zinc/account_status.rb
|
48
47
|
- lib/zinc/address.rb
|