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 CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "architecture-js"
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dayton Nolan"]
@@ -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(false)
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.1
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: 4111059795836270419
297
+ hash: 4077342147654361389
298
298
  required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  none: false
300
300
  requirements: