fork_buddy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
- module ForkBuddy
2
- VERSION = "0.0.2"
1
+ class ForkBuddy
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fork_buddy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Burke Libbey
@@ -31,8 +31,6 @@ files:
31
31
  - .gitignore
32
32
  - Gemfile
33
33
  - Rakefile
34
- - example-client.rb
35
- - example.rb
36
34
  - fork_buddy.gemspec
37
35
  - lib/fork_buddy.rb
38
36
  - lib/fork_buddy/version.rb
@@ -1,5 +0,0 @@
1
- require 'fork_buddy'
2
-
3
- fb = ForkBuddy.new(socket: '/tmp/fork_buddy.sock', rails_env: 'test')
4
-
5
- fb.acquire(:rspec_ready, rails_env: 'test')
data/example.rb DELETED
@@ -1,39 +0,0 @@
1
- require 'fork_buddy/server'
2
-
3
- fbs = ForkBuddy::Server.start(socket: '/tmp/fork_buddy.sock') do
4
- stage :initial {
5
- option :rails_env
6
- stage :require_bundler {
7
- stage :require_application {
8
- stage :application_loaded {
9
- stage :rspec_ready
10
- stage :cucumber_ready
11
- }
12
- }
13
- }
14
- }
15
- end
16
-
17
- fbs.stage(:initial)
18
-
19
- require 'rubygems'
20
- require 'bundler'
21
-
22
- fbs.stage(:require_bundler)
23
-
24
- Bundler.require :default, fbs.option(:rails_env)
25
-
26
- fbs.stage(:require_application)
27
-
28
- ENV['RAILS_ENV'] = fbs.option(:rails_env)
29
- require 'application and stuff'
30
-
31
- fbs.stage(:application_booted)
32
-
33
- fbs.stage(:rspec_ready) do
34
- require 'rspec/rails'
35
- end
36
-
37
- fbs.stage(:cucumber_ready) do
38
- require 'cucumber/rails'
39
- end