kosmas58-pickler 0.0.9.10 → 0.0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/pickler.rb +4 -5
  2. data/pickler.gemspec +1 -1
  3. metadata +1 -1
data/lib/pickler.rb CHANGED
@@ -110,11 +110,10 @@ class Pickler
110
110
  def local_features
111
111
  Dir[features_path('**','*.feature')].map {|f|feature(f)}.select {|f|f.pushable?}
112
112
  end
113
-
114
- def scenario_features(includes)
115
- ignored_states = %w(unscheduled unstarted) - Array(includes)
116
- project.stories(project.scenario_word, :includedone => true).reject do |s|
117
- ignored_states.include?(s.current_state)
113
+
114
+ def scenario_features(excluded_states = %w(unscheduled unstarted))
115
+ project.stories(scenario_word, :includedone => true).reject do |s|
116
+ Array(excluded_states).map {|s| s.to_s}.include?(s.current_state)
118
117
  end.select do |s|
119
118
  s.to_s =~ /^\s*#{Regexp.escape(project.scenario_word)}:/ && project.parser.parse(s.to_s)
120
119
  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.0.9.10"
3
+ s.version = "0.0.9.11"
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"]
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.0.9.10
4
+ version: 0.0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pope