pivotal_angel 0.0.1 → 0.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PivotalAngel
2
2
 
3
- TODO: Write a gem description
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 as:
15
+ Or install it yourself:
16
16
 
17
17
  $ gem install pivotal_angel
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
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
 
@@ -1,3 +1,3 @@
1
1
  module PivotalAngel
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'pivotal_tracker'
2
2
  require 'pivotal_angel'
3
3
 
4
- PivotalTracker::Client.token = "072a3aee2dbbd0caf51f8c551954ce21"
4
+ # To run the tests, supply your Pivotal Tracker username and password
5
+ PivotalTracker::Client.token('myusername', 'secretpassword')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal_angel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: