ddr-models 1.14.1 → 1.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9bb898117542d2d1e0cd16344e1039acf381136
4
- data.tar.gz: a55660339616756b60986796b90da616d1b82cc3
3
+ metadata.gz: 4e3f9db93577153000e2e839a6d5779ab490194b
4
+ data.tar.gz: 2c3a8dea104c544d7800ab695f89f03e21cec325
5
5
  SHA512:
6
- metadata.gz: df7ef341226e489d174ec6c522a23774a72f1ea940bc7205b620a7a0337aa1a7bd9b090decf8e1e96770af83956cb2712b53d072d4fe7918e8998e4334441768
7
- data.tar.gz: 97781fff98fe64b8e1e81afae5d354e77be17e5587a4e0f34a142b368ff2471d187e6faf9b1a1ae4423050a0e1f4d56ea5c0fdcb082cd7328cc845f394792e10
6
+ metadata.gz: ec3b3fb0abf937b899cf18b6c7defd4aa0afd1a8a29eedab3c5f87f93e84ee50bb4c93f564b274c42392505ba58a1b26b7d028d72f9168f2f5cc4d1d03fdc035
7
+ data.tar.gz: df4396e48304dc820e290b3280b82ed13dafb83c2ce05592dd496f7d2bbbe5b26ea517382b25b4f69033ebb8f6f5b7b7f4e2c372232da05c3ca2d4a353dc1de3
@@ -11,11 +11,11 @@ module Ddr
11
11
  # Eventually, we should inject the generator (probably) and the options (certainly) for each derivative
12
12
  # (e.g., from configuration)
