slodd 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +24 -0
  2. data/bin/gurl +24 -0
  3. data/lib/slodd/version.rb +1 -1
  4. metadata +6 -3
@@ -0,0 +1,24 @@
1
+ Schema Loading On Dependent Databases
2
+ =====================================
3
+
4
+ [![Build Status](https://travis-ci.org/errm/slodd.png?branch=v0.1.0)](https://travis-ci.org/errm/slodd)
5
+
6
+ Slodd is a lightweight tool for loading an activerecord schema.rb into a database, like rake db:schema:load but more awesome.
7
+
8
+ Examples:
9
+
10
+ ###Loading schema from github:
11
+
12
+ slodd -g errm/awesome_rails_app -t my-secret-oauth-token -d "awesome_app awesome_test"
13
+
14
+ or from a specific branch:
15
+
16
+ slodd -g errm/awesome_rails_app -t my-secret-oauth-token -r my-brillant-branch -d "awesome_app awesome_test"
17
+
18
+ ###Loading schema from a file (defaults to db/schema.rb):
19
+
20
+ slodd -d awesome_test
21
+
22
+ or
23
+
24
+ slodd -f db/second_database.schema.rb -d awesome_test
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'slodd'
4
+ require 'optparse'
5
+
6
+ OptionParser.new do |opt|
7
+ opt.on('-g', '--github USER/REPO', "github repo") do |g|
8
+ Slodd::Config.github = g
9
+ end
10
+
11
+ opt.on('-t', '--token TOKEN', "github token") do |t|
12
+ Slodd::Config.token = t
13
+ end
14
+
15
+ opt.on('-r', '--ref REF', "github ref") do |r|
16
+ Slodd::Config.ref = g
17
+ end
18
+
19
+ opt.on( '-f', '--file-schema-path PATH', 'Path to schema.rb') do |f|
20
+ Slodd::Config.path = f
21
+ end
22
+ end.parse!
23
+
24
+ puts Slodd::Config.fetcher.schema
@@ -1,3 +1,3 @@
1
1
  module Slodd
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slodd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -79,6 +79,7 @@ description: Schema Loading On Dependent Databases
79
79
  email:
80
80
  - ed.robinson@reevoo.com
81
81
  executables:
82
+ - gurl
82
83
  - slodd
83
84
  extensions: []
84
85
  extra_rdoc_files: []
@@ -86,7 +87,9 @@ files:
86
87
  - .gitignore
87
88
  - .travis.yml
88
89
  - Gemfile
90
+ - README.md
89
91
  - Rakefile
92
+ - bin/gurl
90
93
  - bin/slodd
91
94
  - lib/slodd.rb
92
95
  - lib/slodd/config.rb
@@ -113,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
116
  version: '0'
114
117
  segments:
115
118
  - 0
116
- hash: 2304308098594840791
119
+ hash: -2439965077187413609
117
120
  required_rubygems_version: !ruby/object:Gem::Requirement
118
121
  none: false
119
122
  requirements:
@@ -122,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
125
  version: '0'
123
126
  segments:
124
127
  - 0
125
- hash: 2304308098594840791
128
+ hash: -2439965077187413609
126
129
  requirements: []
127
130
  rubyforge_project:
128
131
  rubygems_version: 1.8.25