dbi-dbrc 1.1.9-x86-mingw32 → 1.3.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fdcef58dd5bf5afed6ac6c91da32730af976ba43
4
+ data.tar.gz: 06a8071e3da1bf416bcdf460470c75cf5ba2380a
5
+ SHA512:
6
+ metadata.gz: ca0b0572c80ea722d02c7d973e2bfba4a75db3667a5104b869d4d0a9a36d62be88e65ccee2b07eebefabb0ecc82b42d4a9423e00e9550719cd51a9035ae25c05
7
+ data.tar.gz: 830299ec5f71f7f73b9b0a04c7d8f7188e366cbd7c689479dfeecd1fa6db114dd8b9f83060d9384765316ef861532cbaa1d7e814d4e8ca6678988b5fde88bf5e
@@ -0,0 +1,2 @@
1
+ 4UgX7A�Q�5���ro;�
2
+ 9's���gY�R������~�+ ���È[�
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,13 @@
1
+ == 1.3.0 - 3-Oct-2015
2
+ * License changed to Apache 2.0.
3
+ * Rakefile gem related tasks now assume Rubygems 2.x.
4
+ * Added a certs file. This gem is now signed.
5
+
6
+ == 1.2.0 - 8-Nov-2014
7
+ * Updated dependency for MS Windows. Now uses win32-file-attributes instead
8
+ of win32-file.
9
+ * Minor updates to the Rakefile and gemspec.
10
+
1
11
  == 1.1.9 - 10-Jan-2013
2
12
  * Fixed an unused variable warning.
3
13
  * Changed the way I check for MS Windows.
data/MANIFEST CHANGED
@@ -3,6 +3,7 @@
3
3
  * README
4
4
  * Rakefile
5
5
  * dbi-dbrc.gemspec
6
+ * certs/djberg96_pub.pem
6
7
  * lib/dbi/dbrc.rb
7
8
  * examples/plain/.dbrc
8
9
  * examples/plain/test.rb
data/README CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  == Requirements
8
8
  * sys-admin
9
- * win32-file (MS Windows only)
9
+ * win32-file-attributes (MS Windows only)
10
10
  * win32-dir (MS Windows only)
11
11
  * win32-process (MS Windows only)
12
12
 
@@ -58,14 +58,14 @@
58
58
  The format for XML (using the example above) is as follows:
59
59
 
60
60
  <dbrc>
61
- <database name="mydb">
62
- <user>dan</user>
63
- <password>mypass</password>
64
- <driver>oracle</driver>
65
- <interval>30</interval>
66
- <timeout>10</timeout>
67
- <maximum_reconnects>2</maximum_reconnects>
68
- </database>
61
+ <database name="mydb">
62
+ <user>dan</user>
63
+ <password>mypass</password>
64
+ <driver>oracle</driver>
65
+ <interval>30</interval>
66
+ <timeout>10</timeout>
67
+ <maximum_reconnects>2</maximum_reconnects>
68
+ </database>
69
69
  </dbrc>
70
70
 
71
71
  The format for YAML is as follows:
@@ -189,18 +189,18 @@ DBRC#dsn=(dsn)
189
189
  n = db.max_reconn
190
190
 
191
191
  begin
192
- Timeout.timeout(db.timeout){
193
- DBI.connect(db.dsn, db.user, db.passwd)
194
- }
192
+ Timeout.timeout(db.timeout){
193
+ DBI.connect(db.dsn, db.user, db.passwd)
194
+ }
195
195
  rescue DBI::Error
196
- n -= 1
197
- if n > 0
198
- sleep db.interval
199
- retry
200
- end
201
- raise
196
+ n -= 1
197
+ if n > 0
198
+ sleep db.interval
199
+ retry
200
+ end
201
+ raise
202
202
  rescue TimeoutError
203
- # handle timeout error
203
+ # handle timeout error
204
204
  end
205
205
 
206
206
  == Notes for MS Windows Users
@@ -249,7 +249,7 @@ DBRC#dsn=(dsn)
249
249
  If it's not correct, please let me know.
250
250
 
251
251
  == Copyright
252
- (C) Copyright 2002-2013, Daniel J. Berger, all rights reserved.
252
+ (C) Copyright 2002-2014, Daniel J. Berger, all rights reserved.
253
253
 
254
254
  = Warranty
255
255
  This package is provided "as is" and without any express or
data/Rakefile CHANGED
@@ -5,21 +5,18 @@ require 'rake/testtask'
5
5
  CLEAN.include("**/*.gem", "**/*.rbc")
6
6
 
7
7
  namespace :gem do
8
- desc "Remove any gem files."
9
- task :clean do
10
- Dir['*.gem'].each{ |f| File.delete(f) }
11
- end
12
-
13
8
  desc "Create the dbi-dbrc gem"
14
9
  task :create => [:clean] do
10
+ require 'rubygems/package'
15
11
  spec = eval(IO.read('dbi-dbrc.gemspec'))
16
- Gem::Builder.new(spec).build
12
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
13
+ Gem::Package.build(spec)
17
14
  end
18
15
 
19
16
  desc "Install the dbi-dbrc gem"
20
17
  task :install => [:create] do
21
18
  gem = Dir["*.gem"].first
22
- sh "gem install #{gem}"
19
+ sh "gem install -l #{gem}"
23
20
  end
24
21
  end
25
22
 
@@ -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-----
@@ -2,25 +2,25 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'dbi-dbrc'
5
- spec.version = '1.1.9'
5
+ spec.version = '1.3.0'
6
6
  spec.author = 'Daniel Berger'
7
7
  spec.email = 'djberg96@gmail.com'
8
- spec.license = 'Artistic 2.0'
8
+ spec.license = 'Apache 2.0'
9
9
  spec.summary = 'A simple way to avoid hard-coding passwords with DBI'
10
10
  spec.homepage = 'https://github.com/djberg96/dbi-dbrc'
11
11
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
12
12
  spec.test_files = Dir['test/test*.rb']
13
+ spec.cert_chain = ['certs/djberg96_pub.pem']
13
14
 
14
- spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
15
- spec.rubyforge_project = 'shards'
15
+ spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
16
16
 
17
- spec.add_dependency('sys-admin', '>= 1.5.2')
17
+ spec.add_dependency('sys-admin')
18
18
  spec.add_development_dependency('test-unit')
19
19
 
20
20
  if File::ALT_SEPARATOR
21
- spec.add_dependency('win32-file', '>= 0.6.6')
22
- spec.add_dependency('win32-dir', '>= 0.3.7')
23
- spec.add_dependency('win32-process', '>= 0.6.2')
21
+ spec.add_dependency('win32-file-attributes')
22
+ spec.add_dependency('win32-dir')
23
+ spec.add_dependency('win32-process')
24
24
  spec.platform = Gem::Platform::CURRENT
25
25
  spec.platform.cpu = 'universal'
26
26
  end
@@ -1,6 +1,6 @@
1
1
  if File::ALT_SEPARATOR
2
2
  require 'win32/dir'
3
- require 'win32/file'
3
+ require 'win32/file/attributes'
4
4
  require 'win32/process'
5
5
  end
6
6
 
@@ -16,7 +16,7 @@ module DBI
16
16
  class Error < StandardError; end
17
17
 
18
18
  # The version of the dbi-dbrc library
19
- VERSION = '1.1.9'
19
+ VERSION = '1.3.0'
20
20
 
21
21
  @@windows = File::ALT_SEPARATOR
22
22
 
@@ -5,7 +5,7 @@
5
5
  # run via the 'rake test' task.
6
6
  #########################################################################
7
7
  require 'dbi/dbrc'
8
- require 'test/unit'
8
+ require 'test-unit'
9
9
  include DBI
10
10
 
11
11
  class TC_DBI_DBRC < Test::Unit::TestCase
@@ -22,18 +22,18 @@ class TC_DBI_DBRC < Test::Unit::TestCase
22
22
  @user2 = 'user2'
23
23
  @db_bad = 'blah' # Doesn't exist
24
24
  @user_bad = 'user8' # Doesn't exist
25
-
25
+
26
26
  if @@windows && File.respond_to?(:set_attr)
27
27
  File.set_attr(@file, File::HIDDEN)
28
28
  else
29
29
  File.chmod(0600, @file)
30
30
  end
31
-
31
+
32
32
  @dbrc = DBRC.new(@db1, nil, @dir)
33
33
  end
34
34
 
35
35
  def test_version
36
- assert_equal('1.1.9', DBRC::VERSION)
36
+ assert_equal('1.3.0', DBRC::VERSION)
37
37
  end
38
38
 
39
39
  def test_bad_dbrc_properties
@@ -147,7 +147,7 @@ class TC_DBI_DBRC < Test::Unit::TestCase
147
147
 
148
148
  # Same database, different user
149
149
  def test_duplicate_database
150
- db = DBRC.new("foo", "user2", @dir)
150
+ db = DBRC.new("foo", "user2", @dir)
151
151
  assert_equal("user2", db.user)
152
152
  assert_equal("pwd2", db.passwd)
153
153
  assert_equal("OCI8", db.driver)
@@ -171,7 +171,7 @@ class TC_DBI_DBRC < Test::Unit::TestCase
171
171
 
172
172
  # A database with only a couple fields defined
173
173
  def test_nil_values
174
- db = DBRC.new("baz", "user3", @dir)
174
+ db = DBRC.new("baz", "user3", @dir)
175
175
  assert_equal("user3", db.user)
176
176
  assert_equal("pwd4", db.passwd)
177
177
  assert_nil(db.driver)
metadata CHANGED
@@ -1,102 +1,116 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbi-dbrc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
5
- prerelease:
4
+ version: 1.3.0
6
5
  platform: x86-mingw32
7
6
  authors:
8
7
  - Daniel Berger
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
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: 2015-10-05 00:00:00.000000000 Z
13
34
  dependencies:
14
35
  - !ruby/object:Gem::Dependency
15
36
  name: sys-admin
16
37
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
38
  requirements:
19
- - - ! '>='
39
+ - - ">="
20
40
  - !ruby/object:Gem::Version