13
13
  DERIVATIVES = {
14
- # multires_image:
15
- # Derivative.new( :multires_image,
16
- # Ddr::Datastreams::MULTIRES_IMAGE,
17
- # Ddr::Derivatives::PtifGenerator,
18
- # "jpeg:90,tile:256x256,pyramid"),
14
+ multires_image:
15
+ Derivative.new( :multires_image,
16
+ Ddr::Datastreams::MULTIRES_IMAGE,
17
+ Ddr::Derivatives::PtifGenerator,
18
+ "jpeg:90,tile:256x256,pyramid"),
19
19
  thumbnail:
20
20
  Derivative.new( :thumbnail,
21
21
  Ddr::Datastreams::THUMBNAIL,
@@ -51,7 +51,7 @@ module Ddr
51
51
  def generate_derivative!(derivative)
52
52
  Dir.mktmpdir do |tempdir|
53
53
  generator_source = create_source_file(tempdir)
54
- generator_output = File.new(File.join(tempdir, "output"), 'wb')
54
+ generator_output = File.new(File.join(tempdir, "output.out"), 'wb')
55
55
  results = derivative.generator.new(generator_source.path, generator_output.path, derivative.options).generate
56
56
  generator_source.close unless generator_source.closed?
57
57
  if results.status.success?
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "1.14.1"
3
+ VERSION = "1.14.2"
4
4
  end
5
5
  end
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ module Ddr
4
+ module Derivatives
5
+ RSpec.describe PngGenerator do
6
+
7
+ describe "generate" do
8
+ let(:tempdir) { Dir.mktmpdir }
9
+ let(:output_file) { File.new(File.join(tempdir, "output.png"), 'wb') }
10
+ let(:options) { "-resize '100x100>'" }
11
+ let(:generator) { described_class.new(source, output_file.path, options) }
12
+ after { FileUtils.rmdir(tempdir) }
13
+ context "tiff source" do
14
+ let(:source) { File.join(Ddr::Models::Engine.root, "spec", "fixtures", "imageA.tif") }
15
+ it "should generate a non-empty file" do
16
+ generator.generate
17
+ expect(File.size(output_file.path)).to be > 0
18
+ end
19
+ end
20
+ end
21
+
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,33 @@
1
+ require 'spec_helper'
2
+
3
+ module Ddr
4
+ module Derivatives
5
+ RSpec.describe PtifGenerator do
6
+
7
+ describe "generate" do
8
+ let(:tempdir) { Dir.mktmpdir }
9
+ let(:output_file) { File.new(File.join(tempdir, "output.ptif"), 'wb') }
10
+ let(:options) { "jpeg:90,tile:256x256,pyramid" }
11
+ let(:generator) { described_class.new(source, output_file.path, options) }
12
+ after { FileUtils.rmdir(tempdir) }
13
+ context "tiff source" do
14
+ context "8-bit source" do
15
+ let(:source) { File.join(Ddr::Models::Engine.root, "spec", "fixtures", "8bit.tif") }
16
+ it "should generate a non-empty file" do
17
+ generator.generate
18
+ expect(File.size(output_file.path)).to be > 0
19
+ end
20
+ end
21
+ context "16-bit source" do
22
+ let(:source) { File.join(Ddr::Models::Engine.root, "spec", "fixtures", "16bit.tif") }
23
+ it "should generate a non-empty file" do
24
+ generator.generate
25
+ expect(File.size(output_file.path)).to be > 0
26
+ end
27
+ end
28
+ end
29
+ end
30
+
31
+ end
32
+ end
33
+ end
Binary file
@@ -27952,3 +27952,615 @@ Using the default predicate_mappings.yml that comes with active-fedora. If you
27952
27952
   (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
27953
27953
   (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
27954
27954
  Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
27955
+ Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
27956
+ ActiveRecord::SchemaMigration Load (22.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
27957
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
27958
+  (0.2ms)  SELECT sql
27959
+ FROM sqlite_master
27960
+ WHERE name='index_events_on_type' AND type='index'
27961
+ UNION ALL
27962
+ SELECT sql
27963
+ FROM sqlite_temp_master
27964
+ WHERE name='index_events_on_type' AND type='index'
27965
+ 
27966
+  (0.1ms) SELECT sql
27967
+ FROM sqlite_master
27968
+ WHERE name='index_events_on_pid' AND type='index'
27969
+ UNION ALL
27970
+ SELECT sql
27971
+ FROM sqlite_temp_master
27972
+ WHERE name='index_events_on_pid' AND type='index'
27973
+
27974
+  (0.1ms)  SELECT sql
27975
+ FROM sqlite_master
27976
+ WHERE name='index_events_on_outcome' AND type='index'
27977
+ UNION ALL
27978
+ SELECT sql
27979
+ FROM sqlite_temp_master
27980
+ WHERE name='index_events_on_outcome' AND type='index'
27981
+ 
27982
+  (0.1ms) SELECT sql
27983
+ FROM sqlite_master
27984
+ WHERE name='index_events_on_event_date_time' AND type='index'
27985
+ UNION ALL
27986
+ SELECT sql
27987
+ FROM sqlite_temp_master
27988
+ WHERE name='index_events_on_event_date_time' AND type='index'
27989
+
27990
+  (0.1ms)  SELECT sql
27991
+ FROM sqlite_master
27992
+ WHERE name='index_users_on_username' AND type='index'
27993
+ UNION ALL
27994
+ SELECT sql
27995
+ FROM sqlite_temp_master
27996
+ WHERE name='index_users_on_username' AND type='index'
27997
+ 
27998
+  (0.1ms) SELECT sql
27999
+ FROM sqlite_master
28000
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28001
+ UNION ALL
28002
+ SELECT sql
28003
+ FROM sqlite_temp_master
28004
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28005
+
28006
+  (0.1ms)  SELECT sql
28007
+ FROM sqlite_master
28008
+ WHERE name='index_users_on_email' AND type='index'
28009
+ UNION ALL
28010
+ SELECT sql
28011
+ FROM sqlite_temp_master
28012
+ WHERE name='index_users_on_email' AND type='index'
28013
+ 
28014
+  (1.1ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" varchar(255), "user_key" varchar(255))
28015
+  (0.1ms) select sqlite_version(*)
28016
+  (0.9ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
28017
+  (0.1ms)  SELECT sql
28018
+ FROM sqlite_master
28019
+ WHERE name='index_events_on_event_date_time' AND type='index'
28020
+ UNION ALL
28021
+ SELECT sql
28022
+ FROM sqlite_temp_master
28023
+ WHERE name='index_events_on_event_date_time' AND type='index'
28024
+ 
28025
+  (0.9ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
28026
+  (0.1ms)  SELECT sql
28027
+ FROM sqlite_master
28028
+ WHERE name='index_events_on_outcome' AND type='index'
28029
+ UNION ALL
28030
+ SELECT sql
28031
+ FROM sqlite_temp_master
28032
+ WHERE name='index_events_on_outcome' AND type='index'
28033
+ 
28034
+  (0.1ms) SELECT sql
28035
+ FROM sqlite_master
28036
+ WHERE name='index_events_on_event_date_time' AND type='index'
28037
+ UNION ALL
28038
+ SELECT sql
28039
+ FROM sqlite_temp_master
28040
+ WHERE name='index_events_on_event_date_time' AND type='index'
28041
+
28042
+  (1.5ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
28043
+  (0.1ms) SELECT sql
28044
+ FROM sqlite_master
28045
+ WHERE name='index_events_on_pid' AND type='index'
28046
+ UNION ALL
28047
+ SELECT sql
28048
+ FROM sqlite_temp_master
28049
+ WHERE name='index_events_on_pid' AND type='index'
28050
+
28051
+  (0.1ms)  SELECT sql
28052
+ FROM sqlite_master
28053
+ WHERE name='index_events_on_outcome' AND type='index'
28054
+ UNION ALL
28055
+ SELECT sql
28056
+ FROM sqlite_temp_master
28057
+ WHERE name='index_events_on_outcome' AND type='index'
28058
+ 
28059
+  (0.1ms) SELECT sql
28060
+ FROM sqlite_master
28061
+ WHERE name='index_events_on_event_date_time' AND type='index'
28062
+ UNION ALL
28063
+ SELECT sql
28064
+ FROM sqlite_temp_master
28065
+ WHERE name='index_events_on_event_date_time' AND type='index'
28066
+
28067
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
28068
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
28069
+  (1.0ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
28070
+  (0.1ms) SELECT sql
28071
+ FROM sqlite_master
28072
+ WHERE name='index_users_on_email' AND type='index'
28073
+ UNION ALL
28074
+ SELECT sql
28075
+ FROM sqlite_temp_master
28076
+ WHERE name='index_users_on_email' AND type='index'
28077
+
28078
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
28079
+  (0.1ms) SELECT sql
28080
+ FROM sqlite_master
28081
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28082
+ UNION ALL
28083
+ SELECT sql
28084
+ FROM sqlite_temp_master
28085
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28086
+
28087
+  (0.1ms)  SELECT sql
28088
+ FROM sqlite_master
28089
+ WHERE name='index_users_on_email' AND type='index'
28090
+ UNION ALL
28091
+ SELECT sql
28092
+ FROM sqlite_temp_master
28093
+ WHERE name='index_users_on_email' AND type='index'
28094
+ 
28095
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
28096
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28097
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28098
+  (0.1ms) SELECT version FROM "schema_migrations"
28099
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
28100
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
28101
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
28102
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
28103
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
28104
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
28105
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
28106
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
28107
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
28108
+ Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
28109
+ ActiveRecord::SchemaMigration Load (23.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
28110
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28111
+  (0.2ms)  SELECT sql
28112
+ FROM sqlite_master
28113
+ WHERE name='index_events_on_type' AND type='index'
28114
+ UNION ALL
28115
+ SELECT sql
28116
+ FROM sqlite_temp_master
28117
+ WHERE name='index_events_on_type' AND type='index'
28118
+ 
28119
+  (0.1ms) SELECT sql
28120
+ FROM sqlite_master
28121
+ WHERE name='index_events_on_pid' AND type='index'
28122
+ UNION ALL
28123
+ SELECT sql
28124
+ FROM sqlite_temp_master
28125
+ WHERE name='index_events_on_pid' AND type='index'
28126
+
28127
+  (0.1ms)  SELECT sql
28128
+ FROM sqlite_master
28129
+ WHERE name='index_events_on_outcome' AND type='index'
28130
+ UNION ALL
28131
+ SELECT sql
28132
+ FROM sqlite_temp_master
28133
+ WHERE name='index_events_on_outcome' AND type='index'
28134
+ 
28135
+  (0.1ms) SELECT sql
28136
+ FROM sqlite_master
28137
+ WHERE name='index_events_on_event_date_time' AND type='index'
28138
+ UNION ALL
28139
+ SELECT sql
28140
+ FROM sqlite_temp_master
28141
+ WHERE name='index_events_on_event_date_time' AND type='index'
28142
+
28143
+  (0.1ms)  SELECT sql
28144
+ FROM sqlite_master
28145
+ WHERE name='index_users_on_username' AND type='index'
28146
+ UNION ALL
28147
+ SELECT sql
28148
+ FROM sqlite_temp_master
28149
+ WHERE name='index_users_on_username' AND type='index'
28150
+ 
28151
+  (0.1ms) SELECT sql
28152
+ FROM sqlite_master
28153
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28154
+ UNION ALL
28155
+ SELECT sql
28156
+ FROM sqlite_temp_master
28157
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28158
+
28159
+  (0.1ms)  SELECT sql
28160
+ FROM sqlite_master
28161
+ WHERE name='index_users_on_email' AND type='index'
28162
+ UNION ALL
28163
+ SELECT sql
28164
+ FROM sqlite_temp_master
28165
+ WHERE name='index_users_on_email' AND type='index'
28166
+ 
28167
+  (1.1ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" varchar(255), "user_key" varchar(255))
28168
+  (0.0ms) select sqlite_version(*)
28169
+  (1.0ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
28170
+  (0.1ms)  SELECT sql
28171
+ FROM sqlite_master
28172
+ WHERE name='index_events_on_event_date_time' AND type='index'
28173
+ UNION ALL
28174
+ SELECT sql
28175
+ FROM sqlite_temp_master
28176
+ WHERE name='index_events_on_event_date_time' AND type='index'
28177
+ 
28178
+  (0.9ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
28179
+  (0.1ms)  SELECT sql
28180
+ FROM sqlite_master
28181
+ WHERE name='index_events_on_outcome' AND type='index'
28182
+ UNION ALL
28183
+ SELECT sql
28184
+ FROM sqlite_temp_master
28185
+ WHERE name='index_events_on_outcome' AND type='index'
28186
+ 
28187
+  (0.1ms) SELECT sql
28188
+ FROM sqlite_master
28189
+ WHERE name='index_events_on_event_date_time' AND type='index'
28190
+ UNION ALL
28191
+ SELECT sql
28192
+ FROM sqlite_temp_master
28193
+ WHERE name='index_events_on_event_date_time' AND type='index'
28194
+
28195
+  (0.9ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
28196
+  (0.1ms) SELECT sql
28197
+ FROM sqlite_master
28198
+ WHERE name='index_events_on_pid' AND type='index'
28199
+ UNION ALL
28200
+ SELECT sql
28201
+ FROM sqlite_temp_master
28202
+ WHERE name='index_events_on_pid' AND type='index'
28203
+
28204
+  (0.1ms)  SELECT sql
28205
+ FROM sqlite_master
28206
+ WHERE name='index_events_on_outcome' AND type='index'
28207
+ UNION ALL
28208
+ SELECT sql
28209
+ FROM sqlite_temp_master
28210
+ WHERE name='index_events_on_outcome' AND type='index'
28211
+ 
28212
+  (0.1ms) SELECT sql
28213
+ FROM sqlite_master
28214
+ WHERE name='index_events_on_event_date_time' AND type='index'
28215
+ UNION ALL
28216
+ SELECT sql
28217
+ FROM sqlite_temp_master
28218
+ WHERE name='index_events_on_event_date_time' AND type='index'
28219
+
28220
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
28221
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
28222
+  (0.8ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
28223
+  (0.1ms) SELECT sql
28224
+ FROM sqlite_master
28225
+ WHERE name='index_users_on_email' AND type='index'
28226
+ UNION ALL
28227
+ SELECT sql
28228
+ FROM sqlite_temp_master
28229
+ WHERE name='index_users_on_email' AND type='index'
28230
+
28231
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
28232
+  (0.1ms) SELECT sql
28233
+ FROM sqlite_master
28234
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28235
+ UNION ALL
28236
+ SELECT sql
28237
+ FROM sqlite_temp_master
28238
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28239
+
28240
+  (0.1ms)  SELECT sql
28241
+ FROM sqlite_master
28242
+ WHERE name='index_users_on_email' AND type='index'
28243
+ UNION ALL
28244
+ SELECT sql
28245
+ FROM sqlite_temp_master
28246
+ WHERE name='index_users_on_email' AND type='index'
28247
+ 
28248
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
28249
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28250
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28251
+  (0.1ms) SELECT version FROM "schema_migrations"
28252
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
28253
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
28254
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
28255
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
28256
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
28257
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
28258
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
28259
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
28260
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
28261
+ Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
28262
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28263
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28264
+  (0.1ms)  SELECT sql
28265
+ FROM sqlite_master
28266
+ WHERE name='index_events_on_type' AND type='index'
28267
+ UNION ALL
28268
+ SELECT sql
28269
+ FROM sqlite_temp_master
28270
+ WHERE name='index_events_on_type' AND type='index'
28271
+ 
28272
+  (0.1ms) SELECT sql
28273
+ FROM sqlite_master
28274
+ WHERE name='index_events_on_pid' AND type='index'
28275
+ UNION ALL
28276
+ SELECT sql
28277
+ FROM sqlite_temp_master
28278
+ WHERE name='index_events_on_pid' AND type='index'
28279
+
28280
+  (0.1ms)  SELECT sql
28281
+ FROM sqlite_master
28282
+ WHERE name='index_events_on_outcome' AND type='index'
28283
+ UNION ALL
28284
+ SELECT sql
28285
+ FROM sqlite_temp_master
28286
+ WHERE name='index_events_on_outcome' AND type='index'
28287
+ 
28288
+  (0.1ms) SELECT sql
28289
+ FROM sqlite_master
28290
+ WHERE name='index_events_on_event_date_time' AND type='index'
28291
+ UNION ALL
28292
+ SELECT sql
28293
+ FROM sqlite_temp_master
28294
+ WHERE name='index_events_on_event_date_time' AND type='index'
28295
+
28296
+  (0.1ms)  SELECT sql
28297
+ FROM sqlite_master
28298
+ WHERE name='index_users_on_username' AND type='index'
28299
+ UNION ALL
28300
+ SELECT sql
28301
+ FROM sqlite_temp_master
28302
+ WHERE name='index_users_on_username' AND type='index'
28303
+ 
28304
+  (0.1ms) SELECT sql
28305
+ FROM sqlite_master
28306
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28307
+ UNION ALL
28308
+ SELECT sql
28309
+ FROM sqlite_temp_master
28310
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28311
+
28312
+  (0.1ms)  SELECT sql
28313
+ FROM sqlite_master
28314
+ WHERE name='index_users_on_email' AND type='index'
28315
+ UNION ALL
28316
+ SELECT sql
28317
+ FROM sqlite_temp_master
28318
+ WHERE name='index_users_on_email' AND type='index'
28319
+ 
28320
+  (1.4ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" varchar(255), "user_key" varchar(255))
28321
+  (0.1ms) select sqlite_version(*)
28322
+  (1.3ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
28323
+  (0.2ms)  SELECT sql
28324
+ FROM sqlite_master
28325
+ WHERE name='index_events_on_event_date_time' AND type='index'
28326
+ UNION ALL
28327
+ SELECT sql
28328
+ FROM sqlite_temp_master
28329
+ WHERE name='index_events_on_event_date_time' AND type='index'
28330
+ 
28331
+  (7.8ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
28332
+  (0.1ms)  SELECT sql
28333
+ FROM sqlite_master
28334
+ WHERE name='index_events_on_outcome' AND type='index'
28335
+ UNION ALL
28336
+ SELECT sql
28337
+ FROM sqlite_temp_master
28338
+ WHERE name='index_events_on_outcome' AND type='index'
28339
+ 
28340
+  (0.1ms) SELECT sql
28341
+ FROM sqlite_master
28342
+ WHERE name='index_events_on_event_date_time' AND type='index'
28343
+ UNION ALL
28344
+ SELECT sql
28345
+ FROM sqlite_temp_master
28346
+ WHERE name='index_events_on_event_date_time' AND type='index'
28347
+
28348
+  (1.3ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
28349
+  (0.1ms) SELECT sql
28350
+ FROM sqlite_master
28351
+ WHERE name='index_events_on_pid' AND type='index'
28352
+ UNION ALL
28353
+ SELECT sql
28354
+ FROM sqlite_temp_master
28355
+ WHERE name='index_events_on_pid' AND type='index'
28356
+
28357
+  (0.1ms)  SELECT sql
28358
+ FROM sqlite_master
28359
+ WHERE name='index_events_on_outcome' AND type='index'
28360
+ UNION ALL
28361
+ SELECT sql
28362
+ FROM sqlite_temp_master
28363
+ WHERE name='index_events_on_outcome' AND type='index'
28364
+ 
28365
+  (0.1ms) SELECT sql
28366
+ FROM sqlite_master
28367
+ WHERE name='index_events_on_event_date_time' AND type='index'
28368
+ UNION ALL
28369
+ SELECT sql
28370
+ FROM sqlite_temp_master
28371
+ WHERE name='index_events_on_event_date_time' AND type='index'
28372
+
28373
+  (1.1ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
28374
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
28375
+  (0.9ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
28376
+  (0.1ms) SELECT sql
28377
+ FROM sqlite_master
28378
+ WHERE name='index_users_on_email' AND type='index'
28379
+ UNION ALL
28380
+ SELECT sql
28381
+ FROM sqlite_temp_master
28382
+ WHERE name='index_users_on_email' AND type='index'
28383
+
28384
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
28385
+  (0.1ms) SELECT sql
28386
+ FROM sqlite_master
28387
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28388
+ UNION ALL
28389
+ SELECT sql
28390
+ FROM sqlite_temp_master
28391
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28392
+
28393
+  (0.1ms)  SELECT sql
28394
+ FROM sqlite_master
28395
+ WHERE name='index_users_on_email' AND type='index'
28396
+ UNION ALL
28397
+ SELECT sql
28398
+ FROM sqlite_temp_master
28399
+ WHERE name='index_users_on_email' AND type='index'
28400
+ 
28401
+  (0.8ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
28402
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28403
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28404
+  (0.1ms) SELECT version FROM "schema_migrations"
28405
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
28406
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
28407
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
28408
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
28409
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
28410
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
28411
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
28412
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
28413
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')
28414
+ Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into #{Rails.root}/config.
28415
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28416
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28417
+  (0.1ms)  SELECT sql
28418
+ FROM sqlite_master
28419
+ WHERE name='index_events_on_type' AND type='index'
28420
+ UNION ALL
28421
+ SELECT sql
28422
+ FROM sqlite_temp_master
28423
+ WHERE name='index_events_on_type' AND type='index'
28424
+ 
28425
+  (0.1ms) SELECT sql
28426
+ FROM sqlite_master
28427
+ WHERE name='index_events_on_pid' AND type='index'
28428
+ UNION ALL
28429
+ SELECT sql
28430
+ FROM sqlite_temp_master
28431
+ WHERE name='index_events_on_pid' AND type='index'
28432
+
28433
+  (0.1ms)  SELECT sql
28434
+ FROM sqlite_master
28435
+ WHERE name='index_events_on_outcome' AND type='index'
28436
+ UNION ALL
28437
+ SELECT sql
28438
+ FROM sqlite_temp_master
28439
+ WHERE name='index_events_on_outcome' AND type='index'
28440
+ 
28441
+  (0.1ms) SELECT sql
28442
+ FROM sqlite_master
28443
+ WHERE name='index_events_on_event_date_time' AND type='index'
28444
+ UNION ALL
28445
+ SELECT sql
28446
+ FROM sqlite_temp_master
28447
+ WHERE name='index_events_on_event_date_time' AND type='index'
28448
+
28449
+  (0.1ms)  SELECT sql
28450
+ FROM sqlite_master
28451
+ WHERE name='index_users_on_username' AND type='index'
28452
+ UNION ALL
28453
+ SELECT sql
28454
+ FROM sqlite_temp_master
28455
+ WHERE name='index_users_on_username' AND type='index'
28456
+ 
28457
+  (0.1ms) SELECT sql
28458
+ FROM sqlite_master
28459
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28460
+ UNION ALL
28461
+ SELECT sql
28462
+ FROM sqlite_temp_master
28463
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28464
+
28465
+  (0.1ms)  SELECT sql
28466
+ FROM sqlite_master
28467
+ WHERE name='index_users_on_email' AND type='index'
28468
+ UNION ALL
28469
+ SELECT sql
28470
+ FROM sqlite_temp_master
28471
+ WHERE name='index_users_on_email' AND type='index'
28472
+ 
28473
+  (1.0ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "event_date_time" datetime, "user_id" integer, "type" varchar(255), "pid" varchar(255), "software" varchar(255), "comment" text, "created_at" datetime, "updated_at" datetime, "summary" varchar(255), "outcome" varchar(255), "detail" text, "exception" varchar(255), "user_key" varchar(255))
28474
+  (0.0ms) select sqlite_version(*)
28475
+  (1.0ms) CREATE INDEX "index_events_on_event_date_time" ON "events" ("event_date_time")
28476
+  (0.1ms)  SELECT sql
28477
+ FROM sqlite_master
28478
+ WHERE name='index_events_on_event_date_time' AND type='index'
28479
+ UNION ALL
28480
+ SELECT sql
28481
+ FROM sqlite_temp_master
28482
+ WHERE name='index_events_on_event_date_time' AND type='index'
28483
+ 
28484
+  (1.1ms) CREATE INDEX "index_events_on_outcome" ON "events" ("outcome")
28485
+  (0.1ms)  SELECT sql
28486
+ FROM sqlite_master
28487
+ WHERE name='index_events_on_outcome' AND type='index'
28488
+ UNION ALL
28489
+ SELECT sql
28490
+ FROM sqlite_temp_master
28491
+ WHERE name='index_events_on_outcome' AND type='index'
28492
+ 
28493
+  (0.1ms) SELECT sql
28494
+ FROM sqlite_master
28495
+ WHERE name='index_events_on_event_date_time' AND type='index'
28496
+ UNION ALL
28497
+ SELECT sql
28498
+ FROM sqlite_temp_master
28499
+ WHERE name='index_events_on_event_date_time' AND type='index'
28500
+
28501
+  (1.0ms) CREATE INDEX "index_events_on_pid" ON "events" ("pid")
28502
+  (0.1ms) SELECT sql
28503
+ FROM sqlite_master
28504
+ WHERE name='index_events_on_pid' AND type='index'
28505
+ UNION ALL
28506
+ SELECT sql
28507
+ FROM sqlite_temp_master
28508
+ WHERE name='index_events_on_pid' AND type='index'
28509
+
28510
+  (0.1ms)  SELECT sql
28511
+ FROM sqlite_master
28512
+ WHERE name='index_events_on_outcome' AND type='index'
28513
+ UNION ALL
28514
+ SELECT sql
28515
+ FROM sqlite_temp_master
28516
+ WHERE name='index_events_on_outcome' AND type='index'
28517
+ 
28518
+  (0.1ms) SELECT sql
28519
+ FROM sqlite_master
28520
+ WHERE name='index_events_on_event_date_time' AND type='index'
28521
+ UNION ALL
28522
+ SELECT sql
28523
+ FROM sqlite_temp_master
28524
+ WHERE name='index_events_on_event_date_time' AND type='index'
28525
+
28526
+  (1.0ms) CREATE INDEX "index_events_on_type" ON "events" ("type")
28527
+  (1.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "first_name" varchar(255), "middle_name" varchar(255), "nickname" varchar(255), "last_name" varchar(255), "display_name" varchar(255))
28528
+  (1.3ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
28529
+  (0.1ms) SELECT sql
28530
+ FROM sqlite_master
28531
+ WHERE name='index_users_on_email' AND type='index'
28532
+ UNION ALL
28533
+ SELECT sql
28534
+ FROM sqlite_temp_master
28535
+ WHERE name='index_users_on_email' AND type='index'
28536
+
28537
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
28538
+  (0.1ms) SELECT sql
28539
+ FROM sqlite_master
28540
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28541
+ UNION ALL
28542
+ SELECT sql
28543
+ FROM sqlite_temp_master
28544
+ WHERE name='index_users_on_reset_password_token' AND type='index'
28545
+
28546
+  (0.1ms)  SELECT sql
28547
+ FROM sqlite_master
28548
+ WHERE name='index_users_on_email' AND type='index'
28549
+ UNION ALL
28550
+ SELECT sql
28551
+ FROM sqlite_temp_master
28552
+ WHERE name='index_users_on_email' AND type='index'
28553
+ 
28554
+  (1.3ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
28555
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28556
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28557
+  (0.1ms) SELECT version FROM "schema_migrations"
28558
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150130134416')
28559
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021233359')
28560
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141021234156')
28561
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141103192146')
28562
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141104181418')
28563
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141107124012')
28564
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216040225')
28565
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141218020612')
28566
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150110023410')