jacuzzi 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/jacuzzi.rb CHANGED
@@ -8,17 +8,30 @@ class Jacuzzi
8
8
  def initialize
9
9
  puts "Welcome to the jacuzzi -- who knows what bugs you'll catch?"
10
10
  @test_paths = []
11
+
12
+ %x[mkdir ./.jacuzzi]
13
+ %x[mkdir ./.jacuzzi/spec]
14
+ %x[mkdir ./.jacuzzi/tmp]
15
+
16
+ spec_helper_content = <<HEREDOC
17
+ RSpec.configure do |config|
18
+ config.include Capybara::DSL
19
+ end
20
+ HEREDOC
21
+ File.open('./.jacuzzi/spec/spec_helper.rb', 'w') {|file|
22
+ file.write(spec_helper_content)
23
+ }
11
24
  end
12
25
 
13
26
  def heat
14
- %x[git clone #{@test_source} ./tmp/tests/]
27
+ %x[git clone #{@test_source} ./.jacuzzi/tmp/tests]
15
28
 
16
- Find.find('./tmp/tests/') do |path|
29
+ Find.find('./.jacuzzi/tmp/tests/') do |path|
17
30
  @test_paths << path if File.extname(path) == '.rb'
18
31
  end
19
32
 
20
33
  @test_paths.each do |path|
21
- %x[cp #{path} ./spec/#{File.basename(path)}]
34
+ %x[cp #{path} ./.jacuzzi/spec/#{File.basename(path)}]
22
35
  end
23
36
 
24
37
  capybara_spec_content = <<HEREDOC
@@ -31,22 +44,16 @@ Capybara.default_driver = :selenium
31
44
  Capybara.app_host = "#{@app_host}"
32
45
  HEREDOC
33
46
 
34
- File.open('./spec/capybara_spec.rb', 'w') {|file|
47
+ File.open('./.jacuzzi/spec/capybara_spec.rb', 'w') {|file|
35
48
  file.write(capybara_spec_content)
36
49
  }
37
50
  end
38
51
 
39
52
  def whirl
40
- %x[rspec ./spec -c -f documentation]
53
+ %x[rspec ./.jacuzzi/spec -c -f documentation]
41
54
  end
42
55
 
43
56
  def cool
44
- %x[rm -rf ./tmp/tests]
45
- %x[rm -rf ./spec/capybara_spec.rb]
46
-
47
- @test_paths.each do |path|
48
- %x[rm ./spec/#{File.basename(path)}]
49
- end
57
+ %x[rm -rf ./.jacuzzi]
50
58
  end
51
-
52
- end
59
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jacuzzi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -21,10 +21,7 @@ extra_rdoc_files: []
21
21
  files:
22
22
  - bin/jacuzzi
23
23
  - lib/jacuzzi.rb
24
- - results/.gitignore
25
- - spec/spec_helper.rb
26
24
  - test/.gitignore
27
- - tmp/.gitignore
28
25
  - .gitignore
29
26
  - Gemfile
30
27
  - Gemfile.lock
data/results/.gitignore DELETED
File without changes
data/spec/spec_helper.rb DELETED
@@ -1,3 +0,0 @@
1
- RSpec.configure do |config|
2
- config.include Capybara::DSL
3
- end
data/tmp/.gitignore DELETED
File without changes