rails_g_database 0.0.3 → 0.0.4
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 +4 -4
- data/README.md +8 -5
- data/lib/rails_g_database/version.rb +2 -2
- data/rails_g_database.gemspec +3 -4
- metadata +15 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff91be72d03d22c395e8c6f7d6e8ccc1ed3d5a9c
|
4
|
+
data.tar.gz: e5ccee306e29dea769c824fecb35595e374c4277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 480c9bdcc652cf6f789c1182eae9f7473e9c9efd32b59b572c359132b00ac0aa77f395186e377299cc99fc8150ed2bf69f9fe0f79920fb6bf1e91c9a7b5b9f10
|
7
|
+
data.tar.gz: 58a574099b58c743842ea4f87c660a43ba67e7744c0700b4eaff16e774a55c436a6c3fe979a9c4aea199c5b48bde03fe681db0ee064942022e3343b7e43e88fb
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Rails_g_database
|
2
2
|
|
3
|
-
Missing rails database generator
|
3
|
+
Missing rails database generator (now supporting rails 4)
|
4
4
|
I have found many and many tutorials how to use more than one DB with Ruby on Rails
|
5
5
|
finally I found [THIS](https://gist.github.com/redrick/7335229) gist forked from [rafaelchiti](https://github.com/rafaelchiti) that I believe is the right one and works for me the best :)
|
6
6
|
I am still using multiple appplications with more databases, so I thought this would ease my pain :)
|
@@ -25,13 +25,13 @@ For now it lacks comments, but is functional for me :) here is the way to use it
|
|
25
25
|
|
26
26
|
rails g database NAME adapter:adapter_name db:database_name login:username psswd:password host:host_name port:port_number
|
27
27
|
|
28
|
-
#### NAME
|
28
|
+
#### NAME
|
29
29
|
|
30
30
|
name your database here (also applies on directory names and so on ...)
|
31
31
|
|
32
32
|
|
33
33
|
#### adapter
|
34
|
-
|
34
|
+
|
35
35
|
for now it supports:
|
36
36
|
|
37
37
|
* MySQL (as 'mysql')
|
@@ -39,7 +39,7 @@ For now it lacks comments, but is functional for me :) here is the way to use it
|
|
39
39
|
* SQLite (as 'sqlite')
|
40
40
|
|
41
41
|
#### db
|
42
|
-
|
42
|
+
|
43
43
|
you can change the name of your database othervise it falls back to the NAME of your db (in most cases leave blank :) )
|
44
44
|
|
45
45
|
#### login
|
@@ -51,7 +51,7 @@ For now it lacks comments, but is functional for me :) here is the way to use it
|
|
51
51
|
except sqlite, you can specify your DB credentials (this one stands for password)
|
52
52
|
|
53
53
|
#### host
|
54
|
-
|
54
|
+
|
55
55
|
except sqlite, you can specify your DB credentials (this one stands for host, in most cases localhost)
|
56
56
|
|
57
57
|
#### port
|
@@ -74,3 +74,6 @@ To [rafaelchiti](https://github.com/rafaelchiti) for his [README](https://gist.g
|
|
74
74
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
75
75
|
4. Push to the branch (`git push origin my-new-feature`)
|
76
76
|
5. Create new Pull Request
|
77
|
+
|
78
|
+
|
79
|
+
[](https://bitdeli.com/free "Bitdeli Badge")
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module RailsGDatabase
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
2
|
+
VERSION = "0.0.4"
|
3
|
+
end
|
data/rails_g_database.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = "https://github.com/redrick/rails-g-database"
|
12
12
|
s.summary = "Missing rails database generator and more"
|
13
13
|
s.license = 'MIT'
|
14
|
+
s.description = 'Missing rails 4 database generator that I needed'
|
14
15
|
|
15
16
|
s.files = `git ls-files`.split($/)
|
16
17
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -19,9 +20,7 @@ Gem::Specification.new do |s|
|
|
19
20
|
|
20
21
|
s.required_ruby_version = '>= 1.9.3'
|
21
22
|
|
22
|
-
s.add_dependency "rails", "~> 4
|
23
|
+
s.add_dependency "rails", "~> 4"
|
23
24
|
|
24
25
|
s.add_development_dependency "bundler", "~> 1.3"
|
25
|
-
|
26
|
-
s.add_development_dependency "pry"
|
27
|
-
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,81 +1,53 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_g_database
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- redrick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4
|
19
|
+
version: '4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4
|
26
|
+
version: '4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
|
-
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: pry
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
description:
|
41
|
+
description: Missing rails 4 database generator that I needed
|
70
42
|
email:
|
71
43
|
- cheaterblue@gmail.com
|
72
44
|
executables: []
|
73
45
|
extensions: []
|
74
46
|
extra_rdoc_files: []
|
75
47
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .ruby-gemset
|
78
|
-
- .ruby-version
|
48
|
+
- ".gitignore"
|
49
|
+
- ".ruby-gemset"
|
50
|
+
- ".ruby-version"
|
79
51
|
- Gemfile
|
80
52
|
- Gemfile.lock
|
81
53
|
- MIT-LICENSE
|
@@ -102,17 +74,17 @@ require_paths:
|
|
102
74
|
- lib
|
103
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
76
|
requirements:
|
105
|
-
- -
|
77
|
+
- - ">="
|
106
78
|
- !ruby/object:Gem::Version
|
107
79
|
version: 1.9.3
|
108
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
81
|
requirements:
|
110
|
-
- -
|
82
|
+
- - ">="
|
111
83
|
- !ruby/object:Gem::Version
|
112
84
|
version: '0'
|
113
85
|
requirements: []
|
114
86
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.2.2
|
116
88
|
signing_key:
|
117
89
|
specification_version: 4
|
118
90
|
summary: Missing rails database generator and more
|