21
- version: 1.5.2
41
+ version: '0'
22
42
  type: :runtime
23
43
  prerelease: false
24
44
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
45
  requirements:
27
- - - ! '>='
46
+ - - ">="
28
47
  - !ruby/object:Gem::Version
29
- version: 1.5.2
48
+ version: '0'
30
49
  - !ruby/object:Gem::Dependency
31
50
  name: test-unit
32
51
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
52
  requirements:
35
- - - ! '>='
53
+ - - ">="
36
54
  - !ruby/object:Gem::Version
37
55
  version: '0'
38
56
  type: :development
39
57
  prerelease: false
40
58
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
59
  requirements:
43
- - - ! '>='
60
+ - - ">="
44
61
  - !ruby/object:Gem::Version
45
62
  version: '0'
46
63
  - !ruby/object:Gem::Dependency
47
- name: win32-file
64
+ name: win32-file-attributes
48
65
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
66
  requirements:
51
- - - ! '>='
67
+ - - ">="
52
68
  - !ruby/object:Gem::Version
53
- version: 0.6.6
69
+ version: '0'
54
70
  type: :runtime
55
71
  prerelease: false
56
72
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
73
  requirements:
59
- - - ! '>='
74
+ - - ">="
60
75
  - !ruby/object:Gem::Version
61
- version: 0.6.6
76
+ version: '0'
62
77
  - !ruby/object:Gem::Dependency
63
78
  name: win32-dir
64
79
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
80
  requirements:
67
- - - ! '>='
81
+ - - ">="
68
82
  - !ruby/object:Gem::Version
69
- version: 0.3.7
83
+ version: '0'
70
84
  type: :runtime
71
85
  prerelease: false
72
86
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
87
  requirements:
75
- - - ! '>='
88
+ - - ">="
76
89
  - !ruby/object:Gem::Version
77
- version: 0.3.7
90
+ version: '0'
78
91
  - !ruby/object:Gem::Dependency
79
92
  name: win32-process
80
93
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
94
  requirements:
83
- - - ! '>='
95
+ - - ">="
84
96
  - !ruby/object:Gem::Version
85
- version: 0.6.2
97
+ version: '0'
86
98
  type: :runtime
87
99
  prerelease: false
88
100
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
101
  requirements:
91
- - - ! '>='
102
+ - - ">="
92
103
  - !ruby/object:Gem::Version
93
- version: 0.6.2
94
- description: ! " The dbi-dbrc library provides an interface for storing database\n
95
- \ connection information, including passwords, in a locally secure\n file only
96
- accessible by you, or root. This allows you to avoid\n hard coding login and
97
- password information in your programs\n that require such information.\n\n This
98
- library can also be used to store login and password information\n for logins
99
- on remote hosts, not just databases.\n"
104
+ version: '0'
105
+ description: |2
106
+ The dbi-dbrc library provides an interface for storing database
107
+ connection information, including passwords, in a locally secure
108
+ file only accessible by you, or root. This allows you to avoid
109
+ hard coding login and password information in your programs
110
+ that require such information.
111
+
112
+ This library can also be used to store login and password information
113
+ for logins on remote hosts, not just databases.
100
114
  email: djberg96@gmail.com
101
115
  executables: []
102
116
  extensions: []
@@ -106,41 +120,41 @@ extra_rdoc_files:
106
120
  - MANIFEST
107
121
  files:
108
122
  - CHANGES
123
+ - MANIFEST
124
+ - README
125
+ - Rakefile
126
+ - certs/djberg96_pub.pem
109
127
  - dbi-dbrc.gemspec
110
128
  - examples/plain/test.rb
111
129
  - examples/xml/test_xml.rb
112
130
  - examples/yml/test_yml.rb
113
131
  - lib/dbi/dbrc.rb
114
- - MANIFEST
115
- - Rakefile
116
- - README
117
132
  - test/test_dbi_dbrc.rb
118
133
  - test/test_dbi_dbrc_xml.rb
119
134
  - test/test_dbi_dbrc_yml.rb
120
135
  homepage: https://github.com/djberg96/dbi-dbrc
121
136
  licenses:
122
- - Artistic 2.0
137
+ - Apache 2.0
138
+ metadata: {}
123
139
  post_install_message:
124
140
  rdoc_options: []
125
141
  require_paths:
126
142
  - lib
127
143
  required_ruby_version: !ruby/object:Gem::Requirement
128
- none: false
129
144
  requirements:
130
- - - ! '>='
145
+ - - ">="
131
146
  - !ruby/object:Gem::Version
132
147
  version: '0'
133
148
  required_rubygems_version: !ruby/object:Gem::Requirement
134
- none: false
135
149
  requirements:
136
- - - ! '>='
150
+ - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  requirements: []
140
- rubyforge_project: shards
141
- rubygems_version: 1.8.24
154
+ rubyforge_project:
155
+ rubygems_version: 2.4.8
142
156
  signing_key:
143
- specification_version: 3
157
+ specification_version: 4
144
158
  summary: A simple way to avoid hard-coding passwords with DBI
145
159
  test_files:
146
160
  - test/test_dbi_dbrc.rb
Binary file