data_objects 0.9.10.1 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/LICENSE +30 -2
- data/Manifest.txt +0 -2
- data/Rakefile +4 -5
- data/lib/data_objects.rb +0 -22
- data/lib/data_objects/reader.rb +8 -0
- data/lib/data_objects/uri.rb +1 -1
- data/lib/data_objects/version.rb +1 -1
- data/spec/result_spec.rb +1 -1
- metadata +5 -7
- data/TODO +0 -0
- data/lib/data_objects/field.rb +0 -19
data/History.txt
CHANGED
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2007 Yehuda Katz
|
1
|
+
Copyright (c) 2007, 2008, 2009 Yehuda Katz, Dirkjan Bussink
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
@@ -17,4 +17,32 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
17
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
18
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
19
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
---
|
23
|
+
---
|
24
|
+
|
25
|
+
Some portions of tasks/ext_helper_java.rb are verbatim copies of software
|
26
|
+
licensed under the MIT license. That license is included below:
|
27
|
+
|
28
|
+
Copyright (c) 2006-2008 Nick Sieger <nick@nicksieger.com>
|
29
|
+
Copyright (c) 2006-2008 Ola Bini <ola.bini@gmail.com>
|
30
|
+
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
32
|
+
a copy of this software and associated documentation files (the
|
33
|
+
"Software"), to deal in the Software without restriction, including
|
34
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
35
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
36
|
+
permit persons to whom the Software is furnished to do so, subject to
|
37
|
+
the following conditions:
|
38
|
+
|
39
|
+
The above copyright notice and this permission notice shall be
|
40
|
+
included in all copies or substantial portions of the Software.
|
41
|
+
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
43
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
44
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
45
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
46
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
47
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
48
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
CHANGED
@@ -4,11 +4,9 @@ LICENSE
|
|
4
4
|
Manifest.txt
|
5
5
|
README.txt
|
6
6
|
Rakefile
|
7
|
-
TODO
|
8
7
|
lib/data_objects.rb
|
9
8
|
lib/data_objects/command.rb
|
10
9
|
lib/data_objects/connection.rb
|
11
|
-
lib/data_objects/field.rb
|
12
10
|
lib/data_objects/logger.rb
|
13
11
|
lib/data_objects/quoting.rb
|
14
12
|
lib/data_objects/reader.rb
|
data/Rakefile
CHANGED
@@ -8,11 +8,11 @@ JRUBY = RUBY_PLATFORM =~ /java/
|
|
8
8
|
WINDOWS = Gem.win_platform?
|
9
9
|
SUDO = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS'])
|
10
10
|
|
11
|
-
AUTHOR = "
|
12
|
-
EMAIL = "
|
11
|
+
AUTHOR = "Dirkjan Bussink"
|
12
|
+
EMAIL = "d.bussink@gmail.com"
|
13
13
|
GEM_NAME = "data_objects"
|
14
14
|
GEM_VERSION = DataObjects::VERSION
|
15
|
-
GEM_DEPENDENCIES = ["addressable", "~>2.0"], ["extlib", "~>0.9.
|
15
|
+
GEM_DEPENDENCIES = ["addressable", "~>2.0"], ["extlib", "~>0.9.9"]
|
16
16
|
GEM_CLEAN = "{coverage,doc,log}/", "profile_results.*", "**/.*.sw?", "*.gem", ".config", "**/.DS_Store"
|
17
17
|
GEM_EXTRAS = {}
|
18
18
|
|
@@ -20,7 +20,6 @@ PROJECT_NAME = "dorb"
|
|
20
20
|
PROJECT_URL = "http://rubyforge.org/projects/dorb"
|
21
21
|
PROJECT_DESCRIPTION = PROJECT_SUMMARY = "The Core DataObjects class"
|
22
22
|
|
23
|
-
JAVA_DRIVER = false
|
24
23
|
|
25
24
|
# RCov is run by default, except on the JRuby platform, or if NO_RCOV env is true
|
26
25
|
RUN_RCOV = JRUBY ? false : (ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true)
|
@@ -50,7 +49,7 @@ end
|
|
50
49
|
Spec::Rake::SpecTask.new(:spec) do |t|
|
51
50
|
t.spec_opts << '--format' << 'specdoc' << '--colour'
|
52
51
|
t.spec_opts << '--loadby' << 'random'
|
53
|
-
t.spec_files = Pathname.glob(ENV['FILES'] || 'spec/**/*_spec.rb')
|
52
|
+
t.spec_files = Pathname.glob(ENV['FILES'] || 'spec/**/*_spec.rb').map { |f| f.to_s }
|
54
53
|
|
55
54
|
begin
|
56
55
|
t.rcov = RUN_RCOV
|
data/lib/data_objects.rb
CHANGED
@@ -11,7 +11,6 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'tran
|
|
11
11
|
require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'command'))
|
12
12
|
require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'result'))
|
13
13
|
require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'reader'))
|
14
|
-
require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'field'))
|
15
14
|
require File.expand_path(File.join(File.dirname(__FILE__), 'data_objects', 'quoting'))
|
16
15
|
|
17
16
|
|
@@ -22,25 +21,4 @@ module DataObjects
|
|
22
21
|
@root ||= Pathname(__FILE__).dirname.parent.expand_path
|
23
22
|
end
|
24
23
|
|
25
|
-
def self.find_const(name)
|
26
|
-
klass = Object
|
27
|
-
name.to_s.split('::').each do |part|
|
28
|
-
klass = klass.const_get(part)
|
29
|
-
end
|
30
|
-
klass
|
31
|
-
end
|
32
24
|
end
|
33
|
-
|
34
|
-
# class ConnectionFailed < StandardError; end
|
35
|
-
#
|
36
|
-
# class ReaderClosed < StandardError; end
|
37
|
-
#
|
38
|
-
# class ReaderError < StandardError; end
|
39
|
-
#
|
40
|
-
# class QueryError < StandardError; end
|
41
|
-
#
|
42
|
-
# class NoInsertError < StandardError; end
|
43
|
-
#
|
44
|
-
# class LostConnectionError < StandardError; end
|
45
|
-
#
|
46
|
-
# class UnknownError < StandardError; end
|
data/lib/data_objects/reader.rb
CHANGED
data/lib/data_objects/uri.rb
CHANGED
data/lib/data_objects/version.rb
CHANGED
data/spec/result_spec.rb
CHANGED
@@ -10,7 +10,7 @@ describe DataObjects::Result do
|
|
10
10
|
result = command.execute_non_query
|
11
11
|
|
12
12
|
# In case the driver needs to access the command or connection to load additional data.
|
13
|
-
result.instance_variables.should include('@command')
|
13
|
+
result.instance_variables.map { |i| i.to_s }.should include('@command')
|
14
14
|
|
15
15
|
# Affected Rows:
|
16
16
|
result.should respond_to(:to_i)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Dirkjan Bussink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-19 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.9.
|
33
|
+
version: 0.9.9
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: hoe
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version:
|
45
45
|
description: The Core DataObjects class
|
46
46
|
email:
|
47
|
-
-
|
47
|
+
- d.bussink@gmail.com
|
48
48
|
executables: []
|
49
49
|
|
50
50
|
extensions: []
|
@@ -60,11 +60,9 @@ files:
|
|
60
60
|
- Manifest.txt
|
61
61
|
- README.txt
|
62
62
|
- Rakefile
|
63
|
-
- TODO
|
64
63
|
- lib/data_objects.rb
|
65
64
|
- lib/data_objects/command.rb
|
66
65
|
- lib/data_objects/connection.rb
|
67
|
-
- lib/data_objects/field.rb
|
68
66
|
- lib/data_objects/logger.rb
|
69
67
|
- lib/data_objects/quoting.rb
|
70
68
|
- lib/data_objects/reader.rb
|
data/TODO
DELETED
File without changes
|