rails_enterprise_setup 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 3dc5eb3ece3b47fba3eac50e446f23a22573ac78
4
- data.tar.gz: dc512681cbcaa33b38593a4ccee73a342418c6b1
3
+ metadata.gz: 9a6fbb4d7992d9b4222acd26328639594a3d0361
4
+ data.tar.gz: ba7a8ea7f43cdfd7f6d73dc032254067a57b44c9
5
5
  SHA512:
6
- metadata.gz: d8642f441ddec3de6052a5709dcb50dbd629b873b8e6c8994fcb992fa6ddf56ea244b342674be7e90fbfcc1073def2791d969cddeacfd42c2971ba94ce3abe65
7
- data.tar.gz: 50d77ff4cfa2146934e77b2dca9991acd5b975502e4d86ea376c30f3903859f3d57b0d8fa5856c952c3afe1c6c4d789d54aeb8b46f347613f5dd2996d9efa235
6
+ metadata.gz: 02e9165303267ce9218801ea4a2c6ae37fc46b903c8ebd826782c554a1e96d1d4e3df62cdf38d2757d3ac2adad89618fc0dce81d201f763ad7eaf4ebc6c56d16
7
+ data.tar.gz: dd23d7d3ef73d3329efbf32a72e1ba3a278297d976a5fed360175f46817ee8a7f57041933ae923d26a89e81c5c14baf1df6e071826019b3310923b0ff836fc4a
@@ -17,19 +17,20 @@ class DbCredentialsGenerator < Rails::Generators::NamedBase
17
17
  # username: ...
18
18
  # password: ...
19
19
  #
20
- #{file_name}_#{Rails.env}:
20
+ #{Rails.env}:
21
+ #{file_name}:
21
22
  home_path: "#{Dir.home}"
22
- username: "config/passwords/#{Rails.env}_#{file_name}_username.txt"
23
- password: "config/passwords/#{Rails.env}_#{file_name}_password.txt"
23
+ username: "/config/passwords/#{Rails.env}_#{file_name}_username.txt"
24
+ password: "/config/passwords/#{Rails.env}_#{file_name}_password.txt"
24
25
 
25
26
  FILE
26
27
  else
27
28
  unless File.open('config/database_credentials.yml').read().include? "#{file_name}:"
28
29
  inject_into_file 'config/database_credentials.yml',"
29
- #{file_name}_#{Rails.env}:
30
+ #{file_name}:
30
31
  home_path: \"#{Dir.home}\"
31
- username: \"config/passwords/#{Rails.env}_#{file_name}_username.txt\"
32
- password: \"config/passwords/#{Rails.env}_#{file_name}_password.txt\"
32
+ username: \"/config/passwords/#{Rails.env}_#{file_name}_username.txt\"
33
+ password: \"/config/passwords/#{Rails.env}_#{file_name}_password.txt\"
33
34
 
34
35
  ", after: /#{Rails.env}:/, verbose: true, force: false
35
36
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSetup
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_enterprise_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhli, Uri