asset_pages 0.9.11 → 0.9.12

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: ec9460789005bd689ab8741b50c058345db09708
4
- data.tar.gz: 133ce206424ee96e6d41f7f8588c7a4886ed950e
3
+ metadata.gz: c797eeff2ca32cfee5ea6b1aacbb6608b8a8caf6
4
+ data.tar.gz: 8fe5d1dd477cd1644487ea490b413e336eb923e3
5
5
  SHA512:
6
- metadata.gz: 4315c5ccff77dabbe34063c7056b774311e9925fea8338dfc5fa51884174a7e4ca660f03ca38ffd82e646e610481d8024618017538c4d92fe9ad771d0124b7d9
7
- data.tar.gz: 150bef25b3f3d8c6322bddc4f33cb3e05c6566a9713498825ee6d70b7579fd8bb73af69c9486370e68aaf737247ea0245236c7f98f85bdf00a5eb7637f8830e3
6
+ metadata.gz: 15778af772a655a0fccaac5859903bf7b3845c2c62d6278c5e669e91bd7bce3403387f23edb4586b3c190d1cae6ff25f8f4774c595d99b7502bf316566f0a733
7
+ data.tar.gz: a568a01ff429e0073a9e7171385f5f6e8c0393a7c968fd4e8423c3dfd60aef08e3d43623d92c632e17b0eeee293b37ba4a4e860972fe228cd739e635192a81d8
@@ -101,7 +101,9 @@ module AssetPages
101
101
 
102
102
  # Write the asset into the staging directory.
103
103
  site_file.open("wb") { |f| f.write(asset_hash["source"]) } \
104
- if !site_file.file? || site_file.mtime < Time.at(asset_hash["mtime"])
104
+ if !site_file.file? \
105
+ || site_file.mtime < Time.at(asset_hash["mtime"]) \
106
+ || (asset_hash["dependency_paths"] || []).find { |dep| site_file.mtime < dep["mtime"] }
105
107
  else
106
108
  staging_dir = Root.relative_path_from(Pathname.new(assets_prefix)).expand_path(assets_manifest.dir)
107
109
  site_file_relative = assets_dir + asset_hash["filename"]
@@ -109,7 +111,7 @@ module AssetPages
109
111
 
110
112
  # Add to Jekyll's static file manifest, which ensures that said asset is moved into place.
111
113
  site.static_files \
112
- .push(::Jekyll::StaticFile.new(self,
114
+ .push(::Jekyll::StaticFile.new(site,
113
115
  staging_dir,
114
116
  site_file_relative.dirname,
115
117
  site_file_relative.basename)) \
@@ -24,7 +24,7 @@ module AssetPages
24
24
  MINOR = 9
25
25
 
26
26
  # The patch version.
27
- PATCH = 11
27
+ PATCH = 12
28
28
 
29
29
  # Gets the String representation of the gem version.
30
30
  def self.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy Liu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-23 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.0
19
+ version: 2.5.3
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: 2.4.0
26
+ version: 2.5.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 4.1.6
33
+ version: 4.2.0
34
34
  type: :runtime
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: 4.1.6
40
+ version: 4.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rugged
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.21.1b1
47
+ version: 0.22.0b5
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.21.1b1
54
+ version: 0.22.0b5
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: uglifier
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 2.5.3
61
+ version: 2.7.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 2.5.3
68
+ version: 2.7.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yui-compressor
71
71
  requirement: !ruby/object:Gem::Requirement