kosmas58-pickler 0.1.0.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pickler.rb +1 -1
- data/lib/pickler/feature.rb +5 -3
- data/pickler.gemspec +2 -2
- metadata +3 -4
data/lib/pickler.rb
CHANGED
data/lib/pickler/feature.rb
CHANGED
@@ -65,7 +65,7 @@ class Pickler
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def pushable?
|
68
|
-
id || local_body =~ %r{\A(?:#\s*|@[[:punct:]]?(?:
|
68
|
+
id || local_body =~ %r{\A(?:#\s*|@[[:punct:]]?(?:https?://www\.pivotaltracker\.com/story/new)?[[:punct:]]?(?:\s+@\S+)*\s*)\n[[:upper:]][[:lower:]]+:} ? true : false
|
69
69
|
end
|
70
70
|
|
71
71
|
def push
|
@@ -76,12 +76,14 @@ class Pickler
|
|
76
76
|
story.save!
|
77
77
|
else
|
78
78
|
unless pushable?
|
79
|
-
raise Error, "To create a new story,
|
79
|
+
raise Error, "To create a new story, tag it @http://www.pivotaltracker.com/story/new"
|
80
80
|
end
|
81
81
|
story = pickler.new_story
|
82
82
|
story.to_s = body
|
83
83
|
@story = story.save!
|
84
|
-
body.sub!(
|
84
|
+
unless body.sub!(%r{\bhttps?://www\.pivotaltracker\.com/story/new\b}, story.url)
|
85
|
+
body.sub!(/\A(?:#.*\n)?/,"# #{story.url}\n")
|
86
|
+
end
|
85
87
|
File.open(filename,'w') {|f| f.write body}
|
86
88
|
end
|
87
89
|
end
|
data/pickler.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "pickler"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.2"
|
4
4
|
s.summary = "PIvotal traCKer Liaison to cucumbER"
|
5
5
|
s.description = "Synchronize between Cucumber and Pivotal Tracker"
|
6
6
|
s.authors = ["Tim Pope", "Liam Morley", "Kamal Fariz Mahyuddin", "Kosmas Schuetz"]
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |s|
|
|
24
24
|
"lib/pickler/tracker/note.rb"
|
25
25
|
]
|
26
26
|
s.add_dependency("activesupport", [">= 2.0.0"])
|
27
|
-
s.add_dependency("cucumber", [">= 0.3.
|
27
|
+
s.add_dependency("cucumber", [">= 0.3.96"])
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kosmas58-pickler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pope
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.3.
|
36
|
+
version: 0.3.96
|
37
37
|
version:
|
38
38
|
description: Synchronize between Cucumber and Pivotal Tracker
|
39
39
|
email: ruby@tpope.info
|
@@ -60,7 +60,6 @@ files:
|
|
60
60
|
- lib/pickler/tracker/note.rb
|
61
61
|
has_rdoc: false
|
62
62
|
homepage: http://github.com/tpope/pickler
|
63
|
-
licenses:
|
64
63
|
post_install_message:
|
65
64
|
rdoc_options: []
|
66
65
|
|
@@ -81,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
80
|
requirements: []
|
82
81
|
|
83
82
|
rubyforge_project:
|
84
|
-
rubygems_version: 1.
|
83
|
+
rubygems_version: 1.2.0
|
85
84
|
signing_key:
|
86
85
|
specification_version: 2
|
87
86
|
summary: PIvotal traCKer Liaison to cucumbER
|