zinc-api 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc4683458248f747896e389ca3c8ecdbd3c89c29
4
- data.tar.gz: 2d714380df25ae3ebe8de4d7cb35886aec6482ce
3
+ metadata.gz: 84d6bd56e23d2c6f87a1818cbe139ef4b44fa537
4
+ data.tar.gz: d5de094f8c5f615f32f5f9631633b5e4cdbbced8
5
5
  SHA512:
6
- metadata.gz: e69b5eac2cde9b3aa6a9d6f9b8e1064b45943d123b6e60a37758001d99ef047968920dc4cff3cf4ecdb26c46573439a6631fa6cd39f0410584621c15ce566768
7
- data.tar.gz: 6f1bab79dd88e31322afc901075ac2ff17a5be53986bc3023ba4e2e6351a7ad6b5d59638122a3d2859455c6e4175469d07706b17f3e0153f3e90185d8577fc58
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 .api_path file, using default: #{Zinc.api_path}"
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 .access_token file - you'll have to set Zinc.access_token manually from the console."
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
@@ -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.3'
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.3
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/zinc-api-console
44
+ - bin/console
46
45
  - lib/zinc.rb
47
46
  - lib/zinc/account_status.rb
48
47
  - lib/zinc/address.rb