jekyll-theme-specs 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/jekyll-theme-specs.gemspec +1 -1
- data/lib/step_definitions.rb +11 -5
- data/lib/support/helpers.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c55e3060e0b67bc6209cfd4542e6823671c8274
|
4
|
+
data.tar.gz: 44bfcc4e83135ae3209dab53951acc2df7cd6828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5c952050e5f182f7173f1f11ead9d0b90a2562428928e547783ef48a6cfd40fe91c0d6ba7efa2d69c72cd6bf999f0f552e5c2922832d52a4e75673bde35824d
|
7
|
+
data.tar.gz: 5ce80df972a4ca06a7d83034e82e96258ed3a4ae373b664d0afe419418273b4fb4364b88a055b15c9e28b412115ce1b6da40fb23bb0f37b2e202ea52f5b63d95
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ At this point the tool makes quite a few assumptions and very rigid in terms of
|
|
32
32
|
- Always run the tool via Bundler, eq. `bundle exec theme-specs`;
|
33
33
|
- You can opt-in for more concise reporting style (Jekyll's favorite) by using `-f Jekyll::Cucumber::Formatter` option, eq. `bundle exec theme-specs -f Jekyll::Cucumber::Formatter`;
|
34
34
|
|
35
|
-
There is also `minima-theme-specs` repository that is a work in progress of building `minima` theme
|
35
|
+
There is also [`minima-theme-specs`](https://github.com/ptsurbeleu/minima-theme-specs) repository that is a work in progress of building `minima` theme
|
36
36
|
validations. We will start with a few simple things and expand coverage further.
|
37
37
|
|
38
38
|
## Development
|
@@ -46,4 +46,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/ptsurb
|
|
46
46
|
|
47
47
|
## License
|
48
48
|
|
49
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
49
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/jekyll-theme-specs.gemspec
CHANGED
data/lib/step_definitions.rb
CHANGED
@@ -108,18 +108,24 @@ end
|
|
108
108
|
|
109
109
|
#
|
110
110
|
|
111
|
-
Given(%r!^I have
|
112
|
-
# NOTE: This snippet has been tweaked as well to load
|
111
|
+
Given(%r!^I have "(.*)" configuration file with "(.*)" set to "(.*)"$!) do |config_file, key, value|
|
112
|
+
# NOTE: This snippet has been tweaked as well to load the specified configuration file
|
113
113
|
# from the source directory, which is supposed to be the current directory.
|
114
114
|
config = \
|
115
|
-
if Paths::SOURCE_DIR.join(
|
116
|
-
SafeYAML.load_file(Paths::SOURCE_DIR.join(
|
115
|
+
if Paths::SOURCE_DIR.join(config_file).exist?
|
116
|
+
SafeYAML.load_file(Paths::SOURCE_DIR.join(config_file))
|
117
117
|
else
|
118
118
|
{}
|
119
119
|
end
|
120
120
|
# NOTE: The original snippet was replaced with this code. In the given context we must
|
121
121
|
# assert configuration values to ensure our expectations are valid.
|
122
|
-
expect(config[key]).to eq value
|
122
|
+
expect(config[key].to_s).to eq value
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
|
127
|
+
Given(%r!^I have a configuration file with "(.*)" set to "(.*)"$!) do |key, value|
|
128
|
+
step %(I have "_config.yml" configuration file with "#{key}" set to "#{value}")
|
123
129
|
end
|
124
130
|
|
125
131
|
#
|
data/lib/support/helpers.rb
CHANGED
@@ -104,7 +104,7 @@ def run_jekyll(args)
|
|
104
104
|
|
105
105
|
# NOTE: We MUST execute Jekyll CLI that is from the gem installed
|
106
106
|
# but we need to leave the rest as is.
|
107
|
-
process = run_in_shell("jekyll", *args, "--trace")
|
107
|
+
process = run_in_shell("jekyll", *args, "--verbose", "--trace")
|
108
108
|
process.exitstatus.zero?
|
109
109
|
end
|
110
110
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-specs
|
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
|
- Pavel Tsurbeleu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.5.2
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Helps you to write & exercise behavior-driven (BDD) specifications for your
|