fireman 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
1
  = fireman
2
2
 
3
- Description goes here.
3
+ == Usage
4
+
5
+ git log origin/rc..master --oneline | fireman
4
6
 
5
7
  == Note on Patches/Pull Requests
6
8
 
data/Rakefile CHANGED
@@ -5,29 +5,37 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "fireman"
8
- gem.summary = 'github and tracker'
9
- gem.description = 'github and tracker'
8
+ gem.summary = 'make pivotal tracker and git more awesome'
9
+ gem.description = 'make pivotal tracker and git more awesome!'
10
10
  gem.email = "rit@quietdynamite.com"
11
11
  gem.homepage = "http://github.com/rit/fireman"
12
12
  gem.authors = ["Rit Li"]
13
- gem.add_development_dependency "rspec", ">= 1.2.9"
14
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
+ gem.add_dependency 'activeresource', '>= 2.3.5'
14
+ gem.add_development_dependency "bacon", ">= 0"
15
15
  end
16
16
  Jeweler::GemcutterTasks.new
17
17
  rescue LoadError
18
18
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
19
19
  end
20
20
 
21
- require 'spec/rake/spectask'
22
- Spec::Rake::SpecTask.new(:spec) do |spec|
21
+ require 'rake/testtask'
22
+ Rake::TestTask.new(:spec) do |spec|
23
23
  spec.libs << 'lib' << 'spec'
24
- spec.spec_files = FileList['spec/**/*_spec.rb']
24
+ spec.pattern = 'spec/**/*_spec.rb'
25
+ spec.verbose = true
25
26
  end
26
27
 
27
- Spec::Rake::SpecTask.new(:rcov) do |spec|
28
- spec.libs << 'lib' << 'spec'
29
- spec.pattern = 'spec/**/*_spec.rb'
30
- spec.rcov = true
28
+ begin
29
+ require 'rcov/rcovtask'
30
+ Rcov::RcovTask.new do |spec|
31
+ spec.libs << 'spec'
32
+ spec.pattern = 'spec/**/*_spec.rb'
33
+ spec.verbose = true
34
+ end
35
+ rescue LoadError
36
+ task :rcov do
37
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
38
+ end
31
39
  end
32
40
 
33
41
  task :spec => :check_dependencies
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.1.0
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'active_resource'
5
+ require 'yaml'
6
+
7
+ OPTIONS = YAML::load(File.read('.fireman.yml'))
8
+
9
+ TOKEN = OPTIONS['pivotal_tracker']['token']
10
+ PROJECT = OPTIONS['pivotal_tracker']['project_id']
11
+
12
+ class Story < ActiveResource::Base
13
+ self.site = "https://www.pivotaltracker.com/services/v3/projects/#{PROJECT}"
14
+ headers['X-TrackerToken'] = TOKEN
15
+ end
16
+
17
+ story_ids = []
18
+ while gets
19
+ if $_.match /(\d+)\]$/
20
+ story_ids << $~[1].to_i
21
+ end
22
+ end
23
+
24
+ outputs = []
25
+ story_ids.uniq.each do |id|
26
+ story = Story.find(id, :params => { :project_id => PROJECT })
27
+ outputs << '================================================================================'
28
+ outputs << "##{story.id} - #{story.name}"
29
+ outputs << '================================================================================'
30
+ if story.description
31
+ outputs << story.description
32
+ else
33
+ outputs << "No description"
34
+ end
35
+ outputs << "\n\n"
36
+ end
37
+
38
+ puts outputs.join "\n"
@@ -5,13 +5,15 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fireman}
8
- s.version = "0.0.0"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rit Li"]
12
- s.date = %q{2010-10-14}
13
- s.description = %q{github and tracker}
12
+ s.date = %q{2010-10-19}
13
+ s.default_executable = %q{fireman}
14
+ s.description = %q{make pivotal tracker and git more awesome!}
14
15
  s.email = %q{rit@quietdynamite.com}
