net-tnsping 1.3.2 → 1.3.3

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: 5b31154d995d5bc3f9739c611c31007474732674
4
+ data.tar.gz: 973dd74f1c4a5d2601c0f426367f5e793fa3c31c
5
+ SHA512:
6
+ metadata.gz: e0e621612d9925c2bdd5e6ae85a62ad6dddfb62aa07e1a13e969d0907d9dfaa3f075af49818c67635c8266836fb79c063250fff238dbdbe02a08b6029af71970
7
+ data.tar.gz: db5b339e8be8d728626bff749b43f2b5d9432a6f669e097099a60527d8d9aca994e3f399827769cfc8e31b8e12d5b1f8b056e96a341d4afd78e86efb05077a55
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.3.3 - 18-Jan-2014
2
+ * Now allows hyphens in hostnames. Thanks go to J�r�mie Pierson for the
3
+ spot and the patch.
4
+ * Minor updates to the Rakefile and test suite.
5
+
1
6
  == 1.3.2 - 1-Mar-2011
2
7
  * Case is now ignored for the database name when searching through the
3
8
  tnsnames.ora file.
data/README CHANGED
@@ -10,11 +10,6 @@
10
10
  == Installation
11
11
  gem install net-tnsping
12
12
 
13
- === Test Note
14
- You may want to manually tweak one instance variable (@@database) in the
15
- test suite in order to get a more robust set of test results. Set it to
16
- a known database name. By default it uses "XE" (Express Edition).
17
-
18
13
  == Synopsis
19
14
  require "net/tnsping"
20
15
  include Net
@@ -139,6 +134,11 @@ Ping::TNS#tns_file=(path)
139
134
  Then, it attempts to make a connection using a bogus name and password,
140
135
  looking for error ORA-1017.
141
136
 
137
+ === Test Note
138
+ You may want to manually tweak one instance variable (@@database) in the
139
+ test suite in order to get a more robust set of test results. Set it to
140
+ a known database name. By default it uses "XE" (Express Edition).
141
+
142
142
  == Potential Questions
143
143
  Q: "Why didn't you just wrap a backticked tnsping call?"
144
144
 
@@ -157,15 +157,15 @@ Ping::TNS#tns_file=(path)
157
157
  more reliable solution.
158
158
 
159
159
  == Known Bugs
160
- None that I'm aware of. Please log any bug reports on the project page
161
- at http://www.rubyforge.org/projects/shards
160
+ None that I'm aware of. Please log any bug reports on the project page at
161
+ http://github.com/djberg96/net-tnsping
162
162
 
163
163
  == Acknowledgements
164
164
  Thanks go to Bryan Stanaway, a colleague and Oracle DBA who helped me out
165
165
  with some questions I had.
166
166
 
167
167
  == Copyright
168
- (C) 2003-2011 Daniel J. Berger
168
+ (C) 2003-2014 Daniel J. Berger
169
169
  All rights reserved.
170
170
 
171
171
  == Warranty
data/Rakefile CHANGED
@@ -8,7 +8,12 @@ namespace :gem do
8
8
  desc "Create the net-tnsping gem"
9
9
  task :create => [:clean] do
10
10
  spec = eval(IO.read('net-tnsping.gemspec'))
11
- Gem::Builder.new(spec).build
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
17
  end
13
18
 
14
19
  desc "Install the net-tnsping gem"
@@ -11,7 +11,7 @@ module Net
11
11
  class Error < StandardError; end
12
12
 
13
13
  # The version of the net-tnsping library.
14
- VERSION = '1.3.2'
14
+ VERSION = '1.3.3'
15
15
 
16
16
  # Database name.
17
17
  attr_accessor :database
@@ -191,7 +191,7 @@ module Net
191
191
  re_comment = /^#/
192
192
  re_tns_sentry = /^#{db}.*?=/i # specific entry
193
193
  re_tns_gentry = /^\w.*?=/ # generic entry
194
- re_tns_pair = /\w+\s*\=\s*[\w\.]+/ # used to parse key=val
194
+ re_tns_pair = /\w+\s*\=\s*[\w\.-]+/ # used to parse key=val
195
195
  re_keys = /\bhost\b|\bport\b|\bsid\b/i
196
196
 
197
197
  data_string = ""
@@ -2,21 +2,21 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'net-tnsping'
5
- spec.version = '1.3.2'
5
+ spec.version = '1.3.3'
6
6
  spec.license = 'Artistic 2.0'
7
7
  spec.author = 'Daniel J. Berger'
