enju_export 0.1.1.pre2 → 0.1.1.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bf241997329fd9cfc87b2caf6e6797540b869196
4
+ data.tar.gz: 764ad10163876b925e6fb84f1e6e4a75e1419347
5
+ SHA512:
6
+ metadata.gz: cb969a61f641efa3b4b067f987cb9d4e8f219555daa6f20bd254693fa27c9b26a8cb96b2b4bba30697025f778283a3c52d88cc3bfe5eac742634da9f0fbdf6e1
7
+ data.tar.gz: 8f9fbbb6275d395fbda80befcbf7639eeae9e990f5572e8a2a2f5119715318ba00d8724b8c6c317867e8474bd2763af8f186faa06254ee65e736ad4c3300ea13
@@ -0,0 +1,18 @@
1
+ module EnjuExport
2
+ class Ability
3
+ include CanCan::Ability
4
+
5
+ def initialize(user, ip_address = nil)
6
+ case user.try(:role).try(:name)
7
+ when 'Administrator'
8
+ can [:read, :destroy], ExportFile
9
+ when 'Librarian'
10
+ can [:read, :destroy], ExportFile
11
+ when 'User'
12
+ can :read, ExportFile do |export_file|
13
+ export_file.user == user
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuExport
2
- VERSION = "0.1.1.pre2"
2
+ VERSION = "0.1.1.pre3"
3
3
  end
@@ -1,14 +1,18 @@
1
- class Ability
2
- include CanCan::Ability
1
+ #module EnjuExport
2
+ class Ability
3
+ include CanCan::Ability
3
4
 
4
- def initialize(user)
5
- case user.try(:role).try(:name)
6
- when 'Administrator'
7
- can [:read, :destroy], ExportFile
8
- when 'Librarian'
9
- can [:read, :destroy], ExportFile
10
- when 'User'
11
- can :read, ExportFile
5
+ def initialize(user, ip_address = nil)
6
+ case user.try(:role).try(:name)
7
+ when 'Administrator'
8
+ can [:read, :destroy], ExportFile
9
+ when 'Librarian'
10
+ can [:read, :destroy], ExportFile
11
+ when 'User'
12
+ can :read, ExportFile do |export_file|
13
+ export_file.user == user
14
+ end
15
+ end
12
16
  end
13
17
  end
