slimwatch 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/slimwatch +8 -1
- metadata +11 -5
- checksums.yaml +0 -15
data/bin/slimwatch
CHANGED
@@ -17,18 +17,25 @@ def main(listen_to, options)
|
|
17
17
|
Listen.to(listen_to, :filter => /\.slim$/) do |modified, added, removed|
|
18
18
|
|
19
19
|
modified.each do |filepath|
|
20
|
+
puts "Updating html file for #{ filepath }"
|
20
21
|
slim_it(filepath, options)
|
21
22
|
end
|
22
23
|
|
23
24
|
added.each do |filepath|
|
25
|
+
puts "Creating html file for #{ filepath }"
|
24
26
|
slim_it(filepath, options)
|
25
27
|
end
|
26
28
|
|
27
29
|
removed.each do |filepath|
|
28
|
-
#
|
30
|
+
#
|
29
31
|
end
|
30
32
|
end
|
31
33
|
|
34
|
+
puts "Monitoring #{ listen_to } for changes to .slim files"
|
35
|
+
while true do
|
36
|
+
# set up a loop so we don't exit
|
37
|
+
sleep 5
|
38
|
+
end
|
32
39
|
end
|
33
40
|
|
34
41
|
def slim_it(filename, options)
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slimwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Aaron Craig
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: slim
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: listen
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -49,25 +54,26 @@ files:
|
|
49
54
|
homepage: https://github.com/aaroncraigongithub/slimwatch
|
50
55
|
licenses:
|
51
56
|
- GPL-3.0
|
52
|
-
metadata: {}
|
53
57
|
post_install_message:
|
54
58
|
rdoc_options: []
|
55
59
|
require_paths:
|
56
60
|
- lib
|
57
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
58
63
|
requirements:
|
59
64
|
- - ! '>='
|
60
65
|
- !ruby/object:Gem::Version
|
61
66
|
version: '0'
|
62
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
63
69
|
requirements:
|
64
70
|
- - ! '>='
|
65
71
|
- !ruby/object:Gem::Version
|
66
72
|
version: '0'
|
67
73
|
requirements: []
|
68
74
|
rubyforge_project:
|
69
|
-
rubygems_version:
|
75
|
+
rubygems_version: 1.8.25
|
70
76
|
signing_key:
|
71
|
-
specification_version:
|
77
|
+
specification_version: 3
|
72
78
|
summary: Lightweight command line SLIM template file watcher.
|
73
79
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
YjdjYzk1MjAzOTgwY2QyMjg4MTRjN2JlMzdlZWQyYmI5Mzg3NmM2ZA==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
OGUwYWVlZjEyY2VmNWNhYmZmMjI5NTU5ZmFhYTk0OTZkMmMyMDk3Nw==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MmE0M2VkMjc5ODMzZjk0Yzc2MTM4NTk2NDQwMGNmZjkyNDRjODIwY2MxNjUx
|
10
|
-
YmVmODZhMWQ3ZTI3ZWFkNmI2OTgxYjRhYWQ4MTIyNjcxMDM0MWYyYmJiOWY0
|
11
|
-
YTg5NTE1ZDQ0NTJmYzliYTU5MzBmYThlM2ZkNTYwNmRhOWU2ZDE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZGZiMjE4N2MyNGE1NWE2NTM5ZWY2ODU3MDM3Yjg3MWY1NGEwNTRhZmU2NTI3
|
14
|
-
MWZmODc4Y2Y5YzZiNTVhZDcyNWMxYjYwMmM2MmFkZDVlNmVkNjljMWNlZTYw
|
15
|
-
YzcyNmQ5N2M4M2NjYWI4NmZlZmQ3ODQxM2IzYTljMDk1YWViYWY=
|