pickler 0.1.8 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -27,8 +27,8 @@ feature's body. Keep this in mind when entering stories into Pivotal Tracker.
27
27
 
28
28
  pickler pull
29
29
 
30
- Download all well formed stories (those in valid Cucumber syntax with at least
31
- one scenario in them) to the features/ directory.
30
+ Download all well formed stories (basically, any story with "Scenario:" in the
31
+ body) to the features/ directory.
32
32
 
33
33
  pickler push
34
34
 
data/lib/pickler.rb CHANGED
@@ -95,14 +95,6 @@ class Pickler
95
95
  project.deliver_all_finished_stories
96
96
  end
97
97
 
98
- def parse(story)
99
- require 'cucumber'
100
- Cucumber::FeatureFile.new(story.url, story.to_s).parse(
101
- Cucumber::Cli::Options.new,
102
- {}
103
- )
104
- end
105
-
106
98
  def project_id
107
99
  config["project_id"] || (self.class.config["projects"]||{})[File.basename(@directory)]
108
100
  end
@@ -121,8 +113,11 @@ class Pickler
121
113
  end
122
114
 
123
115
  def scenario_word
124
- require 'cucumber'
125
- Gherkin::I18n::LANGUAGES[@lang]['scenario']
116
+ if @lang == 'en'
117
+ 'Scenario'
118
+ else
119
+ raise Error, 'Sorry, no internationalization support (yet)'
120
+ end
126
121
  end
127
122
 
128
123
  def format
@@ -137,7 +132,7 @@ class Pickler
137
132
  project.stories(scenario_word, :includedone => true).reject do |s|
138
133
  Array(excluded_states).map {|state| state.to_s}.include?(s.current_state)
139
134
  end.select do |s|
140
- s.to_s =~ /^\s*#{Regexp.escape(scenario_word)}:/ && parse(s)
135
+ s.to_s =~ /^\s*#{Regexp.escape(scenario_word)}:/
141
136
  end
142
137
  end
143
138
 
@@ -315,9 +315,9 @@ new stories.
315
315
  summary "Download stories"
316
316
  description <<-EOF
317
317
  Download the given story story to the features/ directory. With no arguments,
318
- downloads all stories that look like Cucumber features (with "Scenario:" and
319
- valid Cucumber syntax). The version without arguments is mainly useful for
320
- syncing existing features.
318
+ downloads all stories that look like Cucumber features (with "Scenario:" in
319
+ the body). The version without arguments is mainly useful for syncing
320
+ existing features.
321
321
  EOF
322
322
 
323
323
  process do |*args|
data/pickler.gemspec CHANGED
@@ -1,11 +1,11 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "pickler"
3
- s.version = "0.1.8"
3
+ s.version = "0.2.0"
4
4
 
5
5
  s.summary = "PIvotal traCKer Liaison to cucumbER"
6
6
  s.description = "Synchronize between Cucumber and Pivotal Tracker"
7
7
  s.authors = ["Tim Pope"]
8
- s.email = "ruby@tpope.i"+'nfo'
8
+ s.email = "ruby@tpope.o"+'org'
9
9
  s.homepage = "http://github.com/tpope/pickler"
10
10
  s.default_executable = "pickler"
11
11
  s.executables = ["pickler"]
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
24
24
  "lib/pickler/tracker/note.rb"
25
25
  ]
26
26
  s.add_runtime_dependency("crack", [">= 0.1.8"])
27
- s.add_runtime_dependency("cucumber", ["~> 0.9.2"])
28
27
  s.add_development_dependency("rspec", ["~> 2.0.0"])
29
28
  s.add_development_dependency("fakeweb", ["~> 1.3.0"])
30
29
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickler
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
- - 1
8
- - 8
9
- version: 0.1.8
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Tim Pope
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-11-17 00:00:00 -05:00
18
+ date: 2011-02-05 00:00:00 -05:00
18
19
  default_executable: pickler
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 11
28
30
  segments:
29
31
  - 0
30
32
  - 1
@@ -32,53 +34,40 @@ dependencies:
32
34
  version: 0.1.8
33
35
  type: :runtime
34
36
  version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: cucumber
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 9
46
- - 2
47
- version: 0.9.2
48
- type: :runtime
49
- version_requirements: *id002
50
37
  - !ruby/object:Gem::Dependency
51
38
  name: rspec
52
39
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
54
41
  none: false
55
42
  requirements:
56
43
  - - ~>
57
44
  - !ruby/object:Gem::Version
45
+ hash: 15
58
46
  segments:
59
47
  - 2
60
48
  - 0
61
49
  - 0
62
50
  version: 2.0.0
63
51
  type: :development
64
- version_requirements: *id003
52
+ version_requirements: *id002
65
53
  - !ruby/object:Gem::Dependency
66
54
  name: fakeweb
67
55
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ requirement: &id003 !ruby/object:Gem::Requirement
69
57
  none: false
70
58
  requirements:
71
59
  - - ~>
72
60
  - !ruby/object:Gem::Version
61
+ hash: 27
73
62
  segments:
74
63
  - 1
75
64
  - 3
76
65
  - 0
77
66
  version: 1.3.0
78
67
  type: :development
79
- version_requirements: *id004
68
+ version_requirements: *id003
80
69
  description: Synchronize between Cucumber and Pivotal Tracker
81
- email: ruby@tpope.info
70
+ email: ruby@tpope.oorg
82
71
  executables:
83
72
  - pickler
84
73
  extensions: []
@@ -112,6 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
101
  requirements:
113
102
  - - ">="
114
103
  - !ruby/object:Gem::Version
104
+ hash: 3
115
105
  segments:
116
106
  - 0
117
107
  version: "0"
@@ -120,6 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
110
  requirements:
121
111
  - - ">="
122
112
  - !ruby/object:Gem::Version
113
+ hash: 3
123
114
  segments:
124
115
  - 0
125
116
  version: "0"