pivotal 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pivotal
2
2
 
3
- TODO: Write a gem description
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 bump -trv patch
21
+ $ gem install gem-release
22
+ $ gem bump -trv patch
22
23
 
23
24
  ## Usage
24
25
 
25
- TODO: Write usage instructions here
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
 
@@ -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(STDOUT)
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
 
@@ -1,3 +1,3 @@
1
1
  module Pivotal
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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 00:00:00.000000000 Z
12
+ date: 2012-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cistern