gitmine 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,5 +1,8 @@
1
+ source "http://rubygems.org"
2
+
1
3
  gem 'httparty', '0.6.1'
2
4
  gem 'grit', '2.0.0'
3
5
 
4
- # Test env
5
- gem 'rspec', '2.0.0'
6
+ group :development do
7
+ gem 'rspec', '>=2.0.0'
8
+ end
data/Rakefile CHANGED
@@ -12,10 +12,6 @@ begin
12
12
  gem.authors = ["Philippe Creux"]
13
13
  gem.default_executable = "gitmine"
14
14
  gem.executables = ["gitmine"]
15
- gem.add_dependency "httparty"
16
- gem.add_dependency "grit"
17
- gem.add_development_dependency "rspec", "2.0.0"
18
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
15
  end
20
16
  Jeweler::GemcutterTasks.new
21
17
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.11
1
+ 0.1.12
data/gitmine.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gitmine}
8
- s.version = "0.1.11"
8
+ s.version = "0.1.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Philippe Creux"]
12
- s.date = %q{2011-02-14}
12
+ s.date = %q{2011-02-25}
13
13
  s.default_executable = %q{gitmine}
14
14
  s.description = %q{Git log with status of associated redmine tickets}
15
15
  s.email = %q{pcreux@gmail.com}
@@ -69,25 +69,16 @@ Gem::Specification.new do |s|
69
69
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
70
70
  s.add_runtime_dependency(%q<httparty>, ["= 0.6.1"])
71
71
  s.add_runtime_dependency(%q<grit>, ["= 2.0.0"])
72
- s.add_runtime_dependency(%q<rspec>, ["= 2.0.0"])
73
- s.add_runtime_dependency(%q<httparty>, [">= 0"])
74
- s.add_runtime_dependency(%q<grit>, [">= 0"])
75
- s.add_development_dependency(%q<rspec>, ["= 2.0.0"])
72
+ s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
76
73
  else
77
74
  s.add_dependency(%q<httparty>, ["= 0.6.1"])
78
75
  s.add_dependency(%q<grit>, ["= 2.0.0"])
79
- s.add_dependency(%q<rspec>, ["= 2.0.0"])
80
- s.add_dependency(%q<httparty>, [">= 0"])
81
- s.add_dependency(%q<grit>, [">= 0"])
82
- s.add_dependency(%q<rspec>, ["= 2.0.0"])
76
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
83
77
  end
84
78
  else
85
79
  s.add_dependency(%q<httparty>, ["= 0.6.1"])
86
80
  s.add_dependency(%q<grit>, ["= 2.0.0"])
87
- s.add_dependency(%q<rspec>, ["= 2.0.0"])
88
- s.add_dependency(%q<httparty>, [">= 0"])
89
- s.add_dependency(%q<grit>, [">= 0"])
90
- s.add_dependency(%q<rspec>, ["= 2.0.0"])
81
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
91
82
  end
92
83
  end
93
84
 
data/lib/gitmine/git.rb CHANGED
@@ -27,6 +27,10 @@ class Gitmine::Git
27
27
  run_cmd("git push")
28
28
  end
29
29
 
30
+ def pull
31
+ run_cmd("git pull")
32
+ end
33
+
30
34
  def delete_remote_branch(branch)
31
35
  run_cmd("git push origin :#{branch}")
32
36
  end
data/lib/gitmine.rb CHANGED
@@ -81,6 +81,10 @@ class Gitmine
81
81
 
82
82
  # TODO specs
83
83
  def self.reviewed(issue_id)
84
+ checkout(issue_id)
85
+ # Make sure we get the latest commits
86
+ Git.pull
87
+
84
88
  issue = Issue.find(issue_id)
85
89
 
86
90
  puts yellow("Merge #{issue_id} to master and push")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitmine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 11
10
- version: 0.1.11
9
+ - 12
10
+ version: 0.1.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Philippe Creux
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-14 00:00:00 -08:00
18
+ date: 2011-02-25 00:00:00 -08:00
19
19
  default_executable: gitmine
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -52,56 +52,12 @@ dependencies:
52
52
  requirement: *id002
53
53
  - !ruby/object:Gem::Dependency
54
54
  prerelease: false
55
- type: :runtime
55
+ type: :development
56
56
  name: rspec
57
57
  version_requirements: &id003 !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - "="
61
- - !ruby/object:Gem::Version
62
- hash: 15
63
- segments:
64
- - 2
65
- - 0
66
- - 0
67
- version: 2.0.0
68
- requirement: *id003
69
- - !ruby/object:Gem::Dependency
70
- prerelease: false
71
- type: :runtime
72
- name: httparty
73
- version_requirements: &id004 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
82
- requirement: *id004
83
- - !ruby/object:Gem::Dependency
84
- prerelease: false
85
- type: :runtime
86
- name: grit
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
88
58
  none: false
89
59
  requirements:
90
60
  - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 3
93
- segments:
94
- - 0
95
- version: "0"
96
- requirement: *id005
97
- - !ruby/object:Gem::Dependency
98
- prerelease: false
99
- type: :development
100
- name: rspec
101
- version_requirements: &id006 !ruby/object:Gem::Requirement
102
- none: false
103
- requirements:
104
- - - "="
105
61
  - !ruby/object:Gem::Version
106
62
  hash: 15
107
63
  segments:
@@ -109,7 +65,7 @@ dependencies:
109
65
  - 0
110
66
  - 0
111
67
  version: 2.0.0
112
- requirement: *id006
68
+ requirement: *id003
113
69
  description: Git log with status of associated redmine tickets
114
70
  email: pcreux@gmail.com
115
71
  executables: