rspec-daemon 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: ad0427bfd2ee9e38d83573209c7d4166e2679e8c4dcffbf4ca48f4312e4d3752
4
- data.tar.gz: 89a1eca7a74ad6b2242e5f5fe49a827e43b89ee785e6437a67476c4d6d97da98
3
+ metadata.gz: 2d807415c014d9d248400615673d363eeb4ae05acd1ce3bdea0f5c0e20e7db9f
4
+ data.tar.gz: edacf3fe0cdb6e297da6fe021bebe547d7f8165348c8024494c4df81fad67207
5
5
  SHA512:
6
- metadata.gz: 7863bb3e3b787ea85ebba9d5cd71b7960882504c7a0e538a1f1262bf1d5e991da725cbeb751d748dcda4496236feceb3929acc6748248cc970858e20cdadaee7
7
- data.tar.gz: 1a596832de5d47be88d9f151a87532ab721241ed87d7641474477e9fca7ea852ccb6f1dd6467ee0c152cf4b5acdec2defdc7d5397bff96f20c5857215fe9b4da
6
+ metadata.gz: 604fce5d7139688c7959796157ba2d4f94a04d0198fc9e27eea8ae2bbe0cfc86421a500d6d7f5903044012d96b0ac8634eff29f76330d7aceb3a07d6e4283286
7
+ data.tar.gz: 1b0263e394a4ae99e75c2b7645278cc5ef289520651fd555cab4e9f56ee429d33e40a4c60b1b8319bfcb97499fc648b92e37ae034bcc88d1f06dd1cc0e3459a8
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rspec::Daemon
1
+ # RSpec::Daemon
2
2
 
3
3
  rspec-daemon is a gem to run specs at high speed.
4
4
 
@@ -7,19 +7,21 @@ https://gist.github.com/cumet04/71d7d76310f7cb436c68b57a7c99aae3
7
7
 
8
8
  ## Installation
9
9
 
10
+ In your Gemfile
11
+
10
12
  ```
11
- require 'rspec-daemon', require: false
13
+ gem 'rspec-daemon', require: false
12
14
  ```
13
15
 
14
16
  ## Usage
15
17
 
16
-
17
18
  ```
19
+ $ cd YOUR_PROJECT
18
20
  $ bundle ex rspec-daemon
19
21
  ```
20
22
 
21
23
  ```
22
- $ echo 'spec/models/brand_spec.rb' | nc -v 0.0.0.0 3002
24
+ $ echo 'spec/models/user_spec.rb' | nc -v 0.0.0.0 3002
23
25
  ```
24
26
 
25
27
  ## Development
@@ -38,4 +40,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
38
40
 
39
41
  ## Code of Conduct
40
42
 
41
- Everyone interacting in the Rspec::Daemon project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/asonas/rspec-daemon/blob/master/CODE_OF_CONDUCT.md).
43
+ Everyone interacting in the RSpec::Daemon project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/asonas/rspec-daemon/blob/master/CODE_OF_CONDUCT.md).
data/example/user_spec.rb CHANGED
@@ -10,7 +10,7 @@ class User
10
10
  end
11
11
  end
12
12
 
13
- Rspec.describe "User" do
13
+ RSpec.describe "User" do
14
14
  describe "#age" do
15
15
  before do
16
16
  @user = User.new(Time.new(1988, 11, 7))
data/exe/rspec-daemon CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rspec/daemon/cli'
4
- Rspec::Daemon::Cli.start
4
+ RSpec::Daemon::Cli.start
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  class Daemon
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
data/lib/rspec/daemon.rb CHANGED
@@ -27,6 +27,7 @@ module RSpec
27
27
 
28
28
  RSpec::Core::Runner.disable_autorun!
29
29
  server = TCPServer.open("0.0.0.0", 3002)
30
+ puts "start tcp server"
30
31
 
31
32
  loop do
32
33
  handle_request(server.accept)
@@ -42,6 +43,7 @@ module RSpec
42
43
 
43
44
  socket.puts(status)
44
45
  socket.puts(out)
46
+ puts out
45
47
  socket.puts(__FILE__)
46
48
  rescue StandardError => e
47
49
  socket.puts e.full_message
@@ -50,7 +52,7 @@ module RSpec
50
52
  end
51
53
 
52
54
  def run(msg, options = [])
53
- options += ["--force-color"]
55
+ options += ["--force-color", "--format", "documentation"]
54
56
  argv = msg.split(" ")
55
57
 
56
58
  reset
@@ -79,7 +81,7 @@ module RSpec
79
81
  end
80
82
 
81
83
  def cached_config
82
- @cached_config ||= Rspec::Daemon::Configuration.new
84
+ @cached_config ||= RSpec::Daemon::Configuration.new
83
85
  end
84
86
 
85
87
  RSpec::Core::BacktraceFormatter.class_eval do
data/sig/rspec/daemon.rbs CHANGED
@@ -1,4 +1,4 @@
1
- module Rspec
1
+ module RSpec
2
2
  module Daemon
3
3
  VERSION: String
4
4
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Fujiwara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email: