pod4 0.8.0 → 0.8.1
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.
- checksums.yaml +4 -4
- data/.hgtags +1 -0
- data/.ruby-version +1 -1
- data/Gemfile +5 -5
- data/lib/pod4/errors.rb +5 -0
- data/lib/pod4/nebulous_interface.rb +10 -11
- data/lib/pod4/pg_interface.rb +2 -2
- data/lib/pod4/tds_interface.rb +4 -2
- data/lib/pod4/typecasting.rb +1 -1
- data/lib/pod4/version.rb +1 -1
- data/pod4.gemspec +1 -21
- data/spec/common/basic_model_spec.rb +37 -45
- data/spec/common/model_plus_typecasting_spec.rb +16 -16
- data/spec/common/model_spec.rb +96 -103
- data/spec/common/nebulous_interface_spec.rb +78 -74
- data/spec/common/sequel_interface_pg_spec.rb +23 -19
- data/spec/common/sql_helper_spec.rb +24 -14
- data/spec/jruby/sequel_interface_jdbc_ms_spec.rb +24 -17
- data/spec/jruby/sequel_interface_jdbc_pg_spec.rb +30 -4
- data/spec/mri/pg_interface_spec.rb +50 -41
- data/spec/mri/sequel_interface_spec.rb +48 -53
- data/spec/mri/tds_interface_spec.rb +51 -42
- data/tags +186 -47
- metadata +3 -3
@@ -7,37 +7,46 @@ require_relative '../common/shared_examples_for_interface'
|
|
7
7
|
require_relative '../fixtures/database'
|
8
8
|
|
9
9
|
|
10
|
-
|
11
|
-
set_db :pod4_test
|
12
|
-
set_table :customer
|
13
|
-
set_id_fld :id
|
14
|
-
end
|
15
|
-
|
16
|
-
class SchemaTdsInterface < TdsInterface
|
17
|
-
set_db :pod4_test
|
18
|
-
set_schema :public
|
19
|
-
set_table :customer
|
20
|
-
set_id_fld :id
|
21
|
-
end
|
10
|
+
describe "TdsInterface" do
|
22
11
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
12
|
+
let(:tds_interface_class) do
|
13
|
+
Class.new TdsInterface do
|
14
|
+
set_db :pod4_test
|
15
|
+
set_table :customer
|
16
|
+
set_id_fld :id
|
17
|
+
end
|
18
|
+
end
|
27
19
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
20
|
+
let(:schema_interface_class) do
|
21
|
+
Class.new TdsInterface do
|
22
|
+
set_db :pod4_test
|
23
|
+
set_schema :public
|
24
|
+
set_table :customer
|
25
|
+
set_id_fld :id
|
26
|
+
end
|
27
|
+
end
|
32
28
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
29
|
+
let(:bad_interface_class1) do
|
30
|
+
Class.new TdsInterface do
|
31
|
+
set_db :pod4_test
|
32
|
+
set_table :customer
|
33
|
+
end
|
34
|
+
end
|
38
35
|
|
36
|
+
let(:bad_interface_class2) do
|
37
|
+
Class.new TdsInterface do
|
38
|
+
set_db :pod4_test
|
39
|
+
set_id_fld :id
|
40
|
+
end
|
41
|
+
end
|
39
42
|
|
40
|
-
|
43
|
+
let(:prod_interface_class) do
|
44
|
+
Class.new TdsInterface do
|
45
|
+
set_db :pod4_test
|
46
|
+
set_table :product
|
47
|
+
set_id_fld :code
|
48
|
+
end
|
49
|
+
end
|
41
50
|
|
42
51
|
def db_setup(connect)
|
43
52
|
client = TinyTds::Client.new(connect)
|
@@ -119,11 +128,11 @@ describe TestTdsInterface do
|
|
119
128
|
|
120
129
|
|
121
130
|
let(:interface) do
|
122
|
-
|
131
|
+
tds_interface_class.new(@connect_hash)
|
123
132
|
end
|
124
133
|
|
125
134
|
let(:prod_interface) do
|
126
|
-
|
135
|
+
prod_interface_class.new(@connect_hash)
|
127
136
|
end
|
128
137
|
|
129
138
|
#####
|
@@ -132,7 +141,7 @@ describe TestTdsInterface do
|
|
132
141
|
it_behaves_like 'an interface' do
|
133
142
|
|
134
143
|
let(:interface) do
|
135
|
-
|
144
|
+
tds_interface_class.new(@connect_hash)
|
136
145
|
end
|
137
146
|
|
138
147
|
|
@@ -152,7 +161,7 @@ describe TestTdsInterface do
|
|
152
161
|
|
153
162
|
describe 'TdsInterface.db' do
|
154
163
|
it 'returns the table' do
|
155
|
-
expect(
|
164
|
+
expect( tds_interface_class.db ).to eq :pod4_test
|
156
165
|
end
|
157
166
|
end
|
158
167
|
##
|
@@ -168,12 +177,12 @@ describe TestTdsInterface do
|
|
168
177
|
|
169
178
|
describe 'TdsInterface.schema' do
|
170
179
|
it 'returns the schema' do
|
171
|
-
expect(
|
180
|
+
expect( schema_interface_class.schema ).to eq :public
|
172
181
|
end
|
173
182
|
|
174
183
|
it 'is optional' do
|
175
|
-
expect{
|
176
|
-
expect(
|
184
|
+
expect{ tds_interface_class.schema }.not_to raise_exception
|
185
|
+
expect( tds_interface_class.schema ).to eq nil
|
177
186
|
end
|
178
187
|
end
|
179
188
|
##
|
@@ -189,7 +198,7 @@ describe TestTdsInterface do
|
|
189
198
|
|
190
199
|
describe 'TdsInterface.table' do
|
191
200
|
it 'returns the table' do
|
192
|
-
expect(
|
201
|
+
expect( tds_interface_class.table ).to eq :customer
|
193
202
|
end
|
194
203
|
end
|
195
204
|
##
|
@@ -205,7 +214,7 @@ describe TestTdsInterface do
|
|
205
214
|
|
206
215
|
describe 'TdsInterface.id_fld' do
|
207
216
|
it 'returns the ID field name' do
|
208
|
-
expect(
|
217
|
+
expect( tds_interface_class.id_fld ).to eq :id
|
209
218
|
end
|
210
219
|
end
|
211
220
|
##
|
@@ -214,20 +223,20 @@ describe TestTdsInterface do
|
|
214
223
|
describe '#new' do
|
215
224
|
|
216
225
|
it 'requires a TinyTds connection string' do
|
217
|
-
expect{
|
218
|
-
expect{
|
219
|
-
expect{
|
226
|
+
expect{ tds_interface_class.new }.to raise_exception ArgumentError
|
227
|
+
expect{ tds_interface_class.new(nil) }.to raise_exception ArgumentError
|
228
|
+
expect{ tds_interface_class.new('foo') }.to raise_exception ArgumentError
|
220
229
|
|
221
|
-
expect{
|
230
|
+
expect{ tds_interface_class.new(@connect_hash) }.not_to raise_exception
|
222
231
|
end
|
223
232
|
|
224
233
|
it 'requires the table and id field to be defined in the class' do
|
225
234
|
expect{ TdsInterface.new(@connect_hash) }.to raise_exception Pod4Error
|
226
235
|
|
227
|
-
expect{
|
236
|
+
expect{ bad_interface_class1.new(@connect_hash) }.
|
228
237
|
to raise_exception Pod4Error
|
229
238
|
|
230
|
-
expect{
|
239
|
+
expect{ bad_interface_class2.new(@connect_hash) }.
|
231
240
|
to raise_exception Pod4Error
|
232
241
|
|
233
242
|
end
|
@@ -243,7 +252,7 @@ describe TestTdsInterface do
|
|
243
252
|
end
|
244
253
|
|
245
254
|
it 'returns the schema plus table when the schema is set' do
|
246
|
-
ifce =
|
255
|
+
ifce = schema_interface_class.new(@connect_hash)
|
247
256
|
expect( ifce.quoted_table ).to eq( %|[public].[customer]| )
|
248
257
|
end
|
249
258
|
|
data/tags
CHANGED
@@ -4,103 +4,242 @@
|
|
4
4
|
ACTIONS lib/pod4/interface.rb /^ ACTIONS = [ :list, :create, :read, :update, :delete ]$/;" C class:Pod4.Interface
|
5
5
|
ALERTTYPES lib/pod4/alert.rb /^ ALERTTYPES = [:error, :warning, :info, :success]$/;" C class:Pod4.Alert
|
6
6
|
Alert lib/pod4/alert.rb /^ class Alert$/;" c class:Pod4
|
7
|
-
|
8
|
-
|
7
|
+
BasicModel lib/pod4/basic_model.rb /^ class BasicModel$/;" c class:Pod4
|
8
|
+
CantContinue lib/pod4/errors.rb /^ class CantContinue < Pod4Error$/;" c class:Pod4 inherits:Pod4Error
|
9
|
+
ClassMethods lib/pod4/typecasting.rb /^ module ClassMethods$/;" m class:Pod4.TypeCasting
|
10
|
+
DB spec/fixtures/database.rb /^DB = {} $/;" C class:
|
11
|
+
DatabaseError lib/pod4/errors.rb /^ class DatabaseError < Pod4Error$/;" c class:Pod4 inherits:Pod4Error
|
12
|
+
DocNoPending spec/doc_no_pending.rb /^class DocNoPending < RSpec::Core::Formatters::DocumentationFormatter$/;" c inherits:RSpec.Core.Formatters.DocumentationFormatter
|
13
|
+
FakeRequester spec/common/nebulous_interface_spec.rb /^class FakeRequester$/;" c
|
14
|
+
InstanceMethods lib/pod4/typecasting.rb /^ module InstanceMethods$/;" m class:Pod4.TypeCasting
|
9
15
|
Interface lib/pod4/interface.rb /^ class Interface$/;" c class:Pod4
|
10
|
-
|
16
|
+
Metaxing lib/pod4/metaxing.rb /^ module Metaxing$/;" m class:Pod4
|
17
|
+
Model lib/pod4/model.rb /^ class Model < Pod4::BasicModel$/;" c class:Pod4 inherits:Pod4.BasicModel
|
11
18
|
NebulousInterface lib/pod4/nebulous_interface.rb /^ class NebulousInterface < Interface$/;" c class:Pod4 inherits:Interface
|
12
|
-
NotImplemented lib/pod4/errors.rb /^ class NotImplemented <
|
19
|
+
NotImplemented lib/pod4/errors.rb /^ class NotImplemented < Exception$/;" c class:Pod4 inherits:Exception
|
20
|
+
NullInterface lib/pod4/null_interface.rb /^ class NullInterface < Interface$/;" c class:Pod4 inherits:Interface
|
13
21
|
Param lib/pod4/param.rb /^ module Param$/;" m class:Pod4
|
22
|
+
PgInterface lib/pod4/pg_interface.rb /^ class PgInterface < Interface$/;" c class:Pod4 inherits:Interface
|
14
23
|
Pod4 lib/pod4.rb /^module Pod4$/;" m
|
15
24
|
Pod4 lib/pod4/alert.rb /^module Pod4$/;" m
|
25
|
+
Pod4 lib/pod4/basic_model.rb /^module Pod4$/;" m
|
16
26
|
Pod4 lib/pod4/errors.rb /^module Pod4$/;" m
|
17
27
|
Pod4 lib/pod4/interface.rb /^module Pod4$/;" m
|
28
|
+
Pod4 lib/pod4/metaxing.rb /^module Pod4$/;" m
|
18
29
|
Pod4 lib/pod4/model.rb /^module Pod4$/;" m
|
19
30
|
Pod4 lib/pod4/nebulous_interface.rb /^module Pod4$/;" m
|
31
|
+
Pod4 lib/pod4/null_interface.rb /^module Pod4$/;" m
|
20
32
|
Pod4 lib/pod4/param.rb /^module Pod4$/;" m
|
33
|
+
Pod4 lib/pod4/pg_interface.rb /^module Pod4$/;" m
|
21
34
|
Pod4 lib/pod4/sequel_interface.rb /^module Pod4$/;" m
|
35
|
+
Pod4 lib/pod4/sql_helper.rb /^module Pod4$/;" m
|
36
|
+
Pod4 lib/pod4/tds_interface.rb /^module Pod4$/;" m
|
37
|
+
Pod4 lib/pod4/typecasting.rb /^module Pod4$/;" m
|
22
38
|
Pod4 lib/pod4/version.rb /^module Pod4 $/;" m
|
23
39
|
Pod4Error lib/pod4/errors.rb /^ class Pod4Error < StandardError$/;" c class:Pod4 inherits:StandardError
|
24
|
-
|
40
|
+
SQLHelper lib/pod4/sql_helper.rb /^ module SQLHelper$/;" m class:Pod4
|
41
|
+
STATII lib/pod4/basic_model.rb /^ STATII = %i|error warning okay deleted empty|$/;" C class:Pod4.BasicModel
|
25
42
|
SequelInterface lib/pod4/sequel_interface.rb /^ class SequelInterface < Interface$/;" c class:Pod4 inherits:Interface
|
26
|
-
|
43
|
+
TdsInterface lib/pod4/tds_interface.rb /^ class TdsInterface < Interface$/;" c class:Pod4 inherits:Interface
|
44
|
+
TypeCasting lib/pod4/typecasting.rb /^ module TypeCasting$/;" m class:Pod4
|
45
|
+
VERSION lib/pod4/version.rb /^ VERSION = '0.8.0'$/;" C class:Pod4
|
27
46
|
ValidationError lib/pod4/errors.rb /^ class ValidationError < Pod4Error$/;" c class:Pod4 inherits:Pod4Error
|
28
|
-
|
29
|
-
add_alert lib/pod4/
|
30
|
-
alerts lib/pod4/
|
47
|
+
Verb lib/pod4/nebulous_interface.rb /^ Verb = Struct.new(:name, :params)$/;" c class:Pod4.NebulousInterface
|
48
|
+
add_alert lib/pod4/basic_model.rb /^ def add_alert(type, field=nil, message)$/;" f class:Pod4.BasicModel
|
49
|
+
alerts lib/pod4/basic_model.rb /^ def alerts; @alerts.dup; end$/;" f class:Pod4.BasicModel
|
31
50
|
attr_columns lib/pod4/model.rb /^ def attr_columns(*cols)$/;" F class:Pod4.Model
|
32
|
-
|
51
|
+
cast_row_fudge lib/pod4/pg_interface.rb /^ def cast_row_fudge(row, oids)$/;" f class:Pod4.PgInterface
|
52
|
+
cause lib/pod4/errors.rb /^ define_method(:cause) { @cos }$/;" f class:Pod4.Pod4Error
|
53
|
+
clear_alerts lib/pod4/basic_model.rb /^ def clear_alerts$/;" f class:Pod4.BasicModel
|
33
54
|
clearing_cache lib/pod4/nebulous_interface.rb /^ def clearing_cache$/;" f class:Pod4.NebulousInterface
|
55
|
+
close lib/pod4/pg_interface.rb /^ def close$/;" f class:Pod4.PgInterface
|
56
|
+
close lib/pod4/tds_interface.rb /^ def close$/;" f class:Pod4.TdsInterface
|
34
57
|
columns lib/pod4/model.rb /^ def columns $/;" F class:Pod4.Model
|
35
|
-
columns lib/pod4/model.rb /^ def columns; self.class.columns; end$/;" f class:Pod4.Model
|
58
|
+
columns lib/pod4/model.rb /^ def columns; self.class.columns.dup; end$/;" f class:Pod4.Model
|
59
|
+
connected? lib/pod4/pg_interface.rb /^ def connected?$/;" f class:Pod4.PgInterface
|
60
|
+
connected? lib/pod4/tds_interface.rb /^ def connected?$/;" f class:Pod4.TdsInterface
|
36
61
|
create lib/pod4/interface.rb /^ def create(record)$/;" f class:Pod4.Interface
|
37
62
|
create lib/pod4/model.rb /^ def create$/;" f class:Pod4.Model
|
38
63
|
create lib/pod4/nebulous_interface.rb /^ def create(record)$/;" f class:Pod4.NebulousInterface
|
64
|
+
create lib/pod4/null_interface.rb /^ def create(record)$/;" f class:Pod4.NullInterface
|
65
|
+
create lib/pod4/pg_interface.rb /^ def create(record)$/;" f class:Pod4.PgInterface
|
39
66
|
create lib/pod4/sequel_interface.rb /^ def create(record)$/;" f class:Pod4.SequelInterface
|
67
|
+
create lib/pod4/tds_interface.rb /^ def create(record)$/;" f class:Pod4.TdsInterface
|
68
|
+
create spec/common/nebulous_interface_spec.rb /^ def create(name, price)$/;" f class:FakeRequester
|
69
|
+
db lib/pod4/tds_interface.rb /^ def db $/;" F class:Pod4.TdsInterface
|
70
|
+
db lib/pod4/tds_interface.rb /^ def db; self.class.db; end$/;" f class:Pod4.TdsInterface
|
71
|
+
define_class_method lib/pod4/metaxing.rb /^ def define_class_method(method, *args, &blk)$/;" f class:Pod4.Metaxing
|
40
72
|
delete lib/pod4/interface.rb /^ def delete(id)$/;" f class:Pod4.Interface
|
41
73
|
delete lib/pod4/model.rb /^ def delete$/;" f class:Pod4.Model
|
42
74
|
delete lib/pod4/nebulous_interface.rb /^ def delete(id)$/;" f class:Pod4.NebulousInterface
|
75
|
+
delete lib/pod4/null_interface.rb /^ def delete(id)$/;" f class:Pod4.NullInterface
|
76
|
+
delete lib/pod4/pg_interface.rb /^ def delete(id)$/;" f class:Pod4.PgInterface
|
43
77
|
delete lib/pod4/sequel_interface.rb /^ def delete(id)$/;" f class:Pod4.SequelInterface
|
78
|
+
delete lib/pod4/tds_interface.rb /^ def delete(id)$/;" f class:Pod4.TdsInterface
|
79
|
+
encoding lib/pod4/typecasting.rb /^ def encoding; nil; end$/;" f class:Pod4.TypeCasting.ClassMethods
|
80
|
+
ensure_connection lib/pod4/pg_interface.rb /^ def ensure_connection$/;" f class:Pod4.PgInterface
|
81
|
+
escape lib/pod4/tds_interface.rb /^ def escape(thing)$/;" f class:Pod4.TdsInterface
|
44
82
|
example_pending spec/doc_no_pending.rb /^ def example_pending(notifications); end$/;" f class:DocNoPending
|
45
|
-
exception lib/pod4/alert.rb /^ attr_reader :
|
83
|
+
exception lib/pod4/alert.rb /^ attr_reader :exception$/;" f class:Pod4.Alert
|
84
|
+
execute lib/pod4/pg_interface.rb /^ def execute(sql)$/;" f class:Pod4.PgInterface
|
46
85
|
execute lib/pod4/sequel_interface.rb /^ def execute(sql)$/;" f class:Pod4.SequelInterface
|
47
|
-
|
86
|
+
execute lib/pod4/tds_interface.rb /^ def execute(sql)$/;" f class:Pod4.TdsInterface
|
87
|
+
executep lib/pod4/pg_interface.rb /^ def executep(sql, *vals)$/;" f class:Pod4.PgInterface
|
88
|
+
executep lib/pod4/sequel_interface.rb /^ def executep(sql, mode, *values)$/;" f class:Pod4.SequelInterface
|
89
|
+
fail_no_id lib/pod4/model.rb /^ def fail_no_id$/;" F class:Pod4.Model
|
90
|
+
fail_no_id_fld lib/pod4/model.rb /^ def fail_no_id_fld$/;" F class:Pod4.Model
|
91
|
+
field lib/pod4/alert.rb /^ attr_accessor :field$/;" f class:Pod4.Alert
|
48
92
|
field lib/pod4/errors.rb /^ attr_reader :field$/;" f class:Pod4.ValidationError
|
49
|
-
field= lib/pod4/alert.rb /^ attr_accessor :field
|
93
|
+
field= lib/pod4/alert.rb /^ attr_accessor :field$/;" f class:Pod4.Alert
|
94
|
+
force_encoding lib/pod4/typecasting.rb /^ def force_encoding(enc)$/;" f class:Pod4.TypeCasting.ClassMethods
|
50
95
|
from_alert lib/pod4/errors.rb /^ def self.from_alert(alert)$/;" F class:Pod4.ValidationError
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
handle_error lib/pod4/
|
56
|
-
handle_error lib/pod4/sequel_interface.rb /^ def handle_error(err)$/;" f class:Pod4.SequelInterface
|
57
|
-
|
96
|
+
get lib/pod4/param.rb /^ def get(p); params[p.to_s.to_sym]; end$/;" f class:Pod4.Param
|
97
|
+
get_all lib/pod4/param.rb /^ def get_all; Octothorpe.new(params.dup); end$/;" f class:Pod4.Param
|
98
|
+
handle_error lib/pod4/nebulous_interface.rb /^ def handle_error(err, kaller=caller[1..-1])$/;" f class:Pod4.NebulousInterface
|
99
|
+
handle_error lib/pod4/null_interface.rb /^ def handle_error(err, kaller=nil)$/;" f class:Pod4.NullInterface
|
100
|
+
handle_error lib/pod4/pg_interface.rb /^ def handle_error(err, kaller=nil)$/;" f class:Pod4.PgInterface
|
101
|
+
handle_error lib/pod4/sequel_interface.rb /^ def handle_error(err, kaller=nil)$/;" f class:Pod4.SequelInterface
|
102
|
+
handle_error lib/pod4/tds_interface.rb /^ def handle_error(err, kaller=nil)$/;" f class:Pod4.TdsInterface
|
103
|
+
hashy? lib/pod4/nebulous_interface.rb /^ def hashy?(obj)$/;" f class:Pod4.NebulousInterface
|
104
|
+
id_fld lib/pod4/interface.rb /^ def id_fld$/;" f class:Pod4.Interface
|
105
|
+
id_fld lib/pod4/nebulous_interface.rb /^ def id_fld$/;" F class:Pod4.NebulousInterface
|
106
|
+
id_fld lib/pod4/nebulous_interface.rb /^ attr_reader :id_fld$/;" f class:Pod4.NebulousInterface
|
107
|
+
id_fld lib/pod4/null_interface.rb /^ attr_reader :id_fld$/;" f class:Pod4.NullInterface
|
108
|
+
id_fld lib/pod4/pg_interface.rb /^ def id_fld$/;" F class:Pod4.PgInterface
|
109
|
+
id_fld lib/pod4/pg_interface.rb /^ attr_reader :id_fld$/;" f class:Pod4.PgInterface
|
110
|
+
id_fld lib/pod4/pg_interface.rb /^ def id_fld; self.class.id_fld; end$/;" f class:Pod4.PgInterface
|
111
|
+
id_fld lib/pod4/sequel_interface.rb /^ def id_fld$/;" F class:Pod4.SequelInterface
|
112
|
+
id_fld lib/pod4/sequel_interface.rb /^ attr_reader :id_fld$/;" f class:Pod4.SequelInterface
|
113
|
+
id_fld lib/pod4/sequel_interface.rb /^ def id_fld; self.class.id_fld; end$/;" f class:Pod4.SequelInterface
|
114
|
+
id_fld lib/pod4/tds_interface.rb /^ def id_fld$/;" F class:Pod4.TdsInterface
|
115
|
+
id_fld lib/pod4/tds_interface.rb /^ attr_reader :id_fld$/;" f class:Pod4.TdsInterface
|
116
|
+
id_fld lib/pod4/tds_interface.rb /^ def id_fld; self.class.id_fld; end$/;" f class:Pod4.TdsInterface
|
117
|
+
included lib/pod4/typecasting.rb /^ def self.included(base)$/;" F class:Pod4.TypeCasting
|
58
118
|
initialize lib/pod4/alert.rb /^ def initialize(type, field=nil, message)$/;" f class:Pod4.Alert
|
59
|
-
initialize lib/pod4/
|
60
|
-
initialize lib/pod4/errors.rb /^ def initialize(message=nil)
|
119
|
+
initialize lib/pod4/basic_model.rb /^ def initialize(id=nil)$/;" f class:Pod4.BasicModel
|
120
|
+
initialize lib/pod4/errors.rb /^ def initialize(message=nil, field=nil)$/;" f class:Pod4.ValidationError
|
121
|
+
initialize lib/pod4/errors.rb /^ def initialize(msg=nil)$/;" f class:Pod4.CantContinue
|
122
|
+
initialize lib/pod4/errors.rb /^ def initialize(msg=nil)$/;" f class:Pod4.DatabaseError
|
123
|
+
initialize lib/pod4/errors.rb /^ def initialize(msg=nil)$/;" f class:Pod4.NotImplemented
|
124
|
+
initialize lib/pod4/errors.rb /^ def initialize(msg=nil)$/;" f class:Pod4.Pod4Error
|
61
125
|
initialize lib/pod4/interface.rb /^ def initialize$/;" f class:Pod4.Interface
|
62
|
-
initialize lib/pod4/
|
63
|
-
initialize lib/pod4/
|
126
|
+
initialize lib/pod4/nebulous_interface.rb /^ def initialize(requestObj=nil)$/;" f class:Pod4.NebulousInterface
|
127
|
+
initialize lib/pod4/null_interface.rb /^ def initialize(*cols, data)$/;" f class:Pod4.NullInterface
|
128
|
+
initialize lib/pod4/pg_interface.rb /^ def initialize(connectHash, testClient=nil)$/;" f class:Pod4.PgInterface
|
64
129
|
initialize lib/pod4/sequel_interface.rb /^ def initialize(db)$/;" f class:Pod4.SequelInterface
|
65
|
-
|
66
|
-
|
130
|
+
initialize lib/pod4/tds_interface.rb /^ def initialize(connectHash, testClient=nil)$/;" f class:Pod4.TdsInterface
|
131
|
+
initialize spec/common/nebulous_interface_spec.rb /^ def initialize(data={}); @data = data; end$/;" f class:FakeRequester
|
132
|
+
interface lib/pod4/basic_model.rb /^ def interface$/;" F class:Pod4.BasicModel
|
133
|
+
interface lib/pod4/basic_model.rb /^ def interface; self.class.interface; end$/;" f class:Pod4.BasicModel
|
67
134
|
list lib/pod4/interface.rb /^ def list(selection=nil)$/;" f class:Pod4.Interface
|
68
135
|
list lib/pod4/model.rb /^ def list(params=nil)$/;" F class:Pod4.Model
|
69
136
|
list lib/pod4/nebulous_interface.rb /^ def list(selection=nil)$/;" f class:Pod4.NebulousInterface
|
137
|
+
list lib/pod4/null_interface.rb /^ def list(selection=nil)$/;" f class:Pod4.NullInterface
|
138
|
+
list lib/pod4/pg_interface.rb /^ def list(selection=nil)$/;" f class:Pod4.PgInterface
|
70
139
|
list lib/pod4/sequel_interface.rb /^ def list(selection=nil)$/;" f class:Pod4.SequelInterface
|
140
|
+
list lib/pod4/tds_interface.rb /^ def list(selection=nil)$/;" f class:Pod4.TdsInterface
|
141
|
+
log lib/pod4/alert.rb /^ def log(file='')$/;" f class:Pod4.Alert
|
71
142
|
logger lib/pod4.rb /^ def self.logger$/;" F class:Pod4
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
143
|
+
make_oid_hash lib/pod4/pg_interface.rb /^ def make_oid_hash(query)$/;" f class:Pod4.PgInterface
|
144
|
+
map_to_interface lib/pod4/model.rb /^ def map_to_interface$/;" f class:Pod4.Model
|
145
|
+
map_to_model lib/pod4/model.rb /^ def map_to_model(ot)$/;" f class:Pod4.Model
|
146
|
+
map_to_model lib/pod4/typecasting.rb /^ def map_to_model(ot)$/;" f class:Pod4.TypeCasting.InstanceMethods
|
147
|
+
merge lib/pod4/model.rb /^ def merge(ot)$/;" f class:Pod4.Model
|
148
|
+
message lib/pod4/alert.rb /^ attr_accessor :message$/;" f class:Pod4.Alert
|
149
|
+
message= lib/pod4/alert.rb /^ attr_accessor :message$/;" f class:Pod4.Alert
|
150
|
+
metaclass lib/pod4/metaxing.rb /^ def metaclass$/;" f class:Pod4.Metaxing
|
151
|
+
model_id lib/pod4/basic_model.rb /^ attr_reader :model_id$/;" f class:Pod4.BasicModel
|
152
|
+
model_status lib/pod4/basic_model.rb /^ attr_reader :model_status$/;" f class:Pod4.BasicModel
|
153
|
+
open lib/pod4/pg_interface.rb /^ def open$/;" f class:Pod4.PgInterface
|
154
|
+
open lib/pod4/tds_interface.rb /^ def open$/;" f class:Pod4.TdsInterface
|
155
|
+
or_die lib/pod4/basic_model.rb /^ alias :or_die :raise_exceptions$/;" a class:Pod4.BasicModel
|
156
|
+
param_string lib/pod4/nebulous_interface.rb /^ def param_string(action, hashParam, id=nil)$/;" f class:Pod4.NebulousInterface
|
77
157
|
params lib/pod4/param.rb /^ def params; @params ||= {}; end$/;" f class:Pod4.Param
|
158
|
+
parse_fldsvalues lib/pod4/sql_helper.rb /^ def parse_fldsvalues(hash)$/;" f class:Pod4.SQLHelper
|
159
|
+
parse_for_params lib/pod4/pg_interface.rb /^ def parse_for_params(sql, vals)$/;" f class:Pod4.PgInterface
|
160
|
+
placeholder lib/pod4/sql_helper.rb /^ def placeholder$/;" f class:Pod4.SQLHelper
|
161
|
+
quote lib/pod4/sql_helper.rb /^ def quote(fld, qc=%q|'|)$/;" f class:Pod4.SQLHelper
|
162
|
+
quote lib/pod4/tds_interface.rb /^ def quote(fld)$/;" f class:Pod4.TdsInterface
|
163
|
+
quote_field lib/pod4/sql_helper.rb /^ def quote_field(fld, qc=%q|"|)$/;" f class:Pod4.SQLHelper
|
164
|
+
quote_field lib/pod4/tds_interface.rb /^ def quote_field(fld)$/;" f class:Pod4.TdsInterface
|
165
|
+
quoted_table lib/pod4/sequel_interface.rb /^ def quoted_table$/;" f class:Pod4.SequelInterface
|
166
|
+
quoted_table lib/pod4/sql_helper.rb /^ def quoted_table$/;" f class:Pod4.SQLHelper
|
167
|
+
quoted_table lib/pod4/tds_interface.rb /^ def quoted_table$/;" f class:Pod4.TdsInterface
|
168
|
+
raise_exceptions lib/pod4/basic_model.rb /^ def raise_exceptions$/;" f class:Pod4.BasicModel
|
78
169
|
read lib/pod4/interface.rb /^ def read(id)$/;" f class:Pod4.Interface
|
79
170
|
read lib/pod4/model.rb /^ def read$/;" f class:Pod4.Model
|
80
171
|
read lib/pod4/nebulous_interface.rb /^ def read(id)$/;" f class:Pod4.NebulousInterface
|
172
|
+
read lib/pod4/null_interface.rb /^ def read(id)$/;" f class:Pod4.NullInterface
|
173
|
+
read lib/pod4/pg_interface.rb /^ def read(id)$/;" f class:Pod4.PgInterface
|
81
174
|
read lib/pod4/sequel_interface.rb /^ def read(id)$/;" f class:Pod4.SequelInterface
|
82
|
-
|
175
|
+
read lib/pod4/tds_interface.rb /^ def read(id)$/;" f class:Pod4.TdsInterface
|
176
|
+
read_or_die lib/pod4/pg_interface.rb /^ def read_or_die(id)$/;" f class:Pod4.PgInterface
|
177
|
+
read_or_die lib/pod4/sequel_interface.rb /^ def read_or_die(id)$/;" f class:Pod4.SequelInterface
|
178
|
+
read_or_die lib/pod4/tds_interface.rb /^ def read_or_die(id)$/;" f class:Pod4.TdsInterface
|
179
|
+
reset lib/pod4/param.rb /^ def reset; @params = {}; end$/;" f class:Pod4.Param
|
180
|
+
response lib/pod4/nebulous_interface.rb /^ attr_reader :response $/;" f class:Pod4.NebulousInterface
|
181
|
+
response_message_hash spec/common/nebulous_interface_spec.rb /^ def response_message_hash(requestmsg)$/;" f class:FakeRequester
|
182
|
+
response_status lib/pod4/nebulous_interface.rb /^ attr_reader :response_status$/;" f class:Pod4.NebulousInterface
|
183
|
+
sanitise_hash lib/pod4/sequel_interface.rb /^ def sanitise_hash(sel)$/;" f class:Pod4.SequelInterface
|
184
|
+
schema lib/pod4/pg_interface.rb /^ def schema; nil; end$/;" F class:Pod4.PgInterface
|
185
|
+
schema lib/pod4/pg_interface.rb /^ def schema; self.class.schema; end$/;" f class:Pod4.PgInterface
|
186
|
+
schema lib/pod4/sequel_interface.rb /^ def schema; nil; end$/;" F class:Pod4.SequelInterface
|
187
|
+
schema lib/pod4/sequel_interface.rb /^ def schema; self.class.schema; end$/;" f class:Pod4.SequelInterface
|
188
|
+
schema lib/pod4/tds_interface.rb /^ def schema; nil; end$/;" F class:Pod4.TdsInterface
|
189
|
+
schema lib/pod4/tds_interface.rb /^ def schema; self.class.schema; end$/;" f class:Pod4.TdsInterface
|
190
|
+
select lib/pod4/pg_interface.rb /^ def select(sql)$/;" f class:Pod4.PgInterface
|
83
191
|
select lib/pod4/sequel_interface.rb /^ def select(sql)$/;" f class:Pod4.SequelInterface
|
192
|
+
select lib/pod4/tds_interface.rb /^ def select(sql)$/;" f class:Pod4.TdsInterface
|
193
|
+
selectp lib/pod4/pg_interface.rb /^ def selectp(sql, *vals)$/;" f class:Pod4.PgInterface
|
194
|
+
selectp lib/pod4/sequel_interface.rb /^ def selectp(sql, *values)$/;" f class:Pod4.SequelInterface
|
195
|
+
send spec/common/nebulous_interface_spec.rb /^ def send(target, requestmsg)$/;" f class:FakeRequester
|
84
196
|
send_message lib/pod4/nebulous_interface.rb /^ def send_message(verb, paramStr, with_cache=true)$/;" f class:Pod4.NebulousInterface
|
197
|
+
send_message_helper lib/pod4/nebulous_interface.rb /^ def send_message_helper(verb, paramStr, with_cache)$/;" f class:Pod4.NebulousInterface
|
85
198
|
set lib/pod4/model.rb /^ def set(ot)$/;" f class:Pod4.Model
|
86
|
-
set lib/pod4/param.rb /^ def set(p,v); params[p.to_sym] = v; end$/;" f class:Pod4.Param
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
199
|
+
set lib/pod4/param.rb /^ def set(p,v); params[p.to_s.to_sym] = v; end$/;" f class:Pod4.Param
|
200
|
+
set_db lib/pod4/tds_interface.rb /^ def set_db(db)$/;" F class:Pod4.TdsInterface
|
201
|
+
set_id_fld lib/pod4/nebulous_interface.rb /^ def set_id_fld(idFld)$/;" F class:Pod4.NebulousInterface
|
202
|
+
set_id_fld lib/pod4/pg_interface.rb /^ def set_id_fld(idFld)$/;" F class:Pod4.PgInterface
|
203
|
+
set_id_fld lib/pod4/sequel_interface.rb /^ def set_id_fld(idFld)$/;" F class:Pod4.SequelInterface
|
204
|
+
set_id_fld lib/pod4/tds_interface.rb /^ def set_id_fld(idFld) $/;" F class:Pod4.TdsInterface
|
205
|
+
set_interface lib/pod4/basic_model.rb /^ def set_interface(interface)$/;" F class:Pod4.BasicModel
|
206
|
+
set_logger lib/pod4.rb /^ def self.set_logger(instance)$/;" F class:Pod4
|
207
|
+
set_schema lib/pod4/pg_interface.rb /^ def set_schema(schema) $/;" F class:Pod4.PgInterface
|
208
|
+
set_schema lib/pod4/sequel_interface.rb /^ def set_schema(schema)$/;" F class:Pod4.SequelInterface
|
209
|
+
set_schema lib/pod4/tds_interface.rb /^ def set_schema(schema)$/;" F class:Pod4.TdsInterface
|
210
|
+
set_table lib/pod4/pg_interface.rb /^ def set_table(table)$/;" F class:Pod4.PgInterface
|
211
|
+
set_table lib/pod4/sequel_interface.rb /^ def set_table(table)$/;" F class:Pod4.SequelInterface
|
212
|
+
set_table lib/pod4/tds_interface.rb /^ def set_table(table)$/;" F class:Pod4.TdsInterface
|
213
|
+
set_target lib/pod4/nebulous_interface.rb /^ def set_target(target)$/;" F class:Pod4.NebulousInterface
|
214
|
+
set_verb lib/pod4/nebulous_interface.rb /^ def set_verb(action, verb, *paramKeys)$/;" F class:Pod4.NebulousInterface
|
215
|
+
sql_delete lib/pod4/sql_helper.rb /^ def sql_delete(selection)$/;" f class:Pod4.SQLHelper
|
216
|
+
sql_insert lib/pod4/sql_helper.rb /^ def sql_insert(fldsValues)$/;" f class:Pod4.SQLHelper
|
217
|
+
sql_insert lib/pod4/tds_interface.rb /^ def sql_insert(record)$/;" f class:Pod4.TdsInterface
|
218
|
+
sql_select lib/pod4/sql_helper.rb /^ def sql_select(fields, selection)$/;" f class:Pod4.SQLHelper
|
219
|
+
sql_subst lib/pod4/sql_helper.rb /^ def sql_subst(sql, *args)$/;" f class:Pod4.SQLHelper
|
220
|
+
sql_update lib/pod4/sql_helper.rb /^ def sql_update(fldsValues, selection)$/;" f class:Pod4.SQLHelper
|
221
|
+
sql_where lib/pod4/sql_helper.rb /^ def sql_where(selection)$/;" f class:Pod4.SQLHelper
|
222
|
+
table lib/pod4/pg_interface.rb /^ def table$/;" F class:Pod4.PgInterface
|
223
|
+
table lib/pod4/pg_interface.rb /^ def table; self.class.table; end$/;" f class:Pod4.PgInterface
|
224
|
+
table lib/pod4/sequel_interface.rb /^ def table$/;" F class:Pod4.SequelInterface
|
225
|
+
table lib/pod4/sequel_interface.rb /^ def table; self.class.table; end$/;" f class:Pod4.SequelInterface
|
226
|
+
table lib/pod4/tds_interface.rb /^ def table$/;" F class:Pod4.TdsInterface
|
227
|
+
table lib/pod4/tds_interface.rb /^ def table; self.class.table; end$/;" f class:Pod4.TdsInterface
|
228
|
+
target lib/pod4/nebulous_interface.rb /^ def target$/;" F class:Pod4.NebulousInterface
|
229
|
+
test_for_invalid_status lib/pod4/model.rb /^ def test_for_invalid_status(action, status)$/;" F class:Pod4.Model
|
230
|
+
test_for_octo lib/pod4/model.rb /^ def test_for_octo(param)$/;" F class:Pod4.Model
|
231
|
+
to_h lib/pod4/model.rb /^ def to_h$/;" f class:Pod4.Model
|
98
232
|
to_ot lib/pod4/model.rb /^ def to_ot$/;" f class:Pod4.Model
|
99
|
-
type lib/pod4/alert.rb /^ attr_reader :type
|
233
|
+
type lib/pod4/alert.rb /^ attr_reader :type$/;" f class:Pod4.Alert
|
100
234
|
update lib/pod4/interface.rb /^ def update(id, record)$/;" f class:Pod4.Interface
|
101
235
|
update lib/pod4/model.rb /^ def update$/;" f class:Pod4.Model
|
102
236
|
update lib/pod4/nebulous_interface.rb /^ def update(id, record)$/;" f class:Pod4.NebulousInterface
|
237
|
+
update lib/pod4/null_interface.rb /^ def update(id, record)$/;" f class:Pod4.NullInterface
|
238
|
+
update lib/pod4/pg_interface.rb /^ def update(id, record)$/;" f class:Pod4.PgInterface
|
103
239
|
update lib/pod4/sequel_interface.rb /^ def update(id, record)$/;" f class:Pod4.SequelInterface
|
240
|
+
update lib/pod4/tds_interface.rb /^ def update(id, record)$/;" f class:Pod4.TdsInterface
|
241
|
+
update spec/common/nebulous_interface_spec.rb /^ def update(id, name, price)$/;" f class:FakeRequester
|
104
242
|
validate lib/pod4/model.rb /^ def validate$/;" f class:Pod4.Model
|
243
|
+
validate_params lib/pod4/nebulous_interface.rb /^ def validate_params$/;" F class:Pod4.NebulousInterface
|
105
244
|
verb_for lib/pod4/nebulous_interface.rb /^ def verb_for(action)$/;" f class:Pod4.NebulousInterface
|
106
|
-
verbs lib/pod4/nebulous_interface.rb /^
|
245
|
+
verbs lib/pod4/nebulous_interface.rb /^ def verbs; {}; end$/;" F class:Pod4.NebulousInterface
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jones
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devnull
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.5.
|
122
|
+
rubygems_version: 2.5.2
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Totally not an ORM
|