octopress-asset-pipeline 1.0.4 → 1.1.0

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: 62fce7058e1b17e7aa1b8de26478df11d3a43cbd
4
- data.tar.gz: 06d06bc000368335c92d3bc083d91fc8d7e78552
3
+ metadata.gz: 8fb1495d68766f134895a4514df1881e8132540f
4
+ data.tar.gz: 987fcf763524fddab67048970d9130a0e6db4ff3
5
5
  SHA512:
6
- metadata.gz: b28d5a2360ddd8234e36fb6fcbfa98b3a1fcad7cc0be010bf8085ef3aa89763c2cc3f978d28764cece1edcef17cbc0a78aa2d29ec72a03e463d69d7038d4627c
7
- data.tar.gz: 27890ac7fb53dcb054dcc07ea07e7b3935e368e26e3859fb1034ec971b13efd4b5a926fb088a3cb034485bfdf94ab0725ed1044facbaffff5f4e082904cdff08
6
+ metadata.gz: e84e14427e76c8f18849650e639af612d98a828871411e807dca21e67e7aa9fdb0f2dbfa577915a980778865ec7a587db83017500996adc03f13ca9d6f61f784
7
+ data.tar.gz: 13325ce37ebf786e541ad460aa580598d4f548ec6f2333ad2dedac898f5cd185e31d12f199d745f17e85ff793f596d1798a8cbda3e823f521319b9a56c3af526
data/.clash.yml ADDED
@@ -0,0 +1,20 @@
1
+ -
2
+ title: Typical build (combined and compressed)
3
+ build: true
4
+ compare: expected/standard site
5
+ -
6
+ title: Combine CSS only
7
+ build: true
8
+ config:
9
+ jekyll:
10
+ - _config.yml
11
+ - _combine_css_only.yml
12
+ compare: expected/css_tag_only site
13
+ -
14
+ title: Separate asset files
15
+ build: true
16
+ config:
17
+ jekyll:
18
+ - _config.yml
19
+ - _combine_false.yml
20
+ compare: expected/no_combining site
data/.travis.yml CHANGED
@@ -2,4 +2,4 @@ language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
4
  - 1.9.3
5
- script: cd test && bundle exec clash
5
+ script: bundle exec clash test
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.1.0 - 2015-01-01
4
+
5
+ - Now reads configuration from _config.yml under `asset_pipeline`.
6
+
3
7
  ### 1.0.3 - 2014-08-17
4
8
 
5
9
  - Updated to latest Octopress Ink.
data/README.md CHANGED
@@ -49,7 +49,7 @@ When Jekyll is compiled these will be replaced with something like this.
49
49
  ## Configuration
50
50
 
51
51
  This plugin integrates with the core asset pipeline system in Octopress Ink, therefore
52
- the configurations are set in the `_octopress.yml` configuration file.
52
+ the configurations are set in the `_config.yml` configuration file under the `asset_pipeline` key.
53
53
 
54
54
  | Option | Description | Default |
55
55
  |:---------------------|:------------------------------------------|:------------|
@@ -67,13 +67,14 @@ By default when scripts and stylesheets are combined, they added based on
67
67
  their order in the file system. You can manually specify order like this:
68
68
 
69
69
  ```
70
- order_js
71
- - jquery.js
72
- - kittens.coffee
73
-
74
- order_css
75
- - normalize.css
76
- - site.sass
70
+ asset_pipeline:
71
+ order_js:
72
+ - jquery.js
73
+ - kittens.coffee
74
+
75
+ order_css:
76
+ - normalize.css
77
+ - site.sass
77
78
  ```
78
79
  Assets will ordered as specified. Any additional assets will be appended based on their order in the file system.
79
80
 
@@ -1,7 +1,7 @@
1
1
  module Octopress
2
2
  module Ink
3
3
  module LocalAssetPipeline
4
- VERSION = "1.0.4"
4
+ VERSION = "1.1.0"
5
5
  end
6
6
  end
7
7
  end
@@ -1,3 +1,4 @@
1
+ require 'octopress'
1
2
  require 'octopress-ink'
2
3
  require 'octopress-asset-pipeline/version'
3
4
 
