zassets 0.2.4 → 0.2.5

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.
@@ -0,0 +1,11 @@
1
+ Feature: Default load path
2
+
3
+ Scenario: `paths' option defaults to `app'
4
+ Given this config file:
5
+ """
6
+ build:
7
+ - app.js
8
+ """
9
+ And a file named "app/app.js" with "some_content"
10
+ When I build
11
+ Then the built file "public/assets/app-*.js" must exist
@@ -12,7 +12,7 @@ module ZAssets
12
12
  plugins: [],
13
13
  engines: {},
14
14
  base_url: '/assets',
15
- paths: [],
15
+ paths: %w[app],
16
16
  public_path: 'public',
17
17
  build_path: 'public/assets',
18
18
  build: []
@@ -1,3 +1,3 @@
1
1
  module ZAssets
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
@@ -59,8 +59,8 @@ module ZAssets
59
59
  config.default_options[:base_url].should == '/assets'
60
60
  end
61
61
 
62
- it 'sets paths empty' do
63
- config.default_options[:paths].should == []
62
+ it 'sets paths to app directory' do
63
+ config.default_options[:paths].should == ['app']
64
64
  end
65
65
 
66
66
  it 'sets public_path to public directory' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zassets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -193,6 +193,7 @@ files:
193
193
  - features/cli/usage.feature
194
194
  - features/cli/version.feature
195
195
  - features/config/file.feature
196
+ - features/config/paths.feature
196
197
  - features/engines/coffee.feature
197
198
  - features/engines/sass.feature
198
199
  - features/server/handler.feature
@@ -254,7 +255,7 @@ rubyforge_project:
254
255
  rubygems_version: 1.8.23
255
256
  signing_key:
256
257
  specification_version: 3
257
- summary: zassets-0.2.4
258
+ summary: zassets-0.2.5
258
259
  test_files:
259
260
  - spec/fixtures/assets/app.js
260
261
  - spec/fixtures/config/zassets.yaml