pivotcli 0.0.1 → 0.0.2

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 CHANGED
@@ -7,7 +7,11 @@ CLI for Pivotal Tracker
7
7
  Examples
8
8
  --------
9
9
 
10
- `pivotcli -s started -p your_project -o 'Your Name' -t 'token' `
10
+ Add this to your ~/.pivotcli.yml
11
+
12
+ token: 'your-pivotal-token'
13
+
14
+ pivotcli -s started -p your_project -o 'Your Name' -t 'token'
11
15
 
12
16
  Requirements
13
17
  ------------
@@ -20,6 +24,12 @@ Install
20
24
 
21
25
  * gem install pivotcli
22
26
 
27
+ TODO
28
+ -------
29
+
30
+ * Include full support for other `pivotal_tracker` features
31
+ * Add testing
32
+
23
33
  Author
24
34
  ------
25
35
 
@@ -10,6 +10,10 @@ class Runner
10
10
  @state = options[:state]
11
11
  @token = options[:token]
12
12
 
13
+ if @token.nil?
14
+ load_config
15
+ end
16
+
13
17
  @pt_client = PivotalTracker::Client.token = @token
14
18
 
15
19
  @projects = PivotalTracker::Project.all
@@ -30,4 +34,11 @@ class Runner
30
34
  end
31
35
  end
32
36
 
37
+ private
38
+
39
+ def load_config
40
+ config = YAML.load_file("#{ENV['HOME']}/.pivotcli.yml")
41
+ @token = config['token']
42
+ end
43
+
33
44
  end
data/pivotcli.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pivotcli}
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Julius F"]
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.email = %q{baldrailers@gmail.com}
13
13
  s.executables = ["pivotcli"]
14
14
  s.extra_rdoc_files = ["History.txt", "bin/pivotcli"]
15
- s.files = ["History.txt", "README.md", "Rakefile", "bin/pivotcli", "lib/pivotcli.rb", "lib/pivotcli/runner.rb", "spec/pivotcli_spec.rb", "spec/spec_helper.rb", "test/test_pivotcli.rb", "version.txt"]
15
+ s.files = ["History.txt", "README.md", "Rakefile", "bin/pivotcli", "lib/pivotcli.rb", "lib/pivotcli/runner.rb", "pivotcli.gemspec", "spec/pivotcli_spec.rb", "spec/spec_helper.rb", "test/test_pivotcli.rb", "version.txt"]
16
16
  s.homepage = %q{http://julius.weekendhack.in}
17
17
  s.rdoc_options = ["--main", "README.md"]
18
18
  s.require_paths = ["lib"]
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotcli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Julius F