@@ -15,11 +16,11 @@ module Octopress
15
16
  {
16
17
  name: "Octopress Asset Pipeline",
17
18
  slug: "octopress-asset-pipeline",
18
- assets_path: File.expand_path(File.join(File.dirname(__FILE__), "../../../assets")),
19
+ path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
19
20
  type: "plugin",
20
21
  version: Octopress::Ink::LocalAssetPipeline::VERSION,
21
22
  description: "Combine and compress CSS and Sass, Javascript and Coffeescript to a single fingerprinted file.",
22
- website: "https://github.com/octopress/asset-pipeline",
23
+ source_url: "https://github.com/octopress/asset-pipeline",
23
24
  local: true
24
25
  }
25
26
  end
@@ -38,7 +39,9 @@ module Octopress
38
39
  end
39
40
 
40
41
  def config
41
- Octopress.config
42
+ @config ||= begin
43
+ Ink.configuration['asset_pipeline'].merge({'disable' => {}})
44
+ end
42
45
  end
43
46
 
44
47
  # Return stylesheets to be combined in the asset pipeline
@@ -18,11 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "octopress-ink", "~> 1.0.0.rc.15"
21
+ spec.add_runtime_dependency "octopress-ink", "~> 1.0.0.rc"
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.6"
24
- spec.add_development_dependency "clash", "~> 1.0"
23
+ spec.add_development_dependency "bundler"
24
+ spec.add_development_dependency "clash"
25
25
  spec.add_development_dependency "rake"
26
- spec.add_development_dependency "octopress"
27
- spec.add_development_dependency "pry-debugger"
26
+
27
+ if RUBY_VERSION >= "2"
28
+ spec.add_development_dependency "pry-byebug"
29
+ end
28
30
  end
@@ -1 +1,2 @@
1
- combine_js: false
1
+ asset_pipeline:
2
+ combine_js: false
@@ -1,4 +1,5 @@
1
- order_js:
2
- - foo.coffee
3
- combine_js: false
4
- combine_css: false
1
+ asset_pipeline:
2
+ order_js:
3
+ - foo.coffee
4
+ combine_js: false
5
+ combine_css: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-asset-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
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-08-17 00:00:00.000000000 Z
11
+ date: 2015-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-ink
@@ -16,44 +16,30 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.rc.15
19
+ version: 1.0.0.rc
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0.rc.15
26
+ version: 1.0.0.rc
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.6'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: clash
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -67,7 +53,7 @@ dependencies:
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: octopress
56
+ name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
@@ -81,7 +67,7 @@ dependencies:
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: pry-debugger
70
+ name: pry-byebug
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - ">="
@@ -102,6 +88,7 @@ executables: []
102
88
  extensions: []
103
89
  extra_rdoc_files: []
104
90
  files:
91
+ - ".clash.yml"
105
92
  - ".gitignore"
106
93
  - ".travis.yml"
107
94
  - CHANGELOG.md
@@ -109,8 +96,6 @@ files:
109
96
  - LICENSE.txt
110
97
  - README.md
111
98
  - Rakefile
112
- - assets/docs/changelog.markdown
113
- - assets/docs/index.markdown
114
99
  - demo/Gemfile
115
100
  - demo/_config.yml
116
101
  - demo/_octopress.yml
@@ -128,7 +113,6 @@ files:
128
113
  - lib/octopress-asset-pipeline/assets/sass.rb
129
114
  - lib/octopress-asset-pipeline/version.rb
130
115
  - octopress-asset-pipeline.gemspec
131
- - test/.clash.yml
132
116
  - test/Gemfile
133
117
  - test/_combine_css_only.yml
134
118
  - test/_combine_false.yml
@@ -182,7 +166,6 @@ specification_version: 4
182
166
  summary: Combine and compress CSS and Sass, Javascript and Coffeescript to a single
183
167
  fingerprinted file.
184
168
  test_files:
185
- - test/.clash.yml
186
169
  - test/Gemfile
187
170
  - test/_combine_css_only.yml
188
171
  - test/_combine_false.yml
