snowy_owl 0.2.0 → 0.2.2
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/snowy_owl/owl_field.rb +7 -7
- data/lib/snowy_owl/rspec.rb +1 -1
- data/lib/snowy_owl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faa64162b2877381d0681c26c743202388059960
|
4
|
+
data.tar.gz: da3867a1189f65550a733022b4ee955f25d01d30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ab8558c1b6d20aa49948c367fe9c683102e807b0c822d9ec066331a940ab6edaf801ced75bfa310ef8b0a9f8a5720c4d9d942d3a66c21fc2609661dc582b1d
|
7
|
+
data.tar.gz: 6de88a50bf2ad51f50716d72603a840b2c74cb77cabc241f813c7622962a0dcccd017dc7856e409c793b50358d76c25208404e260e3271120b1ade32d597d363
|
data/Gemfile.lock
CHANGED
data/lib/snowy_owl/owl_field.rb
CHANGED
@@ -4,15 +4,15 @@ module SnowyOwl
|
|
4
4
|
instance_exec *args, &block
|
5
5
|
end
|
6
6
|
|
7
|
-
def plots_scope
|
8
|
-
return candidate_plots if expression.nil?
|
7
|
+
def plots_scope(candidate_plots, expression)
|
8
|
+
return candidate_plots if expression.nil? || expression.empty?
|
9
9
|
SnowyOwl.is_recovering = true
|
10
10
|
plots_range = expression.match /(.*)(\.{2})(.*)/
|
11
|
-
|
12
|
-
|
11
|
+
if plots_range.nil?
|
12
|
+
scope = expression.split("\n")
|
13
|
+
candidate_plots.select { |plot| scope.include? plot['plot_name'] }
|
13
14
|
else
|
14
|
-
|
15
|
-
candidate_plots = candidate_plots.select {|plot| scope.include? plot['plot_name']}
|
15
|
+
sequence_run_from_starting_point candidate_plots, plots_range
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -34,7 +34,7 @@ module SnowyOwl
|
|
34
34
|
candidate_play_books.each do |play_book|
|
35
35
|
candidate_plots = YAML.load_file(play_book)
|
36
36
|
expression = ENV['PLOTS_SCOPE']
|
37
|
-
candidate_plots = plots_scope
|
37
|
+
candidate_plots = plots_scope(candidate_plots, expression)
|
38
38
|
candidate_plots.each do |plot|
|
39
39
|
plot_name = plot['plot_name']
|
40
40
|
SnowyOwl::Persist.recover_state plot_name if SnowyOwl.is_recovering
|
data/lib/snowy_owl/rspec.rb
CHANGED
@@ -40,7 +40,7 @@ module SnowyOwl
|
|
40
40
|
candidate_play_books.each do |play_book|
|
41
41
|
candidate_plots = YAML.load_file(play_book)
|
42
42
|
expression = ENV['PLOTS_SCOPE']
|
43
|
-
candidate_plots = owl_field.plots_scope
|
43
|
+
candidate_plots = owl_field.plots_scope(candidate_plots, expression)
|
44
44
|
candidate_plots.each do |plot|
|
45
45
|
it_behaves_like plot['plot_name']
|
46
46
|
end
|
data/lib/snowy_owl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snowy_owl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yi Han
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|