lims-core 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +5 -0
- data/.rspec +1 -0
- data/.rvmrc +2 -0
- data/.travis.yml +2 -0
- data/.vimrc +27 -0
- data/.yard_templates/default/layout/html/footer.erb +0 -0
- data/.yardopts +1 -0
- data/Gemfile +54 -0
- data/Gemfile.lock +197 -0
- data/Guardfile +21 -0
- data/Guardfile.tmux +28 -0
- data/README.markdown +67 -0
- data/Rakefile +16 -0
- data/config/database.yml +16 -0
- data/doc/Array.html +116 -0
- data/doc/Array/ArrayLoggerPersistor.html +152 -0
- data/doc/Lims.html +114 -0
- data/doc/Lims/Core.html +178 -0
- data/doc/Lims/Core/Action.html +91 -0
- data/doc/Lims/Core/Actions.html +116 -0
- data/doc/Lims/Core/Actions/Action.html +216 -0
- data/doc/Lims/Core/Actions/Action/AfterEval.html +853 -0
- data/doc/Lims/Core/Actions/Action/InvalidParameters.html +268 -0
- data/doc/Lims/Core/Actions/ActionGroup.html +196 -0
- data/doc/Lims/Core/Actions/ActionGroup/AfterEval.html +315 -0
- data/doc/Lims/Core/Actions/BulkAction.html +224 -0
- data/doc/Lims/Core/Actions/BulkAction/AfterEval.html +253 -0
- data/doc/Lims/Core/Actions/TestActionGroup.html +101 -0
- data/doc/Lims/Core/Actions/TestActionGroup/Action.html +133 -0
- data/doc/Lims/Core/Actions/TestActionGroup/ActionGroup.html +127 -0
- data/doc/Lims/Core/Base.html +287 -0
- data/doc/Lims/Core/Base/AccessibleViaSuper.html +252 -0
- data/doc/Lims/Core/Base/ClassMethod.html +177 -0
- data/doc/Lims/Core/Base/HashString.html +177 -0
- data/doc/Lims/Core/Base/IsArrayOf.html +606 -0
- data/doc/Lims/Core/Base/State.html +130 -0
- data/doc/Lims/Core/Organization.html +113 -0
- data/doc/Lims/Core/Organization/Batch.html +106 -0
- data/doc/Lims/Core/Persistence.html +267 -0
- data/doc/Lims/Core/Persistence/ComparisonFilter.html +318 -0
- data/doc/Lims/Core/Persistence/Filter.html +252 -0
- data/doc/Lims/Core/Persistence/IdentityMap.html +409 -0
- data/doc/Lims/Core/Persistence/IdentityMap/Class.html +144 -0
- data/doc/Lims/Core/Persistence/IdentityMap/DuplicateError.html +126 -0
- data/doc/Lims/Core/Persistence/IdentityMap/DuplicateIdError.html +136 -0
- data/doc/Lims/Core/Persistence/IdentityMap/DuplicateObjectError.html +136 -0
- data/doc/Lims/Core/Persistence/IdentityMapClass.html +133 -0
- data/doc/Lims/Core/Persistence/Logger.html +105 -0
- data/doc/Lims/Core/Persistence/Logger/Persistor.html +334 -0
- data/doc/Lims/Core/Persistence/Logger/Session.html +452 -0
- data/doc/Lims/Core/Persistence/Logger/Store.html +470 -0
- data/doc/Lims/Core/Persistence/MessageBus.html +871 -0
- data/doc/Lims/Core/Persistence/MessageBus/ConnectionError.html +123 -0
- data/doc/Lims/Core/Persistence/MessageBus/InvalidSettingsError.html +122 -0
- data/doc/Lims/Core/Persistence/MultiCriteriaFilter.html +293 -0
- data/doc/Lims/Core/Persistence/PersistAssociationTrait.html +91 -0
- data/doc/Lims/Core/Persistence/PersistableTrait.html +91 -0
- data/doc/Lims/Core/Persistence/Persistor.html +3072 -0
- data/doc/Lims/Core/Persistence/Persistor/DuplicateError.html +205 -0
- data/doc/Lims/Core/Persistence/Persistor/DuplicateIdError.html +147 -0
- data/doc/Lims/Core/Persistence/Persistor/DuplicateObjectError.html +147 -0
- data/doc/Lims/Core/Persistence/PersistorTrait.html +91 -0
- data/doc/Lims/Core/Persistence/ResourceState.html +1738 -0
- data/doc/Lims/Core/Persistence/Search.html +269 -0
- data/doc/Lims/Core/Persistence/Search/CreateSearch.html +251 -0
- data/doc/Lims/Core/Persistence/Search/SearchPersistor.html +240 -0
- data/doc/Lims/Core/Persistence/Search/SearchSequelPersistor.html +396 -0
- data/doc/Lims/Core/Persistence/Sequel.html +117 -0
- data/doc/Lims/Core/Persistence/Sequel/Filters.html +462 -0
- data/doc/Lims/Core/Persistence/Sequel/ForTest.html +101 -0
- data/doc/Lims/Core/Persistence/Sequel/ForTest/Name.html +137 -0
- data/doc/Lims/Core/Persistence/Sequel/ForTest/Name/NamePersitor.html +143 -0
- data/doc/Lims/Core/Persistence/Sequel/Migrations.html +266 -0
- data/doc/Lims/Core/Persistence/Sequel/Persistor.html +665 -0
- data/doc/Lims/Core/Persistence/Sequel/Session.html +501 -0
- data/doc/Lims/Core/Persistence/Sequel/Store.html +417 -0
- data/doc/Lims/Core/Persistence/Session.html +2751 -0
- data/doc/Lims/Core/Persistence/Session/UnmanagedObjectError.html +111 -0
- data/doc/Lims/Core/Persistence/StateGroup.html +696 -0
- data/doc/Lims/Core/Persistence/StateList.html +498 -0
- data/doc/Lims/Core/Persistence/Store.html +695 -0
- data/doc/Lims/Core/Persistence/UuidResource.html +1044 -0
- data/doc/Lims/Core/Persistence/UuidResource/InvalidUuidError.html +111 -0
- data/doc/Lims/Core/Persistence/UuidResource/UuidResourcePersistor.html +337 -0
- data/doc/Lims/Core/Persistence/Uuidable.html +799 -0
- data/doc/Lims/Core/Persistor.html +320 -0
- data/doc/Lims/Core/Resource.html +165 -0
- data/doc/Object.html +228 -0
- data/doc/SessionSpec.html +101 -0
- data/doc/SessionSpec/Model.html +279 -0
- data/doc/SessionSpec/Model/ModelPersistor.html +327 -0
- data/doc/_index.html +732 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +127 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +127 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +167 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +1894 -0
- data/doc/top-level-namespace.html +100 -0
- data/lib/common.rb +18 -0
- data/lib/lims-core.rb +29 -0
- data/lib/lims-core/actions.rb +10 -0
- data/lib/lims-core/actions/action.rb +185 -0
- data/lib/lims-core/actions/action_group.rb +54 -0
- data/lib/lims-core/actions/bulk_action.rb +65 -0
- data/lib/lims-core/base.rb +132 -0
- data/lib/lims-core/helpers.rb +41 -0
- data/lib/lims-core/persistence.rb +15 -0
- data/lib/lims-core/persistence/comparison_filter.rb +54 -0
- data/lib/lims-core/persistence/filter.rb +23 -0
- data/lib/lims-core/persistence/identity_map.rb +55 -0
- data/lib/lims-core/persistence/logger/all.rb +5 -0
- data/lib/lims-core/persistence/logger/persistor.rb +35 -0
- data/lib/lims-core/persistence/logger/session.rb +30 -0
- data/lib/lims-core/persistence/logger/store.rb +37 -0
- data/lib/lims-core/persistence/message_bus.rb +131 -0
- data/lib/lims-core/persistence/multi_criteria_filter.rb +50 -0
- data/lib/lims-core/persistence/persist_association_trait.rb +96 -0
- data/lib/lims-core/persistence/persistable_trait.rb +150 -0
- data/lib/lims-core/persistence/persistor.rb +495 -0
- data/lib/lims-core/persistence/resource_state.rb +157 -0
- data/lib/lims-core/persistence/search.rb +3 -0
- data/lib/lims-core/persistence/search/all.rb +3 -0
- data/lib/lims-core/persistence/search/create_search.rb +55 -0
- data/lib/lims-core/persistence/search/search_persistor.rb +45 -0
- data/lib/lims-core/persistence/search/search_sequel_persistor.rb +40 -0
- data/lib/lims-core/persistence/sequel.rb +14 -0
- data/lib/lims-core/persistence/sequel/filters.rb +106 -0
- data/lib/lims-core/persistence/sequel/migrations.rb +14 -0
- data/lib/lims-core/persistence/sequel/migrations/add_audit_tables.rb +147 -0
- data/lib/lims-core/persistence/sequel/migrations/initial.rb +156 -0
- data/lib/lims-core/persistence/sequel/persistor.rb +200 -0
- data/lib/lims-core/persistence/sequel/session.rb +136 -0
- data/lib/lims-core/persistence/sequel/store.rb +37 -0
- data/lib/lims-core/persistence/session.rb +409 -0
- data/lib/lims-core/persistence/state_group.rb +97 -0
- data/lib/lims-core/persistence/state_list.rb +56 -0
- data/lib/lims-core/persistence/store.rb +73 -0
- data/lib/lims-core/persistence/uuid_resource.rb +115 -0
- data/lib/lims-core/persistence/uuid_resource_persistor.rb +43 -0
- data/lib/lims-core/persistence/uuidable.rb +107 -0
- data/lib/lims-core/resource.rb +21 -0
- data/lib/lims-core/subclass_tracker.rb +30 -0
- data/lib/lims-core/version.rb +5 -0
- data/lims-core.gemspec +40 -0
- data/makefile +52 -0
- data/showoff/core-2012-06-11/core/01_slide.md +237 -0
- data/showoff/core-2012-06-11/core/02_slide.md +110 -0
- data/showoff/core-2012-06-11/custom.css +44 -0
- data/showoff/core-2012-06-11/main/01_slide.md +53 -0
- data/showoff/core-2012-06-11/showoff.json +10 -0
- data/showoff/core-2012-06-11/tp1.tpl +1 -0
- data/spec/actions/action_group_spec.rb +39 -0
- data/spec/actions/spec_helper.rb +1 -0
- data/spec/persistence/identity_map_spec.rb +55 -0
- data/spec/persistence/logger/spec_helper.rb +7 -0
- data/spec/persistence/logger/store_spec.rb +48 -0
- data/spec/persistence/message_bus_spec.rb +76 -0
- data/spec/persistence/sequel/session_spec.rb +125 -0
- data/spec/persistence/sequel/spec_helper.rb +39 -0
- data/spec/persistence/sequel/store_shared.rb +25 -0
- data/spec/persistence/sequel/store_spec.rb +22 -0
- data/spec/persistence/session_spec.rb +199 -0
- data/spec/persistence/spec_helper.rb +2 -0
- data/spec/persistence/uuid_resource_spec.rb +80 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/subclass_tracker_sperc.rb +62 -0
- data/utils/constant_tree.rb +29 -0
- data/utils/stack.rb +48 -0
- metadata +402 -0
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
RSpec::Core::RakeTask.new(:spec)
|
4
|
+
task :default => :spec
|
5
|
+
|
6
|
+
namespace :db do
|
7
|
+
|
8
|
+
task :mysqltest do
|
9
|
+
`echo "DROP DATABASE IF EXISTS test_lims_core;" | mysql -u root`
|
10
|
+
`echo "CREATE DATABASE test_lims_core;" | mysql -u root`
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
|
data/config/database.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
development:
|
2
|
+
adapter: postgres
|
3
|
+
database: core
|
4
|
+
|
5
|
+
test:
|
6
|
+
adapter: sqlite
|
7
|
+
database: test.db
|
8
|
+
|
9
|
+
test_mysql:
|
10
|
+
adapter: mysql2
|
11
|
+
encoding: utf8
|
12
|
+
charset: utf8
|
13
|
+
database: test_lims_core
|
14
|
+
username: root
|
15
|
+
password:
|
16
|
+
socket: /tmp/mysql.sock
|
data/doc/Array.html
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Array
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="_index.html">Index (A)</a> »
|
37
|
+
|
38
|
+
|
39
|
+
<span class="title">Array</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Class: Array
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName"><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></li>
|
73
|
+
|
74
|
+
<li class="next">Array</li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
<a href="#" class="inheritanceTree">show all</a>
|
78
|
+
|
79
|
+
</dd>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<dt class="r2 last">Defined in:</dt>
|
90
|
+
<dd class="r2 last">spec/persistence/logger/store_spec.rb</dd>
|
91
|
+
|
92
|
+
</dl>
|
93
|
+
<div class="clear"></div>
|
94
|
+
|
95
|
+
<h2>Defined Under Namespace</h2>
|
96
|
+
<p class="children">
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Array/ArrayLoggerPersistor.html" title="Array::ArrayLoggerPersistor (class)">ArrayLoggerPersistor</a></span>
|
102
|
+
|
103
|
+
|
104
|
+
</p>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
|
114
|
+
|
115
|
+
</body>
|
116
|
+
</html>
|
@@ -0,0 +1,152 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Array::ArrayLoggerPersistor
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../_index.html">Index (A)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">ArrayLoggerPersistor</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Class: Array::ArrayLoggerPersistor
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName"><span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html" title="Lims::Core::Persistence::Persistor (class)">Lims::Core::Persistence::Persistor</a></span></span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></li>
|
73
|
+
|
74
|
+
<li class="next"><span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html" title="Lims::Core::Persistence::Persistor (class)">Lims::Core::Persistence::Persistor</a></span></li>
|
75
|
+
|
76
|
+
<li class="next">Array::ArrayLoggerPersistor</li>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
<a href="#" class="inheritanceTree">show all</a>
|
80
|
+
|
81
|
+
</dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<dt class="r2">Includes:</dt>
|
89
|
+
<dd class="r2"><span class='object_link'><a href="../Lims/Core/Persistence/Logger/Persistor.html" title="Lims::Core::Persistence::Logger::Persistor (module)">Lims::Core::Persistence::Logger::Persistor</a></span></dd>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dt class="r1 last">Defined in:</dt>
|
96
|
+
<dd class="r1 last">spec/persistence/logger/store_spec.rb</dd>
|
97
|
+
|
98
|
+
</dl>
|
99
|
+
<div class="clear"></div>
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
<h2>Method Summary</h2>
|
127
|
+
|
128
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Lims/Core/Persistence/Logger/Persistor.html" title="Lims::Core::Persistence::Logger::Persistor (module)">Lims::Core::Persistence::Logger::Persistor</a></span></h3>
|
129
|
+
<p class="inherited"><span class='object_link'><a href="../Lims/Core/Persistence/Logger/Persistor.html#save_as_aggregation-instance_method" title="Lims::Core::Persistence::Logger::Persistor#save_as_aggregation (method)">#save_as_aggregation</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Logger/Persistor.html#save_raw-instance_method" title="Lims::Core::Persistence::Logger::Persistor#save_raw (method)">#save_raw</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Logger/Persistor.html#save_raw_association-instance_method" title="Lims::Core::Persistence::Logger::Persistor#save_raw_association (method)">#save_raw_association</a></span></p>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html" title="Lims::Core::Persistence::Persistor (class)">Lims::Core::Persistence::Persistor</a></span></h3>
|
139
|
+
<p class="inherited"><span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#%5B%5D-instance_method" title="Lims::Core::Persistence::Persistor#[] (method)">#[]</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#bind_state_to_id-instance_method" title="Lims::Core::Persistence::Persistor#bind_state_to_id (method)">#bind_state_to_id</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#bind_state_to_resource-instance_method" title="Lims::Core::Persistence::Persistor#bind_state_to_resource (method)">#bind_state_to_resource</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#bulk_delete-instance_method" title="Lims::Core::Persistence::Persistor#bulk_delete (method)">#bulk_delete</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#bulk_delete_raw-instance_method" title="Lims::Core::Persistence::Persistor#bulk_delete_raw (method)">#bulk_delete_raw</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#bulk_insert-instance_method" title="Lims::Core::Persistence::Persistor#bulk_insert (method)">#bulk_insert</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#bulk_retrieve-instance_method" title="Lims::Core::Persistence::Persistor#bulk_retrieve (method)">#bulk_retrieve</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#bulk_update-instance_method" title="Lims::Core::Persistence::Persistor#bulk_update (method)">#bulk_update</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#children-instance_method" title="Lims::Core::Persistence::Persistor#children (method)">#children</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#count-instance_method" title="Lims::Core::Persistence::Persistor#count (method)">#count</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#deletable_children-instance_method" title="Lims::Core::Persistence::Persistor#deletable_children (method)">#deletable_children</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#deletable_parents-instance_method" title="Lims::Core::Persistence::Persistor#deletable_parents (method)">#deletable_parents</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#dirty_key_for-instance_method" title="Lims::Core::Persistence::Persistor#dirty_key_for (method)">#dirty_key_for</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#for_each_in_slice-instance_method" title="Lims::Core::Persistence::Persistor#for_each_in_slice (method)">#for_each_in_slice</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#id_for-instance_method" title="Lims::Core::Persistence::Persistor#id_for (method)">#id_for</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#ids_for-instance_method" title="Lims::Core::Persistence::Persistor#ids_for (method)">#ids_for</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#inherited-class_method" title="Lims::Core::Persistence::Persistor.inherited (method)">inherited</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#initialize-instance_method" title="Lims::Core::Persistence::Persistor#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#invalid_resource%3F-instance_method" title="Lims::Core::Persistence::Persistor#invalid_resource? (method)">#invalid_resource?</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#load_children-instance_method" title="Lims::Core::Persistence::Persistor#load_children (method)">#load_children</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#model-instance_method" title="Lims::Core::Persistence::Persistor#model (method)">#model</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#new_from_attributes-instance_method" title="Lims::Core::Persistence::Persistor#new_from_attributes (method)">#new_from_attributes</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#new_object-instance_method" title="Lims::Core::Persistence::Persistor#new_object (method)">#new_object</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#object_for-instance_method" title="Lims::Core::Persistence::Persistor#object_for (method)">#object_for</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#on_object_load-instance_method" title="Lims::Core::Persistence::Persistor#on_object_load (method)">#on_object_load</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#parents-instance_method" title="Lims::Core::Persistence::Persistor#parents (method)">#parents</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#parents_for_attributes-instance_method" title="Lims::Core::Persistence::Persistor#parents_for_attributes (method)">#parents_for_attributes</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#purge_invalid_object-instance_method" title="Lims::Core::Persistence::Persistor#purge_invalid_object (method)">#purge_invalid_object</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#register_model-class_method" title="Lims::Core::Persistence::Persistor.register_model (method)">register_model</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#retrieve-instance_method" title="Lims::Core::Persistence::Persistor#retrieve (method)">#retrieve</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#slice-instance_method" title="Lims::Core::Persistence::Persistor#slice (method)">#slice</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#state_for-instance_method" title="Lims::Core::Persistence::Persistor#state_for (method)">#state_for</a></span>, <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#state_for_id-instance_method" title="Lims::Core::Persistence::Persistor#state_for_id (method)">#state_for_id</a></span></p>
|
140
|
+
<div id="constructor_details" class="method_details_list">
|
141
|
+
<h2>Constructor Details</h2>
|
142
|
+
|
143
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Lims/Core/Persistence/Persistor.html#initialize-instance_method" title="Lims::Core::Persistence::Persistor#initialize (method)">Lims::Core::Persistence::Persistor</a></span></p>
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
</body>
|
152
|
+
</html>
|
data/doc/Lims.html
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Lims
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="_index.html">Index (L)</a> »
|
37
|
+
|
38
|
+
|
39
|
+
<span class="title">Lims</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Module: Lims
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
75
|
+
<dd class="r1 last">lib/lims-core.rb<span class="defines">,<br />
|
76
|
+
lib/lims-core/version.rb,<br /> lib/lims-core/persistence/message_bus.rb,<br /> lib/lims-core/persistence/sequel/migrations.rb</span>
|
77
|
+
</dd>
|
78
|
+
|
79
|
+
</dl>
|
80
|
+
<div class="clear"></div>
|
81
|
+
|
82
|
+
<h2>Overview</h2><div class="docstring">
|
83
|
+
<div class="discussion">
|
84
|
+
|
85
|
+
<p>A namespace containing migrations mixin</p>
|
86
|
+
|
87
|
+
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
<div class="tags">
|
91
|
+
|
92
|
+
|
93
|
+
</div><h2>Defined Under Namespace</h2>
|
94
|
+
<p class="children">
|
95
|
+
|
96
|
+
|
97
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Lims/Core.html" title="Lims::Core (module)">Core</a></span>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
</p>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
|
112
|
+
|
113
|
+
</body>
|
114
|
+
</html>
|
data/doc/Lims/Core.html
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Lims::Core
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../_index.html">Index (C)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../Lims.html" title="Lims (module)">Lims</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">Core</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Module: Lims::Core
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
75
|
+
<dd class="r1 last">lib/lims-core.rb<span class="defines">,<br />
|
76
|
+
lib/lims-core/base.rb,<br /> lib/lims-core/version.rb,<br /> lib/lims-core/actions.rb,<br /> lib/lims-core/resource.rb,<br /> lib/lims-core/persistence.rb,<br /> lib/lims-core/actions/action.rb,<br /> spec/actions/action_group_spec.rb,<br /> lib/lims-core/persistence/store.rb,<br /> lib/lims-core/persistence/filter.rb,<br /> spec/persistence/message_bus_spec.rb,<br /> lib/lims-core/persistence/session.rb,<br /> lib/lims-core/actions/bulk_action.rb,<br /> lib/lims-core/persistence/uuidable.rb,<br /> lib/lims-core/actions/action_group.rb,<br /> spec/persistence/logger/store_spec.rb,<br /> lib/lims-core/persistence/persistor.rb,<br /> spec/persistence/uuid_resource_spec.rb,<br /> lib/lims-core/persistence/state_list.rb,<br /> lib/lims-core/persistence/state_group.rb,<br /> lib/lims-core/persistence/message_bus.rb,<br /> lib/lims-core/persistence/sequel/store.rb,<br /> lib/lims-core/persistence/logger/store.rb,<br /> lib/lims-core/persistence/identity_map.rb,<br /> lib/lims-core/persistence/uuid_resource.rb,<br /> lib/lims-core/persistence/logger/session.rb,<br /> lib/lims-core/persistence/sequel/session.rb,<br /> lib/lims-core/persistence/sequel/filters.rb,<br /> lib/lims-core/persistence/resource_state.rb,<br /> lib/lims-core/persistence/logger/persistor.rb,<br /> lib/lims-core/persistence/sequel/persistor.rb,<br /> lib/lims-core/persistence/persistable_trait.rb,<br /> lib/lims-core/persistence/sequel/migrations.rb,<br /> lib/lims-core/persistence/comparison_filter.rb,<br /> lib/lims-core/persistence/search/create_search.rb,<br /> lib/lims-core/persistence/multi_criteria_filter.rb,<br /> lib/lims-core/persistence/search/search_persistor.rb,<br /> lib/lims-core/persistence/uuid_resource_persistor.rb,<br /> lib/lims-core/persistence/persist_association_trait.rb,<br /> lib/lims-core/persistence/search/search_sequel_persistor.rb</span>
|
77
|
+
</dd>
|
78
|
+
|
79
|
+
</dl>
|
80
|
+
<div class="clear"></div>
|
81
|
+
|
82
|
+
<h2>Overview</h2><div class="docstring">
|
83
|
+
<div class="discussion">
|
84
|
+
|
85
|
+
<p>The Core of the <span class='object_link'><a href="../Lims.html" title="Lims (module)">LIM S</a></span>ystem. Includes the basic classes corresponding
|
86
|
+
to the :</p>
|
87
|
+
<ol><li>
|
88
|
+
<p>Resource base class</p>
|
89
|
+
</li><li>
|
90
|
+
<p>Persistence Layer</p>
|
91
|
+
</li></ol>
|
92
|
+
|
93
|
+
<p>The Core is split in the following submodule/namespace :</p>
|
94
|
+
<ol><li>
|
95
|
+
<p><span class='object_link'><a href="Core/Actions.html" title="Lims::Core::Actions (module)">Actions</a></span> High level <span class='object_link'><a href="Core/Actions/Action.html" title="Lims::Core::Actions::Action (module)">actions</a></span> that can be performed on
|
96
|
+
things.</p>
|
97
|
+
</li><li>
|
98
|
+
<p><span class='object_link'><a href="Core/Persistence.html" title="Lims::Core::Persistence (module)">Persistence</a></span></p>
|
99
|
+
</li></ol>
|
100
|
+
|
101
|
+
<p>This partition is more for clarity/documentation purposes and it's not
|
102
|
+
meant to be really tight. However it's more likely than the submodules
|
103
|
+
dependency will be a tree than a graph, (but it's not a necessity).</p>
|
104
|
+
|
105
|
+
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
<div class="tags">
|
109
|
+
|
110
|
+
|
111
|
+
</div><h2>Defined Under Namespace</h2>
|
112
|
+
<p class="children">
|
113
|
+
|
114
|
+
|
115
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Core/Actions.html" title="Lims::Core::Actions (module)">Actions</a></span>, <span class='object_link'><a href="Core/Base.html" title="Lims::Core::Base (module)">Base</a></span>, <span class='object_link'><a href="Core/Persistence.html" title="Lims::Core::Persistence (module)">Persistence</a></span>, <span class='object_link'><a href="Core/Resource.html" title="Lims::Core::Resource (module)">Resource</a></span>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Core/Persistor.html" title="Lims::Core::Persistor (class)">Persistor</a></span>
|
120
|
+
|
121
|
+
|
122
|
+
</p>
|
123
|
+
|
124
|
+
<h2>Constant Summary</h2>
|
125
|
+
|
126
|
+
<dl class="constants">
|
127
|
+
|
128
|
+
<dt id="MINOR_DEV-constant" class="">MINOR_DEV =
|
129
|
+
<div class="docstring">
|
130
|
+
<div class="discussion">
|
131
|
+
|
132
|
+
<p>Test a way to increment version in a merged-friendly way Each user need to
|
133
|
+
add an x, in its appropriate section (this will avoid collision) and clear
|
134
|
+
eventually the minor version of everybody . Please leave the marker of
|
135
|
+
other developper</p>
|
136
|
+
|
137
|
+
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
<div class="tags">
|
141
|
+
|
142
|
+
|
143
|
+
</div>
|
144
|
+
</dt>
|
145
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>%{</span><span class='tstring_content'>
|
146
|
+
--llh1
|
147
|
+
--ke4
|
148
|
+
--mb14
|
149
|
+
</span><span class='tstring_end'>}</span></span></pre></dd>
|
150
|
+
|
151
|
+
<dt id="MAJOR_DEV-constant" class="">MAJOR_DEV =
|
152
|
+
|
153
|
+
</dt>
|
154
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>%{</span><span class='tstring_content'>
|
155
|
+
--llh1
|
156
|
+
--ke4
|
157
|
+
--mb14
|
158
|
+
</span><span class='tstring_end'>}</span></span></pre></dd>
|
159
|
+
|
160
|
+
<dt id="VERSION-constant" class="">VERSION =
|
161
|
+
|
162
|
+
</dt>
|
163
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>3.0.0.</span><span class='embexpr_beg'>#{</span><span class='const'>MAJOR_DEV</span><span class='period'>.</span><span class='id scan'>scan</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\sx</span><span class='regexp_end'>/i</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id size'>size</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='const'>MINOR_DEV</span><span class='period'>.</span><span class='id scan'>scan</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\sx</span><span class='regexp_end'>/i</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id size'>size</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span></pre></dd>
|
164
|
+
|
165
|
+
</dl>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</div>
|
175
|
+
|
176
|
+
|
177
|
+
</body>
|
178
|
+
</html>
|