8
8
  spec.email = 'djberg96@gmail.com'
9
- spec.homepage = 'http://www.rubyforge.org/projects/shards'
9
+ spec.homepage = 'http://github.com/djberg96/net-tnsping'
10
10
  spec.summary = 'A library for pinging Oracle listeners and databases'
11
11
  spec.test_file = 'test/test_net_tnsping.rb'
12
- spec.has_rdoc = true
13
12
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
14
13
 
15
14
  spec.rubyforge_project = 'shards'
16
15
  spec.extra_rdoc_files = ['CHANGES', 'MANIFEST', 'README']
17
16
 
18
- spec.add_dependency('net-ping', '>= 1.4.0')
19
- spec.add_development_dependency('test-unit', '>= 2.1.2')
17
+ spec.add_dependency('net-ping')
18
+ spec.add_development_dependency('rake')
19
+ spec.add_development_dependency('test-unit')
20
20
 
21
21
  spec.description = <<-EOF
22
22
  The net-tnsping library provides a way to ping Oracle databases and
@@ -4,10 +4,7 @@
4
4
  # Test suite for the net-tnsping library. This should be run via the
5
5
  # 'rake test' task.
6
6
  ########################################################################
7
- require 'rubygems'
8
- gem 'test-unit'
9
-
10
- require 'test/unit'
7
+ require 'test-unit'
11
8
  require 'net/tnsping'
12
9
 
13
10
  class TC_TNS_Ping < Test::Unit::TestCase
@@ -23,7 +20,7 @@ class TC_TNS_Ping < Test::Unit::TestCase
23
20
  end
24
21
 
25
22
  test "version number is expected value" do
26
- assert_equal('1.3.2', Net::Ping::TNS::VERSION)
23
+ assert_equal('1.3.3', Net::Ping::TNS::VERSION)
27
24
  end
28
25
 
29
26
  test "database reader basic functionality" do
metadata CHANGED
@@ -1,107 +1,101 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: net-tnsping
3
- version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 3
9
- - 2
10
- version: 1.3.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.3
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Daniel J. Berger
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-03-01 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2014-01-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: net-ping
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 1
32
- - 4
33
- - 0
34
- version: 1.4.0
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
35
20
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: test-unit
39
21
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 2
48
- - 1
49
- - 2
50
- version: 2.1.2
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
51
34
  type: :development
52
- version_requirements: *id002
53
- description: " The net-tnsping library provides a way to ping Oracle databases and\n ensure that they're up and running. Unlike the tnsping command line\n program, which only pings the listener, the net-tnsping library\n pings both the listener and the database itself.\n"
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: test-unit
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: |2
56
+ The net-tnsping library provides a way to ping Oracle databases and
57
+ ensure that they're up and running. Unlike the tnsping command line
58
+ program, which only pings the listener, the net-tnsping library
59
+ pings both the listener and the database itself.
54
60
  email: djberg96@gmail.com
55
61
  executables: []
56
-
57
62
  extensions: []
58
-
59
- extra_rdoc_files:
63
+ extra_rdoc_files:
60
64
  - CHANGES
61
65
  - MANIFEST
62
66
  - README
63
- files:
64
- - Rakefile
65
- - README
66
- - net-tnsping.gemspec
67
- - lib/net/tnsping.rb
67
+ files:
68
68
  - CHANGES
69
+ - MANIFEST
70
+ - README
71
+ - Rakefile
69
72
  - examples/example_tnsping.rb
73
+ - lib/net/tnsping.rb
74
+ - net-tnsping.gemspec
70
75
  - test/test_net_tnsping.rb
71
- - MANIFEST
72
- has_rdoc: true
73
- homepage: http://www.rubyforge.org/projects/shards
74
- licenses:
76
+ homepage: http://github.com/djberg96/net-tnsping
77
+ licenses:
75
78
  - Artistic 2.0
79
+ metadata: {}
76
80
  post_install_message:
77
81
  rdoc_options: []
78
-
79
- require_paths:
82
+ require_paths:
80
83
  - lib
81
- required_ruby_version: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
99
94
  requirements: []
100
-
101
95
  rubyforge_project: shards
102
- rubygems_version: 1.3.7
96
+ rubygems_version: 2.2.1
103
97
  signing_key:
104
- specification_version: 3
98
+ specification_version: 4
105
99
  summary: A library for pinging Oracle listeners and databases
106
- test_files:
100
+ test_files:
107
101
  - test/test_net_tnsping.rb