right_git 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6060a32522b3f9983de8c6e66290e28a3f0ff883
4
+ data.tar.gz: 72b6679ef1fc9e57c1bd99ad1fa5a01ac58f9456
5
+ SHA512:
6
+ metadata.gz: 5f994c2e443278716b2341e79ee9d03c17b1df2b3f7f5ef2a1a806603b1576aee1b16a3fd22d1d9b3e8fb8da6007c57d18dfe0fc46f613c11e77b76d725c2ffc
7
+ data.tar.gz: fc896ba323027a2d8993f36119f4f2acb2e2fcf221c7ca1cab2e5e00548dc1fa2499bc7b4f9011fa59dd00c76273be814a9a7ad843d5cb28a58ae2ee4fba2c31
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -37,10 +37,13 @@ module RightGit::Git
37
37
  # The output of 'git symbolic-ref' when the HEAD ref is not on any branch.
38
38
  NO_HEAD_REF = /^HEAD is not a symbolic ref$/
39
39
 
40
- # The output of the 'git branch' command when the HEAD ref is not on any branch.
41
- # This is not useful to RightGit, so we must filter it out of Git's output when
42
- # we see it.
43
- NO_BRANCH = '* (no branch)'
40
+ # The output of the 'git branch' command when the HEAD ref is not on any
41
+ # branch or in a detached HEAD state (e.g. "* (detached from v1.0)") when
42
+ # pointing to a tag or the repo has no branches ("* (no branch)").
43
+ #
44
+ # This is not useful to RightGit, so we must filter it out of Git's output
45
+ # when we see it.
46
+ NOT_A_BRANCH = /^\* \(.*\)$/
44
47
 
45
48
  # Create a new BranchCollection. Don't pass in a branches parameter unless you really know
46
49
  # what you're doing; it's intended more for internal use than anything else.
@@ -61,7 +64,7 @@ module RightGit::Git
61
64
  @repo.git_output(git_args).lines.each do |line|
62
65
  line.strip!
63
66
 
64
- if line == NO_BRANCH
67
+ if line =~ NOT_A_BRANCH
65
68
  #no-op; ignore this one
66
69
  else
67
70
  @branches << Branch.new(@repo, line)
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: right_git 1.0.1 ruby lib
5
+ # stub: right_git 1.0.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "right_git"
9
- s.version = "1.0.1"
9
+ s.version = "1.0.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Tony Spataro", "Scott Messier"]
14
- s.date = "2014-08-20"
14
+ s.date = "2015-01-07"
15
15
  s.description = "An assortment of git-related classes created by RightScale."
16
16
  s.email = "support@rightscale.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tony Spataro
@@ -10,102 +9,90 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2014-08-22 00:00:00.000000000 Z
12
+ date: 2015-01-07 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: right_support
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: 2.8.10
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: 2.8.10
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rake
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: 0.8.7
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: 0.8.7
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: jeweler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ~>
46
+ - - "~>"
53
47
  - !ruby/object:Gem::Version
54
48
  version: '2.0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ~>
53
+ - - "~>"
61
54
  - !ruby/object:Gem::Version
62
55
  version: '2.0'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: debugger
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - ">="
69
61
  - !ruby/object:Gem::Version
70
62
  version: 1.6.6
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - ">="
77
68
  - !ruby/object:Gem::Version
78
69
  version: 1.6.6
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: pry
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - ">="
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - ">="
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: pry-byebug
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - ">="
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - ">="
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  description: An assortment of git-related classes created by RightScale.
@@ -116,7 +103,7 @@ extra_rdoc_files:
116
103
  - LICENSE
117
104
  - README.rdoc
118
105
  files:
119
- - .rspec
106
+ - ".rspec"
120
107
  - CHANGELOG.rdoc
121
108
  - LICENSE
122
109
  - README.rdoc
@@ -137,29 +124,25 @@ files:
137
124
  homepage: https://github.com/rightscale/right_git
138
125
  licenses:
139
126
  - MIT
127
+ metadata: {}
140
128
  post_install_message:
141
129
  rdoc_options: []
142
130
  require_paths:
143
131
  - lib
144
132
  required_ruby_version: !ruby/object:Gem::Requirement
145
- none: false
146
133
  requirements:
147
- - - ! '>='
134
+ - - ">="
148
135
  - !ruby/object:Gem::Version
149
136
  version: '0'
150
- segments:
151
- - 0
152
- hash: 3982530629756792101
153
137
  required_rubygems_version: !ruby/object:Gem::Requirement
154
- none: false
155
138
  requirements:
156
- - - ! '>='
139
+ - - ">="
157
140
  - !ruby/object:Gem::Version
158
141
  version: '0'
159
142
  requirements: []
160
143
  rubyforge_project:
161
- rubygems_version: 1.8.26
144
+ rubygems_version: 2.2.2
162
145
  signing_key:
163
- specification_version: 3
146
+ specification_version: 4
164
147
  summary: Reusable Git repository management code.
165
148
  test_files: []