oracle-model-generator 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -0
- data/CHANGES +5 -0
- data/MANIFEST +2 -0
- data/README +1 -1
- data/Rakefile +3 -6
- data/bin/omg +2 -2
- data/certs/djberg96_pub.pem +21 -0
- data/lib/oracle-model-generator.rb +1 -0
- data/lib/oracle/model/generator.rb +1 -1
- data/oracle-model-generator.gemspec +17 -16
- data/test/test_oracle_model_generator.rb +2 -4
- metadata +38 -9
- metadata.gz.sig +2 -0
- data/lib/oracle_model_generator.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6cd1ef251b8ea5ee51565e983afc31dd0edd723
|
4
|
+
data.tar.gz: ffc7114624b085aed44870dd5a5dd06125c36d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44795ef34f027eb882e4a82404be49e8d205769e7d925bd7751868fcedcddfb6dc02b979165a7f4c77571dec3bc6458ade58e8e9925956100ca402c1a4cef4c9
|
7
|
+
data.tar.gz: 5d934a9236ac6b7ddd771e20ed9c7c0b15d4e561792d932bdcd4363a1c402d3b83b46f1d108e583fafb7ddd97d9123b3f1d42856e1e72865902321ca0b673c08
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
data/CHANGES
CHANGED
data/MANIFEST
CHANGED
data/README
CHANGED
@@ -140,7 +140,7 @@ implied warranties, including, without limitation, the implied
|
|
140
140
|
warranties of merchantability and fitness for a particular purpose.
|
141
141
|
|
142
142
|
= Copyright
|
143
|
-
(C) 2010-
|
143
|
+
(C) 2010-2016 Daniel J. Berger
|
144
144
|
All Rights Reserved
|
145
145
|
|
146
146
|
= License
|
data/Rakefile
CHANGED
@@ -7,13 +7,10 @@ CLEAN.include("**/*.gem", "**/*.rbc", "**/*.log")
|
|
7
7
|
namespace 'gem' do
|
8
8
|
desc 'Create the oracle-model-generator gem'
|
9
9
|
task :create => :clean do
|
10
|
+
require 'rubygems/package'
|
10
11
|
spec = eval(IO.read('oracle-model-generator.gemspec'))
|
11
|
-
|
12
|
-
|
13
|
-
else
|
14
|
-
require 'rubygems/package'
|
15
|
-
Gem::Package.build(spec)
|
16
|
-
end
|
12
|
+
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
13
|
+
Gem::Package.build(spec, true)
|
17
14
|
end
|
18
15
|
|
19
16
|
desc 'Install the oracle-model-generator gem'
|
data/bin/omg
CHANGED
@@ -33,7 +33,7 @@ def help
|
|
33
33
|
-t, --table => The name of the table you wish to model.
|
34
34
|
-v, --view => The name of the view you wish to model.
|
35
35
|
-o, --output => The name of the file to create.
|
36
|
-
-u, --user => The
|
36
|
+
-u, --user => The username used to establish a connection to the database.
|
37
37
|
-p, --password => The password used to establish a connection to the database.
|
38
38
|
-r, --rails => The version of rails you're using (2 or higher).
|
39
39
|
-x, --tests => Generate tests using testunit, minitest or rspec.
|
@@ -47,7 +47,7 @@ def help
|
|
47
47
|
of the table, minus the 's' if present, with a .rb extension. This is lazy,
|
48
48
|
but it is orders of magnitude easier for you to rename a file than it is
|
49
49
|
for me to deal with all possible permutations. Note that the output file
|
50
|
-
name is also used as the basis for the class name
|
50
|
+
name is also used as the basis for the class name.
|
51
51
|
|
52
52
|
If no tests option is specified then a test file, using test-unit 2, will
|
53
53
|
be generated that includes some basic tests to backup the builtin
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
3
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
+
MB4XDTE1MD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jZSA2iImM/GyYZ
|
19
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
20
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
21
|
+
-----END CERTIFICATE-----
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative 'oracle/model/generator'
|
@@ -1,24 +1,25 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'oracle-model-generator'
|
5
|
+
spec.version = '0.4.1'
|
6
|
+
spec.author = 'Daniel J. Berger'
|
7
|
+
spec.license = 'Artistic 2.0'
|
8
|
+
spec.email = 'djberg96@gmail.com'
|
9
|
+
spec.homepage = 'http://www.github.com/djberg96/oracle-model-generator'
|
10
|
+
spec.summary = 'A Ruby interface for determining protocol information'
|
11
|
+
spec.test_file = 'test/test_oracle_model_generator.rb'
|
12
|
+
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
|
+
spec.cert_chain = spec.cert_chain = ['certs/djberg96_pub.pem']
|
13
14
|
|
14
|
-
|
15
|
-
|
15
|
+
spec.executables = "omg"
|
16
|
+
spec.extra_rdoc_files = %w[CHANGES README MANIFEST]
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
spec.add_dependency('ruby-oci8')
|
19
|
+
spec.add_dependency('getopt')
|
20
|
+
spec.add_development_dependency('test-unit')
|
20
21
|
|
21
|
-
|
22
|
+
spec.description = <<-EOF
|
22
23
|
The oracle-model-generator library allows you to generate an ActiveRecord
|
23
24
|
model from an existing Oracle table or view, as well as automatically
|
24
25
|
generate a baseline test file for test-unit or minitest.
|
@@ -5,9 +5,7 @@
|
|
5
5
|
# I'm using the 'hr' database that comes as part of the Oracle Express
|
6
6
|
# edition which you can download from oracle.com. Adjust as necessary.
|
7
7
|
#############################################################################
|
8
|
-
require '
|
9
|
-
gem 'test-unit'
|
10
|
-
require 'test/unit'
|
8
|
+
require 'test-unit'
|
11
9
|
require 'oracle/model/generator'
|
12
10
|
|
13
11
|
class TC_Oracle_Model_Generator < Test::Unit::TestCase
|
@@ -20,7 +18,7 @@ class TC_Oracle_Model_Generator < Test::Unit::TestCase
|
|
20
18
|
end
|
21
19
|
|
22
20
|
test "version number is correct" do
|
23
|
-
assert_equal('0.4.
|
21
|
+
assert_equal('0.4.1', Oracle::Model::Generator::VERSION)
|
24
22
|
end
|
25
23
|
|
26
24
|
test "constructor accepts an oci8 connection object" do
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oracle-model-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
14
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
15
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
16
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
18
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
19
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
20
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
21
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
22
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
23
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
24
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
25
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
26
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
27
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
28
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
29
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
30
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
31
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: ruby-oci8
|
@@ -65,14 +87,21 @@ extra_rdoc_files:
|
|
65
87
|
- README
|
66
88
|
- MANIFEST
|
67
89
|
files:
|
68
|
-
-
|
69
|
-
- MANIFEST
|
70
|
-
- README
|
71
|
-
- Rakefile
|
90
|
+
- bin
|
72
91
|
- bin/omg
|
92
|
+
- certs
|
93
|
+
- certs/djberg96_pub.pem
|
94
|
+
- CHANGES
|
95
|
+
- lib
|
96
|
+
- lib/oracle
|
97
|
+
- lib/oracle/model
|
73
98
|
- lib/oracle/model/generator.rb
|
74
|
-
- lib/
|
99
|
+
- lib/oracle-model-generator.rb
|
100
|
+
- MANIFEST
|
75
101
|
- oracle-model-generator.gemspec
|
102
|
+
- Rakefile
|
103
|
+
- README
|
104
|
+
- test
|
76
105
|
- test/test_oracle_model_generator.rb
|
77
106
|
homepage: http://www.github.com/djberg96/oracle-model-generator
|
78
107
|
licenses:
|
@@ -94,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
123
|
version: '0'
|
95
124
|
requirements: []
|
96
125
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.4.
|
126
|
+
rubygems_version: 2.4.5.1
|
98
127
|
signing_key:
|
99
128
|
specification_version: 4
|
100
129
|
summary: A Ruby interface for determining protocol information
|
metadata.gz.sig
ADDED
@@ -1 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), 'oracle/model/generator')
|