dohdata 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +4 -7
- data/bin/datagen +0 -28
- data/lib/dohdata/require_datagen.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86f0da3c3a1a6bf6e0f8a25348154663b58428bc
|
4
|
+
data.tar.gz: d251aa3c9bbcc70dfb8890fbe6e2979c1753453d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cf284579469670b1089407dde77993d8a1388759b0c0c09e79100c875f17735494765c2aaeea31f576dbba8a7c641a33eb9844b15930b7ff7e9b1c6cae5b6b7
|
7
|
+
data.tar.gz: 674e8de8af7f774d819d975d0665b5e3952f4891b68ea0cb56ac705d20e096db655f42026de3d252a01756ecfc0397de0158d801c945806e81fc62a161b919ee
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohdata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Makani Mason
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dohutil
|
@@ -42,20 +42,17 @@ dependencies:
|
|
42
42
|
description: utilities for generating random names, phone numbers, emails, etc.
|
43
43
|
email:
|
44
44
|
- devinfo@atpsoft.com
|
45
|
-
executables:
|
46
|
-
- datagen
|
45
|
+
executables: []
|
47
46
|
extensions: []
|
48
47
|
extra_rdoc_files:
|
49
48
|
- MIT-LICENSE
|
50
49
|
files:
|
51
|
-
- bin/datagen
|
52
50
|
- lib/dohdata.rb
|
53
51
|
- lib/dohdata/basic.rb
|
54
52
|
- lib/dohdata/bulk.rb
|
55
53
|
- lib/dohdata/catalog.rb
|
56
54
|
- lib/dohdata/human.rb
|
57
55
|
- lib/dohdata/make_global.rb
|
58
|
-
- lib/dohdata/require_datagen.rb
|
59
56
|
- MIT-LICENSE
|
60
57
|
homepage: https://github.com/atpsoft/dohdata
|
61
58
|
licenses:
|
@@ -77,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
74
|
version: '0'
|
78
75
|
requirements: []
|
79
76
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.0.
|
77
|
+
rubygems_version: 2.0.6
|
81
78
|
signing_key:
|
82
79
|
specification_version: 4
|
83
80
|
summary: data generation framework
|
data/bin/datagen
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'dohutil/app/init_from_pwd'
|
3
|
-
require 'dohroot/options'
|
4
|
-
require 'dohutil/config'
|
5
|
-
require 'dohdata/catalog'
|
6
|
-
require 'dohdata/require_datagen'
|
7
|
-
require 'dohlog'
|
8
|
-
DohData.require_datagen
|
9
|
-
|
10
|
-
opts = Doh::Options.new(
|
11
|
-
{'count' => [1, "-c", "--count <amount>", "how many to create"] \
|
12
|
-
,'logging' => [false, "-l", "--logging", "enable logging (off by default)"] \
|
13
|
-
}, true, 'list of catalog entries to create')
|
14
|
-
|
15
|
-
if opts.varargs.size == 0
|
16
|
-
DohData.catalog_list.each {|elem| puts elem }
|
17
|
-
exit
|
18
|
-
end
|
19
|
-
|
20
|
-
opts.varargs.each do |entry|
|
21
|
-
klass = DohData.search_catalog(entry)
|
22
|
-
if klass.nil?
|
23
|
-
puts "unable to find data object matching: #{entry}"
|
24
|
-
else
|
25
|
-
DohLog.disable unless opts.logging
|
26
|
-
opts.count.to_i.times { klass.new.save }
|
27
|
-
end
|
28
|
-
end
|