rails_enterprise_setup 0.1.4 → 0.1.5

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: 8ed76820276e7ef746bf63911e6129d04bcf8a21
4
- data.tar.gz: 3d318cff2571d36f2cb2f37dc225477892506193
3
+ metadata.gz: 3fdc53f0b9ee602b9feab79c8fefb9ce60f38a8d
4
+ data.tar.gz: 5e6cc11d8f0d591abeeeb44b8d82bac0b7f4c180
5
5
  SHA512:
6
- metadata.gz: 4f4a93d993c61b20bd4eab4fa8431c53bffbf2f7eb54ae54ab283be458a6c49688849a937b2172ca03f62176137f2a6b592b608be6abe805538dba83ec9d700d
7
- data.tar.gz: 1ae9d54f4077f396eb81b41bb300380eca7f499f593e327e1a69dd548be294babc9528a04d7e565dfa2850fe119e5520d6287f91d9df9afbcb433003c115d4eb
6
+ metadata.gz: 404af4aa77dfd56d6a868bedc59c6eb138aa71efb0f7835adf8265df844041174c74cdd305f6335c894fd5a185d2bb44fa46d1fea3a89d25adaf0f638dbb77b2
7
+ data.tar.gz: 77053c6d1a189dcc6cdd812ec8a2f27879ca5d1b73c061396c66ab78a5ef7471b80205b5a8accc5fee9818125c56b3dc763015f2192db35ca257a571f7eeca63
data/README.md CHANGED
@@ -23,10 +23,19 @@ Or install it yourself as:
23
23
  ```ruby
24
24
  rails generate setup_rails
25
25
  ```
26
- Follow directions.
26
+ Follow the directions.
27
27
 
28
28
  Note: You can enter more then 1 letter.
29
29
 
30
+ ## More Info
31
+
32
+ ```ruby
33
+ rails generate setup_rails -h
34
+
35
+ rails generate db_connect -h
36
+ rails generate db_credentials -h
37
+ rails generate ssl_mode -h
38
+ ```
30
39
 
31
40
  ## Contributing
32
41
 
@@ -2,12 +2,12 @@ Description:
2
2
  generates an abstract Database connection class that acts as the interface to the given database
3
3
 
4
4
  Example:
5
- $ rails generate db_coonect <Name of Database>
5
+ $ rails generate db_connect <Name of Database>
6
6
 
7
7
  This will create:
8
- create app/models/<name_of_database>_db.rb
8
+ create app/models/name_of_database_db.rb
9
9
  -----
10
- class NameofdatabaseDb < ActiveRecord::Base
10
+ class NameOfDatabaseDb < ActiveRecord::Base
11
11
  self.abstract_class = true
12
12
  ...
13
13
  -----
@@ -18,6 +18,6 @@ Example:
18
18
  -----
19
19
  rails model: app/models/some_table.rb
20
20
  -----
21
- class SomeTable < NameofdatabaseDb
21
+ class SomeTable < NameOfDatabaseDb
22
22
  ...
23
23
  -----
@@ -1,6 +1,6 @@
1
1
  Description:
2
2
  Create a database credentials yml file that holds the path to the username and password files.
3
- Create an initializer that adds the credentilas to ActiveRecord.
3
+ Create an initializer that adds the credentials to ActiveRecord.
4
4
  Example:
5
5
  rails generate db_credentials database_name
6
6
 
@@ -3,12 +3,23 @@ Description:
3
3
  Generators invoked:
4
4
  * db_connect
5
5
  * db_credentials
6
- * ssl_mode generators
7
-
8
- You will have the option of choosing all or any of the setups.
6
+ * ssl_mode
9
7
 
10
- Example:
11
- rails generate setup_rails
8
+ For more info on each generator run:
9
+ rails generate db_connect -h
10
+ rails generate db_credentials -h
11
+ rails generate ssl_mode -h
12
12
 
13
- you will be asked if you want all generators to run or specific generators to run.
13
+ Usage:
14
+ You will have the option of choosing all or any of the setups:
15
+ all[Aa]:
16
+ db_connect[Cc]:
17
+ db_credentials[Rr]:
18
+ ssl_mode[Ss]:
19
+ none[]:
14
20
 
21
+ You can pick more then one setup:
22
+
23
+ "What setup would you like to run. (Default: none)[AaCcRsSs]:" cr
24
+
25
+ Typing 'cr' would run both db_connect and db_credentials sequentially
@@ -1,3 +1,3 @@
1
1
  module RailsSetup
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhli, Uri