ggake 0.3.0 → 0.3.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/README.md +7 -0
- data/lib/ggake/coffee.rb +1 -1
- data/lib/ggake/haml.rb +1 -1
- data/lib/ggake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 577ad82f0e6b76666e30a299829f6e795087bf72
|
4
|
+
data.tar.gz: 9526b01ebce63b3903099c7a4e64ecfcdb8daf38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59122898f6786cbacc022be0bfe51c46dd58c540385279c5ad94754c576e483e3198212bc191122e5c1b4e24a2ce8eb82b3e44ffb95bc4d48dbfff8d3a679bb4
|
7
|
+
data.tar.gz: 31e34f9bfdc8f11dd00c476e45c17d022c1c0bc348ac4e9e84091b18e026fc8bdaabb704a79c9a60695f58397544dd0756a81d1e0f2bb1280e7ea36cab9911a7
|
data/README.md
CHANGED
@@ -28,6 +28,9 @@ This gem provides the following utilities:
|
|
28
28
|
* `haml_template`: Compiles a [Haml](http://haml.info/) template to an
|
29
29
|
HTML file.
|
30
30
|
|
31
|
+
* `coffee`: Compiles a [CoffeeScript](http://coffeescript.org/) script
|
32
|
+
to a JavaScript script.
|
33
|
+
|
31
34
|
* `transient`: Allows a Rake task to depend on a transient value,
|
32
35
|
such as an environment variable.
|
33
36
|
|
@@ -40,6 +43,10 @@ More detailed usage below.
|
|
40
43
|
|
41
44
|
haml_template(path_to_haml_template, output: path_to_output_directory)
|
42
45
|
|
46
|
+
### coffee
|
47
|
+
|
48
|
+
coffee(path_to_coffee, output: path_to_output_directory)
|
49
|
+
|
43
50
|
### transient
|
44
51
|
|
45
52
|
[What's this all about then?](http://overwatering.org/blog/2013/03/depending-on-transient-values-in-rake/)
|
data/lib/ggake/coffee.rb
CHANGED
@@ -2,7 +2,7 @@ module Rake
|
|
2
2
|
module DSL
|
3
3
|
|
4
4
|
def coffee(input, options)
|
5
|
-
|
5
|
+
File.join(options[:output], input).ext('js').tap do |js_file|
|
6
6
|
file js_file => input do
|
7
7
|
sh "coffee --compile --output #{options[:output]} #{input}"
|
8
8
|
end
|
data/lib/ggake/haml.rb
CHANGED
@@ -2,7 +2,7 @@ module Rake
|
|
2
2
|
module DSL
|
3
3
|
|
4
4
|
def haml_template(tmpl, options)
|
5
|
-
|
5
|
+
File.join(options[:output], tmpl).ext('html').tap do |html_file|
|
6
6
|
file html_file => tmpl do
|
7
7
|
sh "haml #{tmpl} #{html_file}"
|
8
8
|
end
|
data/lib/ggake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ggake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giles Alexander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|