slodd 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -5
- data/Gemfile +2 -0
- data/LICENCE +7 -0
- data/README.md +8 -4
- data/Rakefile +1 -1
- data/lib/slodd/config.rb +1 -3
- data/lib/slodd/version.rb +1 -1
- data/slodd.gemspec +2 -1
- data/spec/spec_helper.rb +1 -6
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5895e32f16f7de60acc7fa7fff792e45d714ee2f
|
4
|
+
data.tar.gz: 9c11ed125b4d5adc56bc7f3359e12ccb101bcbee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b848d14e7dca6b211ccf98b1214fa475414b6a59385b9b4c4cf4c6d8d43f5327512f3decd405083470a62f601e4632a11c646e35226c7494dccc349a0628ce7f
|
7
|
+
data.tar.gz: 4f25cce1177b1de06a96ceab6997dc342fa67b04ff91407938dcb87486c8e6dcce8dddaffd2f94a59994d3821bf82a8d425d957baa00baff1a0acbb38142b9f6
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/LICENCE
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright 2013-2017 Ed Robinson
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -8,9 +8,9 @@ Schema Loading On Dependent Databases
|
|
8
8
|
|
9
9
|
Slodd is a lightweight tool for loading an activerecord schema.rb into a database, like rake db:schema:load but more awesome.
|
10
10
|
|
11
|
-
Examples:
|
11
|
+
## Examples:
|
12
12
|
|
13
|
-
###Loading schema from github:
|
13
|
+
### Loading schema from github:
|
14
14
|
|
15
15
|
`slodd -g errm/awesome_rails_app -t my-secret-oauth-token -d "awesome_app awesome_test"`
|
16
16
|
|
@@ -18,7 +18,7 @@ or from a specific branch:
|
|
18
18
|
|
19
19
|
`slodd -g errm/awesome_rails_app -t my-secret-oauth-token -r my-brillant-branch -d "awesome_app awesome_test"`
|
20
20
|
|
21
|
-
###Loading schema from a file (defaults to db/schema.rb):
|
21
|
+
### Loading schema from a file (defaults to db/schema.rb):
|
22
22
|
|
23
23
|
`slodd -d awesome_test`
|
24
24
|
|
@@ -26,6 +26,10 @@ or
|
|
26
26
|
|
27
27
|
`slodd -f db/second_database.schema.rb -d awesome_test`
|
28
28
|
|
29
|
-
###Downloading a schema (or any text file) from github
|
29
|
+
### Downloading a schema (or any text file) from github
|
30
30
|
|
31
31
|
`gurl -g errm/awesome_rails_app -t my-secret-oauth-token -r my-fancy-branch`
|
32
|
+
|
33
|
+
## Licence
|
34
|
+
|
35
|
+
[MIT](LICENCE)
|
data/Rakefile
CHANGED
data/lib/slodd/config.rb
CHANGED
@@ -60,8 +60,6 @@ module Slodd
|
|
60
60
|
}.delete_if { |_, v| v.nil? }
|
61
61
|
end
|
62
62
|
|
63
|
-
private
|
64
|
-
|
65
63
|
def self.settings_from_url
|
66
64
|
return unless database_uri
|
67
65
|
self.databases = database_uri.path[1..-1]
|
@@ -80,7 +78,7 @@ module Slodd
|
|
80
78
|
|
81
79
|
def self.settings_from_args
|
82
80
|
settings = { adapter: "mysql2", host: host, username: username }
|
83
|
-
settings
|
81
|
+
settings[:password] = password if password
|
84
82
|
settings
|
85
83
|
end
|
86
84
|
end
|
data/lib/slodd/version.rb
CHANGED
data/slodd.gemspec
CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.description = "Schema Loading On Dependent Databases"
|
13
13
|
gem.summary = "Schema Loading On Dependent Databases"
|
14
14
|
gem.homepage = "https://github.com/errm/slodd"
|
15
|
+
gem.licenses = ["MIT"]
|
15
16
|
|
16
17
|
gem.files = `git ls-files`.split($RS)
|
17
18
|
gem.executables = gem.files.grep(/^bin\//).map { |f| File.basename(f) }
|
@@ -21,6 +22,6 @@ Gem::Specification.new do |gem|
|
|
21
22
|
gem.add_dependency("mysql2", "~> 0.3.10")
|
22
23
|
gem.add_development_dependency("rspec")
|
23
24
|
gem.add_development_dependency("rake")
|
24
|
-
gem.add_development_dependency("codeclimate-test-reporter")
|
25
25
|
gem.add_development_dependency("reevoocop")
|
26
|
+
gem.add_development_dependency("simplecov")
|
26
27
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require "simplecov"
|
3
|
-
require "codeclimate-test-reporter"
|
4
|
-
|
5
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
6
|
-
SimpleCov::Formatter::HTMLFormatter,
|
7
|
-
CodeClimate::TestReporter::Formatter
|
8
|
-
]
|
9
3
|
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
10
5
|
SimpleCov.minimum_coverage 100
|
11
6
|
SimpleCov.start
|
12
7
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slodd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: reevoocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- ".ruby-version"
|
109
109
|
- ".travis.yml"
|
110
110
|
- Gemfile
|
111
|
+
- LICENCE
|
111
112
|
- README.md
|
112
113
|
- Rakefile
|
113
114
|
- bin/gurl
|
@@ -128,7 +129,8 @@ files:
|
|
128
129
|
- spec/spec_helper.rb
|
129
130
|
- spec/support/schema.rb
|
130
131
|
homepage: https://github.com/errm/slodd
|
131
|
-
licenses:
|
132
|
+
licenses:
|
133
|
+
- MIT
|
132
134
|
metadata: {}
|
133
135
|
post_install_message:
|
134
136
|
rdoc_options: []
|