16
+ s.executables = ["fireman"]
15
17
  s.extra_rdoc_files = [
16
18
  "LICENSE",
17
19
  "README.rdoc"
@@ -23,17 +25,17 @@ Gem::Specification.new do |s|
23
25
  "README.rdoc",
24
26
  "Rakefile",
25
27
  "VERSION",
28
+ "bin/fireman",
26
29
  "fireman.gemspec",
27
30
  "lib/fireman.rb",
28
31
  "spec/fireman_spec.rb",
29
- "spec/spec.opts",
30
32
  "spec/spec_helper.rb"
31
33
  ]
32
34
  s.homepage = %q{http://github.com/rit/fireman}
33
35
  s.rdoc_options = ["--charset=UTF-8"]
34
36
  s.require_paths = ["lib"]
35
37
  s.rubygems_version = %q{1.3.7}
36
- s.summary = %q{github and tracker}
38
+ s.summary = %q{make pivotal tracker and git more awesome}
37
39
  s.test_files = [
38
40
  "spec/fireman_spec.rb",
39
41
  "spec/spec_helper.rb"
@@ -44,12 +46,15 @@ Gem::Specification.new do |s|
44
46
  s.specification_version = 3
45
47
 
46
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
49
+ s.add_runtime_dependency(%q<activeresource>, [">= 2.3.5"])
50
+ s.add_development_dependency(%q<bacon>, [">= 0"])
48
51
  else
49
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
52
+ s.add_dependency(%q<activeresource>, [">= 2.3.5"])
53
+ s.add_dependency(%q<bacon>, [">= 0"])
50
54
  end
51
55
  else
52
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
56
+ s.add_dependency(%q<activeresource>, [">= 2.3.5"])
57
+ s.add_dependency(%q<bacon>, [">= 0"])
53
58
  end
54
59
  end
55
60
 
@@ -1,7 +1,5 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "Fireman" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
6
- end
4
+ it "should have specs"
7
5
  end
@@ -1,9 +1,8 @@
1
+ require 'rubygems'
2
+ require 'bacon'
3
+
1
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
5
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
6
  require 'fireman'
4
- require 'spec'
5
- require 'spec/autorun'
6
7
 
7
- Spec::Runner.configure do |config|
8
-
9
- end
8
+ Bacon.summary_on_exit
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fireman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 0.0.0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rit Li
@@ -15,29 +15,43 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-14 00:00:00 -07:00
19
- default_executable:
18
+ date: 2010-10-19 00:00:00 -07:00
19
+ default_executable: fireman
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rspec
22
+ name: activeresource
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 13
29
+ hash: 9
30
30
  segments:
31
- - 1
32
31
  - 2
33
- - 9
34
- version: 1.2.9
35
- type: :development
32
+ - 3
33
+ - 5
34
+ version: 2.3.5
35
+ type: :runtime
36
36
  version_requirements: *id001
37
- description: github and tracker
37
+ - !ruby/object:Gem::Dependency
38
+ name: bacon
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ description: make pivotal tracker and git more awesome!
38
52
  email: rit@quietdynamite.com
39
- executables: []
40
-
53
+ executables:
54
+ - fireman
41
55
  extensions: []
42
56
 
43
57
  extra_rdoc_files:
@@ -50,10 +64,10 @@ files:
50
64
  - README.rdoc
51
65
  - Rakefile
52
66
  - VERSION
67
+ - bin/fireman
53
68
  - fireman.gemspec
54
69
  - lib/fireman.rb
55
70
  - spec/fireman_spec.rb
56
- - spec/spec.opts
57
71
  - spec/spec_helper.rb
58
72
  has_rdoc: true
59
73
  homepage: http://github.com/rit/fireman
@@ -88,7 +102,7 @@ rubyforge_project:
88
102
  rubygems_version: 1.3.7
89
103
  signing_key:
90
104
  specification_version: 3
91
- summary: github and tracker
105
+ summary: make pivotal tracker and git more awesome
92
106
  test_files:
93
107
  - spec/fireman_spec.rb
94
108
  - spec/spec_helper.rb
@@ -1 +0,0 @@
1
- --color