jarib-cuketagger 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/cuketagger +2 -5
  2. metadata +2 -2
data/bin/cuketagger CHANGED
@@ -17,13 +17,12 @@ class Tagger
17
17
  abort(USAGE) if args.empty? || args.first =~ /^(-h|--help)$/
18
18
  opts = {:dry_run => true, :source => true}
19
19
 
20
- # TODO: use optparse?
21
20
  args.each do |arg|
22
21
  case arg
23
22
  when /^(.+?\.feature)(:\d+)?$/
24
23
  add_feature($1, $2)
25
24
  when /^(add|remove):(.+?)$/
26
- alterations << added = [$1.to_sym, $2]
25
+ alterations << [$1.to_sym, $2]
27
26
  when /^(-f|--force)$/
28
27
  opts[:autoformat] = "."
29
28
  opts[:source] = false
@@ -119,6 +118,4 @@ class TagVisitor < Cucumber::Formatter::Pretty
119
118
 
120
119
  end
121
120
 
122
- if __FILE__ == $0
123
- Tagger.execute(ARGV)
124
- end
121
+ Tagger.execute(ARGV)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jarib-cuketagger
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.2"
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-21 00:00:00 -07:00
13
+ date: 2009-08-22 00:00:00 -07:00
14
14
  default_executable: cuketagger
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency