ecstatic 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecstatic/version.rb +1 -1
- data/lib/ecstatic/watcher.rb +5 -3
- 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: f1d2d4a27c6b1522f2593a7674d6e4548f7847e7
|
4
|
+
data.tar.gz: 5c1ce83df1c0649e079ade6df3152d8b4fd2a6c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5afb67758ecfaef543def7d3f506e8927fbb43e177ff6ff6bf13e09ff9d67a82bc300a9afce056598f3035bdb90aceb113e2e0b393b8f6c4c08d41cac80778b3
|
7
|
+
data.tar.gz: 5d239430568cb062bb2cfb25b429ea85e4c1980f2364e71b79cc459839a2aa9ecad81c5d56fdcb10e35e9fc1416f8d43b05b4f7058279a7bc3d2b0407743299a
|
data/lib/ecstatic/version.rb
CHANGED
data/lib/ecstatic/watcher.rb
CHANGED
@@ -6,12 +6,14 @@ module Ecstatic
|
|
6
6
|
script = Watchr::Script.new
|
7
7
|
script.watch('site/pages/(.*)\.haml') do |m|
|
8
8
|
puts "Compiling page: #{m[0]}"
|
9
|
-
system("haml site/pages/#{m[1]}.haml gh-pages/#{m[1]}")
|
9
|
+
system("haml site/pages/#{m[1]}.haml gh-pages/#{m[1]}.html")
|
10
10
|
end
|
11
11
|
|
12
12
|
script.watch('site/assets/stylesheets/.*') { puts 'Compiling scss'; system('compass compile') }
|
13
|
-
|
14
|
-
|
13
|
+
|
14
|
+
handler = Watchr.handler.new
|
15
|
+
|
16
|
+
controller = Watchr::Controller.new(script,handler)
|
15
17
|
controller.run # blocking
|
16
18
|
end
|
17
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecstatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bradley Grzesiak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coffee-script
|