lafcadio 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lafcadio.rb +1 -1
- data/lib/lafcadio.rb~ +1 -1
- data/lib/lafcadio/domain.rb +10 -9
- data/lib/lafcadio/domain.rb~ +5 -1
- metadata +97 -102
data/lib/lafcadio.rb
CHANGED
data/lib/lafcadio.rb~
CHANGED
data/lib/lafcadio/domain.rb
CHANGED
@@ -561,15 +561,16 @@ module Lafcadio
|
|
561
561
|
|
562
562
|
def self.try_load_xml_parser
|
563
563
|
require 'lafcadio/domain'
|
564
|
-
dirName = LafcadioConfig.new['classDefinitionDir']
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
564
|
+
if ( dirName = LafcadioConfig.new['classDefinitionDir'] )
|
565
|
+
xmlFileName = self.basename + '.xml'
|
566
|
+
xmlPath = File.join( dirName, xmlFileName )
|
567
|
+
xml = ''
|
568
|
+
begin
|
569
|
+
File.open( xmlPath ) { |file| xml = file.readlines.join }
|
570
|
+
ClassDefinitionXmlParser.new( self, xml )
|
571
|
+
rescue Errno::ENOENT
|
572
|
+
# no xml file, so no @xmlParser
|
573
|
+
end
|
573
574
|
end
|
574
575
|
end
|
575
576
|
|
data/lib/lafcadio/domain.rb~
CHANGED
@@ -605,7 +605,7 @@ module Lafcadio
|
|
605
605
|
@error_messages = []
|
606
606
|
@fields = {}
|
607
607
|
@fields_set = []
|
608
|
-
|
608
|
+
reset_original_values_hash @fieldHash
|
609
609
|
check_fields = LafcadioConfig.new()['checkFields']
|
610
610
|
verify if %w( onInstantiate onAllStates ).include?( check_fields )
|
611
611
|
end
|
@@ -699,6 +699,10 @@ module Lafcadio
|
|
699
699
|
def post_commit_trigger
|
700
700
|
nil
|
701
701
|
end
|
702
|
+
|
703
|
+
def reset_original_values_hash( f = @fields ) #:nodoc:
|
704
|
+
@original_values = OriginalValuesHash.new( f.clone )
|
705
|
+
end
|
702
706
|
|
703
707
|
def set_field( field, value ) #:nodoc:
|
704
708
|
if field.class <= DomainObjectField
|
metadata
CHANGED
@@ -1,128 +1,123 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: lafcadio
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.8.
|
7
|
-
date:
|
6
|
+
version: 0.8.3
|
7
|
+
date: 2006-03-21 00:00:00 -08:00
|
8
8
|
summary: Lafcadio is an object-relational mapping layer
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: sera@fhwang.net
|
12
12
|
homepage: http://lafcadio.rubyforge.org/
|
13
13
|
rubyforge_project:
|
14
|
-
description:
|
15
|
-
treat database rows like first-class Ruby objects, minimizing the amount of time
|
16
|
-
you have to spend thinking about MySQL vagaries so you can spend more time
|
17
|
-
thinking about your program's logic. It also offers extensive support for
|
18
|
-
unit-testing complex database logic without running cumbersome setup scripts."
|
14
|
+
description: Lafcadio is an object-relational mapping layer for Ruby and MySQL. It lets you treat database rows like first-class Ruby objects, minimizing the amount of time you have to spend thinking about MySQL vagaries so you can spend more time thinking about your program's logic. It also offers extensive support for unit-testing complex database logic without running cumbersome setup scripts.
|
19
15
|
autorequire: lafcadio
|
20
16
|
default_executable:
|
21
17
|
bindir: bin
|
22
18
|
has_rdoc: false
|
23
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
24
20
|
requirements:
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
29
24
|
version:
|
30
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
31
28
|
authors:
|
32
|
-
|
29
|
+
- Francis Hwang
|
33
30
|
files:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
31
|
+
- lib/lafcadio
|
32
|
+
- lib/lafcadio.rb
|
33
|
+
- lib/lafcadio.rb~
|
34
|
+
- lib/lafcadio/depend.rb
|
35
|
+
- lib/lafcadio/domain.rb
|
36
|
+
- lib/lafcadio/domain.rb~
|
37
|
+
- lib/lafcadio/mock.rb
|
38
|
+
- lib/lafcadio/objectField.rb
|
39
|
+
- lib/lafcadio/objectStore.rb
|
40
|
+
- lib/lafcadio/objectStore.rb~
|
41
|
+
- lib/lafcadio/query.rb
|
42
|
+
- lib/lafcadio/query.rb~
|
43
|
+
- lib/lafcadio/schema.rb
|
44
|
+
- lib/lafcadio/test
|
45
|
+
- lib/lafcadio/test.rb
|
46
|
+
- lib/lafcadio/util.rb
|
47
|
+
- lib/lafcadio/test/testconfig.dat
|
51
48
|
test_files: []
|
49
|
+
|
52
50
|
rdoc_options: []
|
51
|
+
|
53
52
|
extra_rdoc_files: []
|
53
|
+
|
54
54
|
executables:
|
55
|
-
|
55
|
+
- lafcadio_schema
|
56
56
|
extensions: []
|
57
|
+
|
57
58
|
requirements: []
|
59
|
+
|
58
60
|
dependencies:
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
123
|
-
requirements:
|
124
|
-
-
|
125
|
-
- ">"
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
version: 0.0.0
|
128
|
-
version:
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: contxtlservice
|
63
|
+
version_requirement:
|
64
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.0.0
|
69
|
+
version:
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: englishext
|
72
|
+
version_requirement:
|
73
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.0.0
|
78
|
+
version:
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: extensions
|
81
|
+
version_requirement:
|
82
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 0.0.0
|
87
|
+
version:
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: log4r
|
90
|
+
version_requirement:
|
91
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 0.0.0
|
96
|
+
version:
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: month
|
99
|
+
version_requirement:
|
100
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 0.0.0
|
105
|
+
version:
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: queuehash
|
108
|
+
version_requirement:
|
109
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 0.0.0
|
114
|
+
version:
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: uscommerce
|
117
|
+
version_requirement:
|
118
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 0.0.0
|
123
|
+
version:
|