transient_objects 0.0.1.alpha → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.md +3 -0
- data/Rakefile +8 -1
- data/app/models/transient_objects/family_member_merger.rb +33 -0
- data/app/models/transient_objects/user_merger.rb +28 -0
- data/lib/transient_objects/engine.rb +3 -1
- data/lib/transient_objects/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +16 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +6 -0
- data/test/dummy/log/test.log +631 -0
- data/test/test_helper.rb +10 -11
- data/test/unit/transient_objects/family_member_merger_test.rb +49 -0
- data/test/unit/transient_objects/user_merger_test.rb +49 -0
- metadata +140 -11
- data/README.rdoc +0 -3
data/MIT-LICENSE
CHANGED
data/README.md
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
# Transient Objects [![Build Status](https://travis-ci.org/GregSilcox/transient_objects.png?branch=master)](https://travis-ci.org/GregSilcox/transient_objects)
|
2
|
+
|
3
|
+
Transient objects is a set of non-persitent objects that support persistent object, i.e. those with database tables. It also supports controllers, views, printing, emailing, etc. Because there are no persistent objects, there is no need to migrate a database, making testing very fast.
|
data/Rakefile
CHANGED
@@ -27,6 +27,12 @@ load 'rails/tasks/engine.rake'
|
|
27
27
|
|
28
28
|
Bundler::GemHelper.install_tasks
|
29
29
|
|
30
|
+
# rspec
|
31
|
+
require 'rspec/core/rake_task'
|
32
|
+
|
33
|
+
RSpec::Core::RakeTask.new(:spec)
|
34
|
+
|
35
|
+
#test::unit
|
30
36
|
require 'rake/testtask'
|
31
37
|
|
32
38
|
Rake::TestTask.new(:test) do |t|
|
@@ -37,4 +43,5 @@ Rake::TestTask.new(:test) do |t|
|
|
37
43
|
end
|
38
44
|
|
39
45
|
|
40
|
-
task :
|
46
|
+
# task default: :spec
|
47
|
+
task default: :test
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module TransientObjects
|
2
|
+
class FamilyMemberMerger # < ActiveRecord::Base
|
3
|
+
# attr_accessible :title, :body
|
4
|
+
def initialize families
|
5
|
+
@families = families
|
6
|
+
end
|
7
|
+
|
8
|
+
def families_with_duplicate_members
|
9
|
+
families = Array.new
|
10
|
+
@families.each do |family|
|
11
|
+
duplicate_members = find_duplicate_members family
|
12
|
+
families.push( [family, duplicate_members] ) unless
|
13
|
+
duplicate_members.empty?
|
14
|
+
end
|
15
|
+
families
|
16
|
+
end
|
17
|
+
|
18
|
+
def find_duplicate_members family
|
19
|
+
duplicate_members = Array.new
|
20
|
+
family.members.each do |member|
|
21
|
+
family.members.each do |other|
|
22
|
+
if member.name == other.name && member != other
|
23
|
+
duplicate_members.push [member, other]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
duplicate_members
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module TransientObjects
|
2
|
+
class UserMerger # < ActiveRecord::Base
|
3
|
+
# attr_accessible :title, :body
|
4
|
+
def initialize users
|
5
|
+
@users = users
|
6
|
+
end
|
7
|
+
|
8
|
+
def users_with_multiple_families
|
9
|
+
users_multi = Array.new
|
10
|
+
@users.each do |user|
|
11
|
+
users_multi.push( user ) if user.families.uniq.count > 1
|
12
|
+
end
|
13
|
+
users_multi
|
14
|
+
end
|
15
|
+
|
16
|
+
def families
|
17
|
+
families = Array.new
|
18
|
+
@users.each do |user|
|
19
|
+
fmm = FamilyMemberMerger.new user.families
|
20
|
+
dups = fmm.families_with_duplicate_members
|
21
|
+
families.push( [ user, dups ] ) unless
|
22
|
+
dups.empty?
|
23
|
+
end
|
24
|
+
families
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 0) do
|
15
|
+
|
16
|
+
end
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
+
[1m[35m (167.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
4
|
+
[1m[36m (145.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
6
|
+
Connecting to database specified by database.yml
|
@@ -0,0 +1,631 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
6
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7
|
+
Connecting to database specified by database.yml
|
8
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10
|
+
Connecting to database specified by database.yml
|
11
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
18
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19
|
+
Connecting to database specified by database.yml
|
20
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
21
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
22
|
+
Connecting to database specified by database.yml
|
23
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
24
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
25
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
26
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
27
|
+
Connecting to database specified by database.yml
|
28
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
30
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32
|
+
Connecting to database specified by database.yml
|
33
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
37
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
38
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
39
|
+
Connecting to database specified by database.yml
|
40
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
41
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
42
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
43
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
44
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
46
|
+
Connecting to database specified by database.yml
|
47
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
48
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
49
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
50
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
52
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
53
|
+
Connecting to database specified by database.yml
|
54
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
55
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
58
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
59
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
60
|
+
Connecting to database specified by database.yml
|
61
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
62
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
67
|
+
Connecting to database specified by database.yml
|
68
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
69
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
72
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
73
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
74
|
+
Connecting to database specified by database.yml
|
75
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
76
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
78
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
79
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
80
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
81
|
+
Connecting to database specified by database.yml
|
82
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
83
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
84
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
85
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
86
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
88
|
+
Connecting to database specified by database.yml
|
89
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
90
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
91
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
92
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
93
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
94
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
95
|
+
Connecting to database specified by database.yml
|
96
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
97
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
98
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
99
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
102
|
+
Connecting to database specified by database.yml
|
103
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
104
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
107
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
108
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
109
|
+
Connecting to database specified by database.yml
|
110
|
+
[1m[36m (16.3ms)[0m [1mbegin transaction[0m
|
111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
112
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
113
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
114
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
115
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
117
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
118
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
119
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
120
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
121
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
123
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
124
|
+
Connecting to database specified by database.yml
|
125
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
127
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
128
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
130
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
132
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
136
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
137
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
138
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
139
|
+
Connecting to database specified by database.yml
|
140
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
141
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
142
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
143
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
144
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
146
|
+
Connecting to database specified by database.yml
|
147
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
148
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
149
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
150
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
152
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
153
|
+
Connecting to database specified by database.yml
|
154
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
155
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
156
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
157
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
158
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
159
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
160
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
161
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
163
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
164
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
165
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
167
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
168
|
+
Connecting to database specified by database.yml
|
169
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
170
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
172
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
173
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
174
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
175
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
176
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
177
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
178
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
179
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
180
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
183
|
+
Connecting to database specified by database.yml
|
184
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
185
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
186
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
187
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
188
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
189
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
190
|
+
Connecting to database specified by database.yml
|
191
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
192
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
193
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
194
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
196
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
197
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
198
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
200
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
202
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
203
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
204
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
205
|
+
Connecting to database specified by database.yml
|
206
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
207
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
208
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
211
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
212
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
213
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
214
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
215
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
216
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
217
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
219
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
220
|
+
Connecting to database specified by database.yml
|
221
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
224
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
225
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
226
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
227
|
+
Connecting to database specified by database.yml
|
228
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
229
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
230
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
232
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
233
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
234
|
+
Connecting to database specified by database.yml
|
235
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
236
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
237
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
241
|
+
Connecting to database specified by database.yml
|
242
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
243
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
244
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
245
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
249
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
250
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
251
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
253
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
254
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
255
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
256
|
+
Connecting to database specified by database.yml
|
257
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
258
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
260
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
262
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
263
|
+
Connecting to database specified by database.yml
|
264
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
265
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
266
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
267
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
268
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
269
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
270
|
+
Connecting to database specified by database.yml
|
271
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
272
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
273
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
274
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
276
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
277
|
+
Connecting to database specified by database.yml
|
278
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
279
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
280
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
281
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
282
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
283
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
284
|
+
Connecting to database specified by database.yml
|
285
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
286
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
288
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
291
|
+
Connecting to database specified by database.yml
|
292
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
293
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
294
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
295
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
296
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
297
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
298
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
300
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
301
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
302
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
303
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
304
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
305
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
306
|
+
Connecting to database specified by database.yml
|
307
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
308
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
309
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
310
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
312
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
313
|
+
Connecting to database specified by database.yml
|
314
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
315
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
316
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
317
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
318
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
319
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
320
|
+
Connecting to database specified by database.yml
|
321
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
322
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
325
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
326
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
327
|
+
Connecting to database specified by database.yml
|
328
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
329
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
331
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
333
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
334
|
+
Connecting to database specified by database.yml
|
335
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
336
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
337
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
339
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
340
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
341
|
+
Connecting to database specified by database.yml
|
342
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
343
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
345
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
346
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
347
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
348
|
+
Connecting to database specified by database.yml
|
349
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
350
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
352
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
353
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
354
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
355
|
+
Connecting to database specified by database.yml
|
356
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
357
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
358
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
359
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
360
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
361
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
362
|
+
Connecting to database specified by database.yml
|
363
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
364
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
366
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
367
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
368
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
369
|
+
Connecting to database specified by database.yml
|
370
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
371
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
372
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
373
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
375
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
376
|
+
Connecting to database specified by database.yml
|
377
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
378
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
379
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
380
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
382
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
383
|
+
Connecting to database specified by database.yml
|
384
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
385
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
387
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
388
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
389
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
390
|
+
Connecting to database specified by database.yml
|
391
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
392
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
393
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
394
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
395
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
396
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
397
|
+
Connecting to database specified by database.yml
|
398
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
399
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
400
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
401
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
402
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
403
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
404
|
+
Connecting to database specified by database.yml
|
405
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
406
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
407
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
408
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
409
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
410
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
411
|
+
Connecting to database specified by database.yml
|
412
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
413
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
414
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
415
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
417
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
418
|
+
Connecting to database specified by database.yml
|
419
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
422
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
423
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
424
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
425
|
+
Connecting to database specified by database.yml
|
426
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
427
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
428
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
429
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
430
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
431
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
432
|
+
Connecting to database specified by database.yml
|
433
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
434
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
435
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
436
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
437
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
438
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
439
|
+
Connecting to database specified by database.yml
|
440
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
441
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
443
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
444
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
445
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
446
|
+
Connecting to database specified by database.yml
|
447
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
448
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
449
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
450
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
452
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
453
|
+
Connecting to database specified by database.yml
|
454
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
455
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
456
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
457
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
458
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
459
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
460
|
+
Connecting to database specified by database.yml
|
461
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
462
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
464
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
465
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
466
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
467
|
+
Connecting to database specified by database.yml
|
468
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
469
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
470
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
471
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
473
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
474
|
+
Connecting to database specified by database.yml
|
475
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
476
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
477
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
478
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
479
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
480
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
481
|
+
Connecting to database specified by database.yml
|
482
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
483
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
484
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
485
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
486
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
487
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
488
|
+
Connecting to database specified by database.yml
|
489
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
490
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
491
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
492
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
493
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
494
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
495
|
+
Connecting to database specified by database.yml
|
496
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
497
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
499
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
500
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
501
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
502
|
+
Connecting to database specified by database.yml
|
503
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
504
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
505
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
506
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
507
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
508
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
509
|
+
Connecting to database specified by database.yml
|
510
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
511
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
512
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
513
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
514
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
515
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
516
|
+
Connecting to database specified by database.yml
|
517
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
518
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
519
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
520
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
521
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
522
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
523
|
+
Connecting to database specified by database.yml
|
524
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
525
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
526
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
527
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
528
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
529
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
530
|
+
Connecting to database specified by database.yml
|
531
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
532
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
533
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
534
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
535
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
536
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
537
|
+
Connecting to database specified by database.yml
|
538
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
539
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
540
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
541
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
542
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
543
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
544
|
+
Connecting to database specified by database.yml
|
545
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
546
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
547
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
548
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
549
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
550
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
551
|
+
Connecting to database specified by database.yml
|
552
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
553
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
554
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
555
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
556
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
557
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
558
|
+
Connecting to database specified by database.yml
|
559
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
560
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
561
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
562
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
563
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
564
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
565
|
+
Connecting to database specified by database.yml
|
566
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
567
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
569
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
570
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
571
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
572
|
+
Connecting to database specified by database.yml
|
573
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
574
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
576
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
578
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
579
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
580
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
581
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
582
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
583
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
584
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
586
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
587
|
+
Connecting to database specified by database.yml
|
588
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
589
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
590
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
591
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
592
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
593
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
594
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
595
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
596
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
597
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
598
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
599
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
600
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
601
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
602
|
+
Connecting to database specified by database.yml
|
603
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
604
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
605
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
606
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
607
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
608
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
610
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
611
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
612
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
613
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
614
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
615
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
616
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
617
|
+
Connecting to database specified by database.yml
|
618
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
619
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
620
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
621
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
622
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
623
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
624
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
625
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
626
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
627
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
628
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
629
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
630
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
631
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
data/test/test_helper.rb
CHANGED
@@ -1,15 +1,14 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'spork'
|
3
|
+
# require 'spork/ext/ruby-debug'
|
3
4
|
|
4
|
-
|
5
|
-
|
5
|
+
Spork.prefork do
|
6
|
+
ENV["RAILS_ENV"] = "test"
|
7
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
8
|
+
require "rails/test_help"
|
6
9
|
|
7
|
-
Rails.backtrace_cleaner.remove_silencers!
|
8
|
-
|
9
|
-
# Load support files
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
10
|
+
Rails.backtrace_cleaner.remove_silencers!
|
11
|
+
end
|
11
12
|
|
12
|
-
|
13
|
-
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
13
|
+
Spork.each_run do
|
15
14
|
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module TransientObjects
|
4
|
+
class Family
|
5
|
+
attr_accessor :name, :members
|
6
|
+
|
7
|
+
def initialize name
|
8
|
+
@name = name
|
9
|
+
@members = Array.new
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
class User
|
15
|
+
attr_accessor :name
|
16
|
+
|
17
|
+
def initialize name
|
18
|
+
@name = name
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class FamilyMemberMergerTest < ActiveSupport::TestCase
|
23
|
+
def setup
|
24
|
+
@flintstones = Family.new "Flintstone, Fred & Wilma"
|
25
|
+
@flintstones.members = [ User.new( "Fred" ), User.new( "Fred" ) ]
|
26
|
+
|
27
|
+
@rubbles = Family.new "Rubble, Barney & Betty"
|
28
|
+
@rubbles.members = [ User.new( "Fred" ), User.new( "Barney" ) ]
|
29
|
+
|
30
|
+
@families = [ @flintstones, @rubbles ]
|
31
|
+
@fmm = FamilyMemberMerger.new( @families )
|
32
|
+
end
|
33
|
+
|
34
|
+
test "initialize" do
|
35
|
+
assert_equal FamilyMemberMerger, @fmm.class
|
36
|
+
end
|
37
|
+
|
38
|
+
test "families_with_duplicate_members" do
|
39
|
+
dups = @fmm.families_with_duplicate_members
|
40
|
+
assert_equal 1, dups.size
|
41
|
+
assert_equal @flintstones, dups[ 0 ][ 0 ]
|
42
|
+
end
|
43
|
+
|
44
|
+
test "find_duplicate_members" do
|
45
|
+
assert_equal 0, @fmm.find_duplicate_members( @rubbles ).size
|
46
|
+
assert_equal 2, @fmm.find_duplicate_members( @flintstones ).size
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module TransientObjects
|
4
|
+
class Family
|
5
|
+
attr_accessor :name, :members
|
6
|
+
|
7
|
+
def initialize name
|
8
|
+
@name = name
|
9
|
+
@members = Array.new
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class User
|
14
|
+
attr_accessor :name, :families
|
15
|
+
|
16
|
+
def initialize name
|
17
|
+
@name = name
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class UserMergerTest < ActiveSupport::TestCase
|
22
|
+
def setup
|
23
|
+
@flintstones = Family.new( "Flintstone, Fred & Wilma" )
|
24
|
+
@rubbles = Family.new( "Rubble, Barney & Betty" )
|
25
|
+
|
26
|
+
@fred = User.new( "Fred" )
|
27
|
+
@fred.families = [ @flintstones, @rubbles ]
|
28
|
+
|
29
|
+
@barney = User.new( "Barney" )
|
30
|
+
@barney.families = [ @rubbles ]
|
31
|
+
|
32
|
+
@flintstones.members = [ User.new( "Fred" ), User.new( "Fred" ) ]
|
33
|
+
@um = UserMerger.new [ @fred, @barney ]
|
34
|
+
end
|
35
|
+
|
36
|
+
test "initialize" do
|
37
|
+
assert_equal UserMerger, @um.class
|
38
|
+
end
|
39
|
+
|
40
|
+
test "users with multiple families" do
|
41
|
+
assert_equal 1, @um.users_with_multiple_families.size
|
42
|
+
end
|
43
|
+
|
44
|
+
test "families" do
|
45
|
+
assert_equal 1, @um.families.size
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transient_objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Gregory Silcox
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &76405080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.10
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *76405080
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &76402990 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,117 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *76402990
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rake
|
38
|
+
requirement: &76402260 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *76402260
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec-rails
|
49
|
+
requirement: &76401870 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *76401870
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: supermodel
|
60
|
+
requirement: &76400920 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *76400920
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: spork
|
71
|
+
requirement: &76398680 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *76398680
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: spork-rails
|
82
|
+
requirement: &76423880 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *76423880
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: spork-testunit
|
93
|
+
requirement: &76422200 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *76422200
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: guard-spork
|
104
|
+
requirement: &76420910 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *76420910
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: guard-test
|
115
|
+
requirement: &76418900 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *76418900
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rb-inotify
|
126
|
+
requirement: &76417870 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *76417870
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: libnotify
|
137
|
+
requirement: &76441870 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *76441870
|
36
146
|
description: These objects are non-persistent, and only support persistent objects,
|
37
147
|
controllers or views.
|
38
148
|
email:
|
@@ -45,6 +155,8 @@ files:
|
|
45
155
|
- app/assets/javascripts/transient_objects/application.js
|
46
156
|
- app/views/layouts/transient_objects/application.html.erb
|
47
157
|
- app/controllers/transient_objects/application_controller.rb
|
158
|
+
- app/models/transient_objects/user_merger.rb
|
159
|
+
- app/models/transient_objects/family_member_merger.rb
|
48
160
|
- app/helpers/transient_objects/application_helper.rb
|
49
161
|
- config/routes.rb
|
50
162
|
- lib/transient_objects.rb
|
@@ -53,8 +165,13 @@ files:
|
|
53
165
|
- lib/tasks/transient_objects_tasks.rake
|
54
166
|
- MIT-LICENSE
|
55
167
|
- Rakefile
|
56
|
-
- README.
|
168
|
+
- README.md
|
57
169
|
- test/dummy/config.ru
|
170
|
+
- test/dummy/db/development.sqlite3
|
171
|
+
- test/dummy/db/schema.rb
|
172
|
+
- test/dummy/db/test.sqlite3
|
173
|
+
- test/dummy/log/test.log
|
174
|
+
- test/dummy/log/development.log
|
58
175
|
- test/dummy/config/application.rb
|
59
176
|
- test/dummy/config/initializers/session_store.rb
|
60
177
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -82,6 +199,8 @@ files:
|
|
82
199
|
- test/dummy/app/controllers/application_controller.rb
|
83
200
|
- test/dummy/app/helpers/application_helper.rb
|
84
201
|
- test/dummy/README.rdoc
|
202
|
+
- test/unit/transient_objects/family_member_merger_test.rb
|
203
|
+
- test/unit/transient_objects/user_merger_test.rb
|
85
204
|
- test/integration/navigation_test.rb
|
86
205
|
- test/test_helper.rb
|
87
206
|
- test/transient_objects_test.rb
|
@@ -99,13 +218,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
218
|
version: '0'
|
100
219
|
segments:
|
101
220
|
- 0
|
102
|
-
hash:
|
221
|
+
hash: 941647983
|
103
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
223
|
none: false
|
105
224
|
requirements:
|
106
|
-
- - ! '
|
225
|
+
- - ! '>='
|
107
226
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
227
|
+
version: '0'
|
228
|
+
segments:
|
229
|
+
- 0
|
230
|
+
hash: 941647983
|
109
231
|
requirements: []
|
110
232
|
rubyforge_project:
|
111
233
|
rubygems_version: 1.8.15
|
@@ -114,6 +236,11 @@ specification_version: 3
|
|
114
236
|
summary: Support objects that require no database.
|
115
237
|
test_files:
|
116
238
|
- test/dummy/config.ru
|
239
|
+
- test/dummy/db/development.sqlite3
|
240
|
+
- test/dummy/db/schema.rb
|
241
|
+
- test/dummy/db/test.sqlite3
|
242
|
+
- test/dummy/log/test.log
|
243
|
+
- test/dummy/log/development.log
|
117
244
|
- test/dummy/config/application.rb
|
118
245
|
- test/dummy/config/initializers/session_store.rb
|
119
246
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -141,6 +268,8 @@ test_files:
|
|
141
268
|
- test/dummy/app/controllers/application_controller.rb
|
142
269
|
- test/dummy/app/helpers/application_helper.rb
|
143
270
|
- test/dummy/README.rdoc
|
271
|
+
- test/unit/transient_objects/family_member_merger_test.rb
|
272
|
+
- test/unit/transient_objects/user_merger_test.rb
|
144
273
|
- test/integration/navigation_test.rb
|
145
274
|
- test/test_helper.rb
|
146
275
|
- test/transient_objects_test.rb
|
data/README.rdoc
DELETED