guard-rails 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9c12d743c819d791cc2c585024b300e5118392ac
4
+ data.tar.gz: ef27742597aa30664599456c25154915f7c920b6
5
+ SHA512:
6
+ metadata.gz: f38748f3b965b477fed3c3c082bb16ed961b5cbc1c80773fdbb83ba458bdf385164bc8ed3af973e71e8862470be25a3384334fabc40b04bd6a71a3afffb88573
7
+ data.tar.gz: cf17c0c8b22260272328654d5555864e9c369ce3b3d21fc378cefb8690d105004727e498a776471c1e82674382aa7fae5b62bfa00fb462d4e972b69f0b716bbe
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/guard-rails.gemspec CHANGED
@@ -9,6 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.homepage = "https://github.com/ranmocy/guard-rails"
10
10
  s.summary = %q{Guard your Rails to always be there.}
11
11
  s.description = %q{Restart Rails when things change in your app}
12
+ s.license = 'MIT'
12
13
 
13
14
  s.rubyforge_project = "guard-rails"
14
15
 
@@ -38,7 +38,7 @@ module Guard
38
38
  command = build_cli_command if options[:CLI]
39
39
  command ||= build_zeus_command if options[:zeus]
40
40
  command ||= build_rails_command
41
- "sh -c 'cd #{@root} && #{command} &'"
41
+ "sh -c 'cd \"#{@root}\" && #{command} &'"
42
42
  end
43
43
 
44
44
  def pid_file
@@ -61,7 +61,7 @@ module Guard
61
61
  options[:daemon] ? '-d' : nil,
62
62
  options[:debugger] ? '-u' : nil,
63
63
  '-e', options[:environment],
64
- '--pid', pid_file,
64
+ '--pid', "\"#{pid_file}\"",
65
65
  '-p', options[:port],
66
66
  options[:server],
67
67
  ]
@@ -70,7 +70,7 @@ module Guard
70
70
  end
71
71
 
72
72
  def build_cli_command
73
- "#{options[:CLI]} --pid #{pid_file}"
73
+ "#{options[:CLI]} --pid \"#{pid_file}\""
74
74
  end
75
75
 
76
76
  def build_zeus_command
@@ -60,7 +60,7 @@ describe Guard::RailsRunner do
60
60
  let(:options) { default_options.merge(:CLI => custom_cli, :pid_file => custom_pid_file) }
61
61
  it "should use custom pid_file" do
62
62
  pid_file_path = File.expand_path custom_pid_file
63
- runner.build_command.should match(%r{#{custom_cli} --pid #{pid_file_path}})
63
+ runner.build_command.should match(%r{#{custom_cli} --pid \"#{pid_file_path}\"})
64
64
  end
65
65
  end
66
66
 
@@ -109,7 +109,7 @@ describe Guard::RailsRunner do
109
109
  context "no pid_file" do
110
110
  it "should use default pid_file" do
111
111
  pid_file_path = File.expand_path "tmp/pids/development.pid"
112
- runner.build_command.should match(%r{ --pid #{pid_file_path}})
112
+ runner.build_command.should match(%r{ --pid \"#{pid_file_path}\"})
113
113
  end
114
114
  end
115
115
 
@@ -119,7 +119,7 @@ describe Guard::RailsRunner do
119
119
 
120
120
  it "should use custom pid_file" do
121
121
  pid_file_path = File.expand_path custom_pid_file
122
- runner.build_command.should match(%r{ --pid #{pid_file_path}})
122
+ runner.build_command.should match(%r{ --pid \"#{pid_file_path}\"})
123
123
  end
124
124
  end
125
125
 
@@ -159,7 +159,7 @@ describe Guard::RailsRunner do
159
159
  let(:options) { default_options.merge(:root => 'spec/dummy') }
160
160
 
161
161
  it "should have a cd with the custom rails root" do
162
- runner.build_command.should match(%r{cd .*/spec/dummy &&})
162
+ runner.build_command.should match(%r{cd .*/spec/dummy\" &&})
163
163
  end
164
164
  end
165
165
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
4
+ version: 0.4.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Bintz
@@ -10,72 +9,64 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-08 00:00:00.000000000 Z
12
+ date: 2013-04-05 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- prerelease: false
17
15
  name: guard
18
16
  requirement: !ruby/object:Gem::Requirement
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 0.2.2
23
- none: false
24
21
  type: :runtime
22
+ prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
24
  requirements:
27
- - - ! '>='
25
+ - - '>='
28
26
  - !ruby/object:Gem::Version
29
27
  version: 0.2.2
30
- none: false
31
28
  - !ruby/object:Gem::Dependency
32
- prerelease: false
33
29
  name: rspec
34
30
  requirement: !ruby/object:Gem::Requirement
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: 2.6.0
39
- none: false
40
35
  type: :development
36
+ prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
38
  requirements:
43
- - - ! '>='
39
+ - - '>='
44
40
  - !ruby/object:Gem::Version
45
41
  version: 2.6.0
46
- none: false
47
42
  - !ruby/object:Gem::Dependency
48
- prerelease: false
49
43
  name: mocha
50
44
  requirement: !ruby/object:Gem::Requirement
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: 0.13.1
55
- none: false
56
49
  type: :development
50
+ prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
52
  requirements:
59
- - - ! '>='
53
+ - - '>='
60
54
  - !ruby/object:Gem::Version
61
55
  version: 0.13.1
62
- none: false
63
56
  - !ruby/object:Gem::Dependency
64
- prerelease: false
65
57
  name: version
66
58
  requirement: !ruby/object:Gem::Requirement
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: 1.0.0
71
- none: false
72
63
  type: :development
64
+ prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
66
  requirements:
75
- - - ! '>='
67
+ - - '>='
76
68
  - !ruby/object:Gem::Version
77
69
  version: 1.0.0
78
- none: false
79
70
  description: Restart Rails when things change in your app
80
71
  email:
81
72
  - john@coswellproductions.com
@@ -100,36 +91,31 @@ files:
100
91
  - spec/lib/guard/rails_spec.rb
101
92
  - spec/spec_helper.rb
102
93
  homepage: https://github.com/ranmocy/guard-rails
103
- licenses: []
94
+ licenses:
95
+ - MIT
96
+ metadata: {}
104
97
  post_install_message:
105
98
  rdoc_options: []
106
99
  require_paths:
107
100
  - lib
108
101
  required_ruby_version: !ruby/object:Gem::Requirement
109
102
  requirements:
110
- - - ! '>='
103
+ - - '>='
111
104
  - !ruby/object:Gem::Version
112
- segments:
113
- - 0
114
105
  version: '0'
115
- hash: -3396796811439526258
116
- none: false
117
106
  required_rubygems_version: !ruby/object:Gem::Requirement
118
107
  requirements:
119
- - - ! '>='
108
+ - - '>='
120
109
  - !ruby/object:Gem::Version
121
- segments:
122
- - 0
123
110
  version: '0'
124
- hash: -3396796811439526258
125
- none: false
126
111
  requirements: []
127
112
  rubyforge_project: guard-rails
128
- rubygems_version: 1.8.25
113
+ rubygems_version: 2.0.3
129
114
  signing_key:
130
- specification_version: 3
115
+ specification_version: 4
131
116
  summary: Guard your Rails to always be there.
132
117
  test_files:
133
118
  - spec/lib/guard/rails/runner_spec.rb
134
119
  - spec/lib/guard/rails_spec.rb
135
120
  - spec/spec_helper.rb
121
+ has_rdoc: