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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be450f0581445fbe9e99f1e495ca276eb2fe1939
4
- data.tar.gz: e8cd01f814155d577757eaa23c0e5680c572c562
3
+ metadata.gz: 577ad82f0e6b76666e30a299829f6e795087bf72
4
+ data.tar.gz: 9526b01ebce63b3903099c7a4e64ecfcdb8daf38
5
5
  SHA512:
6
- metadata.gz: 5ccd8dc86e30a7cffa7a3960cfd77178e557a5d14e0810ba4fe89d0353ff776072470b59fd7fc8d4df0426a14b36702013f89cead1a1ce0c6c1d654a9a7fc220
7
- data.tar.gz: 11842f31682fed14ceb042c1205d1747a96c33025c0b53ad58b9dc485ec19a8ca2573690a93c04a2ea22a3d7b456d2dee76d1deca44a5d19c0fd7dd00a79daea
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
- (File.join(options[:output], File.basename(input, '.coffee')) + '.js').tap do |js_file|
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
- (File.join(options[:output], File.basename(tmpl, '.haml')) + '.html').tap do |html_file|
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
@@ -1,3 +1,3 @@
1
1
  module Ggake
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-08-25 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake