gliss 0.1.1 → 0.1.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.
- data/VERSION +1 -1
- data/lib/gliss.rb +4 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/gliss.rb
CHANGED
@@ -113,7 +113,6 @@ module Gliss
|
|
113
113
|
|
114
114
|
def process_args
|
115
115
|
@repo = "."
|
116
|
-
@filter = /.*/
|
117
116
|
@output_proc = Proc.new do |gloss|
|
118
117
|
sha = gloss.sha.slice(0,8)
|
119
118
|
tag = gloss.tag
|
@@ -128,6 +127,8 @@ module Gliss
|
|
128
127
|
puts oparser
|
129
128
|
exit(1)
|
130
129
|
end
|
130
|
+
|
131
|
+
@filter ||= /.*/
|
131
132
|
|
132
133
|
@from, @to = @args
|
133
134
|
@to ||= "master"
|
@@ -147,7 +148,8 @@ module Gliss
|
|
147
148
|
end
|
148
149
|
|
149
150
|
opts.on("-f REGEX", "--filter REGEX", "Output only messages with tags matching REGEX", "(default is all tags)") do |filter|
|
150
|
-
|
151
|
+
new_filter = Regexp.new(filter)
|
152
|
+
@filter = @filter ? Regexp.union(@filter, new_filter) : new_filter
|
151
153
|
end
|
152
154
|
|
153
155
|
opts.on("-w", "--whole-commit", "Output entire commit messages that contain glosses") do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gliss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Will Benton
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-28 00:00:00 -05:00
|
19
19
|
default_executable: gliss
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|