pivotalprinter 0.3.1 → 0.3.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.
@@ -1,3 +1,11 @@
1
+ === 0.3.2 2013-01-17
2
+
3
+ * Fix bug when any options were given, ooops!
4
+
5
+ === 0.3.1 2013-01-17
6
+
7
+ * Move story points a bit to the left.
8
+
1
9
  === 0.3.0 2013-01-07
2
10
 
3
11
  * Always show estimated points for all story types.
@@ -2,11 +2,11 @@ require 'trollop'
2
2
  require 'yaml'
3
3
  require 'prawn'
4
4
  require 'prawn/layout/grid'
5
-
5
+ 'optparse'
6
6
  module Pivotalprinter
7
7
  class Printer
8
8
  def run(argv)
9
- argv = argv.dup
9
+ @argv = argv.dup
10
10
  opts = parse_options
11
11
  yaml = load_yaml_config
12
12
  project, token = extract_config(opts, yaml)
@@ -14,10 +14,10 @@ module Pivotalprinter
14
14
  Pivotalprinter::Client.token = token
15
15
  @project_name = (Client.get("/projects/#{project}") / 'project/name').text
16
16
  @stories =
17
- case argv.last
17
+ case @argv.last
18
18
  when "done" then Pivotalprinter::Iteration.open('done').stories
19
19
  when "backlog" then Pivotalprinter::Iteration.open('backlog').stories
20
- when /^\d+$/ then Pivotalprinter::Story.open(argv.map(&:to_i))
20
+ when /\A\d+\z/ then Pivotalprinter::Story.open(@argv.map(&:to_i))
21
21
  else Pivotalprinter::Iteration.open('current').stories
22
22
  end
23
23
  generate_output
@@ -46,7 +46,7 @@ CONFIG
46
46
  end
47
47
 
48
48
  def parse_options
49
- opts = Trollop::options do
49
+ opts = Trollop::options(@argv) do
50
50
  version "pivotalprinter #{Pivotalprinter::VERSION} (c) 2010#{(year = Time.now.year) > 2010 ? "-#{year}" : ''} pkw.de"
51
51
  banner <<-EOS
52
52
  Pivotalprinter is an awesome program to print stories from the PivotalTracker.
@@ -1,3 +1,3 @@
1
1
  module Pivotalprinter
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotalprinter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor
@@ -170,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: 2134055082492674018
173
+ hash: 1689315769707598088
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  none: false
176
176
  requirements:
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: 2134055082492674018
182
+ hash: 1689315769707598088
183
183
  requirements: []
184
184
  rubyforge_project:
185
185
  rubygems_version: 1.8.24