jekyll-theme-specs 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f57b239ce071380847e4d655c93eba2483bb6e9b
4
- data.tar.gz: 4561cde6b37c6fd60d9a9fadf4b6d6b7e07d5452
3
+ metadata.gz: 9c55e3060e0b67bc6209cfd4542e6823671c8274
4
+ data.tar.gz: 44bfcc4e83135ae3209dab53951acc2df7cd6828
5
5
  SHA512:
6
- metadata.gz: cc9d7c380d7cf26c7a2957104c50bcaa53b0993a08f6eada0410ff4c75e20b92b602823c75122d54eae4cb85bbff8a52f1dfe5394bbac2be1327b861ec628dc9
7
- data.tar.gz: d28b36cafb43e65570e1f226e61b4d9af2b81a8a63133085591d3830577a881c2f99755310eb2384b586a24f1d11d1a02aa73fe08270783c0c430d71683dd7b2
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).
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jekyll-theme-specs"
7
- spec.version = '0.1.1'
7
+ spec.version = '0.1.2'
8
8
  spec.authors = ["Pavel Tsurbeleu"]
9
9
  spec.email = ["pavel.tsurbeleu@me.com"]
10
10
 
@@ -108,18 +108,24 @@ end
108
108
 
109
109
  #
110
110
 
111
- Given(%r!^I have a configuration file with "(.*)" set to "(.*)"$!) do |key, value|
112
- # NOTE: This snippet has been tweaked as well to load '_config.yml'
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("_config.yml").exist?
116
- SafeYAML.load_file(Paths::SOURCE_DIR.join("_config.yml"))
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
  #
@@ -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.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-07 00:00:00.000000000 Z
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.6.12
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