@@ -1,10 +0,0 @@
1
- ---
2
- title: "Changelog"
3
- permalink: /changelog/
4
- ---
5
-
6
- ## Current version
7
-
8
- ### 1.0.0 - 2014-05-25
9
-
10
- - Initial release
@@ -1,106 +0,0 @@
1
- ---
2
- title: "Octopress Asset Pipeline"
3
- ---
4
-
5
- Combine and compress and fingerprint Stylesheets (CSS and Sass) and Javascripts (JS and Coffeescript) to a single fingerprinted .css or .js file.
6
-
7
- **How it works:** This plugin will automatically search Jekyll's site index for .js, .coffee, .css, .scss and .sass
8
- files and combine, compress and fingerprint them so they're ready for deployment. Then add the liquid tags to your site layout to write
9
- the necessary script or link tags.
10
-
11
- ## Installation
12
-
13
- Add this line to your site's Gemfile:
14
-
15
- gem 'octopress-asset-pipeline'
16
-
17
- And then execute:
18
-
19
- $ bundle
20
-
21
- Or install it manually:
22
-
23
- $ gem install octopress-asset-pipeline
24
-
25
-
26
- ### Add gem to Jekyll
27
-
28
- Add the gem to Jekyll's configuration file:
29
-
30
- ```yaml
31
- gems:
32
- - octopress-asset-pipeline
33
- ```
34
-
35
- ## Liquid tags
36
-
37
- Include these tags in your site's layout.
38
-
39
- ```
40
- {% css_asset_tag %}
41
- {% js_asset_tag %}
42
- ```
43
-
44
- When Jekyll is compiled these will be replaced with something like this.
45
-
46
- ```
47
- <link href='/stylesheets/all-b5c56f2652600cde201589531c453ba1.css' media='all' rel='stylesheet' type='text/css'>
48
- <script src='/javascripts/all-75489c7b2da6efce7ee1bc45795d400b.js'></script>
49
- ```
50
-
51
- ## Configuration
52
-
53
- This plugin integrates with the core asset pipeline system in Octopress Ink, therefore
54
- the configurations are set in the `_octopress.yml` configuration file.
55
-
56
- | Option | Description | Default |
57
- |:---------------------|:------------------------------------------|:------------|
58
- | `combine_css` | Combine all .css, .scss and .sass files | true |
59
- | `combine_js` | Combine all .js and .coffee files | true |
60
- | `compress_css` | Compress stylesheets for production | true |
61
- | `compress_js` | Compress Javascripts for production | true |
62
- | `order_js` | Order for .js and .coffee files | [] |
63
- | `order_css` | Order for .css, .scss, and .sass | [] |
64
- | `uglifier` | Settings for Javascript Uglifier. [Documentaion](https://github.com/lautis/uglifier). | {} |
65
-
66
- ### Ordering assets
67
-
68
- By default when scripts and stylesheets are combined, they added based on
69
- their order in the file system. You can manually specify order like this:
70
-
71
- ```
72
- order_js
73
- - jquery.js
74
- - kittens.coffee
75
-
76
- order_css
77
- - normalize.css
78
- - site.sass
79
- ```
80
- Assets will ordered as specified. Any additional assets will be appended based on their order in the file system.
81
-
82
- Note: It is not necessary to write full paths in these configurations. An asset at `javascripts/lib/jquery.js` will match `jquery.js` and be ordered accordingly.
83
-
84
- ## Media files
85
-
86
- Usually it's better to define print styles inside of the main CSS file beneath a print media query, like this.
87
-
88
- ```
89
- @media print {
90
- * { background: none }
91
- * { color: #000 }
92
- ...
93
- }
94
- ```
95
-
96
- If you want to specify a separate print stylesheet, include `@print` in your filename, before the extension.
97
-
98
- When your site is compiled, this file will be written separately and its `<link>` tag will include a `media='print'` attribute.
99
-
100
- ## Contributing
101
-
102
- 1. Fork it ( https://github.com/[my-github-username]/octopress-asset-pipeline/fork )
103
- 2. Create your feature branch (`git checkout -b my-new-feature`)
104
- 3. Commit your changes (`git commit -am 'Add some feature'`)
105
- 4. Push to the branch (`git push origin my-new-feature`)
106
- 5. Create a new Pull Request
data/test/.clash.yml DELETED
@@ -1,13 +0,0 @@
1
- -
2
- build: true
3
- compare: expected/standard site
4
- -
5
- build: true
6
- config:
7
- octopress: _combine_css_only.yml
8
- compare: expected/css_tag_only site
9
- -
10
- build: true
11
- config:
12
- octopress: _combine_false.yml
13
- compare: expected/no_combining site