pv 0.0.7 → 0.0.8
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/lib/pv/bug_tracker.rb +14 -10
- data/lib/pv/command.rb +26 -5
- data/lib/pv/story.rb +20 -2
- data/lib/pv/version.rb +1 -1
- data/lib/pv.rb +3 -0
- data/spec/fixtures/cassettes/pivotal_client_connection.yml +216 -7
- data/spec/fixtures/cassettes/pivotal_find_story.yml +394 -415
- data/spec/fixtures/pv.yml +3 -2
- data/spec/models/bug_tracker_spec.rb +6 -4
- data/spec/models/configuration_spec.rb +10 -2
- metadata +2 -2
data/spec/fixtures/pv.yml
CHANGED
@@ -4,9 +4,7 @@ require 'pv/bug_tracker'
|
|
4
4
|
module Pv
|
5
5
|
describe BugTracker do
|
6
6
|
subject do
|
7
|
-
VCR.use_cassette
|
8
|
-
Pv::BugTracker.new("john@doe.com", "password")
|
9
|
-
end
|
7
|
+
VCR.use_cassette(:pivotal_client_connection) { Pv::BugTracker.new }
|
10
8
|
end
|
11
9
|
|
12
10
|
it "connects to pivotal tracker" do
|
@@ -15,8 +13,12 @@ module Pv
|
|
15
13
|
|
16
14
|
it "gathers the list of stories this user has to accomplish" do
|
17
15
|
VCR.use_cassette :pivotal_project_stories_search do
|
18
|
-
subject.stories(
|
16
|
+
subject.stories("Tom Scott").should_not be_empty
|
19
17
|
end
|
20
18
|
end
|
19
|
+
|
20
|
+
it "creates a new story on the pivotal api"
|
21
|
+
|
22
|
+
it "updates an existing story on the pivotal api"
|
21
23
|
end
|
22
24
|
end
|
@@ -15,17 +15,25 @@ module Pv
|
|
15
15
|
it "reads from ~/.pv YAML" do
|
16
16
|
subject.should be_present
|
17
17
|
subject.attributes.should_not be_empty
|
18
|
-
subject.attributes.count.should ==
|
18
|
+
subject.attributes.count.should == 4
|
19
19
|
end
|
20
20
|
|
21
21
|
it "parses a username" do
|
22
|
-
subject.username.should == "
|
22
|
+
subject.username.should == "johndoe"
|
23
23
|
end
|
24
24
|
|
25
25
|
it "parses a password" do
|
26
26
|
subject.password.should == "password"
|
27
27
|
end
|
28
28
|
|
29
|
+
it "parses a full name" do
|
30
|
+
subject.name.should == "John Doe"
|
31
|
+
end
|
32
|
+
|
33
|
+
it "parses a project id into a number" do
|
34
|
+
subject.project_id.should == 123456
|
35
|
+
end
|
36
|
+
|
29
37
|
after do
|
30
38
|
if File.exists? File.expand_path("~/.pv.safe")
|
31
39
|
`cp ~/.pv.safe ~/.pv`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pivotal-tracker
|