bixby-client 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'bixby-common', :git => "https://github.com/chetan/bixby-common.git"
3
+ gem 'bixby-common'
4
+ # gem 'bixby-common', :path => '../common'
4
5
 
5
6
  gem "api-auth", :git => "https://github.com/chetan/api_auth.git", :branch => "non_rails"
6
7
 
@@ -25,7 +26,7 @@ group :development do
25
26
 
26
27
  gem "simplecov", :platforms => [:mri_19, :rbx], :git => "https://github.com/chetan/simplecov.git", :branch => "inline_nocov"
27
28
 
28
- gem "minitest", :platforms => [:mri_19, :rbx]
29
+ gem "minitest", "~> 4.7", :platforms => [:mri_19, :rbx]
29
30
  gem "webmock", :require => false
30
31
  gem "mocha", :require => false
31
32
 
@@ -5,15 +5,6 @@ GIT
5
5
  specs:
6
6
  api-auth (1.0.1)
7
7
 
8
- GIT
9
- remote: https://github.com/chetan/bixby-common.git
10
- revision: 12f17a058e8ca12b824bd0dacd95f14a26f7f23d
11
- specs:
12
- bixby-common (0.3.9)
13
- httpi
14
- logging
15
- multi_json
16
-
17
8
  GIT
18
9
  remote: https://github.com/chetan/httpi.git
19
10
  revision: f6e49303fee6778c714bcc556fa5f9247bc3a3f3
@@ -44,7 +35,7 @@ GIT
44
35
 
45
36
  GIT
46
37
  remote: https://github.com/chetan/test_guard.git
47
- revision: ad59542db1fca57018dd771d19b1d636252e4c98
38
+ revision: 688e95add05479ed734ec82981edd40b390e4ab4
48
39
  specs:
49
40
  test_guard (0.2.0)
50
41
  awesome_print
@@ -60,36 +51,43 @@ GIT
60
51
  GEM
61
52
  remote: https://rubygems.org/
62
53
  specs:
63
- addressable (2.3.3)
54
+ addressable (2.3.4)
64
55
  ansi (1.4.3)
65
56
  awesome_print (1.1.0)
57
+ bixby-common (0.3.10)
58
+ httpi
59
+ logging
60
+ multi_json
66
61
  coderay (1.0.9)
67
62
  colorize (0.5.8)
68
63
  columnize (0.3.6)
69
64
  crack (0.3.2)
70
65
  curb (0.8.3)
71
- debugger (1.5.0)
66
+ debugger (1.6.0)
72
67
  columnize (>= 0.3.1)
73
68
  debugger-linecache (~> 1.2.0)
74
- debugger-ruby_core_source (~> 1.2.0)
69
+ debugger-ruby_core_source (~> 1.2.1)
75
70
  debugger-linecache (1.2.0)
76
71
  debugger-pry (0.1.1)
77
72
  debugger (~> 1)
78
73
  pry (>= 0.9.9)
79
- debugger-ruby_core_source (1.2.0)
80
- ffi (1.6.0)
74
+ debugger-ruby_core_source (1.2.2)
75
+ ffi (1.8.1)
81
76
  formatador (0.2.4)
82
77
  git (1.2.5)
83
78
  growl (1.0.3)
84
- guard (1.7.0)
79
+ guard (1.8.0)
85
80
  formatador (>= 0.2.4)
86
- listen (>= 0.6.0)
81
+ listen (>= 1.0.0)
87
82
  lumberjack (>= 1.0.2)
88
83
  pry (>= 0.9.10)
89
84
  thor (>= 0.14.6)
90
85
  hirb (0.7.1)
91
- json (1.7.7)
92
- listen (0.7.3)
86
+ json (1.8.0)
87
+ listen (1.1.2)
88
+ rb-fsevent (>= 0.9.3)
89
+ rb-inotify (>= 0.9)
90
+ rb-kqueue (>= 0.2)
93
91
  little-plugger (1.1.3)
94
92
  logging (1.8.1)
95
93
  little-plugger (>= 1.1.3)
@@ -97,13 +95,13 @@ GEM
97
95
  lumberjack (1.0.3)
98
96
  metaclass (0.0.1)
99
97
  method_source (0.8.1)
100
- minitest (4.7.0)
98
+ minitest (4.7.4)
101
99
  mixlib-shellout (1.1.0)
102
- mocha (0.13.3)
100
+ mocha (0.14.0)
103
101
  metaclass (~> 0.0.1)
104
- multi_json (1.7.2)
105
- oj (2.0.10)
106
- pry (0.9.12)
102
+ multi_json (1.7.3)
103
+ oj (2.0.12)
104
+ pry (0.9.12.2)
107
105
  coderay (~> 1.0.5)
108
106
  method_source (~> 0.8)
109
107
  slop (~> 3.4)
@@ -114,6 +112,8 @@ GEM
114
112
  rb-fsevent (0.9.3)
115
113
  rb-inotify (0.9.0)
116
114
  ffi (>= 0.5.0)
115
+ rb-kqueue (0.2.0)
116
+ ffi (>= 0.5.0)
117
117
  rdoc (4.0.1)
118
118
  json (~> 1.4)
119
119
  redcarpet (2.2.2)
@@ -124,28 +124,28 @@ GEM
124
124
  simplecov-html (0.7.1)
125
125
  single_test (0.5.2)
126
126
  rake (> 0.9)
127
- slop (3.4.4)
127
+ slop (3.4.5)
128
128
  thor (0.18.1)
129
129
  turn (0.9.6)
130
130
  ansi
