rerun 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +6 -1
  2. data/lib/rerun/system.rb +6 -6
  3. data/rerun.gemspec +1 -3
  4. metadata +2 -2
data/README.md CHANGED
@@ -48,6 +48,11 @@ optional, so the above can also be accomplished like this:
48
48
 
49
49
  rerun app.rb
50
50
 
51
+ Rails doesn't automatically notice all config file changes, so you can force it
52
+ to restart when you change a config file like this:
53
+
54
+ rerun --dir config rails s
55
+
51
56
  Or if you're using Thin to run a Rack app that's configured in config.ru
52
57
  but you want it on port 4000 and in debug mode, and only want to watch
53
58
  the `app` subdirectory:
@@ -146,7 +151,7 @@ While the app is (re)running, you can make things happen by pressing keys:
146
151
  * Make it work on Windows, like Guard now does. See
147
152
  * https://github.com/guard/guard/issues/59
148
153
  * https://github.com/guard/guard/issues/27
149
-
154
+ * Optionally do "bundle install" before and "bundle exec" during launch
150
155
  # Other projects that do similar things
151
156
 
152
157
  * Restartomatic: <http://github.com/adammck/restartomatic>
data/lib/rerun/system.rb CHANGED
@@ -19,7 +19,9 @@ module Rerun
19
19
  end
20
20
 
21
21
  def growlcmd
22
- `which growlnotify`.chomp
22
+ growlnotify = `which growlnotify`.chomp
23
+ # todo: check version of growlnotify and warn if it's too old
24
+ growlnotify
23
25
  end
24
26
 
25
27
  def app_name
@@ -28,12 +30,10 @@ module Rerun
28
30
  end
29
31
 
30
32
  def icon
31
- libdir = "#{File.expand_path(File.dirname(File.dirname(__FILE__)))}/lib"
32
- $LOAD_PATH.unshift libdir unless $LOAD_PATH.include?(libdir)
33
-
33
+ here = File.expand_path(File.dirname(__FILE__))
34
+ icondir = File.expand_path("#{here}/../../icons")
34
35
  rails_sig_file = File.expand_path(".")+"/config/boot.rb"
35
- return "#{libdir}/../icons/rails_red_sml.png" if File.exists? rails_sig_file
36
- return nil
36
+ "#{icondir}/rails_red_sml.png" if File.exists? rails_sig_file
37
37
  end
38
38
 
39
39
  def growl(title, body, background = true)
data/rerun.gemspec CHANGED
@@ -3,7 +3,7 @@ $spec = Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'rerun'
6
- s.version = '0.7.0'
6
+ s.version = '0.7.1'
7
7
 
8
8
  s.description = "Restarts your app when a file changes. A no-frills, command-line alternative to Guard, Shotgun, Autotest, etc."
9
9
  s.summary = "Launches an app, and restarts it whenever the filesystem changes. A no-frills, command-line alternative to Guard, Shotgun, Autotest, etc."
@@ -26,8 +26,6 @@ $spec = Gem::Specification.new do |s|
26
26
  s.extra_rdoc_files = %w[README.md]
27
27
 
28
28
  s.add_dependency 'listen'
29
- #s.add_dependency 'rack', '>= 0.9.1'
30
- #s.add_dependency 'launchy', '>= 0.3.3', '< 1.0'
31
29
 
32
30
  s.homepage = "http://github.com/alexch/rerun/"
33
31
  s.require_paths = %w[lib]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rerun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -62,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  version: '0'
63
63
  segments:
64
64
  - 0
65
- hash: -3814571131804990059
65
+ hash: 1349085845198859924
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  none: false
68
68
  requirements: