tgfa-jekyll-assets 0.7.9.1
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 +7 -0
- data/.gitignore +18 -0
- data/.rspec +1 -0
- data/.rubocop.yml +78 -0
- data/.travis.yml +9 -0
- data/.yardopts +1 -0
- data/Gemfile +15 -0
- data/Gemfile.jekyll-1.0 +2 -0
- data/Guardfile +8 -0
- data/HISTORY.md +202 -0
- data/LICENSE +22 -0
- data/README.md +569 -0
- data/Rakefile +9 -0
- data/lib/jekyll/assets_plugin/asset_path.rb +39 -0
- data/lib/jekyll/assets_plugin/configuration.rb +87 -0
- data/lib/jekyll/assets_plugin/environment.rb +62 -0
- data/lib/jekyll/assets_plugin/filters.rb +19 -0
- data/lib/jekyll/assets_plugin/patches/asset_patch.rb +68 -0
- data/lib/jekyll/assets_plugin/patches/bundled_asset_patch.rb +16 -0
- data/lib/jekyll/assets_plugin/patches/context_patch.rb +27 -0
- data/lib/jekyll/assets_plugin/patches/index_patch.rb +25 -0
- data/lib/jekyll/assets_plugin/patches/processed_asset_patch.rb +60 -0
- data/lib/jekyll/assets_plugin/patches/site_patch.rb +68 -0
- data/lib/jekyll/assets_plugin/patches.rb +1 -0
- data/lib/jekyll/assets_plugin/renderer.rb +47 -0
- data/lib/jekyll/assets_plugin/tag.rb +19 -0
- data/lib/jekyll/assets_plugin/version.rb +5 -0
- data/lib/jekyll/assets_plugin.rb +4 -0
- data/lib/jekyll-assets/bootstrap.rb +6 -0
- data/lib/jekyll-assets/bourbon.rb +4 -0
- data/lib/jekyll-assets/compass.rb +7 -0
- data/lib/jekyll-assets/font-awesome.rb +6 -0
- data/lib/jekyll-assets/neat.rb +4 -0
- data/lib/jekyll-assets.rb +2 -0
- data/spec/fixtures/.gitignore +2 -0
- data/spec/fixtures/_assets/app.css.erb +5 -0
- data/spec/fixtures/_assets/app.js +1 -0
- data/spec/fixtures/_assets/fonts/vapor.eot +0 -0
- data/spec/fixtures/_assets/fonts/vapor.svg +0 -0
- data/spec/fixtures/_assets/fonts/vapor.ttf +0 -0
- data/spec/fixtures/_assets/fonts/vapor.woff +0 -0
- data/spec/fixtures/_assets/lib/relative.css.scss +12 -0
- data/spec/fixtures/_assets/noise.png +0 -0
- data/spec/fixtures/_assets/should_be_blank.css.erb +1 -0
- data/spec/fixtures/_assets/should_fail.css.erb +1 -0
- data/spec/fixtures/_assets/vapor.css.scss +13 -0
- data/spec/fixtures/_assets/vapor.js +2 -0
- data/spec/fixtures/_assets/vendor/bourbon.css.sass +4 -0
- data/spec/fixtures/_assets/vendor/compass.css.sass +4 -0
- data/spec/fixtures/_assets/vendor/neat.css.sass +5 -0
- data/spec/fixtures/_assets/wowscript.js +0 -0
- data/spec/fixtures/_assets/wowstyle.css +0 -0
- data/spec/fixtures/_config.yml +2 -0
- data/spec/fixtures/_layouts/default.html +9 -0
- data/spec/fixtures/_posts/2012-10-19-hello-world.md +6 -0
- data/spec/fixtures/index.html +0 -0
- data/spec/lib/jekyll/assets_plugin/configuration_spec.rb +167 -0
- data/spec/lib/jekyll/assets_plugin/environment_spec.rb +22 -0
- data/spec/lib/jekyll/assets_plugin/filters_spec.rb +103 -0
- data/spec/lib/jekyll/assets_plugin/patches/site_patch_spec.rb +168 -0
- data/spec/lib/jekyll/assets_plugin/renderer_spec.rb +48 -0
- data/spec/lib/jekyll/assets_plugin/tag_spec.rb +103 -0
- data/spec/lib/jekyll-assets/bootstrap_spec.rb +8 -0
- data/spec/lib/jekyll-assets/bourbon_spec.rb +8 -0
- data/spec/lib/jekyll-assets/compass_spec.rb +8 -0
- data/spec/lib/jekyll-assets/font-awesome_spec.rb +8 -0
- data/spec/lib/jekyll-assets/neat_spec.rb +8 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/support/fixtures_helpers.rb +7 -0
- data/tgfa-jekyll-assets.gemspec +41 -0
- metadata +322 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f4b4b46b73d1b833afe160fbfd1d802f0e4ad350
|
4
|
+
data.tar.gz: dd2ca34a07ba9824bdbbeef1e5c7d43298bc064e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bdca7db69ea295796b54f49544c75acf57ce2320c69b1df114e519a0bca7d0efb56784952c74d4b8d10df3f61f70b1e23a914b77c4ebaf35fda9f1d4893fbb0d
|
7
|
+
data.tar.gz: a6dbf6c8b56989aa99d33cc75b83ef33ecf4b4b1c5fc60c749091f55be5777756ca8d56c5d86470d3488db40a270081b7abd6b3cb954e31f0315c6c325dc7cb4
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require ./lib/jekyll-assets --color --format documentation
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Avoid long parameter lists
|
2
|
+
ParameterLists:
|
3
|
+
Max: 3
|
4
|
+
CountKeywordArgs: true
|
5
|
+
|
6
|
+
MethodLength:
|
7
|
+
CountComments: false
|
8
|
+
Max: 15
|
9
|
+
|
10
|
+
ClassLength:
|
11
|
+
CountComments: false
|
12
|
+
Max: 100
|
13
|
+
|
14
|
+
CyclomaticComplexity:
|
15
|
+
Max: 6
|
16
|
+
|
17
|
+
EmptyLineBetweenDefs:
|
18
|
+
AllowAdjacentOneLineDefs: true
|
19
|
+
|
20
|
+
BlockNesting:
|
21
|
+
Max: 3
|
22
|
+
|
23
|
+
HashSyntax:
|
24
|
+
EnforcedStyle: hash_rockets
|
25
|
+
|
26
|
+
StringLiterals:
|
27
|
+
EnforcedStyle: double_quotes
|
28
|
+
|
29
|
+
AlignParameters:
|
30
|
+
EnforcedStyle: with_fixed_indentation
|
31
|
+
|
32
|
+
IndentHash:
|
33
|
+
EnforcedStyle: consistent
|
34
|
+
|
35
|
+
PercentLiteralDelimiters:
|
36
|
+
PreferredDelimiters:
|
37
|
+
'%': ()
|
38
|
+
'%i': ()
|
39
|
+
'%q': ()
|
40
|
+
'%Q': ()
|
41
|
+
'%r': '{}'
|
42
|
+
'%s': ()
|
43
|
+
'%w': '[]'
|
44
|
+
'%W': '[]'
|
45
|
+
'%x': ()
|
46
|
+
|
47
|
+
Encoding:
|
48
|
+
Enabled: false
|
49
|
+
|
50
|
+
BracesAroundHashParameters:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
Documentation:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
# Not all trivial readers/writers can be defined with attr_* methods
|
57
|
+
TrivialAccessors:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
# New lambda syntax is UGLY, don't enforce it
|
61
|
+
Lambda:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
# Ridiculous (and IMHO useless) restriction, that makes impossible aligning
|
65
|
+
# code like this:
|
66
|
+
#
|
67
|
+
# redis.hset :k1, now
|
68
|
+
# redis.hincrby :k2, 123
|
69
|
+
SingleSpaceBeforeFirstArg:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
AllCops:
|
73
|
+
Include:
|
74
|
+
- Gemfile
|
75
|
+
|
76
|
+
# TODO: Rename all files and modules :D
|
77
|
+
FileName:
|
78
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
lib/**/*.rb - README.md HISTORY.md LICENSE
|
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem "rubocop", "~> 0.22.0"
|
4
|
+
|
5
|
+
group :test do
|
6
|
+
gem "coveralls", :require => false
|
7
|
+
gem "simplecov", :require => false
|
8
|
+
end
|
9
|
+
|
10
|
+
group :development do
|
11
|
+
gem "guard-rspec"
|
12
|
+
end
|
13
|
+
|
14
|
+
# Specify your gem's dependencies in jekyll-assets.gemspec
|
15
|
+
gemspec
|
data/Gemfile.jekyll-1.0
ADDED
data/Guardfile
ADDED
data/HISTORY.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
### master (unreleased)
|
2
|
+
|
3
|
+
|
4
|
+
### 0.7.9 (2014-05-25)
|
5
|
+
|
6
|
+
* Add `font-awesome` support. See #76. (Thanks @adilsoncarvalho)
|
7
|
+
* Add `autoprefixer-rails` support. See #68. (Thanks @nz)
|
8
|
+
|
9
|
+
|
10
|
+
### 0.7.8 (2014-05-08)
|
11
|
+
|
12
|
+
* Support jekyll `~> 2.0`.
|
13
|
+
|
14
|
+
|
15
|
+
### 0.7.7 (2014-03-12)
|
16
|
+
|
17
|
+
* Allow purge cache by bumping assest config version.
|
18
|
+
|
19
|
+
|
20
|
+
### 0.7.6 (2014-02-22)
|
21
|
+
|
22
|
+
* Add `bootstrap-sass` support. See #75. (Thanks @adilsoncarvalho)
|
23
|
+
|
24
|
+
|
25
|
+
### 0.7.5 (2014-02-11)
|
26
|
+
|
27
|
+
* Fix `asset_path` error against empty srting. See #72. (Thanks @yaegashi)
|
28
|
+
|
29
|
+
|
30
|
+
### 0.7.4 (2013-10-25)
|
31
|
+
|
32
|
+
* Fix relative paths requires. See #59. (Thanks @wadetandy)
|
33
|
+
|
34
|
+
|
35
|
+
### 0.7.3 (2013-10-12)
|
36
|
+
|
37
|
+
* Play nice with other plugins using `static_files`. See #45.
|
38
|
+
|
39
|
+
|
40
|
+
### 0.7.2 (2013-09-07)
|
41
|
+
|
42
|
+
* Add `image` Liquid tag and filter.
|
43
|
+
|
44
|
+
|
45
|
+
### 0.7.1 (2013-08-17)
|
46
|
+
|
47
|
+
* Minor bugfix of AssetPath and small code refactoring.
|
48
|
+
|
49
|
+
|
50
|
+
### 0.7.0 (2013-08-11)
|
51
|
+
|
52
|
+
* Adds `debug` mode that outputs multiple scripts/styles instead of bundling
|
53
|
+
them. See #40.
|
54
|
+
|
55
|
+
|
56
|
+
### 0.6.1 (2013-07-22)
|
57
|
+
|
58
|
+
* Fix regression with `asset_path`. See #38.
|
59
|
+
|
60
|
+
|
61
|
+
### 0.6.0 (2013-07-14)
|
62
|
+
|
63
|
+
* Remove `type` attributes from tags genereated by `javascript` and
|
64
|
+
`stylesheet` helpers. See #37.
|
65
|
+
* Fix issue with nested assets not being regenerated when cache enabled.
|
66
|
+
See #35.
|
67
|
+
|
68
|
+
|
69
|
+
### 0.5.4 (2103-07-07)
|
70
|
+
|
71
|
+
* Rename configuration options `compress.js` and `compress.css` into
|
72
|
+
`js_compressor` and `css_compressor` respectively.
|
73
|
+
* Rename configureation option `cache_assets` into `cache`.
|
74
|
+
* Allow specify custom compilation cache path.
|
75
|
+
* Invalidate cache upon config changes.
|
76
|
+
|
77
|
+
|
78
|
+
### 0.5.3 (2013-05-25)
|
79
|
+
|
80
|
+
* Assets cache disable by default, in order to avoid "unpredictable" behavior.
|
81
|
+
|
82
|
+
|
83
|
+
### 0.5.2 (2013-05-25)
|
84
|
+
|
85
|
+
* Use Sprocket assets cache for compilation speed improvement. See #32.
|
86
|
+
(Thanks @beanieboi).
|
87
|
+
* Minor fix in gemspec.
|
88
|
+
|
89
|
+
|
90
|
+
### 0.5.1 (2013-05-13)
|
91
|
+
|
92
|
+
* Re-use underlying asset file to avoid "recompilation" of fresh assets.
|
93
|
+
|
94
|
+
|
95
|
+
### 0.5.0 (2013-05-10)
|
96
|
+
|
97
|
+
* Fix mocks to pass tests on jekyll 1.x
|
98
|
+
* Update jekyll dependency `~> 1.0`
|
99
|
+
|
100
|
+
|
101
|
+
### 0.4.2 (2013-05-08)
|
102
|
+
|
103
|
+
* Require jekyll < 1.0.0. This is a the last release with support of 0.x branch
|
104
|
+
of jekyll.
|
105
|
+
|
106
|
+
|
107
|
+
### 0.4.1 (2013-05-08)
|
108
|
+
|
109
|
+
* Drop forgotten liquid processor require.
|
110
|
+
|
111
|
+
|
112
|
+
### 0.4.0 (2013-05-08)
|
113
|
+
|
114
|
+
* Drop Liquid pre-processing. See #25.
|
115
|
+
|
116
|
+
|
117
|
+
### 0.3.8 (2013-04-29)
|
118
|
+
|
119
|
+
* Play nice with query strings and anchors in pathnames of requested assets.
|
120
|
+
See #20.
|
121
|
+
|
122
|
+
|
123
|
+
### 0.3.7 (2013-04-29)
|
124
|
+
|
125
|
+
* Refactor AssetFile to avoid stale assets caching. See #23.
|
126
|
+
|
127
|
+
|
128
|
+
### 0.3.6 (2013-04-28)
|
129
|
+
|
130
|
+
* Ruby 2.0.0 support. See #16.
|
131
|
+
|
132
|
+
|
133
|
+
### 0.3.5 (2013-03-03)
|
134
|
+
|
135
|
+
* Add built-in neat support as `require "jekyll-assets/neat"`. See #18.
|
136
|
+
(Thanks @awmichel)
|
137
|
+
* Automagically produce GZipped assets. See #17. (Thanks @beanieboi)
|
138
|
+
|
139
|
+
|
140
|
+
### 0.3.4 (2013-02-18)
|
141
|
+
|
142
|
+
* Fix assets regeneration (with --auto) issue. See #13.
|
143
|
+
|
144
|
+
|
145
|
+
### 0.3.3 (2013-02-16)
|
146
|
+
|
147
|
+
* Respect cachebust setting on assets output filenames. (Thanks @softcrumbs)
|
148
|
+
|
149
|
+
|
150
|
+
### 0.3.2 (2013-02-10)
|
151
|
+
|
152
|
+
* Allow choose cachebusting strategy (hard/soft/none). See #11.
|
153
|
+
|
154
|
+
|
155
|
+
### 0.3.1 (2013-02-02)
|
156
|
+
|
157
|
+
* Preprocess CSS/JS assets with Liquid processor.
|
158
|
+
|
159
|
+
|
160
|
+
### 0.3.0 (2013-01-08)
|
161
|
+
|
162
|
+
* Add complimentary filters (same names as tags).
|
163
|
+
|
164
|
+
|
165
|
+
### 0.2.3 (2013-01-07)
|
166
|
+
|
167
|
+
* Add built-in bourbon support as: `require "jekyll-assets/bourbon"`.
|
168
|
+
|
169
|
+
|
170
|
+
### 0.2.2 (2013-01-07)
|
171
|
+
|
172
|
+
* Add built-in compass support as: `require "jekyll-assets/compass"`.
|
173
|
+
|
174
|
+
|
175
|
+
### 0.2.1 (2012-12-31)
|
176
|
+
|
177
|
+
* Expose `Jekyll::Site` instance into assets as `site`.
|
178
|
+
* Improve assets comparison (when required with different logical names).
|
179
|
+
|
180
|
+
|
181
|
+
### 0.2.0 (2012-12-28)
|
182
|
+
|
183
|
+
* Remove logging.
|
184
|
+
* Fix `asset_path` helper within assets.
|
185
|
+
* Remove `bundles` configuration option.
|
186
|
+
All require assets are auto-bundled now.
|
187
|
+
|
188
|
+
|
189
|
+
### 0.1.1 (2012-12-21)
|
190
|
+
|
191
|
+
* Add `baseurl` configuration option.
|
192
|
+
|
193
|
+
|
194
|
+
### 0.1.1 (2012-10-23)
|
195
|
+
|
196
|
+
* Small bug fixes and improvements.
|
197
|
+
* Add `{% asset <logical_path> %}` Liquid tag.
|
198
|
+
|
199
|
+
|
200
|
+
### 0.1.0 (2012-10-22)
|
201
|
+
|
202
|
+
* First public release.
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012-2013 Aleksey V Zapparov (http://ixti.net/)
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|