gitmine 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/gitmine.gemspec +2 -2
  3. data/lib/gitmine/branch.rb +4 -4
  4. metadata +12 -12
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.15
1
+ 0.1.16
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.15"
8
+ s.version = "0.1.16"
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-03-25}
12
+ s.date = %q{2011-04-28}
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}
@@ -31,15 +31,15 @@ class Gitmine
31
31
  # ['123-my-branch', '1234-your-branch']
32
32
  # TODO specs
33
33
  def local_branches
34
- return @@local_branches if defined?(@@local_branches) && @@local_branches
35
34
  branches = []
35
+
36
36
  Git.local_branches.each_line do |line|
37
37
  if match = line[/\d+.*$/]
38
38
  branches << match
39
39
  end
40
40
  end
41
41
 
42
- @@local_branches = branches
42
+ branches
43
43
  end
44
44
 
45
45
  # Return an array of remote branches
@@ -80,7 +80,7 @@ class Gitmine
80
80
 
81
81
  class LocalBranch < Branch
82
82
  def name
83
- @name ||= Branch.find_local(issue_id)
83
+ Branch.find_local(issue_id)
84
84
  end
85
85
 
86
86
  def merge_to_master
@@ -93,7 +93,7 @@ class Gitmine
93
93
 
94
94
  class RemoteBranch < Branch
95
95
  def name
96
- @name ||= Branch.find_remote(issue_id)
96
+ Branch.find_remote(issue_id)
97
97
  end
98
98
 
99
99
  def delete
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: 5
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 15
10
- version: 0.1.15
9
+ - 16
10
+ version: 0.1.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Philippe Creux
@@ -15,10 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-25 00:00:00 -07:00
18
+ date: 2011-04-28 00:00:00 -07:00
19
19
  default_executable: gitmine
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :runtime
24
+ name: httparty
22
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
23
26
  none: false
24
27
  requirements:
@@ -31,10 +34,10 @@ dependencies:
31
34
  - 1
32
35
  version: 0.6.1
33
36
  requirement: *id001
37
+ - !ruby/object:Gem::Dependency
34
38
  prerelease: false
35
39
  type: :runtime
36
- name: httparty
37
- - !ruby/object:Gem::Dependency
40
+ name: grit
38
41
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
42
  none: false
40
43
  requirements:
@@ -47,10 +50,10 @@ dependencies:
47
50
  - 0
48
51
  version: 2.0.0
49
52
  requirement: *id002
50
- prerelease: false
51
- type: :runtime
52
- name: grit
53
53
  - !ruby/object:Gem::Dependency
54
+ prerelease: false
55
+ type: :development
56
+ name: rspec
54
57
  version_requirements: &id003 !ruby/object:Gem::Requirement
55
58
  none: false
56
59
  requirements:
@@ -63,9 +66,6 @@ dependencies:
63
66
  - 0
64
67
  version: 2.0.0
65
68
  requirement: *id003
66
- prerelease: false
67
- type: :development
68
- name: rspec
69
69
  description: Git log with status of associated redmine tickets
70
70
  email: pcreux@gmail.com
71
71
  executables: