linner 0.9.0 → 0.9.1

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: fa68b40bdac8138c5f45acec8b4ab237df0afa14
4
- data.tar.gz: 669592b1f067ba5ecd1193dd27b3b2086c140f0e
3
+ metadata.gz: f0bd139ca78130131ca3cc2c5bdf8b46f88ff4b8
4
+ data.tar.gz: 282a2aff6ff90978dd47c241592911226216829f
5
5
  SHA512:
6
- metadata.gz: be8e4f4aa8d63e784d7f199bbe1ef7026de9c05299b10be573a019144ae7490cbabd8ae51d0b7f2f547a621904cd2d6534fd137a9315eb9b33343b785a396a79
7
- data.tar.gz: 21b98ea25084344e16c884877b85980d778e8fb06dbc329df5146efcbf27577cd89a94f666c824db3bf03140ae213278fdccd9b2ef2b6479fd2686fca2a7bc74
6
+ metadata.gz: f889e7634447fe5f4f1b7e1747d88189bb59ae4ce45388d1026e56469ca40c1756f3c3ba9c815e56e6d24fa394885236e376fec9a225099d4adea219ee01de49
7
+ data.tar.gz: 43e91e47a4c8615b0660b43238c59d9e8be44c5e2f47f69e58b2d2e398104a8a82523debbb8981a9817638b018bc8830c9784f35ee78e83e581fa72de4bee9c8
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.9.1
2
+ - add .yml .yaml and .txt to Tilt templates
3
+
1
4
  v0.9.0
2
5
  - introducing environment for different environments
3
6
 
@@ -5,16 +5,20 @@ require "handlebars.rb"
5
5
  require "coffee_script"
6
6
 
7
7
  module Tilt
8
+ class YAMLTemplate < PlainTemplate
9
+ self.default_mime_type = "text/x-yaml"
10
+ end
11
+
8
12
  class JavascriptTemplate < PlainTemplate
9
- self.default_mime_type = 'application/javascript'
13
+ self.default_mime_type = "application/javascript"
10
14
  end
11
15
 
12
16
  class CSSTemplate < PlainTemplate
13
- self.default_mime_type = 'text/css'
17
+ self.default_mime_type = "text/css"
14
18
  end
15
19
 
16
20
  class CompassSassTemplate < SassTemplate
17
- self.default_mime_type = 'text/css'
21
+ self.default_mime_type = "text/css"
18
22
 
19
23
  private
20
24
  def sass_options
@@ -27,7 +31,7 @@ module Tilt
27
31
  end
28
32
 
29
33
  class CompassScssTemplate < CompassSassTemplate
30
- self.default_mime_type = 'text/css'
34
+ self.default_mime_type = "text/css"
31
35
 
32
36
  private
33
37
  def sass_options
@@ -36,7 +40,7 @@ module Tilt
36
40
  end
37
41
 
38
42
  class HandlebarsTemplate < Template
39
- self.default_mime_type = 'text/template'
43
+ self.default_mime_type = "text/template"
40
44
 
41
45
  def prepare; end
42
46
 
@@ -45,8 +49,10 @@ module Tilt
45
49
  end
46
50
  end
47
51
 
52
+ register PlainTemplate, "txt"
48
53
  register CSSTemplate, "css"
49
54
  register JavascriptTemplate, "js"
55
+ register YAMLTemplate, "yml", "yaml"
50
56
  register HandlebarsTemplate, "hbs", "handlebars"
51
57
 
52
58
  register CompassSassTemplate, "sass"
@@ -1,3 +1,3 @@
1
1
  module Linner
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor