architecture-js 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "architecture-js"
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
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"]
@@ -94,7 +94,7 @@ module Architect
94
94
  project = ArchitectureJS::Blueprint::new_from_config(path)
95
95
  project.update
96
96
  watcher = project.watch
97
- puts ArchitectureJS::Notification.log "architect is watching for changes. Type 'quit' or 'exit' to stop."
97
+ puts ArchitectureJS::Notification.log "architect is watching for changes. Type 'quit' to stop."
98
98
  start_interactive_session watcher
99
99
  end
100
100
  #watch
@@ -103,11 +103,11 @@ module Architect
103
103
  def start_interactive_session(watcher)
104
104
  begin
105
105
  command = ''
106
- while not command =~ /exit|quit/
106
+ while not command =~ /^quit$/
107
107
  print ArchitectureJS::Notification.prompt
108
108
  command = gets.chomp
109
109
  case command
110
- when /exit|quit/
110
+ when /^quit$/
111
111
  watcher.stop
112
112
  when /src_files/
113
113
  puts watcher.project.src_files.join("\n")
@@ -20,6 +20,10 @@ module ArchitectureJS
20
20
  self
21
21
  end
22
22
 
23
+ def stop
24
+ @listener.stop
25
+ end
26
+
23
27
  private
24
28
 
25
29
  def update_files(files, message)
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.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -242,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: '0'
243
243
  segments:
244
244
  - 0
245
- hash: 3798563733388663936
245
+ hash: 2753947263902784198
246
246
  required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  none: false
248
248
  requirements: