clash 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23f6c62c10e72f88582594bf9a1251839898862a
4
- data.tar.gz: d6819aa56879e5288583f7034b8bf6a21a24cc2f
3
+ metadata.gz: 532050ceb4a1706ecdc36659492b62cb5c31c95b
4
+ data.tar.gz: 1e460ac30d09075a1bdd192bbb5be045a231e6c8
5
5
  SHA512:
6
- metadata.gz: 7a3763cc4049da6ceccd8b26b35dda08d712367fd6220ee1f7dd2df4ddf736f4f3cca0cbb1ffde0db48832f741899e9c3f08bdcbb5f78b722f95ae7f8bd39b1d
7
- data.tar.gz: 0a669aecd5bfc7f0519dff40f35eb129276ca7d4a3a1063ad8f93f40c0f93ca6432b3d03f9c190a8a4bacdea194c4e1788570d8738bb2562a9807474578deb6d
6
+ metadata.gz: 2aca122193f492f98ff38b777bae90d6c29aefe6ea6e90bd741f8e5ecf6466f354b3da642c539d633012431d04925ca8cef461f5768f1829b33a95df371ea723
7
+ data.tar.gz: 88556cecb29b0271d8ea3a146e91ee880278d6b0eb1e72ef55abe7921f23ce44c40b7bba63c5a796a5f7577c7b4fc3fc0dd0fb0c76957874f42a3198a5830b97
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.0.2 - 2014-07-13
4
+ - Sets JEKYLL_ENV to 'test'
5
+
3
6
  ### 1.0.1 - 2014-07-07
4
7
  - compare no longer needs a comma (to be more like diff)
5
8
 
data/README.md CHANGED
@@ -58,11 +58,11 @@ If you have a simple liquid tag you want to test:
58
58
 
59
59
  ### Simple configuration:
60
60
 
61
- Clash will build your site with Jekyll, and compare the contents of _site/ to _expected/.
61
+ Clash will build your site with Jekyll, and compare the contents of _expected/ to _site/.
62
62
 
63
63
  ```
64
64
  build: true
65
- compare: _site _expected
65
+ compare: _expected _site
66
66
  ```
67
67
 
68
68
  Of course, there is a lot more you can do.
@@ -83,11 +83,11 @@ Note: in the table above, String/Array means a single argument can be a string,
83
83
  can be passed as an array. For example:
84
84
 
85
85
  ```yaml
86
- compare: _site _expected # Compare two directories
87
- compare: # Compare mutiple items
88
- - _site/index.html _expected/index.html
89
- - _site/atom.xml _expected/atom.xml
90
- - _site/posts _expected/posts
86
+ compare: _expected _site # Compare two directories
87
+ compare: # Compare multiple items
88
+ - _expected/index.html _site/index.html
89
+ - _expected/atom.xml _site/atom.xml
90
+ - _expected/posts _site/posts
91
91
  ```
92
92
 
93
93
  To run multiple tests each test should be an array, for example:
@@ -96,10 +96,10 @@ To run multiple tests each test should be an array, for example:
96
96
  -
97
97
  name: Check site build
98
98
  build: true
99
- compare: _site _expected
99
+ compare: _expected _site
100
100
  -
101
101
  name: Check asset compression
102
- compare: _cdn_build _cdn_expected
102
+ compare: _cdn_expected _cdn_build
103
103
  ```
104
104
 
105
105
  Note: When running multiple tests, adding a name can help the reading of test failures.
data/lib/clash/tests.rb CHANGED
@@ -5,6 +5,8 @@ module Clash
5
5
  attr_accessor :tests
6
6
 
7
7
  def initialize(options={})
8
+ ENV['JEKYLL_ENV'] = 'test'
9
+
8
10
  @options = options
9
11
  @results = []
10
12
  @passed = []
data/lib/clash/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Clash
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-08 00:00:00.000000000 Z
11
+ date: 2014-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy