Skip to content

Commit

Permalink
default to 20 *.rb files to watch
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Mar 21, 2018
1 parent cae1658 commit ec531ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/jruby_art/runners/watch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Watcher
SLEEP_TIME = 0.2
def initialize
count = Dir["**.*rb"].length
max_watch = RP_CONFIG.fetch('MAX_WATCH', 30).to_i
return warn format(WATCH_MESSAGE, max_watch, count) if count > max_watch
max_watch = RP_CONFIG.fetch('MAX_WATCH', 20)
return warn format(WATCH_MESSAGE, max_watch, count) if count > max_watch.to_i
reload_files_to_watch
@time = Time.now
start_watching
Expand Down
2 changes: 1 addition & 1 deletion vendors/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ EOS

JRUBYC_VERSION = '9.1.16.0'

EXAMPLES = '2.8'
EXAMPLES = '2.9'
HOME_DIR = ENV['HOME']
MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']

Expand Down

0 comments on commit ec531ab

Please sign in to comment.