guard-rails 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 445a62a6bd29148ad6ce3200a020dc60d85a8f1b
4
- data.tar.gz: 284459605b644a947328ce43fb09431adad8c91e
3
+ metadata.gz: 1f706a3d0e897b3af7c6ae0713db3d8ade6d5cf0
4
+ data.tar.gz: 2e21cce2bb912fac6154e3d647bb00165c693798
5
5
  SHA512:
6
- metadata.gz: e1766481621fb35a0d698115799188fddfa4430b4fa7757593ee99b62695e349b22ffffce0343947de00c4edadbf4c2fc372b094a30562469249398cca32ddf7
7
- data.tar.gz: e95d187c66a652c95b231b597afa870f1b196d57958e8a3b90705a9a1e60d1d2df053d115e1abf2949a0310dd3f396c2cd84cba93b6453ae01c7d4890ca78d9e
6
+ metadata.gz: 13fe51ed5e54ba072118cc082ec0c837a16248624178e0a8a38f865b9c01426933d15524db59ac9af7d59dd7861bae19fdae00cbfc76c82742be66ba3cce5cda
7
+ data.tar.gz: 61bca0ffe0aaa08459812f5422de03be15c857b986be57f68e9272ebd8b0d843e68c340f2093b7d99e4d4bb85411d21d3462e41822c1d31e29ec4dc1461048f9
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
- - 2.1.0
4
+ - 2.1.5
5
+ - 2.2.0
5
6
  - jruby
6
7
  script: "bundle exec rake spec"
7
8
  addons:
data/Gemfile CHANGED
@@ -10,6 +10,7 @@ group :development do
10
10
  gem 'guard-rspec'
11
11
 
12
12
  # Notification System
13
+ gem 'terminal-notifier'
13
14
  gem 'terminal-notifier-guard', require: RUBY_PLATFORM.downcase.include?("darwin") ? 'terminal-notifier-guard' : nil
14
15
  gem 'libnotify', require: RUBY_PLATFORM.downcase.include?("linux") ? 'libnotify' : nil
15
16
  end
data/Gemfile.lock CHANGED
@@ -1,46 +1,57 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guard-rails (0.7.0)
5
- guard (~> 2.0)
4
+ guard-rails (0.7.1)
5
+ guard (~> 2.11)
6
+ guard-compat (~> 1.0)
6
7
 
7
8
  GEM
8
9
  remote: http://rubygems.org/
9
10
  specs:
10
11
  celluloid (0.16.0)
11
12
  timers (~> 4.0.0)
12
- codeclimate-test-reporter (0.4.1)
13
+ codeclimate-test-reporter (0.4.6)
13
14
  simplecov (>= 0.7.1, < 1.0.0)
14
15
  coderay (1.1.0)
15
16
  diff-lcs (1.2.5)
16
17
  docile (1.1.5)
17
- fakefs (0.6.0)
18
+ fakefs (0.6.5)
18
19
  ffi (1.9.6)
19
20
  ffi (1.9.6-java)
20
21
  formatador (0.2.5)
21
- guard (2.8.2)
22
+ guard (2.11.1)
22
23
  formatador (>= 0.2.4)
23
24
  listen (~> 2.7)
24
25
  lumberjack (~> 1.0)
26
+ nenv (~> 0.1)
27
+ notiffany (~> 0.0)
25
28
  pry (>= 0.9.12)
29
+ shellany (~> 0.0)
26
30
  thor (>= 0.18.1)
27
- guard-bundler (2.0.0)
31
+ guard-bundler (2.1.0)
28
32
  bundler (~> 1.0)
29
33
  guard (~> 2.2)
30
- guard-rspec (4.3.1)
34
+ guard-compat (~> 1.1)
35
+ guard-compat (1.2.1)
36
+ guard-rspec (4.5.0)
31
37
  guard (~> 2.1)
32
- rspec (>= 2.14, < 4.0)
38
+ guard-compat (~> 1.1)
39
+ rspec (>= 2.99.0, < 4.0)
33
40
  hitimes (1.2.2)
34
41
  hitimes (1.2.2-java)
35
- libnotify (0.8.4)
42
+ libnotify (0.9.1)
36
43
  ffi (>= 1.0.11)
37
- listen (2.7.11)
44
+ listen (2.8.5)
38
45
  celluloid (>= 0.15.2)
39
46
  rb-fsevent (>= 0.9.3)
40
47
  rb-inotify (>= 0.9)
41
48
  lumberjack (1.0.9)
42
49
  method_source (0.8.2)
43
50
  multi_json (1.10.1)
51
+ nenv (0.2.0)
52
+ notiffany (0.0.4)
53
+ nenv (~> 0.1)
54
+ shellany (~> 0.0)
44
55
  pry (0.10.1)
45
56
  coderay (~> 1.1.0)
46
57
  method_source (~> 0.8.1)
@@ -50,23 +61,25 @@ GEM
50
61
  method_source (~> 0.8.1)
51
62
  slop (~> 3.4)
52
63
  spoon (~> 0.0)
53
- rake (10.3.2)
64
+ rake (10.4.2)
54
65
  rb-fsevent (0.9.4)
55
66
  rb-inotify (0.9.5)
56
67
  ffi (>= 0.5.0)
57
68
  rr (1.1.2)
