enju_export 0.1.1.pre3 → 0.1.1.pre4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf241997329fd9cfc87b2caf6e6797540b869196
4
- data.tar.gz: 764ad10163876b925e6fb84f1e6e4a75e1419347
3
+ metadata.gz: 13898a1ac3f32f86bba7b13bc8862dd9a43d91d4
4
+ data.tar.gz: dcfbcac8c37bd3b08b93b14f345ed6beeede3522
5
5
  SHA512:
6
- metadata.gz: cb969a61f641efa3b4b067f987cb9d4e8f219555daa6f20bd254693fa27c9b26a8cb96b2b4bba30697025f778283a3c52d88cc3bfe5eac742634da9f0fbdf6e1
7
- data.tar.gz: 8f9fbbb6275d395fbda80befcbf7639eeae9e990f5572e8a2a2f5119715318ba00d8724b8c6c317867e8474bd2763af8f186faa06254ee65e736ad4c3300ea13
6
+ metadata.gz: 4b8db88702ce648f1162aa7da850b18a7492797fcd78e6e29fb50d2457590f2681424d09045e5124c3d1dbf8396b71c9d181654ccaff1779e219bf3af02d0afc
7
+ data.tar.gz: 8711bda254771e6f0e774c5314078c6b393259aed710523bc1170797c9375a1b2b5a9dbbb50b8052c87cf39d0acf461492154afa2eaff9d28787c24a57b34606
@@ -28,5 +28,5 @@
28
28
  </div>
29
29
  </div>
30
30
 
31
- <div id="submenu">
31
+ <div id="submenu" class="ui-corner-all">
32
32
  </div>
@@ -1,3 +1,3 @@
1
1
  module EnjuExport
2
- VERSION = "0.1.1.pre3"
2
+ VERSION = "0.1.1.pre4"
3
3
  end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate setup Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,12 @@
1
+ class EnjuExport::SetupGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def setup
5
+ inject_into_class 'app/models/manifestation.rb', Manifestation,
6
+ " enju_export\n"
7
+ inject_into_class 'app/models/item.rb', Item,
8
+ " enju_export\n"
9
+ inject_into_class 'app/models/patron.rb', Patron,
10
+ " enju_export\n"
11
+ end
12
+ end
Binary file
@@ -228,3 +228,118 @@ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
228
228
   (0.1ms) rollback transaction
229
229
   (0.1ms) begin transaction
230
230
   (0.1ms) rollback transaction
