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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41ea0b47a25d03552f7460b8dfec224c00a468db
4
- data.tar.gz: 8a8e3fcd60153e2d5751a861f76b78bde6d36046
3
+ metadata.gz: 5895e32f16f7de60acc7fa7fff792e45d714ee2f
4
+ data.tar.gz: 9c11ed125b4d5adc56bc7f3359e12ccb101bcbee
5
5
  SHA512:
6
- metadata.gz: 6ebe9b9e37493ffab87582baa12a1d7ec4682e5e6be00da0c2041934c9ac78bd775fae669214bc8da8e7be2a5c5a75cc50f57930afa9f247ea3ea9a0d7e67ff8
7
- data.tar.gz: 2fd6c384321317eae5e7bfc8d38e457781d0be64ac3eecf216a90b402ed64b734ec30007fa9ec4d5faf5cb053a5ac6391dc29d7013acf8640c86a546efb7b332
6
+ metadata.gz: b848d14e7dca6b211ccf98b1214fa475414b6a59385b9b4c4cf4c6d8d43f5327512f3decd405083470a62f601e4632a11c646e35226c7494dccc349a0628ce7f
7
+ data.tar.gz: 4f25cce1177b1de06a96ceab6997dc342fa67b04ff91407938dcb87486c8e6dcce8dddaffd2f94a59994d3821bf82a8d425d957baa00baff1a0acbb38142b9f6
data/.travis.yml CHANGED
@@ -1,9 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.10
4
- - 2.2.7
3
+ - 2.4.1
5
4
  - 2.3.4
5
+ - 2.2.7
6
6
  sudo: false
7
- addons:
8
- code_climate:
9
- repo_token: 41687dd263a94061453310fe3104123ed9b1adae632aff9d914603315ed2a754
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in slodd.gemspec
4
4
  gemspec
5
+
6
+ gem "activerecord", "3.2.22.5"
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
@@ -5,4 +5,4 @@ require "reevoocop/rake_task"
5
5
  ReevooCop::RakeTask.new(:reevoocop)
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- task default: [:spec, :reevoocop]
8
+ task default: %i[spec reevoocop]
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.merge!(password: password) if password
81
+ settings[:password] = password if password
84
82
  settings
85
83
  end
86
84
  end
data/lib/slodd/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Slodd
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8".freeze
4
4
  end
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.7
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-05-22 00:00:00.000000000 Z
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: codeclimate-test-reporter
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: reevoocop
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: []