pivotal 0.0.2 → 0.0.3
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.
- data/README.md +13 -3
- data/lib/pivotal/client.rb +2 -2
- data/lib/pivotal/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Pivotal
|
2
2
|
|
3
|
-
|
3
|
+
Pivotal Tracker API Client
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,11 +18,21 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Releasing
|
20
20
|
|
21
|
-
gem
|
21
|
+
$ gem install gem-release
|
22
|
+
$ gem bump -trv patch
|
22
23
|
|
23
24
|
## Usage
|
24
25
|
|
25
|
-
|
26
|
+
Token is either in ~/.pivotal or passed in as {token: "token"} to Pivotal::Client#new
|
27
|
+
|
28
|
+
```
|
29
|
+
client = Pivotal::Client.new(token: "token")
|
30
|
+
# => #<Pivotal::Client::Real:0x007f8313a1f598
|
31
|
+
project = client.projects.get(635517)
|
32
|
+
# => <Pivotal::Client::Project
|
33
|
+
current_iteration = project.iterations.current
|
34
|
+
# => <Pivotal::Client::Iteration
|
35
|
+
```
|
26
36
|
|
27
37
|
## Contributing
|
28
38
|
|
data/lib/pivotal/client.rb
CHANGED
@@ -17,7 +17,7 @@ class Pivotal::Client < Cistern::Service
|
|
17
17
|
|
18
18
|
model :story
|
19
19
|
|
20
|
-
recognizes :token, :url
|
20
|
+
recognizes :token, :url, :logger, :adapter, :connection_options
|
21
21
|
|
22
22
|
class Real
|
23
23
|
|
@@ -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(
|
30
|
+
@logger = options[:logger] || Logger.new(nil)
|
31
31
|
adapter = options[:adapter] || Faraday.default_adapter
|
32
32
|
connection_options = options[:connection_options] || {ssl: {verify: false}}
|
33
33
|
|
data/lib/pivotal/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pivotal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cistern
|