jekyll-minibundle 2.1.0 → 2.1.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +91 -61
- data/jekyll-minibundle.gemspec +6 -5
- data/lib/jekyll/minibundle/asset_file_operations.rb +1 -0
- data/lib/jekyll/minibundle/asset_file_properties.rb +9 -3
- data/lib/jekyll/minibundle/bundle_file.rb +17 -15
- data/lib/jekyll/minibundle/development_file.rb +3 -3
- data/lib/jekyll/minibundle/stamp_file.rb +11 -10
- data/lib/jekyll/minibundle/version.rb +1 -1
- data/test/integration/minibundle_development_mode_test.rb +13 -13
- data/test/integration/minibundle_production_mode_test.rb +32 -21
- data/test/integration/ministamp_development_mode_test.rb +9 -9
- data/test/integration/ministamp_production_mode_test.rb +7 -7
- data/test/support/static_file_api_config.rb +1 -0
- data/test/support/test_case.rb +22 -6
- data/test/unit/bundle_file_properties_test.rb +22 -15
- data/test/unit/bundle_file_writing_test.rb +7 -7
- data/test/unit/development_file_collection_properties_test.rb +39 -30
- data/test/unit/jekyll_static_file_api_test.rb +71 -0
- data/test/unit/stamp_file_properties_test.rb +22 -15
- data/test/unit/stamp_file_writing_test.rb +5 -5
- metadata +24 -10
@@ -15,14 +15,14 @@ module Jekyll::Minibundle::Test
|
|
15
15
|
|
16
16
|
assert stamp_file.write('_site')
|
17
17
|
|
18
|
-
org_mtime =
|
18
|
+
org_mtime = file_mtime_of(old_destination)
|
19
19
|
last_markup = stamp_file.destination_path_for_markup
|
20
20
|
ensure_file_mtime_changes { File.write(source, 'h1 {}') }
|
21
21
|
|
22
22
|
# preserve fingerprint and content seen in last markup phase
|
23
23
|
refute stamp_file.write('_site')
|
24
24
|
assert_equal org_markup, last_markup
|
25
|
-
assert_equal org_mtime,
|
25
|
+
assert_equal org_mtime, file_mtime_of(old_destination)
|
26
26
|
assert_equal File.read(site_fixture_path(STAMP_SOURCE_PATH)), File.read(old_destination)
|
27
27
|
|
28
28
|
last_markup = stamp_file.destination_path_for_markup
|
@@ -33,7 +33,7 @@ module Jekyll::Minibundle::Test
|
|
33
33
|
|
34
34
|
# see updated fingerprint in the next round
|
35
35
|
refute_equal org_markup, last_markup
|
36
|
-
assert_operator
|
36
|
+
assert_operator file_mtime_of(new_destination), :>, org_mtime
|
37
37
|
assert_equal File.read(source), File.read(new_destination)
|
38
38
|
end
|
39
39
|
end
|
@@ -48,14 +48,14 @@ module Jekyll::Minibundle::Test
|
|
48
48
|
|
49
49
|
assert stamp_file.write('_site')
|
50
50
|
|
51
|
-
org_mtime =
|
51
|
+
org_mtime = file_mtime_of(destination)
|
52
52
|
ensure_file_mtime_changes { FileUtils.touch(source) }
|
53
53
|
last_markup = stamp_file.destination_path_for_markup
|
54
54
|
stamp_file.destination_path_for_markup
|
55
55
|
|
56
56
|
assert stamp_file.write('_site')
|
57
57
|
assert_equal org_markup, last_markup
|
58
|
-
assert_operator
|
58
|
+
assert_operator file_mtime_of(destination), :>, org_mtime
|
59
59
|
assert_equal File.read(source), File.read(destination)
|
60
60
|
end
|
61
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-minibundle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tuomas Kareinen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -52,40 +52,54 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.10'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rake
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
75
|
+
version: '12.0'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
82
|
+
version: '12.0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rubocop
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
89
|
+
version: 0.46.0
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
96
|
+
version: 0.46.0
|
83
97
|
description: |
|
84
98
|
A straightforward asset bundling plugin for Jekyll, utilizing external
|
85
99
|
minification tool of your choice. It provides asset concatenation for
|
86
|
-
bundling and asset fingerprinting with MD5 digest for cache
|
87
|
-
|
88
|
-
|
100
|
+
bundling and asset fingerprinting with MD5 digest for cache busting.
|
101
|
+
There are no other runtime dependencies besides the minification tool
|
102
|
+
(not even other gems).
|
89
103
|
email: tkareine@gmail.com
|
90
104
|
executables: []
|
91
105
|
extensions: []
|
@@ -175,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
189
|
version: '0'
|
176
190
|
requirements: []
|
177
191
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.6.
|
192
|
+
rubygems_version: 2.6.8
|
179
193
|
signing_key:
|
180
194
|
specification_version: 4
|
181
195
|
summary: A minimalistic asset bundling plugin for Jekyll
|