14
- end
18
+ #end
Binary file
@@ -0,0 +1,230 @@
1
+ Connecting to database specified by database.yml
2
+  (0.1ms) begin transaction
3
+ Fixture Delete (0.3ms) DELETE FROM "roles"
4
+ Fixture Insert (0.2ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
5
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
6
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
7
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
8
+ Fixture Delete (0.1ms) DELETE FROM "user_has_roles"
9
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 135138680)
10
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 344583537)
11
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 206669143)
12
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 226540757)
13
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 358143215)
14
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 576709754)
15
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 1010528733)
16
+ Fixture Delete (0.1ms) DELETE FROM "users"
17
+ 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)
18
+ 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)
19
+ 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)
20
+ 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)
21
+ 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)
22
+ 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)
23
+ 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)
24
+  (6.5ms) commit transaction
25
+  (0.1ms) begin transaction
26
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
27
+  (0.1ms) SAVEPOINT active_record_1
28
+ SQL (2.2ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 13 Mar 2013 03:00:12 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:12 UTC +00:00], ["user_id", nil]]
29
+ [paperclip] Saving attachments.
30
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31
+ Processing by ExportFilesController#index as HTML
32
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
33
+ 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
34
+ Rendered /Users/kosuke/enju_export/app/views/export_files/index.html.erb within layouts/application (0.2ms)
35
+ Completed 200 OK in 98ms (Views: 18.0ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
36
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" LIMIT 25 OFFSET 0
37
+  (0.4ms) rollback transaction
38
+  (0.1ms) begin transaction
39
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
40
+  (0.1ms) SAVEPOINT active_record_1
41
+ 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, 13 Mar 2013 03:00:12 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:12 UTC +00:00], ["user_id", nil]]
42
+ [paperclip] Saving attachments.
43
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44
+ Processing by ExportFilesController#show as HTML
45
+ Parameters: {"id"=>"1"}
46
+ ExportFile Load (0.2ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
47
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
48
+ 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
49
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
50
+ Completed 200 OK in 11ms (Views: 1.4ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
51
+  (0.5ms) rollback transaction
52
+  (0.0ms) begin transaction
53
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
54
+  (0.0ms) SAVEPOINT active_record_1
55
+ 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, 13 Mar 2013 03:00:13 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:13 UTC +00:00], ["user_id", nil]]
56
+ [paperclip] Saving attachments.
57
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58
+  (0.1ms) SELECT COUNT(*) FROM "export_files"
59
+ Processing by ExportFilesController#destroy as HTML
60
+ Parameters: {"id"=>"1"}
61
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
62
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
63
+ 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
64
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
65
+  (0.0ms) SAVEPOINT active_record_1
66
+ [paperclip] Scheduling attachments for deletion.
67
+ SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
68
+ [paperclip] Deleting attachments.
69
+  (0.0ms) RELEASE SAVEPOINT active_record_1
70
+ Redirected to http://test.host/export_files
71
+ Completed 302 Found in 12ms (ActiveRecord: 0.9ms)
72
+  (0.1ms) SELECT COUNT(*) FROM "export_files"
73
+  (0.6ms) rollback transaction
74
+  (0.0ms) begin transaction
75
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76
+  (0.0ms) SAVEPOINT active_record_1
77
+ SQL (0.5ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 13 Mar 2013 03:00:13 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:13 UTC +00:00], ["user_id", nil]]
78
+ [paperclip] Saving attachments.
79
+  (0.1ms) RELEASE SAVEPOINT active_record_1
80
+ Processing by ExportFilesController#destroy as HTML
81
+ Parameters: {"id"=>"1"}
82
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
83
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
84
+ 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
85
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
86
+  (0.0ms) SAVEPOINT active_record_1
87
+ [paperclip] Scheduling attachments for deletion.
88
+ SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
89
+ [paperclip] Deleting attachments.
90
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91
+ Redirected to http://test.host/export_files
92
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
93
+  (0.6ms) rollback transaction
94
+  (0.0ms) begin transaction
95
+ Started GET "/export_files" for 127.0.0.1 at 2013-03-13 12:00:13 +0900
96
+ Processing by ExportFilesController#index as HTML
97
+ Redirected to http://www.example.com/users/sign_in
98
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
99
+  (0.1ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+  (0.0ms) rollback transaction
102
+  (0.0ms) begin transaction
103
+  (0.0ms) rollback transaction
104
+  (0.0ms) begin transaction
105
+  (0.0ms) rollback transaction
106
+  (0.0ms) begin transaction
107
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (127.3ms)
108
+  (0.1ms) rollback transaction
109
+  (0.0ms) begin transaction
110
+  (0.1ms) rollback transaction
111
+  (0.0ms) begin transaction
112
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (5.8ms)
113
+  (0.1ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+  (0.1ms) rollback transaction
116
+ Connecting to database specified by database.yml
117
+  (0.1ms) begin transaction
118
+ Fixture Delete (0.3ms) DELETE FROM "roles"
119
+ Fixture Insert (0.2ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
120
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
121
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
122
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
123
+ Fixture Delete (0.1ms) DELETE FROM "user_has_roles"
124
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 135138680)
125
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 344583537)
126
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 206669143)
127
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 226540757)
128
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 358143215)
129
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 576709754)
130
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 1010528733)
131
+ Fixture Delete (0.2ms) DELETE FROM "users"
132
+ 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)
133
+ 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)
134
+ 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)
135
+ 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)
136
+ 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)
137
+ 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)
138
+ 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)
139
+  (8.2ms) commit transaction
140
+  (0.1ms) begin transaction
141
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
142
+  (0.1ms) SAVEPOINT active_record_1
143
+ SQL (2.5ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
144
+ [paperclip] Saving attachments.
145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
146
+ Processing by ExportFilesController#index as HTML
147
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
148
+ Role Load (0.3ms) 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
149
+ Rendered /Users/kosuke/enju_export/app/views/export_files/index.html.erb within layouts/application (0.4ms)
150
+ Completed 200 OK in 69ms (Views: 12.4ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
151
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" LIMIT 25 OFFSET 0
152
+  (0.4ms) rollback transaction
153
+  (0.1ms) begin transaction
154
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
155
+  (0.0ms) SAVEPOINT active_record_1
156
+ 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", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
157
+ [paperclip] Saving attachments.
158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
159
+ Processing by ExportFilesController#show as HTML
160
+ Parameters: {"id"=>"1"}
161
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
162
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
163
+ 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
164
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
165
+ Completed 200 OK in 11ms (Views: 1.8ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
166
+  (0.4ms) rollback transaction
167
+  (0.1ms) begin transaction
168
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
169
+  (0.0ms) SAVEPOINT active_record_1
170
+ SQL (0.5ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
171
+ [paperclip] Saving attachments.
172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
173
+  (0.1ms) SELECT COUNT(*) FROM "export_files"
174
+ Processing by ExportFilesController#destroy as HTML
175
+ Parameters: {"id"=>"1"}
176
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
177
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
178
+ 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
179
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
180
+  (0.1ms) SAVEPOINT active_record_1
181
+ [paperclip] Scheduling attachments for deletion.
182
+ SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
183
+ [paperclip] Deleting attachments.
184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
185
+ Redirected to http://test.host/export_files
186
+ Completed 302 Found in 12ms (ActiveRecord: 0.8ms)
187
+  (0.1ms) SELECT COUNT(*) FROM "export_files"
188
+  (0.4ms) rollback transaction
189
+  (0.0ms) begin transaction
190
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
191
+  (0.0ms) SAVEPOINT active_record_1
192
+ 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", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
193
+ [paperclip] Saving attachments.
194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
195
+ Processing by ExportFilesController#destroy as HTML
196
+ Parameters: {"id"=>"1"}
197
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
198
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
199
+ 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
200
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
201
+  (0.0ms) SAVEPOINT active_record_1
202
+ [paperclip] Scheduling attachments for deletion.
203
+ SQL (0.2ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
204
+ [paperclip] Deleting attachments.
205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206
+ Redirected to http://test.host/export_files
207
+ Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
208
+  (0.5ms) rollback transaction
209
+  (0.0ms) begin transaction
210
+ Started GET "/export_files" for 127.0.0.1 at 2013-03-16 14:44:40 +0900
211
+ Processing by ExportFilesController#index as HTML
212
+ Redirected to http://www.example.com/users/sign_in
213
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
214
+  (0.1ms) rollback transaction
215
+  (0.0ms) begin transaction
216
+  (0.0ms) rollback transaction
217
+  (0.1ms) begin transaction
218
+  (0.0ms) rollback transaction
219
+  (0.0ms) begin transaction
220
+  (0.0ms) rollback transaction
221
+  (0.1ms) begin transaction
222
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (136.8ms)
223
+  (0.1ms) rollback transaction
224
+  (0.1ms) begin transaction
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (54.0ms)
228
+  (0.1ms) rollback transaction
229
+  (0.1ms) begin transaction
230
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre2
5
- prerelease: 6
4
+ version: 0.1.1.pre3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kosuke Tanabe
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-13 00:00:00.000000000 Z
11
+ date: 2013-03-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,97 +27,71 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: state_machine
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: paperclip
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '3.3'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '3.3'
62
41
  - !ruby/object:Gem::Dependency
63
42
  name: simple_form
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
- - - ! '>='
45
+ - - '>='
68
46
  - !ruby/object:Gem::Version
69
47
  version: '0'
70
48
  type: :runtime
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
- - - ! '>='
52
+ - - '>='
76
53
  - !ruby/object:Gem::Version
77
54
  version: '0'
78
55
  - !ruby/object:Gem::Dependency
79
56
  name: enju_biblio
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
59
  - - ~>
84
60
  - !ruby/object:Gem::Version
85
- version: 0.1.0.pre13
61
+ version: 0.1.0.pre25
86
62
  type: :runtime
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
66
  - - ~>
92
67
  - !ruby/object:Gem::Version
93
- version: 0.1.0.pre13
68
+ version: 0.1.0.pre25
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: sqlite3
96
71
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
72
  requirements:
99
- - - ! '>='
73
+ - - '>='
100
74
  - !ruby/object:Gem::Version
101
75
  version: '0'
102
76
  type: :development
103
77
  prerelease: false
104
78
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
79
  requirements:
107
- - - ! '>='
80
+ - - '>='
108
81
  - !ruby/object:Gem::Version
109
82
  version: '0'
110
83
  - !ruby/object:Gem::Dependency
111
84
  name: rspec-rails
112
85
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
86
  requirements:
115
- - - ! '>='
87
+ - - '>='
116
88
  - !ruby/object:Gem::Version
117
89
  version: '0'
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
93
  requirements:
123
- - - ! '>='
94
+ - - '>='
124
95
  - !ruby/object:Gem::Version
125
96
  version: '0'
126
97
  description: Exporting records of Next-L Enju
@@ -131,6 +102,7 @@ extensions: []
131
102
  extra_rdoc_files: []
132
103
  files:
133
104
  - app/controllers/export_files_controller.rb
105
+ - app/models/enju_export/ability.rb
134
106
  - app/models/export_file.rb
135
107
  - app/views/export_files/_download.html.erb
136
108
  - app/views/export_files/_form.html.erb
@@ -194,6 +166,7 @@ files:
194
166
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
195
167
  - spec/dummy/db/schema.rb
196
168
  - spec/dummy/db/test.sqlite3
169
+ - spec/dummy/log/test.log
197
170
  - spec/dummy/public/404.html
198
171
  - spec/dummy/public/422.html
199
172
  - spec/dummy/public/500.html
@@ -216,30 +189,26 @@ files:
216
189
  - spec/views/export_files/show.html.erb_spec.rb
217
190
  homepage: https://github.com/next-l/enju_export
218
191
  licenses: []
192
+ metadata: {}
219
193
  post_install_message:
220
194
  rdoc_options: []
221
195
  require_paths:
222
196
  - lib
223
197
  required_ruby_version: !ruby/object:Gem::Requirement
224
- none: false
225
198
  requirements:
226
- - - ! '>='
199
+ - - '>='
227
200
  - !ruby/object:Gem::Version
228
201
  version: '0'
229
- segments:
230
- - 0
231
- hash: 2285808321931970454
232
202
  required_rubygems_version: !ruby/object:Gem::Requirement
233
- none: false
234
203
  requirements:
235
- - - ! '>'
204
+ - - '>'
236
205
  - !ruby/object:Gem::Version
237
206
  version: 1.3.1
238
207
  requirements: []
239
208
  rubyforge_project:
240
- rubygems_version: 1.8.23
209
+ rubygems_version: 2.0.0
241
210
  signing_key:
242
- specification_version: 3
211
+ specification_version: 4
243
212
  summary: enju_export plugin
244
213
  test_files:
245
214
  - spec/controllers/export_files_controller_spec.rb
@@ -283,6 +252,7 @@ test_files:
283
252
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
284
253
  - spec/dummy/db/schema.rb
285
254
  - spec/dummy/db/test.sqlite3
255
+ - spec/dummy/log/test.log
286
256
  - spec/dummy/public/404.html
287
257
  - spec/dummy/public/422.html
288
258
  - spec/dummy/public/500.html