pivotal 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -19,7 +19,7 @@ Or install it yourself as:
19
19
  ## Releasing
20
20
 
21
21
  $ gem install gem-release
22
- $ gem bump -trv patch
22
+ $ gem bump -trv (patch|minor|major)
23
23
 
24
24
  ## Usage
25
25
 
@@ -27,7 +27,7 @@ class Pivotal::Client < Cistern::Service
27
27
 
28
28
  raise "Missing token" unless @token
29
29
 
30
- @logger = options[:logger] || Logger.new(nil)
30
+ @logger = options[:logger] || (ENV["VERBOSE"] == "1" && Logger.new(STDOUT)) || Logger.new(nil)
31
31
  adapter = options[:adapter] || Faraday.default_adapter
32
32
  connection_options = options[:connection_options] || {ssl: {verify: false}}
33
33
 
@@ -23,7 +23,7 @@ class Pivotal::Logger < Faraday::Response::Middleware
23
23
  def on_complete(env)
24
24
  info('Status') { env[:status].to_s }
25
25
  debug('response') { dump_headers env[:response_headers] }
26
- #debug('response.body') { env[:body] }
26
+ debug('response.body') { env[:body] }
27
27
  end
28
28
 
29
29
  private
@@ -6,7 +6,7 @@ class Pivotal::Client::Iterations < Cistern::Collection
6
6
  def all(params={})
7
7
  response = connection.get_iterations(params.merge("project_id" => self.project_id))
8
8
 
9
- self.clone.load(response.body["iterations"])
9
+ self.clone.load(response.body["iterations"] || [])
10
10
  end
11
11
 
12
12
  def current
@@ -1,3 +1,3 @@
1
1
  module Pivotal
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,34 +1,40 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
4
  prerelease:
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Josh Lane & Thom Mahoney
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-13 00:00:00.000000000 Z
12
+ date: 2013-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cistern
16
- requirement: !ruby/object:Gem::Requirement
16
+ version_requirements: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.0.3
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
22
+ requirement: !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
27
25
  - - ~>
28
26
  - !ruby/object:Gem::Version
29
27
  version: 0.0.3
28
+ type: :runtime
29
+ prerelease: false
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: xml-simple
32
+ version_requirements: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
32
38
  requirement: !ruby/object:Gem::Requirement
33
39
  none: false
34
40
  requirements:
@@ -37,14 +43,14 @@ dependencies:
37
43
  version: '0'
38
44
  type: :runtime
39
45
  prerelease: false
46
+ - !ruby/object:Gem::Dependency
47
+ name: faraday
40
48
  version_requirements: !ruby/object:Gem::Requirement
41
49
  none: false
42
50
  requirements:
43
51
  - - ! '>='
44
52
  - !ruby/object:Gem::Version
45
53
  version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: faraday
48
54
  requirement: !ruby/object:Gem::Requirement
49
55
  none: false
50
56
  requirements:
@@ -53,14 +59,14 @@ dependencies:
53
59
  version: '0'
54
60
  type: :runtime
55
61
  prerelease: false
62
+ - !ruby/object:Gem::Dependency
63
+ name: faraday_middleware
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
65
  none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: faraday_middleware
64
70
  requirement: !ruby/object:Gem::Requirement
65
71
  none: false
66
72
  requirements:
@@ -69,14 +75,14 @@ dependencies:
69
75
  version: '0'
70
76
  type: :runtime
71
77
  prerelease: false
78
+ - !ruby/object:Gem::Dependency
79
+ name: multi_xml
72
80
  version_requirements: !ruby/object:Gem::Requirement
73
81
  none: false
74
82
  requirements:
75
83
  - - ! '>='
76
84
  - !ruby/object:Gem::Version
77
85
  version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: multi_xml
80
86
  requirement: !ruby/object:Gem::Requirement
81
87
  none: false
82
88
  requirements:
@@ -85,12 +91,6 @@ dependencies:
85
91
  version: '0'
86
92
  type: :runtime
87
93
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
94
  description: A client for Pivotal Tracker.
95
95
  email:
96
96
  - jlane@engineyard.com
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 1.8.24
145
+ rubygems_version: 1.8.25
146
146
  signing_key:
147
147
  specification_version: 3
148
148
  summary: A client for Pivotal Tracker using cistern and nokogiri.