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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fce3144d6c24dd13ac786a2dd09e727f82e9996
4
- data.tar.gz: 79d206d60fce033b1a963478a9e7348935ef6a70
3
+ metadata.gz: e0fe051bba9a604abfb0259e9238bd1beedc65d5
4
+ data.tar.gz: 5d0aeae2eadd6c28a7027b4bd36eff6a52e801b0
5
5
  SHA512:
6
- metadata.gz: 1b371b82c21e50a8e7d18deb61eb1a8bfb50c7acfcd25556c319420aae6c6e58bb624bc951d1a37751ecea772ba1fe0037ce999bb8d2234b6150d5b78a3745bf
7
- data.tar.gz: 31830513d896e8c2ba9b54dcc12d66e49e7bbf2bc5054fea292f15df514900177f0fdd334ec2f81cb2c4efb59359e1bf6a893634dd2f87bf8e42ae4fa284d8ff
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
- > cd /path/to/dir # recommended git repository
20
- > dry_require_spec_helper # *** immediate effect ***
19
+ $ cd /path/to/dir # recommended git repository
20
+ $ dry_require_spec_helper # *** immediate effect ***
21
21
  ```
22
22
 
23
23
  ## REQUIREMENTS
@@ -6,8 +6,9 @@ unless File.exist?('.rspec')
6
6
  exit 1
7
7
  end
8
8
 
9
- helper_name = if File.exist?('Gemfile.lock') &&
10
- File.read('Gemfile.lock').split("\n").detect {|gem| /rspec-rails \((\d)\.(\d)\.(\d)([0-9A-Za-z-]*)\)$/ === gem } &&
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
@@ -1,3 +1,3 @@
1
1
  module DryRequireSpecHelper
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
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.1
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-05 00:00:00.000000000 Z
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