pivotal-tracker 0.0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/Gemfile +16 -0
- data/LICENSE +20 -0
- data/README.rdoc +60 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/lib/pivotal-tracker/activity.rb +45 -0
- data/lib/pivotal-tracker/client.rb +34 -0
- data/lib/pivotal-tracker/extensions.rb +11 -0
- data/lib/pivotal-tracker/iteration.rb +20 -0
- data/lib/pivotal-tracker/membership.rb +20 -0
- data/lib/pivotal-tracker/note.rb +17 -0
- data/lib/pivotal-tracker/project.rb +42 -0
- data/lib/pivotal-tracker/proxy.rb +65 -0
- data/lib/pivotal-tracker/story.rb +87 -0
- data/lib/pivotal-tracker/task.rb +48 -0
- data/lib/pivotal-tracker.rb +40 -0
- data/lib/pivotal_tracker.rb +2 -0
- data/pivotal-tracker.gemspec +95 -0
- data/spec/fixtures/activity.xml +176 -0
- data/spec/fixtures/created_story.xml +14 -0
- data/spec/fixtures/memberships.xml +29 -0
- data/spec/fixtures/project.xml +42 -0
- data/spec/fixtures/project_activity.xml +170 -0
- data/spec/fixtures/projects.xml +396 -0
- data/spec/fixtures/stale_fish.yml +58 -0
- data/spec/fixtures/stories.xml +66 -0
- data/spec/fixtures/tasks.xml +24 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/support/stale_fish_fixtures.rb +43 -0
- data/spec/unit/pivotal-tracker/activity_spec.rb +23 -0
- data/spec/unit/pivotal-tracker/iteration_spec.rb +8 -0
- data/spec/unit/pivotal-tracker/membership_spec.rb +20 -0
- data/spec/unit/pivotal-tracker/project_spec.rb +47 -0
- data/spec/unit/pivotal-tracker/story_spec.rb +27 -0
- data/spec/unit/pivotal-tracker/task_spec.rb +21 -0
- metadata +162 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
|
2
|
+
|
3
|
+
describe PivotalTracker::Project do
|
4
|
+
context ".all" do
|
5
|
+
before do
|
6
|
+
@projects = PivotalTracker::Project.all
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should return an array of available projects" do
|
10
|
+
@projects.should be_a(Array)
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should be a project instance" do
|
14
|
+
@projects.first.should be_a(PivotalTracker::Project)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context ".find" do
|
19
|
+
before do
|
20
|
+
@project = PivotalTracker::Project.find(59022)
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should be an instance of Project" do
|
24
|
+
@project.should be_a(PivotalTracker::Project)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context ".stories" do
|
29
|
+
before do
|
30
|
+
@project = PivotalTracker::Project.find(59022)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should have a stories association" do
|
34
|
+
@project.respond_to?(:stories).should be_true
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
context ".memberships" do
|
39
|
+
before do
|
40
|
+
@project = PivotalTracker::Project.find(59022)
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should have a memberships association" do
|
44
|
+
@project.respond_to?(:memberships).should be_true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
|
2
|
+
|
3
|
+
describe PivotalTracker::Story do
|
4
|
+
before do
|
5
|
+
@project = PivotalTracker::Project.find(59022)
|
6
|
+
end
|
7
|
+
|
8
|
+
context ".all" do
|
9
|
+
it "should return all stories" do
|
10
|
+
@project.stories.all.should be_a(Array)
|
11
|
+
@project.stories.all.first.should be_a(PivotalTracker::Story)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
context ".find" do
|
16
|
+
it "should return the matching story" do
|
17
|
+
@project.stories.find(2524690).should be_a(PivotalTracker::Story)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
context ".create" do
|
22
|
+
it "should return the created story" do
|
23
|
+
@project.stories.create(:name => 'Create Stuff').should be_a(PivotalTracker::Story)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
|
2
|
+
|
3
|
+
describe PivotalTracker::Task do
|
4
|
+
before do
|
5
|
+
@project = PivotalTracker::Project.find(59022)
|
6
|
+
@story = @project.stories.all.first
|
7
|
+
end
|
8
|
+
|
9
|
+
context ".all" do
|
10
|
+
it "should return an array of tasks" do
|
11
|
+
@story.tasks.all.should be_a(Array)
|
12
|
+
@story.tasks.all.first.should be_a(PivotalTracker::Task)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context ".find" do
|
17
|
+
it "should return a given task" do
|
18
|
+
@story.tasks.find(179025).should be_a(PivotalTracker::Task)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pivotal-tracker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 1
|
10
|
+
version: 0.0.9.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Justin Smestad
|
14
|
+
- Josh Nichols
|
15
|
+
- Terence Lee
|
16
|
+
autorequire:
|
17
|
+
bindir: bin
|
18
|
+
cert_chain: []
|
19
|
+
|
20
|
+
date: 2010-03-30 00:00:00 -06:00
|
21
|
+
default_executable:
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
24
|
+
name: rest-client
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 4
|
33
|
+
- 1
|
34
|
+
version: 1.4.1
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: happymapper
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 2
|
47
|
+
- 4
|
48
|
+
version: 0.2.4
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: builder
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: nokogiri
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 1
|
72
|
+
- 4
|
73
|
+
- 1
|
74
|
+
version: 1.4.1
|
75
|
+
type: :runtime
|
76
|
+
version_requirements: *id004
|
77
|
+
description:
|
78
|
+
email: justin.smestad@gmail.com
|
79
|
+
executables: []
|
80
|
+
|
81
|
+
extensions: []
|
82
|
+
|
83
|
+
extra_rdoc_files:
|
84
|
+
- LICENSE
|
85
|
+
- README.rdoc
|
86
|
+
files:
|
87
|
+
- .gitignore
|
88
|
+
- Gemfile
|
89
|
+
- LICENSE
|
90
|
+
- README.rdoc
|
91
|
+
- Rakefile
|
92
|
+
- VERSION
|
93
|
+
- lib/pivotal-tracker.rb
|
94
|
+
- lib/pivotal-tracker/activity.rb
|
95
|
+
- lib/pivotal-tracker/client.rb
|
96
|
+
- lib/pivotal-tracker/extensions.rb
|
97
|
+
- lib/pivotal-tracker/iteration.rb
|
98
|
+
- lib/pivotal-tracker/membership.rb
|
99
|
+
- lib/pivotal-tracker/note.rb
|
100
|
+
- lib/pivotal-tracker/project.rb
|
101
|
+
- lib/pivotal-tracker/proxy.rb
|
102
|
+
- lib/pivotal-tracker/story.rb
|
103
|
+
- lib/pivotal-tracker/task.rb
|
104
|
+
- lib/pivotal_tracker.rb
|
105
|
+
- pivotal-tracker.gemspec
|
106
|
+
- spec/fixtures/activity.xml
|
107
|
+
- spec/fixtures/created_story.xml
|
108
|
+
- spec/fixtures/memberships.xml
|
109
|
+
- spec/fixtures/project.xml
|
110
|
+
- spec/fixtures/project_activity.xml
|
111
|
+
- spec/fixtures/projects.xml
|
112
|
+
- spec/fixtures/stale_fish.yml
|
113
|
+
- spec/fixtures/stories.xml
|
114
|
+
- spec/fixtures/tasks.xml
|
115
|
+
- spec/spec.opts
|
116
|
+
- spec/spec_helper.rb
|
117
|
+
- spec/support/stale_fish_fixtures.rb
|
118
|
+
- spec/unit/pivotal-tracker/activity_spec.rb
|
119
|
+
- spec/unit/pivotal-tracker/iteration_spec.rb
|
120
|
+
- spec/unit/pivotal-tracker/membership_spec.rb
|
121
|
+
- spec/unit/pivotal-tracker/project_spec.rb
|
122
|
+
- spec/unit/pivotal-tracker/story_spec.rb
|
123
|
+
- spec/unit/pivotal-tracker/task_spec.rb
|
124
|
+
has_rdoc: true
|
125
|
+
homepage: http://github.com/jsmestad/pivotal-tracker
|
126
|
+
licenses: []
|
127
|
+
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options:
|
130
|
+
- --charset=UTF-8
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
version: "0"
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
version: "0"
|
147
|
+
requirements: []
|
148
|
+
|
149
|
+
rubyforge_project:
|
150
|
+
rubygems_version: 1.3.6
|
151
|
+
signing_key:
|
152
|
+
specification_version: 3
|
153
|
+
summary: Ruby wrapper for the Pivotal Tracker API
|
154
|
+
test_files:
|
155
|
+
- spec/spec_helper.rb
|
156
|
+
- spec/support/stale_fish_fixtures.rb
|
157
|
+
- spec/unit/pivotal-tracker/activity_spec.rb
|
158
|
+
- spec/unit/pivotal-tracker/iteration_spec.rb
|
159
|
+
- spec/unit/pivotal-tracker/membership_spec.rb
|
160
|
+
- spec/unit/pivotal-tracker/project_spec.rb
|
161
|
+
- spec/unit/pivotal-tracker/story_spec.rb
|
162
|
+
- spec/unit/pivotal-tracker/task_spec.rb
|