datafactory 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/Guardfile +7 -0
- data/README.md +33 -0
- data/Rakefile +65 -0
- data/bin/datafactory +5 -0
- data/datafactory.gemspec +32 -0
- data/lib/datafactory.rb +6 -0
- data/lib/datafactory/cli.rb +52 -0
- data/lib/datafactory/connectors/activerecord.rb +45 -0
- data/lib/datafactory/connectors/base.rb +20 -0
- data/lib/datafactory/connectors/mongoid.rb +25 -0
- data/lib/datafactory/connectors/sequel.rb +46 -0
- data/lib/datafactory/dataflow.rb +41 -0
- data/lib/datafactory/version.rb +3 -0
- data/lib/templates/Gemfile +12 -0
- data/lib/templates/connectors/activerecord/activerecord.yaml +6 -0
- data/lib/templates/connectors/activerecord/factories.rb.tt +7 -0
- data/lib/templates/connectors/activerecord/migrate/20160124115626_create_users.rb +10 -0
- data/lib/templates/connectors/activerecord/models/user.rb.tt +4 -0
- data/lib/templates/connectors/mongoid/factories.rb.tt +8 -0
- data/lib/templates/connectors/mongoid/models/user.rb.tt +10 -0
- data/lib/templates/connectors/mongoid/mongoid.yaml +7 -0
- data/lib/templates/connectors/sequel/factories.rb.tt +8 -0
- data/lib/templates/connectors/sequel/migrate/20160124115626_create_users.rb +11 -0
- data/lib/templates/connectors/sequel/models/user.rb.tt +4 -0
- data/lib/templates/connectors/sequel/sequel.yaml +1 -0
- data/lib/templates/flows/%flowname%.rb.tt +22 -0
- metadata +199 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b867ddbe4c6d70aaba08f5a62e7aa2edec562338
|
4
|
+
data.tar.gz: a78674981e3aff1392e6537b5af127651d71b7e5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 458bbb094fbe72079effcce4580b0db2d9aa67e6ed486671ce91c7954ac11d8eac1e69e00b72cd1222f1989567c76bb4a36a693505393ac4247ae3526eb81fc6
|
7
|
+
data.tar.gz: fd21700f7febf47dbc894f4975399dad844d8f80fb555da0d28ab456983012cf8a086dafe39f503c0b5ee8cd134d474663a6a0cfd60b9a121a5fb62b81f01a6e
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# tiny-cli-ruby-gem
|
2
|
+
|
3
|
+
A transforming template repo to make CLIs in Ruby.
|
4
|
+
CLI is based on the lightweight `slop` and has testing and fixtures built in.
|
5
|
+
|
6
|
+
## Quickstart
|
7
|
+
|
8
|
+
Once you run `rake provision` on this repo after you clone it, it will transform into your gem.
|
9
|
+
|
10
|
+
We'll make a new CLI named `fable` with main module name named `Fable`.
|
11
|
+
Do this each time you want to make a new CLI.
|
12
|
+
|
13
|
+
```
|
14
|
+
$ git clone https://github.com/jondot/tiny-cli-ruby-gem
|
15
|
+
$ cd tiny-cli-ruby-gem
|
16
|
+
$ rake provision[Fable,fable]
|
17
|
+
$ cd ..
|
18
|
+
$ mv tiny-cli-ruby-gem fable
|
19
|
+
```
|
20
|
+
|
21
|
+
Done.
|
22
|
+
|
23
|
+
# Contributing
|
24
|
+
|
25
|
+
Fork, implement, add tests, pull request, get my everlasting thanks and a respectable place here :).
|
26
|
+
|
27
|
+
### Thanks:
|
28
|
+
|
29
|
+
To all [contributors](https://github.com/jondot/tiny-cli-ruby-gem/graphs/contributors)
|
30
|
+
|
31
|
+
# Copyright
|
32
|
+
|
33
|
+
Copyright (c) 2016 [Dotan Nahum](http://gplus.to/dotan) [@jondot](http://twitter.com/jondot). See [LICENSE](LICENSE.txt) for further details.
|
data/Rakefile
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
|
+
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
5
|
+
t.libs << "spec"
|
6
|
+
t.libs << "lib"
|
7
|
+
t.test_files = FileList['spec/**/*_spec.rb']
|
8
|
+
end
|
9
|
+
|
10
|
+
task :default => :test
|
11
|
+
|
12
|
+
require 'fileutils'
|
13
|
+
include FileUtils
|
14
|
+
|
15
|
+
# rake provision[Farble,farble]
|
16
|
+
desc "make a new cli"
|
17
|
+
task :provision, [:classname, :gemname] do |t, args|
|
18
|
+
gemname = args[:gemname]
|
19
|
+
classname = args[:classname]
|
20
|
+
puts "--> Generating #{gemname}..."
|
21
|
+
|
22
|
+
replacements = {
|
23
|
+
"tinycli" => gemname,
|
24
|
+
"Tinycli" => classname
|
25
|
+
}
|
26
|
+
files = %w{ bin/tinycli
|
27
|
+
lib/tinycli/version.rb
|
28
|
+
lib/tinycli.rb
|
29
|
+
spec/tinycli_spec.rb
|
30
|
+
spec/spec_helper.rb
|
31
|
+
tinycli.gemspec }
|
32
|
+
|
33
|
+
files.each do |file|
|
34
|
+
sed file, replacements
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
mkdir "lib/#{gemname}"
|
39
|
+
files.each do |file|
|
40
|
+
target = file.gsub("tinycli", replacements["tinycli"])
|
41
|
+
mv file, target if file != target
|
42
|
+
end
|
43
|
+
rmdir "lib/tinycli"
|
44
|
+
|
45
|
+
`rm -rf .git`
|
46
|
+
`git init .`
|
47
|
+
`git add .`
|
48
|
+
`git commit -am 'initial commit'`
|
49
|
+
puts "\n\n--> Running a test of #{gemname} --help\n\n"
|
50
|
+
puts `ruby -Ilib bin/#{gemname} --help`
|
51
|
+
|
52
|
+
puts "\n\n--> Done provisioning CLI gem: #{gemname}.\n--> You can now create Github repo when you like."
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
def sed(file, replacements)
|
57
|
+
content = File.read(file)
|
58
|
+
replacements.each do |old,new|
|
59
|
+
content.gsub!(old, new)
|
60
|
+
end
|
61
|
+
File.open(file, "w") do |f|
|
62
|
+
f.write(content)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
data/bin/datafactory
ADDED
data/datafactory.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'datafactory/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "datafactory"
|
8
|
+
spec.version = Datafactory::VERSION
|
9
|
+
spec.authors = ["Dotan Nahum"]
|
10
|
+
spec.email = ["jondotan@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A tool that helps you generate data into multiple databases}
|
13
|
+
spec.description = %q{A tool that helps you generate data into multiple databases}
|
14
|
+
spec.homepage = "https://github.com/jondot/datafactory"
|
15
|
+
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "bin"
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency 'thor', '~> 0.19.1'
|
23
|
+
spec.add_dependency 'mongoid', '~> 5.0.2'
|
24
|
+
spec.add_dependency 'sequel', '~> 4.25.0'
|
25
|
+
spec.add_dependency 'activerecord', '~> 4.2.5.1'
|
26
|
+
spec.add_dependency 'factory_girl', '~> 4.5.0'
|
27
|
+
spec.add_dependency 'faker', '~> 1.6.1'
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
30
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
+
spec.add_development_dependency "minitest"
|
32
|
+
end
|
data/lib/datafactory.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'thor'
|
2
|
+
|
3
|
+
module Datafactory
|
4
|
+
class Cli < Thor
|
5
|
+
include Thor::Actions
|
6
|
+
source_root File.expand_path("../templates", File.dirname(__FILE__))
|
7
|
+
$: << "."
|
8
|
+
|
9
|
+
desc "up [DOMAIN]", "Load data for domain"
|
10
|
+
def up(domain)
|
11
|
+
flow = get_flow(domain)
|
12
|
+
flow.down
|
13
|
+
flow.up
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "down [DOMAIN]", "Load data for domain"
|
17
|
+
def down(domain)
|
18
|
+
get_flow(domain).down
|
19
|
+
end
|
20
|
+
|
21
|
+
method_option :connector
|
22
|
+
desc "domain [DOMAIN]", "init a new data domain (database)"
|
23
|
+
def domain(domain)
|
24
|
+
say "Initializing #{domain}..."
|
25
|
+
@namespace = domain.capitalize
|
26
|
+
connector = options[:connector] || "activerecord"
|
27
|
+
directory("connectors/#{connector}", domain)
|
28
|
+
end
|
29
|
+
|
30
|
+
desc "init [FLOW_NAME]", "make a new flow"
|
31
|
+
def init(name)
|
32
|
+
@flowname = name
|
33
|
+
directory("flows")
|
34
|
+
template("Gemfile")
|
35
|
+
say "Running bundler..."
|
36
|
+
say `bundle`
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
no_commands do
|
41
|
+
def flowname
|
42
|
+
@flowname
|
43
|
+
end
|
44
|
+
|
45
|
+
def get_flow(domain)
|
46
|
+
require("flows/#{domain}")
|
47
|
+
klass = Object.const_get(domain.capitalize)
|
48
|
+
klass.new
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'active_record'
|
3
|
+
require 'datafactory/connectors/base'
|
4
|
+
|
5
|
+
module Datafactory
|
6
|
+
module Connectors
|
7
|
+
class ActiveRecordConnector < Base
|
8
|
+
def initialize(domain)
|
9
|
+
@domain = domain
|
10
|
+
@db_config = YAML::load(File.open("#{@domain}/#{self.class.config}"))
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.config
|
14
|
+
"activerecord.yaml"
|
15
|
+
end
|
16
|
+
|
17
|
+
def setup(opts)
|
18
|
+
ActiveRecord::Base.establish_connection(@db_config)
|
19
|
+
if opts[:migrate]
|
20
|
+
migrate
|
21
|
+
end
|
22
|
+
require_models
|
23
|
+
require_factories
|
24
|
+
end
|
25
|
+
|
26
|
+
def drop_db
|
27
|
+
return unless @db_config["adapter"] == "pg"
|
28
|
+
db_config_admin = @db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
|
29
|
+
ActiveRecord::Base.establish_connection(db_config_admin)
|
30
|
+
ActiveRecord::Base.connection.drop_database(@db_config["database"])
|
31
|
+
end
|
32
|
+
|
33
|
+
def create_db
|
34
|
+
return unless @db_config["adapter"] == "pg"
|
35
|
+
db_config_admin = @db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
|
36
|
+
ActiveRecord::Base.establish_connection(db_config_admin)
|
37
|
+
ActiveRecord::Base.connection.create_database(@db_config["database"])
|
38
|
+
end
|
39
|
+
|
40
|
+
def migrate
|
41
|
+
ActiveRecord::Migrator.migrate("#{@domain}/migrate")
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Datafactory
|
2
|
+
module Connectors
|
3
|
+
class Base
|
4
|
+
def self.configured_by?(conf)
|
5
|
+
config == conf
|
6
|
+
end
|
7
|
+
|
8
|
+
def require_models
|
9
|
+
Dir.glob("#{@domain}/models/*.rb").each do |m|
|
10
|
+
require m
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def require_factories
|
15
|
+
require "#{@domain}/factories.rb"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'mongoid'
|
2
|
+
require 'logger'
|
3
|
+
require 'datafactory/connectors/base'
|
4
|
+
|
5
|
+
module Datafactory
|
6
|
+
module Connectors
|
7
|
+
class MongoidConnector < Base
|
8
|
+
def initialize(domain)
|
9
|
+
@domain = domain
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.config
|
13
|
+
"mongoid.yaml"
|
14
|
+
end
|
15
|
+
|
16
|
+
def setup(opts)
|
17
|
+
Mongo::Logger.logger.level = Logger::INFO
|
18
|
+
Mongoid.logger.level = Logger::INFO
|
19
|
+
Mongoid.load!("#{@domain}/#{self.class.config}", ENV["RACK_ENV"] || "development")
|
20
|
+
require_models
|
21
|
+
require_factories
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'sequel'
|
3
|
+
require 'datafactory/connectors/base'
|
4
|
+
|
5
|
+
|
6
|
+
module Datafactory
|
7
|
+
module Connectors
|
8
|
+
class SequelConnector < Base
|
9
|
+
Sequel.extension :migration
|
10
|
+
# monkey patch for factory_girl
|
11
|
+
Sequel::Model.send :alias_method, :save!, :save
|
12
|
+
def initialize(domain)
|
13
|
+
@domain = domain
|
14
|
+
@db_config = YAML::load(File.open("#{@domain}/#{self.class.config}"))
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.config
|
18
|
+
"sequel.yaml"
|
19
|
+
end
|
20
|
+
|
21
|
+
def setup(opts)
|
22
|
+
@db = Sequel.connect(@db_config["uri"])
|
23
|
+
Sequel::Model.db = @db
|
24
|
+
if opts[:migrate]
|
25
|
+
migrate
|
26
|
+
end
|
27
|
+
require_models
|
28
|
+
require_factories
|
29
|
+
end
|
30
|
+
|
31
|
+
def migrate
|
32
|
+
Sequel::Migrator.apply(@db, "#{@domain}/migrate")
|
33
|
+
end
|
34
|
+
|
35
|
+
def drop_db
|
36
|
+
raise "not implemented"
|
37
|
+
end
|
38
|
+
|
39
|
+
def create_db
|
40
|
+
raise "not implemented"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
require 'factory_girl'
|
3
|
+
require 'faker'
|
4
|
+
require "datafactory/connectors/activerecord"
|
5
|
+
require "datafactory/connectors/sequel"
|
6
|
+
require "datafactory/connectors/mongoid"
|
7
|
+
|
8
|
+
|
9
|
+
module Datafactory
|
10
|
+
module Dataflow
|
11
|
+
include FactoryGirl::Syntax::Methods
|
12
|
+
|
13
|
+
CONNECTORS = [
|
14
|
+
Connectors::ActiveRecordConnector,
|
15
|
+
Connectors::MongoidConnector,
|
16
|
+
Connectors::SequelConnector
|
17
|
+
]
|
18
|
+
|
19
|
+
def use(domain, opts={migrate:true})
|
20
|
+
connector(domain).setup(opts)
|
21
|
+
end
|
22
|
+
|
23
|
+
def drop_db(domain)
|
24
|
+
connector(domain).drop_db
|
25
|
+
end
|
26
|
+
|
27
|
+
def create_db(domain)
|
28
|
+
connector(domain).create_db
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
def up; end
|
33
|
+
def down; end
|
34
|
+
|
35
|
+
private
|
36
|
+
def connector(domain)
|
37
|
+
path = Pathname.new(Dir["#{domain}/*.yaml"].first)
|
38
|
+
CONNECTORS.find{|c| c.configured_by?(path.basename.to_s) }.new(domain)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
uri: postgres://user:password@localhost:5432/database
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'datafactory/dataflow'
|
2
|
+
|
3
|
+
class <%= @flowname.capitalize %>
|
4
|
+
include Datafactory::Dataflow
|
5
|
+
|
6
|
+
def up
|
7
|
+
use :billing
|
8
|
+
users = create_list(:user, 20)
|
9
|
+
puts users
|
10
|
+
end
|
11
|
+
|
12
|
+
def down
|
13
|
+
use :billing
|
14
|
+
Billing::User.delete_all
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
metadata
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: datafactory
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dotan Nahum
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.19.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.19.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mongoid
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.0.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 5.0.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sequel
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.25.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.25.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activerecord
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.2.5.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.2.5.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 4.5.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 4.5.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faker
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.6.1
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.6.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.10'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.10'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: A tool that helps you generate data into multiple databases
|
140
|
+
email:
|
141
|
+
- jondotan@gmail.com
|
142
|
+
executables:
|
143
|
+
- datafactory
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- ".travis.yml"
|
149
|
+
- Gemfile
|
150
|
+
- Guardfile
|
151
|
+
- README.md
|
152
|
+
- Rakefile
|
153
|
+
- bin/datafactory
|
154
|
+
- datafactory.gemspec
|
155
|
+
- lib/datafactory.rb
|
156
|
+
- lib/datafactory/cli.rb
|
157
|
+
- lib/datafactory/connectors/activerecord.rb
|
158
|
+
- lib/datafactory/connectors/base.rb
|
159
|
+
- lib/datafactory/connectors/mongoid.rb
|
160
|
+
- lib/datafactory/connectors/sequel.rb
|
161
|
+
- lib/datafactory/dataflow.rb
|
162
|
+
- lib/datafactory/version.rb
|
163
|
+
- lib/templates/Gemfile
|
164
|
+
- lib/templates/connectors/activerecord/activerecord.yaml
|
165
|
+
- lib/templates/connectors/activerecord/factories.rb.tt
|
166
|
+
- lib/templates/connectors/activerecord/migrate/20160124115626_create_users.rb
|
167
|
+
- lib/templates/connectors/activerecord/models/user.rb.tt
|
168
|
+
- lib/templates/connectors/mongoid/factories.rb.tt
|
169
|
+
- lib/templates/connectors/mongoid/models/user.rb.tt
|
170
|
+
- lib/templates/connectors/mongoid/mongoid.yaml
|
171
|
+
- lib/templates/connectors/sequel/factories.rb.tt
|
172
|
+
- lib/templates/connectors/sequel/migrate/20160124115626_create_users.rb
|
173
|
+
- lib/templates/connectors/sequel/models/user.rb.tt
|
174
|
+
- lib/templates/connectors/sequel/sequel.yaml
|
175
|
+
- lib/templates/flows/%flowname%.rb.tt
|
176
|
+
homepage: https://github.com/jondot/datafactory
|
177
|
+
licenses: []
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.4.5.1
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: A tool that helps you generate data into multiple databases
|
199
|
+
test_files: []
|