fangorn 0.0.14 → 0.0.15
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/lib/fangorn/haml.rb +1 -1
- data/lib/fangorn/js.rb +0 -8
- data/lib/fangorn/output.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49833a5c28bee85bfa2525a7619f2d68a9fa7193
|
4
|
+
data.tar.gz: 480bd535207c132d9a47935fbd8511d86159d9c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62d58cffcdc4a8b270c93cf8c5b5b750b6bed7139e4867c920c1fd28ff86fc0b1342d11d46ee6b0707a68663267d91676080ee15590652db10b165f217fd2722
|
7
|
+
data.tar.gz: 2a4065bce24a2dcc4da698896981a5c9972517fea188beb145d24dee11effae4b793b8913fdc50e9270f5678dc50a5c2971397a2cab87e31ecc91af7713063d8
|
data/lib/fangorn/haml.rb
CHANGED
data/lib/fangorn/js.rb
CHANGED
@@ -9,8 +9,6 @@ module Fangorn
|
|
9
9
|
def initialize(input)
|
10
10
|
output = Output::dist? ? application_js : File.join(Output::dest, input.sub(File.join(Output::source, ''), ''))
|
11
11
|
super input, output
|
12
|
-
|
13
|
-
@config = YAML.load_file 'fangorn.yml'
|
14
12
|
end
|
15
13
|
|
16
14
|
protected
|
@@ -45,11 +43,5 @@ module Fangorn
|
|
45
43
|
def application_js
|
46
44
|
File.join Output::dest, 'js', 'application.js'
|
47
45
|
end
|
48
|
-
|
49
|
-
def get_config
|
50
|
-
if @config
|
51
|
-
@config[Output::env]
|
52
|
-
end
|
53
|
-
end
|
54
46
|
end
|
55
47
|
end
|
data/lib/fangorn/output.rb
CHANGED
@@ -4,6 +4,7 @@ module Fangorn
|
|
4
4
|
class Output
|
5
5
|
def initialize(input, output)
|
6
6
|
@input, @output = input, output
|
7
|
+
@config = YAML.load_file 'fangorn.yml'
|
7
8
|
end
|
8
9
|
def create!
|
9
10
|
FileUtils.mkdir_p File.dirname(@output)
|
@@ -15,6 +16,11 @@ module Fangorn
|
|
15
16
|
def to_s
|
16
17
|
@output
|
17
18
|
end
|
19
|
+
def get_config
|
20
|
+
if @config
|
21
|
+
@config[Output::env]
|
22
|
+
end
|
23
|
+
end
|
18
24
|
def self.make(input)
|
19
25
|
type = File.extname(input)[1..-1]
|
20
26
|
begin
|