data_objects 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ pkg
2
+ *.db
data/Manifest.txt CHANGED
@@ -1,3 +1,4 @@
1
+ .gitignore
1
2
  History.txt
2
3
  LICENSE
3
4
  Manifest.txt
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ AUTHOR = "Yehuda Katz"
9
9
  EMAIL = "wycats@gmail.com"
10
10
  GEM_NAME = "data_objects"
11
11
  GEM_VERSION = DataObjects::VERSION
12
- GEM_DEPENDENCIES = ["addressable", ">=1.0.3"], ["extlib", ">=0.9.5"]
12
+ GEM_DEPENDENCIES = ["addressable", "~>2.0"], ["extlib", "~>0.9.8"]
13
13
  GEM_CLEAN = "{coverage,doc,log}/", "profile_results.*", "**/.*.sw?", "*.gem", ".config", "**/.DS_Store"
14
14
  GEM_EXTRAS = {}
15
15
 
data/lib/data_objects.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
 
3
- gem 'extlib', '>=0.9.5'
3
+ gem 'extlib', '~>0.9.8'
4
4
  require 'extlib'
5
5
 
6
6
  require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'support', 'pooling'))
@@ -14,9 +14,6 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'read
14
14
  require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'field'))
15
15
  require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'quoting'))
16
16
 
17
- if RUBY_PLATFORM =~ /java/
18
- require 'do_jdbc'
19
- end
20
17
 
21
18
  module DataObjects
22
19
  class LengthMismatchError < StandardError; end
@@ -1,28 +1,29 @@
1
+ gem 'addressable', '~>2.0'
1
2
  require 'addressable/uri'
2
3
 
3
4
  module DataObjects
4
- URI = Struct.new(:scheme, :user, :password, :host, :port, :specified_port, :path, :query, :fragment)
5
+ URI = Struct.new(:scheme, :user, :password, :host, :port, :path, :query, :fragment)
5
6
 
6
7
  class URI
7
8
  def self.parse(uri)
8
9
  return uri if uri.kind_of?(self)
9
10
  uri = Addressable::URI::parse(uri) unless uri.kind_of?(Addressable::URI)
10
- self.new(uri.scheme, uri.user, uri.password, uri.host, uri.port, uri.specified_port, uri.path, uri.query, uri.fragment)
11
+ self.new(uri.scheme, uri.user, uri.password, uri.host, uri.port, uri.path, uri.query, uri.fragment)
11
12
  end
12
13
 
13
14
  def to_s
14
15
  string = ""
15
- string << "#{scheme}://" if scheme
16
+ string << "#{scheme}://" if scheme
16
17
  if user
17
18
  string << "#{user}"
18
- string << ":#{password}" if password
19
+ string << ":#{password}" if password
19
20
  string << "@"
20
21
  end
21
- string << "#{host}" if host
22
- string << ":#{specified_port}" if specified_port
22
+ string << "#{host}" if host
23
+ string << ":#{port}" if port
23
24
  string << path.to_s
24
- string << "?#{query}" if query
25
- string << "##{fragment}" if fragment
25
+ string << "?#{query}" if query
26
+ string << "##{fragment}" if fragment
26
27
  string
27
28
  end
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module DataObjects
2
- VERSION = "0.9.6" unless defined?(DataObjects::VERSION)
2
+ VERSION = "0.9.7" unless defined?(DataObjects::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-12 00:00:00 -06:00
12
+ date: 2008-11-18 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -18,9 +18,9 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.3
23
+ version: "2.0"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: extlib
@@ -28,9 +28,9 @@ dependencies:
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.5
33
+ version: 0.9.8
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: hoe
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.7.0
43
+ version: 1.8.2
44
44
  version:
45
45
  description: The Core DataObjects class
46
46
  email:
@@ -54,6 +54,7 @@ extra_rdoc_files:
54
54
  - Manifest.txt
55
55
  - README.txt
56
56
  files:
57
+ - .gitignore
57
58
  - History.txt
58
59
  - LICENSE
59
60
  - Manifest.txt
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  requirements: []
106
107
 
107
108
  rubyforge_project: dorb
108
- rubygems_version: 1.2.0
109
+ rubygems_version: 1.3.1
109
110
  signing_key:
110
111
  specification_version: 2
111
112
  summary: The Core DataObjects class