231
+ Connecting to database specified by database.yml
232
+  (0.1ms) begin transaction
233
+ Fixture Delete (0.3ms) DELETE FROM "roles"
234
+ Fixture Insert (0.2ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
235
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
236
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
237
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
238
+ Fixture Delete (0.1ms) DELETE FROM "user_has_roles"
239
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 135138680)
240
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 344583537)
241
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 206669143)
242
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 226540757)
243
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 358143215)
244
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 576709754)
245
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 1010528733)
246
+ Fixture Delete (0.1ms) DELETE FROM "users"
247
+ Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:16:30.163731', '$2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi', 2, 1, NULL, 'admin', 'tanabe@kamata.lib.teu.ac.jp', '2007-11-19 07:58:32.111941', 4)
248
+ Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 03:41:16.337474', '$2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS', 1, 2, NULL, 'librarian1', 'librarian1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:33.172441', 1)
249
+ Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', '$2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW', 1, 3, NULL, 'user1', 'user1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
250
+ Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:23.340575', '$2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS', 1, 4, NULL, 'librarian2', '2008-01-18 03:24:04.222344', 1)
251
+ Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:44.711117', '$2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca', 1, 5, NULL, 'user2', '2008-01-18 04:29:06.922728', 2)
252
+ Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 6, NULL, 'user3', 'user3@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
253
+ Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 7, NULL, 'user4', 'user4@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
254
+  (5.1ms) commit transaction
255
+  (0.1ms) begin transaction
256
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
257
+  (0.1ms) SAVEPOINT active_record_1
258
+ SQL (1.7ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
259
+ [paperclip] Saving attachments.
260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
261
+ Processing by ExportFilesController#index as HTML
262
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
263
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
264
+ Rendered /Users/kosuke/enju_export/app/views/export_files/index.html.erb within layouts/application (0.3ms)
265
+ Completed 200 OK in 91ms (Views: 12.8ms | ActiveRecord: 0.3ms | Solr: 0.0ms)
266
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" LIMIT 25 OFFSET 0
267
+  (0.5ms) rollback transaction
268
+  (0.0ms) begin transaction
269
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
270
+  (0.0ms) SAVEPOINT active_record_1
271
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
272
+ [paperclip] Saving attachments.
273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
274
+ Processing by ExportFilesController#show as HTML
275
+ Parameters: {"id"=>"1"}
276
+ ExportFile Load (0.2ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
277
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
278
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
279
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
280
+ Completed 200 OK in 16ms (Views: 7.5ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
281
+  (0.5ms) rollback transaction
282
+  (0.1ms) begin transaction
283
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
284
+  (0.0ms) SAVEPOINT active_record_1
285
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
286
+ [paperclip] Saving attachments.
287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
288
+  (0.1ms) SELECT COUNT(*) FROM "export_files"
289
+ Processing by ExportFilesController#destroy as HTML
290
+ Parameters: {"id"=>"1"}
291
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
292
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
293
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
294
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
295
+  (0.0ms) SAVEPOINT active_record_1
296
+ [paperclip] Scheduling attachments for deletion.
297
+ SQL (0.4ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
298
+ [paperclip] Deleting attachments.
299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300
+ Redirected to http://test.host/export_files
301
+ Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
302
+  (0.0ms) SELECT COUNT(*) FROM "export_files"
303
+  (0.5ms) rollback transaction
304
+  (0.0ms) begin transaction
305
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
306
+  (0.0ms) SAVEPOINT active_record_1
307
+ SQL (0.4ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
308
+ [paperclip] Saving attachments.
309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
310
+ Processing by ExportFilesController#destroy as HTML
311
+ Parameters: {"id"=>"1"}
312
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
313
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
314
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
315
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
316
+  (0.0ms) SAVEPOINT active_record_1
317
+ [paperclip] Scheduling attachments for deletion.
318
+ SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
319
+ [paperclip] Deleting attachments.
320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
321
+ Redirected to http://test.host/export_files
322
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
323
+  (0.4ms) rollback transaction
324
+  (0.0ms) begin transaction
325
+ Started GET "/export_files" for 127.0.0.1 at 2013-04-17 10:45:49 +0900
326
+ Processing by ExportFilesController#index as HTML
327
+ Redirected to http://www.example.com/users/sign_in
328
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
329
+  (0.1ms) rollback transaction
330
+  (0.0ms) begin transaction
331
+  (0.0ms) rollback transaction
332
+  (0.0ms) begin transaction
333
+  (0.0ms) rollback transaction
334
+  (0.0ms) begin transaction
335
+  (0.0ms) rollback transaction
336
+  (0.0ms) begin transaction
337
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (11.3ms)
338
+  (0.1ms) rollback transaction
339
+  (0.0ms) begin transaction
340
+  (0.1ms) rollback transaction
341
+  (0.1ms) begin transaction
342
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (5.6ms)
343
+  (0.1ms) rollback transaction
344
+  (0.0ms) begin transaction
345
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre3
4
+ version: 0.1.1.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-16 00:00:00.000000000 Z
11
+ date: 2013-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: enju_biblio
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: 0.1.0.pre31
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: 0.1.0.pre31
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: state_machine
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,34 +38,6 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: simple_form
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: enju_biblio
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 0.1.0.pre25
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: 0.1.0.pre25
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: sqlite3
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +92,8 @@ files:
120
92
  - lib/enju_export/engine.rb
121
93
  - lib/enju_export/version.rb
122
94
  - lib/enju_export.rb
123
- - lib/generators/enju_export/views_generator.rb
95
+ - lib/generators/enju_export/setup/setup_generator.rb
96
+ - lib/generators/enju_export/setup/USAGE
124
97
  - lib/tasks/enju_export_tasks.rake
125
98
  - MIT-LICENSE
126
99
  - Rakefile
@@ -1,17 +0,0 @@
1
- module EnjuExport
2
- module Generators
3
- class ViewsGenerator < Rails::Generators::Base
4
- source_root File.expand_path('../../../../app/views', __FILE__)
5
-
6
- def copy_files
7
- directories = %w(
8
- export_files
9
- )
10
-
11
- directories.each do |dir|
12
- directory dir, "app/views/#{dir}"
13
- end
14
- end
15
- end
16
- end
17
- end