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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88af1ec7da51ae892d01e8115190a2ea950304bd
4
- data.tar.gz: 3e2baf456b61aa2f2ac34ca76cb20f7da51b690c
3
+ metadata.gz: b6cd1ef251b8ea5ee51565e983afc31dd0edd723
4
+ data.tar.gz: ffc7114624b085aed44870dd5a5dd06125c36d2a
5
5
  SHA512:
6
- metadata.gz: 32f50b665bc2e1756858fee86362a4cccf4d307fc30cd11cc78f7809418da77cfb8e6e8eb1eac7da81d72d2b21cd3a9b88f9ff9e7ee12e4ba224451bfd520482
7
- data.tar.gz: 3dff9390c919127c9aa95300b883d3bf69f8b3caa599f5f47912d62ae9ef0795a98084dea7674103ce53d09ef91e5173b1233220998a6a3f22b2c612785353bd
6
+ metadata.gz: 44795ef34f027eb882e4a82404be49e8d205769e7d925bd7751868fcedcddfb6dc02b979165a7f4c77571dec3bc6458ade58e8e9925956100ca402c1a4cef4c9
7
+ data.tar.gz: 5d934a9236ac6b7ddd771e20ed9c7c0b15d4e561792d932bdcd4363a1c402d3b83b46f1d108e583fafb7ddd97d9123b3f1d42856e1e72865902321ca0b673c08
Binary file
@@ -0,0 +1,2 @@
1
+ &Q�ˋ��Wj�{J|4{r���� j������R�J�{h!j�`�n ���p���t��~h�hr�٣D�� W��ú��x�*�,^y9����I�<b��GR��E"��?��H'M[r���n��m[ǡ�c��Wj�����r{i�K��\���s�������"��/��el�M#�X�j�>�6wm"�+�)lʭԚ�J�ڞ��"N�����شc}�KG�
2
+ �{X]���F���py̒��9�̛6��;�
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ = 0.4.1 - 1-Feb-2016
2
+ * This gem is now signed.
3
+ * Updated the gem related tasks in the Rakefile.
4
+ * Added an oracle-model-generator.rb file for convenience.
5
+
1
6
  = 0.4.0 - 7-Nov-2014
2
7
  * Added support for minitest test file output.
3
8
 
data/MANIFEST CHANGED
@@ -4,5 +4,7 @@ README
4
4
  oracle-model-generator.gemspec
5
5
  Rakefile
6
6
  bin/omg
7
+ certs/djberg96_pub.pem
8
+ lib/oracle-model-generator.rb
7
9
  lib/oracle/model/generator.rb
8
10
  test/test_oracle_model_generator.rb
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-2014 Daniel J. Berger
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
- if Gem::VERSION < "2.0"
12
- Gem::Builder.new(spec).build
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 user used to establish a connection to the database.
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
+ MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
5
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
+ bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
7
+ Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
8
+ S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
9
+ gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
10
+ FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
11
+ zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
12
+ DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
13
+ nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
14
+ bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
15
+ ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
16
+ tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
17
+ /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
18
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
19
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
20
+ tGSHgAmcLlkdGgan182qsE/4kKM=
21
+ -----END CERTIFICATE-----
@@ -0,0 +1 @@
1
+ require_relative 'oracle/model/generator'
@@ -4,7 +4,7 @@ module Oracle
4
4
  module Model
5
5
  class Generator
6
6
  # The version of the oracle-model-generator library
7
- VERSION = '0.4.0'
7
+ VERSION = '0.4.1'
8
8
 
9
9
  # The raw OCI8 connection.
10
10
  attr_reader :connection
@@ -1,24 +1,25 @@
1
1
  require 'rubygems'
2
2
 
3
- Gem::Specification.new do |gem|
4
- gem.name = 'oracle-model-generator'
5
- gem.version = '0.4.0'
6
- gem.author = 'Daniel J. Berger'
7
- gem.license = 'Artistic 2.0'
8
- gem.email = 'djberg96@gmail.com'
9
- gem.homepage = 'http://www.github.com/djberg96/oracle-model-generator'
10
- gem.summary = 'A Ruby interface for determining protocol information'
11
- gem.test_file = 'test/test_oracle_model_generator.rb'
12
- gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
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
- gem.executables = "omg"
15
- gem.extra_rdoc_files = %w[CHANGES README MANIFEST]
15
+ spec.executables = "omg"
16
+ spec.extra_rdoc_files = %w[CHANGES README MANIFEST]
16
17
 
17
- gem.add_dependency('ruby-oci8')
18
- gem.add_dependency('getopt')
19
- gem.add_development_dependency('test-unit')
18
+ spec.add_dependency('ruby-oci8')
19
+ spec.add_dependency('getopt')
20
+ spec.add_development_dependency('test-unit')
20
21
 
21
- gem.description = <<-EOF
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 'rubygems'
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.0', Oracle::Model::Generator::VERSION)
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.0
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
- date: 2014-11-08 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREw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IPS1cmsqv0M9LPWflzfwoZ/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
- - CHANGES
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/oracle_model_generator.rb
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.2
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
@@ -0,0 +1,2 @@
1
+ ��0��19}c���pVEpڴS�����8�a�j̠$��ChS9��=��G�H���-���=ς�5���4
2
+ �e�5�R.9���n2X�ɶG'.;��ޭ���t7��R+AE>2�PqI�u�����0�)ܽ��=�B��sC ��*�Q��r���T�*�p6�R�ѹ���AH6d������{��; �W
@@ -1 +0,0 @@
1
- require File.join(File.dirname(__FILE__), 'oracle/model/generator')