58
- rspec (3.1.0)
59
- rspec-core (~> 3.1.0)
60
- rspec-expectations (~> 3.1.0)
61
- rspec-mocks (~> 3.1.0)
62
- rspec-core (3.1.7)
63
- rspec-support (~> 3.1.0)
64
- rspec-expectations (3.1.2)
69
+ rspec (3.2.0)
70
+ rspec-core (~> 3.2.0)
71
+ rspec-expectations (~> 3.2.0)
72
+ rspec-mocks (~> 3.2.0)
73
+ rspec-core (3.2.0)
74
+ rspec-support (~> 3.2.0)
75
+ rspec-expectations (3.2.0)
65
76
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.1.0)
67
- rspec-mocks (3.1.3)
68
- rspec-support (~> 3.1.0)
69
- rspec-support (3.1.2)
77
+ rspec-support (~> 3.2.0)
78
+ rspec-mocks (3.2.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.2.0)
81
+ rspec-support (3.2.1)
82
+ shellany (0.0.1)
70
83
  simplecov (0.9.1)
71
84
  docile (~> 1.1.0)
72
85
  multi_json (~> 1.0)
@@ -75,6 +88,7 @@ GEM
75
88
  slop (3.6.0)
76
89
  spoon (0.0.4)
77
90
  ffi
91
+ terminal-notifier (1.6.2)
78
92
  terminal-notifier-guard (1.6.4)
79
93
  thor (0.19.1)
80
94
  timers (4.0.1)
@@ -96,5 +110,6 @@ DEPENDENCIES
96
110
  rake
97
111
  rr (~> 1.0)
98
112
  rspec (~> 3.0)
113
+ terminal-notifier
99
114
  terminal-notifier-guard
100
115
  version (>= 1.0.0)
data/README.md CHANGED
@@ -80,11 +80,13 @@ And I will be there as your call.
80
80
  * Nathan Broadbent
81
81
  * Tim Preston
82
82
  * killphi
83
+ * Benjamin Sullivan
83
84
  * Grant Hutchins and Jonathan Mukai-Heidt
84
85
  * Everard Brown
86
+ * Sho Kusano
85
87
  * Darrin Holst
88
+ * Luciano Sousa
86
89
  * Michel Pavan Macedo
87
- * Benjamin Sullivan
88
90
  * Johnny Robeson
89
91
 
90
92
  ## Copyright
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
data/guard-rails.gemspec CHANGED
@@ -18,7 +18,8 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.required_ruby_version = '>= 1.9'
20
20
 
21
- s.add_dependency 'guard', '~> 2.0'
21
+ s.add_dependency 'guard', '~> 2.11'
22
+ s.add_dependency('guard-compat', '~> 1.0')
22
23
 
23
24
  s.add_development_dependency 'rspec', '~> 3.0'
24
25
  s.add_development_dependency 'rr', '~> 1.0'
data/lib/guard/rails.rb CHANGED
@@ -1,14 +1,9 @@
1
- require 'guard'
2
- require 'guard/plugin'
3
- require 'rbconfig'
1
+ require 'guard/compat/plugin'
4
2
 
5
3
  module Guard
6
4
  class Rails < Plugin
7
5
  require 'guard/rails/runner'
8
6
 
9
- # Use gem `version` to support versioning
10
- # is_versioned
11
-
12
7
  attr_reader :options, :runner
13
8
 
14
9
  DEFAULT_OPTIONS = {
@@ -166,7 +166,7 @@ module Guard
166
166
 
167
167
  def kill_process(signal, pid)
168
168
  begin
169
- Process.kill(signal, pid)
169
+ ::Process.kill(signal, pid)
170
170
  true
171
171
  rescue Errno::EPERM
172
172
  UI.info "[Guard::Rails::Error] Don't have permission to KILL!"
@@ -1,5 +1,20 @@
1
+ # Guard-Rails supports a lot options with default values:
2
+ # daemon: false # runs the server as a daemon.
3
+ # debugger: false # enable ruby-debug gem.
4
+ # environment: 'development' # changes server environment.
5
+ # force_run: false # kills any process that's holding the listen port before attempting to (re)start Rails.
6
+ # pid_file: 'tmp/pids/[RAILS_ENV].pid' # specify your pid_file.
7
+ # host: 'localhost' # server hostname.
8
+ # port: 3000 # server port number.
9
+ # root: '/spec/dummy' # Rails' root path.
10
+ # server: thin # webserver engine.
11
+ # start_on_start: true # will start the server when starting Guard.
12
+ # timeout: 30 # waits untill restarting the Rails server, in seconds.
13
+ # zeus_plan: server # custom plan in zeus, only works with `zeus: true`.
14
+ # zeus: false # enables zeus gem.
15
+ # CLI: 'rails server' # customizes runner command. Omits all options except `pid_file`!
16
+
1
17
  guard 'rails' do
2
18
  watch('Gemfile.lock')
3
19
  watch(%r{^(config|lib)/.*})
4
20
  end
5
-
data/spec/spec_helper.rb CHANGED
@@ -6,6 +6,7 @@ else
6
6
  SimpleCov.start
7
7
  end
8
8
 
9
+ require 'guard/compat/test/helper' # test helper for Guard plugin
9
10
  require 'guard/rails'
10
11
 
11
12
  RSpec.configure do |c|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bintz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-10 00:00:00.000000000 Z
12
+ date: 2015-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -17,14 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '2.0'
20
+ version: '2.11'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '2.0'
27
+ version: '2.11'
28
+ - !ruby/object:Gem::Dependency
29
+ name: guard-compat
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.0'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: rspec
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
140
  version: '0'
127
141
  requirements: []
128
142
  rubyforge_project:
129
- rubygems_version: 2.2.2
143
+ rubygems_version: 2.4.5
130
144
  signing_key:
131
145
  specification_version: 4
132
146
  summary: Guard your Rails to always be there.