rspec-daemon 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd6bab2313e76a3848916536652b8891b4126605abfdc7f36235de85f895aa01
4
- data.tar.gz: a036f6083a5bc17d29d452385ed332cbffcb4f07b1bb0c0d70f9021ee526ad08
3
+ metadata.gz: '009bb553fc685bd3c43c8317afa829b91927d113f4a82c3ba225a25c6b222b97'
4
+ data.tar.gz: 617b4b819820308641bdcbbdb1700b95a4b881cc531bc1b40f6333d1daca94ab
5
5
  SHA512:
6
- metadata.gz: 8523ac4878095af6e78cbf81d794d36c7ec545c17e2b49d6e70e25f5ae0e60036b55607fc667208babbe541fce1183ad16114e097593ef84645939b36979e7c3
7
- data.tar.gz: 42a89e205857389c324163b31bb790386069f87bdb801e7232497e1072e1944989b522883cec5eb3625105b3c4d750feb69b099c3fcce030277fc9579919a917
6
+ metadata.gz: 8452ebf8fb216e146f5541c781f44b1d75ce9253c3d31bccf4578e63f7cad54858faff131dc3c133c359f797f25a9a7ee39f1fd6a85070662a2ead7bb5b5508f
7
+ data.tar.gz: bce7470abe76132de68bf3076678a82f1366bed74a0345c7a0617bdb9a9151d8d97b3d2474f24c06bf477fac442235566e51e0e17e2df9d3ac8943ebc6ce44bc
data/example/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem 'rspec'
4
- gem 'rspec-daemon', path: '/Users/asonas@cookpad.com/ghq/github.com/asonas/rspec-daemon'
4
+ gem 'rspec-daemon'
data/example/Gemfile.lock CHANGED
@@ -1,18 +1,21 @@
1
- PATH
2
- remote: /Users/asonas@cookpad.com/ghq/github.com/asonas/rspec-daemon
3
- specs:
4
- rspec-daemon (0.1.0)
5
-
6
1
  GEM
7
2
  remote: https://rubygems.org/
8
3
  specs:
4
+ coderay (1.1.3)
9
5
  diff-lcs (1.5.0)
6
+ method_source (1.0.0)
7
+ pry (0.14.2)
8
+ coderay (~> 1.1)
9
+ method_source (~> 1.0)
10
10
  rspec (3.12.0)
11
11
  rspec-core (~> 3.12.0)
12
12
  rspec-expectations (~> 3.12.0)
13
13
  rspec-mocks (~> 3.12.0)
14
14
  rspec-core (3.12.1)
15
15
  rspec-support (~> 3.12.0)
16
+ rspec-daemon (0.1.3)
17
+ pry
18
+ rspec
16
19
  rspec-expectations (3.12.2)
17
20
  diff-lcs (>= 1.2.0, < 2.0)
18
21
  rspec-support (~> 3.12.0)
@@ -26,7 +29,7 @@ PLATFORMS
26
29
 
27
30
  DEPENDENCIES
28
31
  rspec
29
- rspec-daemon!
32
+ rspec-daemon
30
33
 
31
34
  BUNDLED WITH
32
35
  2.3.26
data/example/user_spec.rb CHANGED
@@ -6,7 +6,7 @@ class User
6
6
  end
7
7
 
8
8
  def age
9
- 34
9
+ (Time.now.strftime("%Y%m%d").to_i - self.birthday.strftime("%Y%m%d").to_i) / 10000
10
10
  end
11
11
  end
12
12
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  class Daemon
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.4"
6
6
  end
7
7
  end
data/lib/rspec/daemon.rb CHANGED
@@ -76,7 +76,9 @@ module RSpec
76
76
 
77
77
  def rspec_configuration
78
78
  proc do
79
- require "rails_helper"
79
+ if defined?(::Rails)
80
+ require "rails_helper"
81
+ end
80
82
  end
81
83
  end
82
84
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Fujiwara