pivotal_angel 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -3
- data/lib/pivotal_angel/version.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PivotalAngel
|
2
2
|
|
3
|
-
|
3
|
+
A helper gem for manipulating Pivotal Tracker from within a Ruby app. Supplements the pivotal-tracker gem.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -12,13 +12,33 @@ And then execute:
|
|
12
12
|
|
13
13
|
$ bundle
|
14
14
|
|
15
|
-
Or install it yourself
|
15
|
+
Or install it yourself:
|
16
16
|
|
17
17
|
$ gem install pivotal_angel
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
# Create a deep clone of a project. Copies over stories, tasks and notes.
|
22
|
+
|
23
|
+
source_project = PivotalTracker::Project.find 123456
|
24
|
+
PivotalAngel::Project.deep_clone(source_project, 'cloned_project')
|
25
|
+
|
26
|
+
# Rename a label
|
27
|
+
|
28
|
+
project = PivotalTracker::Project.find 123456
|
29
|
+
PivotalAngel::Label.rename(project, 'old_label', 'new_label')
|
30
|
+
|
31
|
+
# Add a 'expense' label to all stories with the label 'shopping'
|
32
|
+
|
33
|
+
project = PivotalTracker::Project.find 123456
|
34
|
+
stories = project.stories.all(:labels => 'shopping')
|
35
|
+
PivotalAngel::Label.apply_to(stories, 'expense')
|
36
|
+
|
37
|
+
# Remove the 'expense' label from all stories
|
38
|
+
|
39
|
+
project = PivotalTracker::Project.find 123456
|
40
|
+
stories = project.stories.all(:labels => 'expense')
|
41
|
+
PivotalAngel::Label.remove_from(stories, 'expense')
|
22
42
|
|
23
43
|
## Contributing
|
24
44
|
|
data/spec/spec_helper.rb
CHANGED