guard-spring 0.0.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -7
- data/lib/guard/spring.rb +9 -13
- data/lib/guard/spring/runner.rb +34 -65
- data/lib/guard/spring/templates/Guardfile +5 -8
- data/lib/guard/spring/version.rb +1 -1
- data/spec/guard/spring/runner_spec.rb +134 -0
- data/spec/guard/spring_spec.rb +60 -0
- data/spec/spec_helper.rb +22 -0
- metadata +62 -17
- data/.gitignore +0 -19
- data/Gemfile +0 -4
- data/Rakefile +0 -1
- data/guard-spring.gemspec +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d05e040fb4f6e0f70b955384cb62a7bf4f99fda3
|
4
|
+
data.tar.gz: fd87d3675e74648373402e694f7617084565cf2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68b5b9320fc0e3c480f11a0376491d5004d2e456540d1ea58444f0aae3a932f8952fbad8b6e6fd1e33678a780358858e382f9656e8b33edf6db7ba0ee0620977
|
7
|
+
data.tar.gz: 6854b005c9d1c68d5b117ef0b3c58069ff4fd467653445e44e926dfe7c519c2f019b1f8a99eb89b25e29741a417bacc9afba0db1ed89c23d06c7cf63529c614e
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# Guard::Spring
|
2
2
|
|
3
|
-
Guard::Spring
|
4
|
-
|
5
|
-
Read more about [Spring](https://github.com/jonleighton/spring) - Rails application preloader.
|
3
|
+
Guard::Spring starts, stops, and restarts [Spring](https://github.com/jonleighton/spring) - Rails application preloader. This plugin therefore most importantly ensures that Spring is not left running when Guard is stopped.
|
6
4
|
|
7
5
|
Learn how to monitor file system changes with [Guard](https://github.com/guard/guard).
|
8
6
|
|
7
|
+
It seems that [guard-rspec](https://github.com/guard/guard-rspec) can support *Spring* now, using the `cmd` option. This plugin is used to manage Spring itself, not to inject Spring into the running of Rspec.
|
9
8
|
|
10
9
|
## Installation
|
11
10
|
|
@@ -21,15 +20,26 @@ And then execute:
|
|
21
20
|
|
22
21
|
Add rules to Guardfile:
|
23
22
|
|
24
|
-
$ guard init spring
|
23
|
+
$ bundle exec guard init spring
|
25
24
|
|
26
25
|
Run guard. Press Enter to run all specs.
|
27
26
|
|
28
|
-
$ guard
|
27
|
+
$ bundle exec guard
|
28
|
+
|
29
|
+
After any modification of monitored files Spring will be restarted.
|
30
|
+
|
31
|
+
## Options
|
32
|
+
|
33
|
+
### List of available options:
|
29
34
|
|
30
|
-
|
35
|
+
Default values shown here.
|
31
36
|
|
32
|
-
|
37
|
+
cmd: 'spring' # Specify a custom Spring command to run, default:
|
38
|
+
# 'bundle exec spring' if bundler option is enabled,
|
39
|
+
# 'bin/spring' if it exists, or 'spring'.
|
40
|
+
bundler: false # If true, use 'bundle exec' to run Spring
|
41
|
+
# (cmd option overrides this).
|
42
|
+
environments: %w(test development) # Which environments to start when Guard starts.
|
33
43
|
|
34
44
|
## Contributing
|
35
45
|
|
data/lib/guard/spring.rb
CHANGED
@@ -1,60 +1,56 @@
|
|
1
|
-
require 'guard'
|
2
|
-
require 'guard/guard'
|
1
|
+
require 'guard/compat/plugin'
|
3
2
|
require 'spring/commands'
|
4
3
|
|
5
4
|
module Guard
|
6
|
-
class Spring <
|
5
|
+
class Spring < Plugin
|
7
6
|
autoload :Runner, 'guard/spring/runner'
|
8
7
|
attr_accessor :runner
|
9
8
|
|
10
9
|
# Initialize a Guard.
|
11
10
|
# @param [Array<Guard::Watcher>] watchers the Guard file watchers
|
12
11
|
# @param [Hash] options the custom Guard options
|
13
|
-
def initialize(
|
12
|
+
def initialize(options = {})
|
14
13
|
super
|
15
14
|
@runner = Runner.new(options)
|
16
15
|
end
|
17
16
|
|
18
|
-
#
|
17
|
+
# Called once when Guard starts. Please override initialize method to init stuff.
|
19
18
|
# @raise [:task_has_failed] when start has failed
|
20
19
|
def start
|
21
|
-
runner.
|
22
|
-
runner.launch_spring('Start')
|
20
|
+
runner.start
|
23
21
|
end
|
24
22
|
|
25
23
|
# Called when `stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
|
26
24
|
# @raise [:task_has_failed] when stop has failed
|
27
25
|
def stop
|
28
|
-
runner.
|
26
|
+
runner.stop
|
29
27
|
end
|
30
28
|
|
31
29
|
# Called when `reload|r|z + enter` is pressed.
|
32
30
|
# This method should be mainly used for "reload" (really!) actions like reloading passenger/spork/bundler/...
|
33
31
|
# @raise [:task_has_failed] when reload has failed
|
34
32
|
def reload
|
35
|
-
runner.
|
36
|
-
runner.launch_spring('Reload')
|
33
|
+
runner.restart
|
37
34
|
end
|
38
35
|
|
39
36
|
# Called when just `enter` is pressed
|
40
37
|
# This method should be principally used for long action like running all specs/tests/...
|
41
38
|
# @raise [:task_has_failed] when run_all has failed
|
42
39
|
def run_all
|
43
|
-
runner.run_all
|
44
40
|
end
|
45
41
|
|
46
42
|
# Called on file(s) modifications that the Guard watches.
|
47
43
|
# @param [Array<String>] paths the changes files or paths
|
48
44
|
# @raise [:task_has_failed] when run_on_change has failed
|
49
45
|
def run_on_changes(paths)
|
50
|
-
runner.
|
46
|
+
runner.restart
|
51
47
|
end
|
52
48
|
|
53
49
|
# Called on file(s) deletions that the Guard watches.
|
54
50
|
# @param [Array<String>] paths the deleted files or paths
|
55
51
|
# @raise [:task_has_failed] when run_on_change has failed
|
56
52
|
def run_on_removals(paths)
|
57
|
-
runner.
|
53
|
+
runner.restart
|
58
54
|
end
|
59
55
|
end
|
60
56
|
end
|
data/lib/guard/spring/runner.rb
CHANGED
@@ -4,99 +4,68 @@ module Guard
|
|
4
4
|
class Spring
|
5
5
|
class Runner
|
6
6
|
attr_reader :options
|
7
|
+
attr_writer :spring_command
|
7
8
|
|
8
9
|
def initialize(options = {})
|
9
10
|
@options = options
|
10
|
-
@options[:rspec_cli] = options[:rspec_cli].nil? ? '' : " #{options[:rspec_cli]} "
|
11
|
-
@spring_cmd = get_spring_cmd
|
12
|
-
UI.info 'Guard::Spring Initialized'
|
13
11
|
end
|
14
12
|
|
15
|
-
def
|
16
|
-
UI.info "
|
13
|
+
def start
|
14
|
+
UI.info "Guard::Spring starting Spring"
|
17
15
|
start_spring
|
18
16
|
end
|
19
17
|
|
20
|
-
def
|
18
|
+
def stop
|
19
|
+
UI.info "Guard::Spring stopping Spring"
|
21
20
|
stop_spring
|
22
21
|
end
|
23
22
|
|
24
|
-
def
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
# TBD: # testunit_paths = existing_paths.select { |path| path =~ /test(.*\.rb)?/ }
|
30
|
-
# TBD: # run_command 'spring testunit', existing_paths.join(' ') unless testunit_paths.empty?
|
31
|
-
end
|
32
|
-
|
33
|
-
def run_all
|
34
|
-
if rspec?
|
35
|
-
run(%w(spec))
|
36
|
-
elsif test_unit?
|
37
|
-
run(Dir['test/**/*_test.rb']+Dir['test/**/test_*.rb'])
|
38
|
-
end
|
23
|
+
def restart
|
24
|
+
UI.info "Guard::Spring restarting Spring"
|
25
|
+
stop_spring
|
26
|
+
start_spring
|
39
27
|
end
|
40
28
|
|
41
29
|
private
|
42
30
|
|
43
|
-
def run_command(cmd, options = '')
|
44
|
-
UI.debug "Command execution: #{cmd} #{options}"
|
45
|
-
system "#{cmd} #{options}"
|
46
|
-
end
|
47
|
-
|
48
|
-
def fork_exec(cmd, options = '')
|
49
|
-
fork do
|
50
|
-
UI.debug "(Fork) Command execution: #{cmd} #{options}"
|
51
|
-
exec "#{cmd} #{options}"
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
31
|
def start_spring
|
56
|
-
|
32
|
+
environments.each do |env|
|
33
|
+
system "#{spring_command} rake -T RAILS_ENV='#{env}' > /dev/null"
|
34
|
+
end
|
57
35
|
end
|
58
36
|
|
59
37
|
def stop_spring
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
UI.warning('Failed to create all required binstubs')
|
75
|
-
'spring'
|
76
|
-
end
|
77
|
-
|
78
|
-
# returns false if creation of any binstub failed
|
79
|
-
def create_bin_stubs(stubs)
|
80
|
-
results = stubs.map do |stub|
|
81
|
-
run_command 'spring binstub', stub unless File.exist? "#{Dir.pwd}/bin/#{stub}"
|
38
|
+
system "#{spring_command} stop"
|
39
|
+
end
|
40
|
+
|
41
|
+
def spring_command
|
42
|
+
@spring_command ||= begin
|
43
|
+
if options[:cmd]
|
44
|
+
options[:cmd]
|
45
|
+
elsif bundler?
|
46
|
+
'bundle exec spring'
|
47
|
+
elsif bin_stub_exists?
|
48
|
+
bin_stub
|
49
|
+
else
|
50
|
+
'spring'
|
51
|
+
end
|
82
52
|
end
|
83
|
-
!results.any? or results.all? { |result| result }
|
84
53
|
end
|
85
54
|
|
86
|
-
def
|
87
|
-
|
55
|
+
def bin_stub
|
56
|
+
'./bin/spring'
|
88
57
|
end
|
89
58
|
|
90
|
-
def
|
91
|
-
|
59
|
+
def bin_stub_exists?
|
60
|
+
File.exist? bin_stub
|
92
61
|
end
|
93
62
|
|
94
|
-
def
|
95
|
-
|
63
|
+
def bundler?
|
64
|
+
options.fetch(:bundler, false)
|
96
65
|
end
|
97
66
|
|
98
|
-
def
|
99
|
-
options
|
67
|
+
def environments
|
68
|
+
options.fetch(:environments, %w(test development))
|
100
69
|
end
|
101
70
|
end
|
102
71
|
end
|
@@ -1,9 +1,6 @@
|
|
1
|
-
guard 'spring', :
|
2
|
-
watch(
|
3
|
-
watch(%r{^
|
4
|
-
watch(%r{^
|
5
|
-
watch(%r{^
|
6
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) do |m|
|
7
|
-
%W(spec/routing/#{m[1]}_routing_spec.rb spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb spec/requests/#{m[1]}_spec.rb)
|
8
|
-
end
|
1
|
+
guard 'spring', bundler: true do
|
2
|
+
watch('Gemfile.lock')
|
3
|
+
watch(%r{^config/})
|
4
|
+
watch(%r{^spec/(support|factories)/})
|
5
|
+
watch(%r{^spec/factory.rb})
|
9
6
|
end
|
data/lib/guard/spring/version.rb
CHANGED
@@ -0,0 +1,134 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Guard::Spring::Runner do
|
4
|
+
let(:options) { {} }
|
5
|
+
let(:runner) { described_class.new options }
|
6
|
+
|
7
|
+
before do
|
8
|
+
allow(runner).to receive(:system).and_raise(NotImplementedError)
|
9
|
+
end
|
10
|
+
|
11
|
+
describe '#initialize' do
|
12
|
+
it 'should have default options and allow overrides' do
|
13
|
+
expect(runner.options).to eq(options)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#start' do
|
18
|
+
it 'outputs a message' do
|
19
|
+
expect(::Guard::UI).to receive(:info).with(/starting/i)
|
20
|
+
allow(runner).to receive(:start_spring)
|
21
|
+
runner.start
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'calls start_spring' do
|
25
|
+
expect(runner).to receive(:start_spring).with(no_args)
|
26
|
+
runner.start
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe '#stop' do
|
31
|
+
it 'outputs a message' do
|
32
|
+
expect(::Guard::UI).to receive(:info).with(/stopping/i)
|
33
|
+
allow(runner).to receive(:stop_spring)
|
34
|
+
runner.stop
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'calls stop_spring' do
|
38
|
+
expect(runner).to receive(:stop_spring).with(no_args)
|
39
|
+
runner.stop
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe '#restart' do
|
44
|
+
it 'outputs a message' do
|
45
|
+
expect(::Guard::UI).to receive(:info).with(/restarting/i)
|
46
|
+
allow(runner).to receive(:stop_spring)
|
47
|
+
allow(runner).to receive(:start_spring)
|
48
|
+
runner.restart
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'calls stop_spring and start_spring' do
|
52
|
+
expect(runner).to receive(:stop_spring).with(no_args).ordered
|
53
|
+
expect(runner).to receive(:start_spring).with(no_args).ordered
|
54
|
+
runner.restart
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe '#spring_command' do
|
59
|
+
let(:bin_stub_exists) { false }
|
60
|
+
let(:bin_stub_path) { 'foo' }
|
61
|
+
subject { runner.send(:spring_command) }
|
62
|
+
before do
|
63
|
+
allow(runner).to receive(:bin_stub_exists?).and_return(bin_stub_exists)
|
64
|
+
allow(runner).to receive(:bin_stub).and_return(bin_stub_path)
|
65
|
+
end
|
66
|
+
|
67
|
+
context 'when cmd option is present' do
|
68
|
+
let(:options) { {cmd: 'foobar'} }
|
69
|
+
it { is_expected.to eq('foobar') }
|
70
|
+
end
|
71
|
+
|
72
|
+
context 'when cmd option is unused' do
|
73
|
+
context 'with bundler: true' do
|
74
|
+
let(:options) { {bundler: true} }
|
75
|
+
|
76
|
+
context 'when bin stub exists' do
|
77
|
+
let(:bin_stub_exists) { true }
|
78
|
+
it { is_expected.to eq('bundle exec spring') }
|
79
|
+
end
|
80
|
+
|
81
|
+
context 'when bin stub does not exist' do
|
82
|
+
let(:bin_stub_exists) { false }
|
83
|
+
it { is_expected.to eq('bundle exec spring') }
|
84
|
+
end
|
85
|
+
end
|
86
|
+
context 'with bundler: false' do
|
87
|
+
let(:options) { {bundler: false} }
|
88
|
+
|
89
|
+
context 'when bin stub exists' do
|
90
|
+
let(:bin_stub_exists) { true }
|
91
|
+
it { is_expected.to eq(bin_stub_path) }
|
92
|
+
end
|
93
|
+
|
94
|
+
context 'when bin stub does not exist' do
|
95
|
+
let(:bin_stub_exists) { false }
|
96
|
+
it { is_expected.to eq('spring') }
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe '#bin_stub' do
|
103
|
+
subject { runner.send(:bin_stub) }
|
104
|
+
it { is_expected.to eq('./bin/spring') }
|
105
|
+
end
|
106
|
+
|
107
|
+
describe '#bin_stub_exists?' do
|
108
|
+
let(:bin_stub_path) { 'foo' }
|
109
|
+
|
110
|
+
it 'checks whether the bin_stub exists' do
|
111
|
+
allow(runner).to receive(:bin_stub).and_return(bin_stub_path)
|
112
|
+
expect(File).to receive(:exist?).with(bin_stub_path).and_return(0xdeadbeef)
|
113
|
+
expect(runner.send(:bin_stub_exists?)).to eq(0xdeadbeef)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
describe '#start_spring' do
|
118
|
+
it 'makes a system call to start Spring' do
|
119
|
+
allow(runner).to receive(:environments).and_return(%w(env1 env2))
|
120
|
+
allow(runner).to receive(:spring_command).and_return('barbaz')
|
121
|
+
expect(runner).to receive(:system).with(/barbaz rake -T RAILS_ENV='env1'/).and_return(true)
|
122
|
+
expect(runner).to receive(:system).with(/barbaz rake -T RAILS_ENV='env2'/).and_return(true)
|
123
|
+
runner.send(:start_spring)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
describe '#stop_spring' do
|
128
|
+
it 'makes a system call to stop Spring' do
|
129
|
+
allow(runner).to receive(:spring_command).and_return('spring')
|
130
|
+
expect(runner).to receive(:system).with(/spring stop/).and_return(true)
|
131
|
+
runner.send(:stop_spring)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Guard::Spring do
|
4
|
+
describe '#initialize' do
|
5
|
+
it "instantiates Runner with given options" do
|
6
|
+
expect(described_class::Runner).to receive(:new).with(foo: 'bar')
|
7
|
+
described_class.new(foo: 'bar')
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
context 'with a plugin instance' do
|
12
|
+
let(:options) { {} }
|
13
|
+
let(:plugin_instance) { described_class.new(options) }
|
14
|
+
let(:runner) { double(described_class::Runner) }
|
15
|
+
before do
|
16
|
+
allow(plugin_instance).to receive(:runner).and_return(runner)
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#start' do
|
20
|
+
it "call runner.start" do
|
21
|
+
expect(runner).to receive(:start).with(no_args)
|
22
|
+
plugin_instance.start
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe '#stop' do
|
27
|
+
it "call runner.stop" do
|
28
|
+
expect(runner).to receive(:stop).with(no_args)
|
29
|
+
plugin_instance.stop
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe '#reload' do
|
34
|
+
it "calls runner.restart" do
|
35
|
+
expect(runner).to receive(:restart).with(no_args)
|
36
|
+
plugin_instance.reload
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe '#run_all' do
|
41
|
+
it "does nothing" do
|
42
|
+
plugin_instance.run_all
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe '#run_on_changes' do
|
47
|
+
it "calls runner.restart" do
|
48
|
+
expect(runner).to receive(:restart).with(no_args)
|
49
|
+
plugin_instance.run_on_changes('foo')
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe '#run_on_removals' do
|
54
|
+
it "calls runner.restart" do
|
55
|
+
expect(runner).to receive(:restart).with(no_args)
|
56
|
+
plugin_instance.run_on_removals('foo')
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
unless ENV['CI']
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start do
|
5
|
+
add_group 'Guard::Spring', 'lib/guard'
|
6
|
+
add_group 'Specs', 'spec'
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'rspec'
|
11
|
+
require 'guard/compat/test/helper'
|
12
|
+
require 'guard/spring'
|
13
|
+
|
14
|
+
ENV["GUARD_ENV"] = 'test'
|
15
|
+
|
16
|
+
RSpec.configure do |config|
|
17
|
+
config.before(:each) do
|
18
|
+
# Silence UI.info output
|
19
|
+
allow(::Guard::UI).to receive(:info).and_return(true)
|
20
|
+
allow(::Guard::Notifier).to receive(:notify).and_return(true)
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,41 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-spring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: guard-compat
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: spring
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- -
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
47
|
version: '0'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- -
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
39
81
|
- !ruby/object:Gem::Version
|
40
82
|
version: '0'
|
41
83
|
description: Guard::Spring automatically runs tests with spring
|
@@ -45,18 +87,18 @@ executables: []
|
|
45
87
|
extensions: []
|
46
88
|
extra_rdoc_files: []
|
47
89
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- Gemfile
|
50
90
|
- LICENSE.txt
|
51
91
|
- README.md
|
52
|
-
- Rakefile
|
53
|
-
- guard-spring.gemspec
|
54
92
|
- lib/guard/spring.rb
|
55
93
|
- lib/guard/spring/runner.rb
|
56
94
|
- lib/guard/spring/templates/Guardfile
|
57
95
|
- lib/guard/spring/version.rb
|
96
|
+
- spec/guard/spring/runner_spec.rb
|
97
|
+
- spec/guard/spring_spec.rb
|
98
|
+
- spec/spec_helper.rb
|
58
99
|
homepage: https://github.com/mknapik/guard-spring
|
59
|
-
licenses:
|
100
|
+
licenses:
|
101
|
+
- MIT
|
60
102
|
metadata: {}
|
61
103
|
post_install_message:
|
62
104
|
rdoc_options: []
|
@@ -64,18 +106,21 @@ require_paths:
|
|
64
106
|
- lib
|
65
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
108
|
requirements:
|
67
|
-
- -
|
109
|
+
- - ">="
|
68
110
|
- !ruby/object:Gem::Version
|
69
111
|
version: '0'
|
70
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
113
|
requirements:
|
72
|
-
- -
|
114
|
+
- - ">="
|
73
115
|
- !ruby/object:Gem::Version
|
74
116
|
version: '0'
|
75
117
|
requirements: []
|
76
118
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.4.6
|
78
120
|
signing_key:
|
79
121
|
specification_version: 4
|
80
122
|
summary: Pushes watched files to spring
|
81
|
-
test_files:
|
123
|
+
test_files:
|
124
|
+
- spec/guard/spring/runner_spec.rb
|
125
|
+
- spec/guard/spring_spec.rb
|
126
|
+
- spec/spec_helper.rb
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
data/guard-spring.gemspec
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'guard/spring/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |gem|
|
7
|
-
gem.name = 'guard-spring'
|
8
|
-
gem.version = Guard::SpringVersion::VERSION
|
9
|
-
gem.platform = Gem::Platform::RUBY
|
10
|
-
gem.authors = ['Michał Knapik']
|
11
|
-
gem.email = ['mknapik@student.agh.edu.pl']
|
12
|
-
gem.description = %q{Guard::Spring automatically runs tests with spring}
|
13
|
-
gem.summary = %q{Pushes watched files to spring}
|
14
|
-
gem.homepage = 'https://github.com/mknapik/guard-spring'
|
15
|
-
|
16
|
-
gem.files = `git ls-files`.split($/)
|
17
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
-
gem.require_paths = ['lib']
|
20
|
-
|
21
|
-
gem.add_dependency 'guard'
|
22
|
-
gem.add_dependency 'spring'
|
23
|
-
end
|