tgfa-jekyll-assets 0.7.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.rspec +1 -0
  4. data/.rubocop.yml +78 -0
  5. data/.travis.yml +9 -0
  6. data/.yardopts +1 -0
  7. data/Gemfile +15 -0
  8. data/Gemfile.jekyll-1.0 +2 -0
  9. data/Guardfile +8 -0
  10. data/HISTORY.md +202 -0
  11. data/LICENSE +22 -0
  12. data/README.md +569 -0
  13. data/Rakefile +9 -0
  14. data/lib/jekyll/assets_plugin/asset_path.rb +39 -0
  15. data/lib/jekyll/assets_plugin/configuration.rb +87 -0
  16. data/lib/jekyll/assets_plugin/environment.rb +62 -0
  17. data/lib/jekyll/assets_plugin/filters.rb +19 -0
  18. data/lib/jekyll/assets_plugin/patches/asset_patch.rb +68 -0
  19. data/lib/jekyll/assets_plugin/patches/bundled_asset_patch.rb +16 -0
  20. data/lib/jekyll/assets_plugin/patches/context_patch.rb +27 -0
  21. data/lib/jekyll/assets_plugin/patches/index_patch.rb +25 -0
  22. data/lib/jekyll/assets_plugin/patches/processed_asset_patch.rb +60 -0
  23. data/lib/jekyll/assets_plugin/patches/site_patch.rb +68 -0
  24. data/lib/jekyll/assets_plugin/patches.rb +1 -0
  25. data/lib/jekyll/assets_plugin/renderer.rb +47 -0
  26. data/lib/jekyll/assets_plugin/tag.rb +19 -0
  27. data/lib/jekyll/assets_plugin/version.rb +5 -0
  28. data/lib/jekyll/assets_plugin.rb +4 -0
  29. data/lib/jekyll-assets/bootstrap.rb +6 -0
  30. data/lib/jekyll-assets/bourbon.rb +4 -0
  31. data/lib/jekyll-assets/compass.rb +7 -0
  32. data/lib/jekyll-assets/font-awesome.rb +6 -0
  33. data/lib/jekyll-assets/neat.rb +4 -0
  34. data/lib/jekyll-assets.rb +2 -0
  35. data/spec/fixtures/.gitignore +2 -0
  36. data/spec/fixtures/_assets/app.css.erb +5 -0
  37. data/spec/fixtures/_assets/app.js +1 -0
  38. data/spec/fixtures/_assets/fonts/vapor.eot +0 -0
  39. data/spec/fixtures/_assets/fonts/vapor.svg +0 -0
  40. data/spec/fixtures/_assets/fonts/vapor.ttf +0 -0
  41. data/spec/fixtures/_assets/fonts/vapor.woff +0 -0
  42. data/spec/fixtures/_assets/lib/relative.css.scss +12 -0
  43. data/spec/fixtures/_assets/noise.png +0 -0
  44. data/spec/fixtures/_assets/should_be_blank.css.erb +1 -0
  45. data/spec/fixtures/_assets/should_fail.css.erb +1 -0
  46. data/spec/fixtures/_assets/vapor.css.scss +13 -0
  47. data/spec/fixtures/_assets/vapor.js +2 -0
  48. data/spec/fixtures/_assets/vendor/bourbon.css.sass +4 -0
  49. data/spec/fixtures/_assets/vendor/compass.css.sass +4 -0
  50. data/spec/fixtures/_assets/vendor/neat.css.sass +5 -0
  51. data/spec/fixtures/_assets/wowscript.js +0 -0
  52. data/spec/fixtures/_assets/wowstyle.css +0 -0
  53. data/spec/fixtures/_config.yml +2 -0
  54. data/spec/fixtures/_layouts/default.html +9 -0
  55. data/spec/fixtures/_posts/2012-10-19-hello-world.md +6 -0
  56. data/spec/fixtures/index.html +0 -0
  57. data/spec/lib/jekyll/assets_plugin/configuration_spec.rb +167 -0
  58. data/spec/lib/jekyll/assets_plugin/environment_spec.rb +22 -0
  59. data/spec/lib/jekyll/assets_plugin/filters_spec.rb +103 -0
  60. data/spec/lib/jekyll/assets_plugin/patches/site_patch_spec.rb +168 -0
  61. data/spec/lib/jekyll/assets_plugin/renderer_spec.rb +48 -0
  62. data/spec/lib/jekyll/assets_plugin/tag_spec.rb +103 -0
  63. data/spec/lib/jekyll-assets/bootstrap_spec.rb +8 -0
  64. data/spec/lib/jekyll-assets/bourbon_spec.rb +8 -0
  65. data/spec/lib/jekyll-assets/compass_spec.rb +8 -0
  66. data/spec/lib/jekyll-assets/font-awesome_spec.rb +8 -0
  67. data/spec/lib/jekyll-assets/neat_spec.rb +8 -0
  68. data/spec/spec_helper.rb +45 -0
  69. data/spec/support/fixtures_helpers.rb +7 -0
  70. data/tgfa-jekyll-assets.gemspec +41 -0
  71. metadata +322 -0
