tres 0.1.7 → 0.1.8
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.
- data/VERSION +1 -1
- data/lib/tres/packager.rb +4 -4
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.8
|
data/lib/tres/packager.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Tres
|
|
|
5
5
|
include FileMethods
|
|
6
6
|
|
|
7
7
|
attr_accessor :root, :asset_manager
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
def initialize options = {}
|
|
10
10
|
@root = options[:root]
|
|
11
11
|
@asset_manager = options[:asset_manager]
|
|
@@ -19,12 +19,12 @@ module Tres
|
|
|
19
19
|
index = Nokogiri::HTML(read_file(@root/'build'/'index.html'))
|
|
20
20
|
scripts = index.css('script[src]')
|
|
21
21
|
scripts.each do |script|
|
|
22
|
-
write relativize(script['src'], '
|
|
22
|
+
write relativize(script['src'], '.')
|
|
23
23
|
end
|
|
24
24
|
styles = index.css('link[rel="stylesheet"][href]')
|
|
25
25
|
styles.each do |style|
|
|
26
|
-
write relativize(style['href'], '
|
|
26
|
+
write relativize(style['href'], '.') rescue nil
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
|
-
end
|
|
30
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tres
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: listen
|