rails-dummy 0.0.6 → 0.0.7

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: 863f26be8e49e62d9f0a792441f877165e23db13
4
- data.tar.gz: 27569c1c40ac4d102bb0bfc23da1a7ac7f6625b8
3
+ metadata.gz: 22de84dbae9a5919fdef3bc51731d2ccc5e28580
4
+ data.tar.gz: 6f7dee4b36cfa8cd97ea0f6a514ea71dbfe8929e
5
5
  SHA512:
6
- metadata.gz: db1afd18ae808b2568ede53a0cd225dd2d65173428f0aeb8155386bf5fd4244f9bd15e60ee5295eca835165dbdaced1b32987b4bb8d2ec0e036109c5e024c305
7
- data.tar.gz: b7a9f83623b6d1681d369b6eb81f45e3d6c7b9a25fe3ac61b50830df549b69f6a36e4c78daa06bc55522a794de97ee293056f669dbfe545aa141f2de57d15ab7
6
+ metadata.gz: 016c073d01ae9b4df3bf35b03d5374e625567cea1430349e9d229205600f740b710941cced969c5c89f5b378ac6b9faa6443db17fb9b95b31557b1f180beea16
7
+ data.tar.gz: 0cdc85b477a3379028df5c2926f86c8cecf8abb1f4aaaa8c02adacb4cede2c5f5238777228f47f7f59a78ad510c92aeeda91ed01966daaaa3b573692fca6dd26
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Dummy
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
@@ -65,7 +65,12 @@ namespace :dummy do
65
65
 
66
66
  def dummy_path
67
67
  rel_path = ENV['DUMMY_APP_PATH'] || 'spec/dummy'
68
- File.expand_path(rel_path)
68
+
69
+ if @current_path.to_s.include?(rel_path)
70
+ @current_path
71
+ else
72
+ @current_path = File.expand_path(rel_path)
73
+ end
69
74
  end
70
75
 
71
76
  # Replaces the `database.yml` file with a version to allow reading from env.
@@ -75,10 +80,6 @@ namespace :dummy do
75
80
  db_config_path = File.expand_path('config/database.yml', path)
76
81
  content = <<-YML
77
82
  test:
78
- url: <%= ENV['DATABASE_URL'] %>
79
- development:
80
- url: <%= ENV['DATABASE_URL'] %>
81
- production:
82
83
  url: <%= ENV['DATABASE_URL'] %>
83
84
  YML
84
85
  open(db_config_path, 'w').write(content)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-dummy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas SUȘCOV
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-16 00:00:00.000000000 Z
11
+ date: 2018-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails