dry_require_spec_helper 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/dry_require_spec_helper +3 -2
- data/lib/dry_require_spec_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0fe051bba9a604abfb0259e9238bd1beedc65d5
|
4
|
+
data.tar.gz: 5d0aeae2eadd6c28a7027b4bd36eff6a52e801b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa8df9939b047941459d7b41740399a9dacd7fe78b6fd2c6c00ebc9488d3b40e270bcdc20da2b9a933bbd712d3f7564f3973f646475ff32ef7c6fba44b31c3c
|
7
|
+
data.tar.gz: a442d6382a9ce134c72903e8429be11627c94daa1fc61f8e89d42dbd3cf13cb9da706e62160e0ca1bfe8b075dcaf45343e0994e7186b901cfcc8670f5466d9fa
|
data/README.md
CHANGED
@@ -16,8 +16,8 @@ otherwise append `--require spec_helper` to .rspec file.
|
|
16
16
|
## HOW TO USE
|
17
17
|
|
18
18
|
```
|
19
|
-
|
20
|
-
|
19
|
+
$ cd /path/to/dir # recommended git repository
|
20
|
+
$ dry_require_spec_helper # *** immediate effect ***
|
21
21
|
```
|
22
22
|
|
23
23
|
## REQUIREMENTS
|
data/bin/dry_require_spec_helper
CHANGED
@@ -6,8 +6,9 @@ unless File.exist?('.rspec')
|
|
6
6
|
exit 1
|
7
7
|
end
|
8
8
|
|
9
|
-
helper_name = if File.
|
10
|
-
File.
|
9
|
+
helper_name = if File.exists?('spec/rails_helper.rb') &&
|
10
|
+
File.exist?('Gemfile.lock') &&
|
11
|
+
File.read('Gemfile.lock').split("\n").detect {|gem| /rspec-rails \((\d)\.(\d)\.(\d)([0-9A-Za-z-]*)\)\z/ === gem } &&
|
11
12
|
$1.to_i >= 3
|
12
13
|
'rails_helper'
|
13
14
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry_require_spec_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koichi ITO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: DRY (Don't Repeat Yourself) of require 'spec_helper'.
|
14
14
|
email: koic.ito@gmail.com
|