architecture-js 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/architecture-js.gemspec +1 -1
- data/lib/architecture-js/watcher.rb +6 -7
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/architecture-js.gemspec
CHANGED
@@ -5,17 +5,16 @@ module ArchitectureJS
|
|
5
5
|
|
6
6
|
def initialize(project)
|
7
7
|
@project = project
|
8
|
-
@listener = Listen.to(@project.root)
|
8
|
+
@listener = Listen.to(@project.root) do |modified, added, removed|
|
9
|
+
update_files(modified, "modified") if modified.length > 0
|
10
|
+
update_files(added, "added") if added.length > 0
|
11
|
+
update_files(removed, "deleted") if removed.length > 0
|
12
|
+
end
|
9
13
|
@listener.ignore(/#{@project.config[:build_dir]}/)
|
10
|
-
.change do |modified, added, removed|
|
11
|
-
update_files(modified, "modified") if modified.length > 0
|
12
|
-
update_files(added, "added") if added.length > 0
|
13
|
-
update_files(removed, "deleted") if removed.length > 0
|
14
|
-
end
|
15
14
|
end
|
16
15
|
|
17
16
|
def watch(message = false)
|
18
|
-
@listener.start
|
17
|
+
@listener.start
|
19
18
|
puts ArchitectureJS::Notification.log message if message
|
20
19
|
self
|
21
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: architecture-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: '0'
|
295
295
|
segments:
|
296
296
|
- 0
|
297
|
-
hash:
|
297
|
+
hash: 4077342147654361389
|
298
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
299
|
none: false
|
300
300
|
requirements:
|