@@ -0,0 +1,45 @@
1
+ require "rubygems"
2
+
3
+ require "simplecov"
4
+ require "coveralls"
5
+
6
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
7
+ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter
8
+ ]
9
+
10
+ SimpleCov.start
11
+
12
+ require "jekyll"
13
+ require "liquid"
14
+ require "sprockets"
15
+
16
+ # Requires supporting ruby files with custom matchers and macros, etc,
17
+ # in spec/support/ and its subdirectories.
18
+ Dir[File.expand_path("../support", __FILE__) + "/**/*.rb"]
19
+ .each { |f| require f }
20
+
21
+ RSpec.configure do |config|
22
+ config.include FixturesHelpers
23
+ config.extend FixturesHelpers
24
+
25
+ config.before(:all) do
26
+ if Gem::Version.new("2") <= Gem::Version.new(Jekyll::VERSION)
27
+ Jekyll.logger.log_level = :warn
28
+ else
29
+ Jekyll.logger.log_level = Jekyll::Stevenson::WARN
30
+ end
31
+
32
+ @dest = fixtures_path.join("_site")
33
+ @site = Jekyll::Site.new(Jekyll.configuration({
34
+ "source" => fixtures_path.to_s,
35
+ "destination" => @dest.to_s
36
+ }))
37
+
38
+ @dest.rmtree if @dest.exist?
39
+ @site.process
40
+ end
41
+
42
+ config.after(:all) do
43
+ @dest.rmtree if @dest.exist?
44
+ end
45
+ end
@@ -0,0 +1,7 @@
1
+ require "pathname"
2
+
3
+ module FixturesHelpers
4
+ def fixtures_path
5
+ @fixtures_path ||= Pathname.new(__FILE__).parent.parent.join("fixtures")
6
+ end
7
+ end
@@ -0,0 +1,41 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "jekyll/assets_plugin/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "tgfa-jekyll-assets"
8
+ spec.version = Jekyll::AssetsPlugin::VERSION
9
+ spec.homepage = "https://github.com/tgfa/tgfa-jekyll-assets"
10
+ spec.authors = ["Aleksey V Zapparov", "sugeng tigefa"]
11
+ spec.email = ["ixti@member.fsf.org", "sugeng@tigefa.org"]
12
+ spec.license = "MIT"
13
+ spec.summary = "jekyll-assets-#{Jekyll::AssetsPlugin::VERSION}"
14
+ spec.description = <<-DESC
15
+ Jekyll plugin, that allows you to write javascript/css assets in
16
+ other languages such as CoffeeScript, Sass, Less and ERB, concatenate
17
+ them, respecting dependencies, minify and many more.
18
+ DESC
19
+
20
+ spec.files = `git ls-files`.split($RS)
21
+ spec.executables = spec.files.grep(/^bin\//).map { |f| File.basename(f) }
22
+ spec.test_files = spec.files.grep(/^(test|spec|features)\//)
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "jekyll", "~> 1.2.1"
26
+ spec.add_dependency "sprockets", "~> 2.10"
27
+ spec.add_dependency "sass"
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.3"
30
+ spec.add_development_dependency "rake"
31
+ spec.add_development_dependency "rspec"
32
+ spec.add_development_dependency "compass"
33
+ spec.add_development_dependency "bourbon"
34
+ spec.add_development_dependency "neat"
35
+ spec.add_development_dependency "bootstrap-sass"
36
+ spec.add_development_dependency "font-awesome-sass"
37
+
38
+ # compass fails with SASS than 3.3+
39
+ # https://github.com/chriseppstein/compass/issues/1513
40
+ spec.add_development_dependency "sass", "~> 3.2.13"
41
+ end
metadata ADDED
@@ -0,0 +1,322 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tgfa-jekyll-assets
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.9.1
5
+ platform: ruby
6
+ authors:
7
+ - Aleksey V Zapparov
8
+ - sugeng tigefa
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-06-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jekyll
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 1.2.1
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 1.2.1
28
+ - !ruby/object:Gem::Dependency
29
+ name: sprockets
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.10'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2.10'
42
+ - !ruby/object:Gem::Dependency
43
+ name: sass
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: bundler
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.3'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.3'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rake
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rspec
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: compass
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: bourbon
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: neat
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: bootstrap-sass
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: font-awesome-sass
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: sass
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: 3.2.13
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: 3.2.13
182
+ description: |2
183
+ Jekyll plugin, that allows you to write javascript/css assets in
184
+ other languages such as CoffeeScript, Sass, Less and ERB, concatenate
185
+ them, respecting dependencies, minify and many more.
186
+ email:
187
+ - ixti@member.fsf.org
188
+ - sugeng@tigefa.org
189
+ executables: []
190
+ extensions: []
191
+ extra_rdoc_files: []
192
+ files:
193
+ - ".gitignore"
194
+ - ".rspec"
195
+ - ".rubocop.yml"
196
+ - ".travis.yml"
197
+ - ".yardopts"
198
+ - Gemfile
199
+ - Gemfile.jekyll-1.0
200
+ - Guardfile
201
+ - HISTORY.md
202
+ - LICENSE
203
+ - README.md
204
+ - Rakefile
205
+ - lib/jekyll-assets.rb
206
+ - lib/jekyll-assets/bootstrap.rb
207
+ - lib/jekyll-assets/bourbon.rb
208
+ - lib/jekyll-assets/compass.rb
209
+ - lib/jekyll-assets/font-awesome.rb
210
+ - lib/jekyll-assets/neat.rb
211
+ - lib/jekyll/assets_plugin.rb
212
+ - lib/jekyll/assets_plugin/asset_path.rb
213
+ - lib/jekyll/assets_plugin/configuration.rb
214
+ - lib/jekyll/assets_plugin/environment.rb
215
+ - lib/jekyll/assets_plugin/filters.rb
216
+ - lib/jekyll/assets_plugin/patches.rb
217
+ - lib/jekyll/assets_plugin/patches/asset_patch.rb
218
+ - lib/jekyll/assets_plugin/patches/bundled_asset_patch.rb
219
+ - lib/jekyll/assets_plugin/patches/context_patch.rb
220
+ - lib/jekyll/assets_plugin/patches/index_patch.rb
221
+ - lib/jekyll/assets_plugin/patches/processed_asset_patch.rb
222
+ - lib/jekyll/assets_plugin/patches/site_patch.rb
223
+ - lib/jekyll/assets_plugin/renderer.rb
224
+ - lib/jekyll/assets_plugin/tag.rb
225
+ - lib/jekyll/assets_plugin/version.rb
226
+ - spec/fixtures/.gitignore
227
+ - spec/fixtures/_assets/app.css.erb
228
+ - spec/fixtures/_assets/app.js
229
+ - spec/fixtures/_assets/fonts/vapor.eot
230
+ - spec/fixtures/_assets/fonts/vapor.svg
231
+ - spec/fixtures/_assets/fonts/vapor.ttf
232
+ - spec/fixtures/_assets/fonts/vapor.woff
233
+ - spec/fixtures/_assets/lib/relative.css.scss
234
+ - spec/fixtures/_assets/noise.png
235
+ - spec/fixtures/_assets/should_be_blank.css.erb
236
+ - spec/fixtures/_assets/should_fail.css.erb
237
+ - spec/fixtures/_assets/vapor.css.scss
238
+ - spec/fixtures/_assets/vapor.js
239
+ - spec/fixtures/_assets/vendor/bourbon.css.sass
240
+ - spec/fixtures/_assets/vendor/compass.css.sass
241
+ - spec/fixtures/_assets/vendor/neat.css.sass
242
+ - spec/fixtures/_assets/wowscript.js
243
+ - spec/fixtures/_assets/wowstyle.css
244
+ - spec/fixtures/_config.yml
245
+ - spec/fixtures/_layouts/default.html
246
+ - spec/fixtures/_posts/2012-10-19-hello-world.md
247
+ - spec/fixtures/index.html
248
+ - spec/lib/jekyll-assets/bootstrap_spec.rb
249
+ - spec/lib/jekyll-assets/bourbon_spec.rb
250
+ - spec/lib/jekyll-assets/compass_spec.rb
251
+ - spec/lib/jekyll-assets/font-awesome_spec.rb
252
+ - spec/lib/jekyll-assets/neat_spec.rb
253
+ - spec/lib/jekyll/assets_plugin/configuration_spec.rb
254
+ - spec/lib/jekyll/assets_plugin/environment_spec.rb
255
+ - spec/lib/jekyll/assets_plugin/filters_spec.rb
256
+ - spec/lib/jekyll/assets_plugin/patches/site_patch_spec.rb
257
+ - spec/lib/jekyll/assets_plugin/renderer_spec.rb
258
+ - spec/lib/jekyll/assets_plugin/tag_spec.rb
259
+ - spec/spec_helper.rb
260
+ - spec/support/fixtures_helpers.rb
261
+ - tgfa-jekyll-assets.gemspec
262
+ homepage: https://github.com/tgfa/tgfa-jekyll-assets
263
+ licenses:
264
+ - MIT
265
+ metadata: {}
266
+ post_install_message:
267
+ rdoc_options: []
268
+ require_paths:
269
+ - lib
270
+ required_ruby_version: !ruby/object:Gem::Requirement
271
+ requirements:
272
+ - - ">="
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ required_rubygems_version: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - ">="
278
+ - !ruby/object:Gem::Version
279
+ version: '0'
280
+ requirements: []
281
+ rubyforge_project:
282
+ rubygems_version: 2.3.0
283
+ signing_key:
284
+ specification_version: 4
285
+ summary: jekyll-assets-0.7.9.1
286
+ test_files:
287
+ - spec/fixtures/.gitignore
288
+ - spec/fixtures/_assets/app.css.erb
289
+ - spec/fixtures/_assets/app.js
290
+ - spec/fixtures/_assets/fonts/vapor.eot
291
+ - spec/fixtures/_assets/fonts/vapor.svg
292
+ - spec/fixtures/_assets/fonts/vapor.ttf
293
+ - spec/fixtures/_assets/fonts/vapor.woff
294
+ - spec/fixtures/_assets/lib/relative.css.scss
295
+ - spec/fixtures/_assets/noise.png
296
+ - spec/fixtures/_assets/should_be_blank.css.erb
297
+ - spec/fixtures/_assets/should_fail.css.erb
298
+ - spec/fixtures/_assets/vapor.css.scss
299
+ - spec/fixtures/_assets/vapor.js
300
+ - spec/fixtures/_assets/vendor/bourbon.css.sass
301
+ - spec/fixtures/_assets/vendor/compass.css.sass
302
+ - spec/fixtures/_assets/vendor/neat.css.sass
303
+ - spec/fixtures/_assets/wowscript.js
304
+ - spec/fixtures/_assets/wowstyle.css
305
+ - spec/fixtures/_config.yml
306
+ - spec/fixtures/_layouts/default.html
307
+ - spec/fixtures/_posts/2012-10-19-hello-world.md
308
+ - spec/fixtures/index.html
309
+ - spec/lib/jekyll-assets/bootstrap_spec.rb
310
+ - spec/lib/jekyll-assets/bourbon_spec.rb
311
+ - spec/lib/jekyll-assets/compass_spec.rb
312
+ - spec/lib/jekyll-assets/font-awesome_spec.rb
313
+ - spec/lib/jekyll-assets/neat_spec.rb
314
+ - spec/lib/jekyll/assets_plugin/configuration_spec.rb
315
+ - spec/lib/jekyll/assets_plugin/environment_spec.rb
316
+ - spec/lib/jekyll/assets_plugin/filters_spec.rb
317
+ - spec/lib/jekyll/assets_plugin/patches/site_patch_spec.rb
318
+ - spec/lib/jekyll/assets_plugin/renderer_spec.rb
319
+ - spec/lib/jekyll/assets_plugin/tag_spec.rb
320
+ - spec/spec_helper.rb
321
+ - spec/support/fixtures_helpers.rb
322
+ has_rdoc: