slurper 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/slurper.rb +7 -3
- metadata +17 -3
data/lib/slurper.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'story'
|
2
2
|
|
3
3
|
class Slurper
|
4
|
+
|
4
5
|
attr_accessor :story_file, :stories
|
5
6
|
|
6
7
|
def self.slurp(story_file, reverse)
|
@@ -27,9 +28,12 @@ class Slurper
|
|
27
28
|
puts "Preparing to slurp #{stories.size} stories into Tracker..."
|
28
29
|
stories.each_with_index do |story, index|
|
29
30
|
begin
|
30
|
-
story.save
|
31
|
-
|
32
|
-
|
31
|
+
if story.save
|
32
|
+
puts "#{index+1}. #{story.name}"
|
33
|
+
else
|
34
|
+
puts "Slurp failed. #{story.errors.full_messages}"
|
35
|
+
end
|
36
|
+
rescue ActiveResource::ConnectionError => e
|
33
37
|
msg = "Slurp failed on story "
|
34
38
|
if story.attributes["name"]
|
35
39
|
msg << story.attributes["name"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 3
|
9
|
+
version: 0.4.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Wes Gibbs
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-03-03 00:00:00 -05:00
|
21
21
|
default_executable: slurp
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -34,6 +34,20 @@ dependencies:
|
|
34
34
|
version: 1.2.9
|
35
35
|
type: :development
|
36
36
|
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: activeresource
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 3
|
47
|
+
- 5
|
48
|
+
version: 2.3.5
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: *id002
|
37
51
|
description: "\n Slurps stories from the given file (stories.slurper by default) and creates\n Pivotal Tracker stories from them. Useful during story carding sessions\n when you want to capture a number of stories quickly without clicking\n your way through the Tracker UI.\n "
|
38
52
|
email: info@hashrocket.com
|
39
53
|
executables:
|