131
131
  webmock (1.11.0)
132
132
  addressable (>= 2.2.7)
133
133
  crack (>= 0.3.2)
134
- yard (0.8.5.2)
134
+ yard (0.8.6.1)
135
135
 
136
136
  PLATFORMS
137
137
  ruby
138
138
 
139
139
  DEPENDENCIES
140
140
  api-auth!
141
- bixby-common!
141
+ bixby-common
142
142
  bundler
143
143
  curb
144
144
  debugger
145
145
  debugger-pry
146
146
  httpi!
147
147
  jeweler!
148
- minitest
148
+ minitest (~> 4.7)
149
149
  mixlib-shellout
150
150
  mocha
151
151
  multi_json
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bixby-client"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chetan Sarva"]
12
- s.date = "2013-04-12"
12
+ s.date = "2013-05-18"
13
13
  s.description = "Bixby Client"
14
14
  s.email = "chetan@pixelcop.net"
15
15
  s.executables = ["bixby"]
@@ -75,7 +75,7 @@ Gem::Specification.new do |s|
75
75
  s.add_development_dependency(%q<debugger>, [">= 0"])
76
76
  s.add_development_dependency(%q<debugger-pry>, [">= 0"])
77
77
  s.add_development_dependency(%q<simplecov>, [">= 0"])
78
- s.add_development_dependency(%q<minitest>, [">= 0"])
78
+ s.add_development_dependency(%q<minitest>, ["~> 4.7"])
79
79
  s.add_development_dependency(%q<webmock>, [">= 0"])
80
80
  s.add_development_dependency(%q<mocha>, [">= 0"])
81
81
  s.add_development_dependency(%q<test_guard>, [">= 0"])
@@ -98,7 +98,7 @@ Gem::Specification.new do |s|
98
98
  s.add_dependency(%q<debugger>, [">= 0"])
99
99
  s.add_dependency(%q<debugger-pry>, [">= 0"])
100
100
  s.add_dependency(%q<simplecov>, [">= 0"])
101
- s.add_dependency(%q<minitest>, [">= 0"])
101
+ s.add_dependency(%q<minitest>, ["~> 4.7"])
102
102
  s.add_dependency(%q<webmock>, [">= 0"])
103
103
  s.add_dependency(%q<mocha>, [">= 0"])
104
104
  s.add_dependency(%q<test_guard>, [">= 0"])
@@ -122,7 +122,7 @@ Gem::Specification.new do |s|
122
122
  s.add_dependency(%q<debugger>, [">= 0"])
123
123
  s.add_dependency(%q<debugger-pry>, [">= 0"])
124
124
  s.add_dependency(%q<simplecov>, [">= 0"])
125
- s.add_dependency(%q<minitest>, [">= 0"])
125
+ s.add_dependency(%q<minitest>, ["~> 4.7"])
126
126
  s.add_dependency(%q<webmock>, [">= 0"])
127
127
  s.add_dependency(%q<mocha>, [">= 0"])
128
128
  s.add_dependency(%q<test_guard>, [">= 0"])
@@ -8,6 +8,8 @@ module Bixby
8
8
  # Implements the Bixby client API
9
9
  class Client
10
10
 
11
+ include Bixby::Log
12
+
11
13
  # Create a new Client
12
14
  #
13
15
  # @param [String] access_key
@@ -2,6 +2,8 @@
2
2
  module Bixby
3
3
  module Repository
4
4
 
5
+ extend Bixby::Log
6
+
5
7
  # Retrieve a file listing for the given Bundle
6
8
  #
7
9
  # @param [CommandSpec] cmd CommandSpec representing the Bundle to list
@@ -10,6 +12,7 @@ module Bixby
10
12
  # * file [String] Relative path of file
11
13
  # * digest [String] SHA256 digest of file
12
14
  def self.list_files(cmd)
15
+ debug { "listing files for bundle: #{cmd.bundle}"}
13
16
  req = JsonRequest.new("provisioning:list_files", cmd.to_hash)
14
17
  res = Bixby.client.exec_api(req)
15
18
  return res.data
@@ -36,7 +39,12 @@ module Bixby
36
39
  fetch = true
37
40
  end
38
41
 
39
- next if not fetch
42
+ if not fetch then
43
+ debug { "skipping: #{f}" }
44
+ next
45
+ end
46
+
47
+ debug { "fetching: #{f}"}
40
48
 
41
49
  params = cmd.to_hash
42
50
  params.delete(:digest)
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: bixby-client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chetan Sarva
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-12 00:00:00.000000000 Z
12
+ date: 2013-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bixby-common
@@ -256,16 +256,16 @@ dependencies:
256
256
  prerelease: false
257
257
  requirement: !ruby/object:Gem::Requirement
258
258
  requirements:
259
- - - ! '>='
259
+ - - ~>
260
260
  - !ruby/object:Gem::Version
261
- version: '0'
261
+ version: '4.7'
262
262
  none: false
263
263
  type: :development
264
264
  version_requirements: !ruby/object:Gem::Requirement
265
265
  requirements:
266
- - - ! '>='
266
+ - - ~>
267
267
  - !ruby/object:Gem::Version
268
- version: '0'
268
+ version: '4.7'
269
269
  none: false
270
270
  - !ruby/object:Gem::Dependency
271
271
  name: webmock
@@ -414,7 +414,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
414
414
  requirements:
415
415
  - - ! '>='
416
416
  - !ruby/object:Gem::Version
417
- hash: 1881729864804391072
417
+ hash: 2781444639911655991
418
418
  segments:
419
419
  - 0
420
420
  version: '0'