crab 0.2.1 → 0.2.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/bin/crab-help +1 -0
- data/bin/crab-rename +27 -0
- data/features/steps/rally_steps.rb +1 -0
- data/lib/crab/version.rb +1 -1
- metadata +5 -3
data/bin/crab-help
CHANGED
@@ -15,6 +15,7 @@ crab version #{Crab::VERSION}: A Cucumber-Rally bridge
|
|
15
15
|
move Move a story from one status to the next (or previous)
|
16
16
|
project Persistently select project to work with in Rally
|
17
17
|
pull Downloads stories (and its test cases) as Cucumber feature files
|
18
|
+
rename Rename a story
|
18
19
|
show Show a story (and its test cases) as a Cucumber feature
|
19
20
|
testcase Manage test cases in a story (add, update, delete)
|
20
21
|
update Update a story (name, estimate, etc)
|
data/bin/crab-rename
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# vim: set ft=ruby :
|
2
|
+
require 'crab'
|
3
|
+
|
4
|
+
include Crab::Utilities
|
5
|
+
|
6
|
+
opts = Trollop::options do
|
7
|
+
banner <<-BANNER
|
8
|
+
crab rename: rename a story
|
9
|
+
|
10
|
+
Usage: crab rename <story> <new name> [options]
|
11
|
+
BANNER
|
12
|
+
opt :dry, "Dry-run (don't change anything)", :short => "-D", :default => false
|
13
|
+
end
|
14
|
+
|
15
|
+
id = ARGV.shift
|
16
|
+
Trollop::die "No story given" if id.empty?
|
17
|
+
|
18
|
+
name = ARGV.join(" ").squish
|
19
|
+
Trollop::die "No name given" if name.empty?
|
20
|
+
|
21
|
+
Crab::Rally.new(opts[:dry]) do |rally|
|
22
|
+
story = rally.find_story_with_id id
|
23
|
+
|
24
|
+
story.update :name => name
|
25
|
+
|
26
|
+
puts "#{story.formatted_id}: #{story.name} (#{story.state})"
|
27
|
+
end
|
@@ -15,6 +15,7 @@ crab version #{Crab::VERSION}: A Cucumber-Rally bridge
|
|
15
15
|
move Move a story from one status to the next (or previous)
|
16
16
|
project Persistently select project to work with in Rally
|
17
17
|
pull Downloads stories (and its test cases) as Cucumber feature files
|
18
|
+
rename Rename a story
|
18
19
|
show Show a story (and its test cases) as a Cucumber feature
|
19
20
|
testcase Manage test cases in a story (add, update, delete)
|
20
21
|
update Update a story (name, estimate, etc)
|
data/lib/crab/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Carlos Villela
|
@@ -165,6 +165,7 @@ executables:
|
|
165
165
|
- crab-project
|
166
166
|
- crab-pull
|
167
167
|
- crab-remove
|
168
|
+
- crab-rename
|
168
169
|
- crab-rm
|
169
170
|
- crab-show
|
170
171
|
- crab-tc
|
@@ -210,6 +211,7 @@ files:
|
|
210
211
|
- bin/crab-project
|
211
212
|
- bin/crab-pull
|
212
213
|
- bin/crab-remove
|
214
|
+
- bin/crab-rename
|
213
215
|
- bin/crab-rm
|
214
216
|
- bin/crab-show
|
215
217
|
- bin/crab-tc
|