acts_as_citable 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2013 YOURNAME
1
+ Copyright 2013 NYU Division of Libraries
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,3 +1,3 @@
1
1
  module ActsAsCitable
2
- VERSION = "1.2.0"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -32,10 +32,10 @@ class RecordTest < ActiveSupport::TestCase
32
32
 
33
33
  test "should work with models inherited acts_as_citable models" do
34
34
  rec = InheritedRecord.new(:data => "itemType: book", :format => "csf")
35
- assert rec.to_ris.eql? "TY - BOOK\nER -\n\n"
36
- assert rec.to_bibtex.eql? "@book{????\n}"
37
- assert rec.to_openurl.eql? "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book"
38
- assert rec.to_easybib.eql? "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[{}]}"
35
+ assert_equal "TY - BOOK\nER -\n\n", rec.to_ris
36
+ assert_equal "@book{????\n}", rec.to_bibtex
37
+ assert_equal "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book", rec.to_openurl
38
+ assert_equal "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[]}", rec.to_easybib
39
39
  assert rec.destroy
40
40
  end
41
41
 
@@ -58,10 +58,10 @@ class RecordTest < ActiveSupport::TestCase
58
58
 
59
59
  test "should be available to convert to" do
60
60
  rec = Record.new(:data => "itemType: book", :format => "csf")
61
- assert rec.to_ris.eql? "TY - BOOK\nER -\n\n"
62
- assert rec.to_bibtex.eql? "@book{????\n}"
63
- assert rec.to_openurl.eql? "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book"
64
- assert rec.to_easybib.eql? "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[{}]}"
61
+ assert_equal "TY - BOOK\nER -\n\n", rec.to_ris
62
+ assert_equal "@book{????\n}", rec.to_bibtex
63
+ assert_equal "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book", rec.to_openurl
64
+ assert_equal "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[]}", rec.to_easybib
65
65
  assert rec.destroy
66
66
  end
67
67
 
@@ -79,4 +79,10 @@ class RecordTest < ActiveSupport::TestCase
79
79
  arr.each {|rec| assert rec.destroy}
80
80
  end
81
81
 
82
+ test "should be able to convert to an export STYLE" do
83
+ rec = Record.new(:data => "itemType: book", :format => "csf")
84
+ assert_equal "<div class=\"csl-bib-body\">\n <div class=\"csl-entry\"> (n.d.).</div>\n</div>", rec.to_apa
85
+ assert_equal "<div class=\"csl-bib-body\">\n <div class=\"csl-entry\"> Print.</div>\n</div>", rec.to_mla
86
+ assert_equal "<div class=\"csl-bib-body\">\n\n[CSL STYLE ERROR: reference with no printed form.]\n</div>", rec.to_chicago_author_date
87
+ end
82
88
  end
@@ -7014,3 +7014,679 @@ Processing by TestController#test as RIS
7014
7014
   (0.0ms) RELEASE SAVEPOINT active_record_1
7015
7015
  Sent data 3.ris (1.0ms)
7016
7016
  Completed 200 OK in 15ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7017
+ Connecting to database specified by database.yml
7018
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7019
+  (0.0ms) SAVEPOINT active_record_1
7020
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-05-20 18:22:57.550000', 'itemType: book', 'csf', '2013-05-20 18:22:57.550000')
7021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7022
+  (0.0ms) SAVEPOINT active_record_1
7023
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7024
+  (0.0ms) SAVEPOINT active_record_1
7025
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7027
+  (0.0ms) SAVEPOINT active_record_1
7028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7029
+  (0.0ms) SAVEPOINT active_record_1
7030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7031
+  (0.0ms) SAVEPOINT active_record_1
7032
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7033
+  (0.0ms) SAVEPOINT active_record_1
7034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7035
+  (0.0ms) SAVEPOINT active_record_1
7036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7037
+ Processing by TestController#test as
7038
+  (0.0ms) SAVEPOINT active_record_1
7039
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-05-20 18:22:57.975000', 'itemType: book', 'csf', '2013-05-20 18:22:57.975000')
7040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7041
+ Completed 406 Not Acceptable in 17ms (ActiveRecord: 0.0ms)
7042
+ Processing by TestController#test as BIBTEX
7043
+  (0.0ms) SAVEPOINT active_record_1
7044
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-05-20 18:22:58.002000', 'itemType: book', 'csf', '2013-05-20 18:22:58.002000')
7045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7046
+ Sent data 3.bib (10.0ms)
7047
+ Completed 200 OK in 53ms (Views: 13.0ms | ActiveRecord: 0.0ms)
7048
+ Processing by TestController#test as BIBTEX
7049
+  (0.0ms) SAVEPOINT active_record_1
7050
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-05-20 18:22:58.065000', 'itemType: book', 'csf', '2013-05-20 18:22:58.065000')
7051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7052
+ Sent data 3.bib (1.0ms)
7053
+ Completed 200 OK in 16ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7054
+ Processing by TestController#test as RIS
7055
+  (0.0ms) SAVEPOINT active_record_1
7056
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-05-20 18:22:58.090000', 'itemType: book', 'csf', '2013-05-20 18:22:58.090000')
7057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7058
+ Sent data 3.ris (1.0ms)
7059
+ Completed 200 OK in 16ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7060
+ Connecting to database specified by database.yml
7061
+  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7062
+  (0.0ms) SAVEPOINT active_record_1
7063
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:17:07.983000', 'itemType: book', 'csf', '2013-06-14 22:17:07.983000')
7064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7065
+  (0.0ms) SAVEPOINT active_record_1
7066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7067
+  (0.0ms) SAVEPOINT active_record_1
7068
+ SQL (1.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7070
+  (1.0ms) SAVEPOINT active_record_1
7071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7072
+  (0.0ms) SAVEPOINT active_record_1
7073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7074
+  (0.0ms) SAVEPOINT active_record_1
7075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7076
+ Processing by TestController#test as
7077
+  (0.0ms) SAVEPOINT active_record_1
7078
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:17:08.289000', 'itemType: book', 'csf', '2013-06-14 22:17:08.289000')
7079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7080
+ Completed 406 Not Acceptable in 13ms (ActiveRecord: 0.0ms)
7081
+ Processing by TestController#test as BIBTEX
7082
+  (0.0ms) SAVEPOINT active_record_1
7083
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:17:08.315000', 'itemType: book', 'csf', '2013-06-14 22:17:08.315000')
7084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7085
+ Sent data 3.bib (4.0ms)
7086
+ Completed 200 OK in 48ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7087
+ Processing by TestController#test as BIBTEX
7088
+  (0.0ms) SAVEPOINT active_record_1
7089
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:17:08.371000', 'itemType: book', 'csf', '2013-06-14 22:17:08.371000')
7090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7091
+ Sent data 3.bib (1.0ms)
7092
+ Completed 200 OK in 15ms (Views: 2.0ms | ActiveRecord: 0.0ms)
7093
+ Processing by TestController#test as RIS
7094
+  (0.0ms) SAVEPOINT active_record_1
7095
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:17:08.395000', 'itemType: book', 'csf', '2013-06-14 22:17:08.395000')
7096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7097
+ Sent data 3.ris (1.0ms)
7098
+ Completed 200 OK in 17ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7099
+ Connecting to database specified by database.yml
7100
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7101
+  (0.0ms) SAVEPOINT active_record_1
7102
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:18:54.029000', 'itemType: book', 'csf', '2013-06-14 22:18:54.029000')
7103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7104
+  (0.0ms) SAVEPOINT active_record_1
7105
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7106
+  (0.0ms) SAVEPOINT active_record_1
7107
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7109
+  (0.0ms) SAVEPOINT active_record_1
7110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7111
+  (0.0ms) SAVEPOINT active_record_1
7112
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7113
+  (0.0ms) SAVEPOINT active_record_1
7114
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7115
+  (0.0ms) SAVEPOINT active_record_1
7116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7117
+  (0.0ms) SAVEPOINT active_record_1
7118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7119
+ Processing by TestController#test as
7120
+  (0.0ms) SAVEPOINT active_record_1
7121
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:18:54.359000', 'itemType: book', 'csf', '2013-06-14 22:18:54.359000')
7122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7123
+ Completed 406 Not Acceptable in 11ms (ActiveRecord: 1.0ms)
7124
+ Processing by TestController#test as BIBTEX
7125
+  (0.0ms) SAVEPOINT active_record_1
7126
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:18:54.383000', 'itemType: book', 'csf', '2013-06-14 22:18:54.383000')
7127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7128
+ Sent data 3.bib (3.0ms)
7129
+ Completed 200 OK in 42ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7130
+ Processing by TestController#test as BIBTEX
7131
+  (0.0ms) SAVEPOINT active_record_1
7132
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:18:54.435000', 'itemType: book', 'csf', '2013-06-14 22:18:54.435000')
7133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7134
+ Sent data 3.bib (1.0ms)
7135
+ Completed 200 OK in 16ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7136
+ Processing by TestController#test as RIS
7137
+  (0.0ms) SAVEPOINT active_record_1
7138
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:18:54.461000', 'itemType: book', 'csf', '2013-06-14 22:18:54.461000')
7139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7140
+ Sent data 3.ris (1.0ms)
7141
+ Completed 200 OK in 15ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7142
+ Connecting to database specified by database.yml
7143
+  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7144
+  (0.0ms) SAVEPOINT active_record_1
7145
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:19:46.973000', 'itemType: book', 'csf', '2013-06-14 22:19:46.973000')
7146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7147
+  (0.0ms) SAVEPOINT active_record_1
7148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7149
+  (1.0ms) SAVEPOINT active_record_1
7150
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7152
+  (0.0ms) SAVEPOINT active_record_1
7153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7154
+  (0.0ms) SAVEPOINT active_record_1
7155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7156
+  (1.0ms) SAVEPOINT active_record_1
7157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7158
+ Processing by TestController#test as
7159
+  (0.0ms) SAVEPOINT active_record_1
7160
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:19:47.331000', 'itemType: book', 'csf', '2013-06-14 22:19:47.331000')
7161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7162
+ Completed 406 Not Acceptable in 13ms (ActiveRecord: 0.0ms)
7163
+ Processing by TestController#test as BIBTEX
7164
+  (0.0ms) SAVEPOINT active_record_1
7165
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:19:47.361000', 'itemType: book', 'csf', '2013-06-14 22:19:47.361000')
7166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7167
+ Sent data 3.bib (3.0ms)
7168
+ Completed 200 OK in 38ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7169
+ Processing by TestController#test as BIBTEX
7170
+  (0.0ms) SAVEPOINT active_record_1
7171
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:19:47.412000', 'itemType: book', 'csf', '2013-06-14 22:19:47.412000')
7172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7173
+ Sent data 3.bib (1.0ms)
7174
+ Completed 200 OK in 18ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7175
+ Processing by TestController#test as RIS
7176
+  (0.0ms) SAVEPOINT active_record_1
7177
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:19:47.439000', 'itemType: book', 'csf', '2013-06-14 22:19:47.439000')
7178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7179
+ Sent data 3.ris (2.0ms)
7180
+ Completed 200 OK in 17ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7181
+ Connecting to database specified by database.yml
7182
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7183
+  (0.0ms) SAVEPOINT active_record_1
7184
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:21:25.028000', 'itemType: book', 'csf', '2013-06-14 22:21:25.028000')
7185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7186
+  (0.0ms) SAVEPOINT active_record_1
7187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7188
+  (0.0ms) SAVEPOINT active_record_1
7189
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7191
+  (0.0ms) SAVEPOINT active_record_1
7192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7193
+  (0.0ms) SAVEPOINT active_record_1
7194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7195
+  (0.0ms) SAVEPOINT active_record_1
7196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7197
+ Processing by TestController#test as
7198
+  (0.0ms) SAVEPOINT active_record_1
7199
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:21:25.337000', 'itemType: book', 'csf', '2013-06-14 22:21:25.337000')
7200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7201
+ Completed 406 Not Acceptable in 12ms (ActiveRecord: 0.0ms)
7202
+ Processing by TestController#test as BIBTEX
7203
+  (0.0ms) SAVEPOINT active_record_1
7204
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:21:25.363000', 'itemType: book', 'csf', '2013-06-14 22:21:25.363000')
7205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7206
+ Sent data 3.bib (2.0ms)
7207
+ Completed 200 OK in 34ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7208
+ Processing by TestController#test as BIBTEX
7209
+  (0.0ms) SAVEPOINT active_record_1
7210
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:21:25.405000', 'itemType: book', 'csf', '2013-06-14 22:21:25.405000')
7211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7212
+ Sent data 3.bib (1.0ms)
7213
+ Completed 200 OK in 14ms (Views: 2.0ms | ActiveRecord: 0.0ms)
7214
+ Processing by TestController#test as RIS
7215
+  (0.0ms) SAVEPOINT active_record_1
7216
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:21:25.428000', 'itemType: book', 'csf', '2013-06-14 22:21:25.428000')
7217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7218
+ Sent data 3.ris (1.0ms)
7219
+ Completed 200 OK in 17ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7220
+ Connecting to database specified by database.yml
7221
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7222
+  (0.0ms) SAVEPOINT active_record_1
7223
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:25:40.595000', 'itemType: book', 'csf', '2013-06-14 22:25:40.595000')
7224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7225
+  (1.0ms) SAVEPOINT active_record_1
7226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7227
+  (0.0ms) SAVEPOINT active_record_1
7228
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7230
+  (0.0ms) SAVEPOINT active_record_1
7231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7232
+  (0.0ms) SAVEPOINT active_record_1
7233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7234
+  (0.0ms) SAVEPOINT active_record_1
7235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7236
+  (0.0ms) SAVEPOINT active_record_1
7237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7238
+ Processing by TestController#test as
7239
+  (0.0ms) SAVEPOINT active_record_1
7240
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:25:40.888000', 'itemType: book', 'csf', '2013-06-14 22:25:40.888000')
7241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7242
+ Completed 406 Not Acceptable in 14ms (ActiveRecord: 1.0ms)
7243
+ Processing by TestController#test as BIBTEX
7244
+  (0.0ms) SAVEPOINT active_record_1
7245
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:25:40.917000', 'itemType: book', 'csf', '2013-06-14 22:25:40.917000')
7246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7247
+ Sent data 3.bib (3.0ms)
7248
+ Completed 200 OK in 39ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7249
+ Processing by TestController#test as BIBTEX
7250
+  (0.0ms) SAVEPOINT active_record_1
7251
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:25:40.963000', 'itemType: book', 'csf', '2013-06-14 22:25:40.963000')
7252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7253
+ Sent data 3.bib (1.0ms)
7254
+ Completed 200 OK in 17ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7255
+ Processing by TestController#test as RIS
7256
+  (0.0ms) SAVEPOINT active_record_1
7257
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:25:40.990000', 'itemType: book', 'csf', '2013-06-14 22:25:40.990000')
7258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7259
+ Sent data 3.ris (1.0ms)
7260
+ Completed 200 OK in 17ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7261
+ Connecting to database specified by database.yml
7262
+  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7263
+  (0.0ms) SAVEPOINT active_record_1
7264
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:26:15.890000', 'itemType: book', 'csf', '2013-06-14 22:26:15.890000')
7265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7266
+  (0.0ms) SAVEPOINT active_record_1
7267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7268
+  (0.0ms) SAVEPOINT active_record_1
7269
+ SQL (1.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7271
+  (0.0ms) SAVEPOINT active_record_1
7272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7273
+  (0.0ms) SAVEPOINT active_record_1
7274
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7275
+  (1.0ms) SAVEPOINT active_record_1
7276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7277
+  (0.0ms) SAVEPOINT active_record_1
7278
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7279
+  (0.0ms) SAVEPOINT active_record_1
7280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7281
+ Processing by TestController#test as
7282
+  (0.0ms) SAVEPOINT active_record_1
7283
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:26:16.170000', 'itemType: book', 'csf', '2013-06-14 22:26:16.170000')
7284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7285
+ Completed 406 Not Acceptable in 11ms (ActiveRecord: 0.0ms)
7286
+ Processing by TestController#test as BIBTEX
7287
+  (0.0ms) SAVEPOINT active_record_1
7288
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:26:16.195000', 'itemType: book', 'csf', '2013-06-14 22:26:16.195000')
7289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7290
+ Sent data 3.bib (3.0ms)
7291
+ Completed 200 OK in 46ms (Views: 6.0ms | ActiveRecord: 0.0ms)
7292
+ Processing by TestController#test as BIBTEX
7293
+  (0.0ms) SAVEPOINT active_record_1
7294
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:26:16.255000', 'itemType: book', 'csf', '2013-06-14 22:26:16.255000')
7295
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7296
+ Sent data 3.bib (2.0ms)
7297
+ Completed 200 OK in 18ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7298
+ Processing by TestController#test as RIS
7299
+  (0.0ms) SAVEPOINT active_record_1
7300
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:26:16.283000', 'itemType: book', 'csf', '2013-06-14 22:26:16.283000')
7301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7302
+ Sent data 3.ris (1.0ms)
7303
+ Completed 200 OK in 21ms (Views: 4.0ms | ActiveRecord: 0.0ms)
7304
+ Connecting to database specified by database.yml
7305
+ Connecting to database specified by database.yml
7306
+ Connecting to database specified by database.yml
7307
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7308
+  (0.0ms) SAVEPOINT active_record_1
7309
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:28:29.665000', 'itemType: book', 'csf', '2013-06-14 22:28:29.665000')
7310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7311
+  (0.0ms) SAVEPOINT active_record_1
7312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7313
+  (0.0ms) SAVEPOINT active_record_1
7314
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7316
+  (0.0ms) SAVEPOINT active_record_1
7317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7318
+  (0.0ms) SAVEPOINT active_record_1
7319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7320
+  (0.0ms) SAVEPOINT active_record_1
7321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7322
+  (0.0ms) SAVEPOINT active_record_1
7323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7324
+  (1.0ms) SAVEPOINT active_record_1
7325
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7326
+ Processing by TestController#test as
7327
+  (0.0ms) SAVEPOINT active_record_1
7328
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:28:29.956000', 'itemType: book', 'csf', '2013-06-14 22:28:29.956000')
7329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7330
+ Completed 406 Not Acceptable in 10ms (ActiveRecord: 1.0ms)
7331
+ Processing by TestController#test as BIBTEX
7332
+  (0.0ms) SAVEPOINT active_record_1
7333
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:28:29.979000', 'itemType: book', 'csf', '2013-06-14 22:28:29.979000')
7334
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7335
+ Sent data 3.bib (3.0ms)
7336
+ Completed 200 OK in 38ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7337
+ Processing by TestController#test as BIBTEX
7338
+  (0.0ms) SAVEPOINT active_record_1
7339
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:28:30.027000', 'itemType: book', 'csf', '2013-06-14 22:28:30.027000')
7340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7341
+ Sent data 3.bib (2.0ms)
7342
+ Completed 200 OK in 17ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7343
+ Processing by TestController#test as RIS
7344
+  (0.0ms) SAVEPOINT active_record_1
7345
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:28:30.053000', 'itemType: book', 'csf', '2013-06-14 22:28:30.053000')
7346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7347
+ Sent data 3.ris (7.0ms)
7348
+ Completed 200 OK in 25ms (Views: 9.0ms | ActiveRecord: 0.0ms)
7349
+ Connecting to database specified by database.yml
7350
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7351
+  (0.0ms) SAVEPOINT active_record_1
7352
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:34:11.067000', 'itemType: book', 'csf', '2013-06-14 22:34:11.067000')
7353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7354
+  (0.0ms) SAVEPOINT active_record_1
7355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7356
+  (0.0ms) SAVEPOINT active_record_1
7357
+ SQL (1.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7359
+  (0.0ms) SAVEPOINT active_record_1
7360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7361
+  (1.0ms) SAVEPOINT active_record_1
7362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7363
+  (0.0ms) SAVEPOINT active_record_1
7364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7365
+  (0.0ms) SAVEPOINT active_record_1
7366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7367
+  (0.0ms) SAVEPOINT active_record_1
7368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7369
+ Processing by TestController#test as
7370
+  (0.0ms) SAVEPOINT active_record_1
7371
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:34:11.419000', 'itemType: book', 'csf', '2013-06-14 22:34:11.419000')
7372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7373
+ Completed 406 Not Acceptable in 12ms (ActiveRecord: 1.0ms)
7374
+ Processing by TestController#test as BIBTEX
7375
+  (0.0ms) SAVEPOINT active_record_1
7376
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:34:11.440000', 'itemType: book', 'csf', '2013-06-14 22:34:11.440000')
7377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7378
+ Sent data 3.bib (10.0ms)
7379
+ Completed 200 OK in 54ms (Views: 12.0ms | ActiveRecord: 0.0ms)
7380
+ Processing by TestController#test as BIBTEX
7381
+  (0.0ms) SAVEPOINT active_record_1
7382
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:34:11.504000', 'itemType: book', 'csf', '2013-06-14 22:34:11.504000')
7383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7384
+ Sent data 3.bib (2.0ms)
7385
+ Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7386
+ Processing by TestController#test as RIS
7387
+  (1.0ms) SAVEPOINT active_record_1
7388
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:34:11.536000', 'itemType: book', 'csf', '2013-06-14 22:34:11.536000')
7389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7390
+ Sent data 3.ris (2.0ms)
7391
+ Completed 200 OK in 26ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7392
+ Connecting to database specified by database.yml
7393
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7394
+  (0.0ms) SAVEPOINT active_record_1
7395
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:48:32.938000', 'itemType: book', 'csf', '2013-06-14 22:48:32.938000')
7396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7397
+  (0.0ms) SAVEPOINT active_record_1
7398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7399
+  (0.0ms) SAVEPOINT active_record_1
7400
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7402
+  (0.0ms) SAVEPOINT active_record_1
7403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7404
+  (0.0ms) SAVEPOINT active_record_1
7405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7406
+  (0.0ms) SAVEPOINT active_record_1
7407
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7408
+  (0.0ms) SAVEPOINT active_record_1
7409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7410
+  (0.0ms) SAVEPOINT active_record_1
7411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7412
+ Processing by TestController#test as
7413
+  (0.0ms) SAVEPOINT active_record_1
7414
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:48:33.423000', 'itemType: book', 'csf', '2013-06-14 22:48:33.423000')
7415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7416
+ Completed 406 Not Acceptable in 13ms (ActiveRecord: 1.0ms)
7417
+ Processing by TestController#test as BIBTEX
7418
+  (0.0ms) SAVEPOINT active_record_1
7419
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:48:33.463000', 'itemType: book', 'csf', '2013-06-14 22:48:33.463000')
7420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7421
+ Sent data 3.bib (11.0ms)
7422
+ Completed 200 OK in 56ms (Views: 13.0ms | ActiveRecord: 0.0ms)
7423
+ Processing by TestController#test as BIBTEX
7424
+  (1.0ms) SAVEPOINT active_record_1
7425
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:48:33.528000', 'itemType: book', 'csf', '2013-06-14 22:48:33.528000')
7426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7427
+ Sent data 3.bib (1.0ms)
7428
+ Completed 200 OK in 17ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7429
+ Processing by TestController#test as RIS
7430
+  (0.0ms) SAVEPOINT active_record_1
7431
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-14 22:48:33.552000', 'itemType: book', 'csf', '2013-06-14 22:48:33.552000')
7432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7433
+ Sent data 3.ris (5.0ms)
7434
+ Completed 200 OK in 21ms (Views: 7.0ms | ActiveRecord: 0.0ms)
7435
+ Connecting to database specified by database.yml
7436
+  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7437
+  (0.0ms) SAVEPOINT active_record_1
7438
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 17:58:13.264000', 'itemType: book', 'csf', '2013-06-20 17:58:13.264000')
7439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7440
+  (0.0ms) SAVEPOINT active_record_1
7441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7442
+  (0.0ms) SAVEPOINT active_record_1
7443
+ SQL (1.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7445
+  (0.0ms) SAVEPOINT active_record_1
7446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7447
+  (0.0ms) SAVEPOINT active_record_1
7448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7449
+  (0.0ms) SAVEPOINT active_record_1
7450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7451
+  (0.0ms) SAVEPOINT active_record_1
7452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7453
+  (0.0ms) SAVEPOINT active_record_1
7454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7455
+ Processing by TestController#test as
7456
+  (0.0ms) SAVEPOINT active_record_1
7457
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 17:58:13.615000', 'itemType: book', 'csf', '2013-06-20 17:58:13.615000')
7458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7459
+ Completed 406 Not Acceptable in 13ms (ActiveRecord: 1.0ms)
7460
+ Processing by TestController#test as BIBTEX
7461
+  (0.0ms) SAVEPOINT active_record_1
7462
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 17:58:13.654000', 'itemType: book', 'csf', '2013-06-20 17:58:13.654000')
7463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7464
+ Sent data 3.bib (10.0ms)
7465
+ Completed 200 OK in 56ms (Views: 14.0ms | ActiveRecord: 0.0ms)
7466
+ Processing by TestController#test as BIBTEX
7467
+  (0.0ms) SAVEPOINT active_record_1
7468
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 17:58:13.720000', 'itemType: book', 'csf', '2013-06-20 17:58:13.720000')
7469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7470
+ Sent data 3.bib (1.0ms)
7471
+ Completed 200 OK in 21ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7472
+ Processing by TestController#test as RIS
7473
+  (0.0ms) SAVEPOINT active_record_1
7474
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 17:58:13.749000', 'itemType: book', 'csf', '2013-06-20 17:58:13.749000')
7475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7476
+ Sent data 3.ris (1.0ms)
7477
+ Completed 200 OK in 16ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7478
+ Connecting to database specified by database.yml
7479
+  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7480
+  (0.0ms) SAVEPOINT active_record_1
7481
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:02:53.851000', 'itemType: book', 'csf', '2013-06-20 18:02:53.851000')
7482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7483
+  (0.0ms) SAVEPOINT active_record_1
7484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7485
+  (1.0ms) SAVEPOINT active_record_1
7486
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7488
+  (0.0ms) SAVEPOINT active_record_1
7489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7490
+  (0.0ms) SAVEPOINT active_record_1
7491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7492
+  (0.0ms) SAVEPOINT active_record_1
7493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7494
+  (0.0ms) SAVEPOINT active_record_1
7495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7496
+  (0.0ms) SAVEPOINT active_record_1
7497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7498
+ Processing by TestController#test as
7499
+  (0.0ms) SAVEPOINT active_record_1
7500
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:02:54.142000', 'itemType: book', 'csf', '2013-06-20 18:02:54.142000')
7501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7502
+ Completed 406 Not Acceptable in 11ms (ActiveRecord: 1.0ms)
7503
+ Processing by TestController#test as BIBTEX
7504
+  (0.0ms) SAVEPOINT active_record_1
7505
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:02:54.165000', 'itemType: book', 'csf', '2013-06-20 18:02:54.165000')
7506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7507
+ Sent data 3.bib (3.0ms)
7508
+ Completed 200 OK in 35ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7509
+ Processing by TestController#test as BIBTEX
7510
+  (0.0ms) SAVEPOINT active_record_1
7511
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:02:54.214000', 'itemType: book', 'csf', '2013-06-20 18:02:54.214000')
7512
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7513
+ Sent data 3.bib (1.0ms)
7514
+ Completed 200 OK in 14ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7515
+ Processing by TestController#test as RIS
7516
+  (0.0ms) SAVEPOINT active_record_1
7517
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:02:54.239000', 'itemType: book', 'csf', '2013-06-20 18:02:54.239000')
7518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7519
+ Sent data 3.ris (1.0ms)
7520
+ Completed 200 OK in 16ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7521
+ Connecting to database specified by database.yml
7522
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7523
+  (0.0ms) SAVEPOINT active_record_1
7524
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:05.745000', 'itemType: book', 'csf', '2013-06-20 18:04:05.745000')
7525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7526
+  (1.0ms) SAVEPOINT active_record_1
7527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7528
+  (1.0ms) SAVEPOINT active_record_1
7529
+ SQL (0.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7531
+  (0.0ms) SAVEPOINT active_record_1
7532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7533
+  (0.0ms) SAVEPOINT active_record_1
7534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7535
+  (0.0ms) SAVEPOINT active_record_1
7536
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7537
+  (0.0ms) SAVEPOINT active_record_1
7538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7539
+  (0.0ms) SAVEPOINT active_record_1
7540
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7541
+ Processing by TestController#test as
7542
+  (0.0ms) SAVEPOINT active_record_1
7543
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:06.024000', 'itemType: book', 'csf', '2013-06-20 18:04:06.024000')
7544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7545
+ Completed 406 Not Acceptable in 12ms (ActiveRecord: 1.0ms)
7546
+ Processing by TestController#test as BIBTEX
7547
+  (0.0ms) SAVEPOINT active_record_1
7548
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:06.048000', 'itemType: book', 'csf', '2013-06-20 18:04:06.048000')
7549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7550
+ Sent data 3.bib (3.0ms)
7551
+ Completed 200 OK in 43ms (Views: 7.0ms | ActiveRecord: 0.0ms)
7552
+ Processing by TestController#test as BIBTEX
7553
+  (0.0ms) SAVEPOINT active_record_1
7554
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:06.104000', 'itemType: book', 'csf', '2013-06-20 18:04:06.104000')
7555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7556
+ Sent data 3.bib (1.0ms)
7557
+ Completed 200 OK in 21ms (Views: 2.0ms | ActiveRecord: 0.0ms)
7558
+ Processing by TestController#test as RIS
7559
+  (0.0ms) SAVEPOINT active_record_1
7560
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:06.130000', 'itemType: book', 'csf', '2013-06-20 18:04:06.130000')
7561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7562
+ Sent data 3.ris (1.0ms)
7563
+ Completed 200 OK in 15ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7564
+ Connecting to database specified by database.yml
7565
+  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7566
+  (0.0ms) SAVEPOINT active_record_1
7567
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:53.237000', 'itemType: book', 'csf', '2013-06-20 18:04:53.237000')
7568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7569
+  (1.0ms) SAVEPOINT active_record_1
7570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7571
+  (0.0ms) SAVEPOINT active_record_1
7572
+ SQL (1.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7574
+  (0.0ms) SAVEPOINT active_record_1
7575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7576
+  (0.0ms) SAVEPOINT active_record_1
7577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7578
+  (0.0ms) SAVEPOINT active_record_1
7579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7580
+  (0.0ms) SAVEPOINT active_record_1
7581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7582
+  (0.0ms) SAVEPOINT active_record_1
7583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7584
+ Processing by TestController#test as
7585
+  (0.0ms) SAVEPOINT active_record_1
7586
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:53.519000', 'itemType: book', 'csf', '2013-06-20 18:04:53.519000')
7587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7588
+ Completed 406 Not Acceptable in 10ms (ActiveRecord: 1.0ms)
7589
+ Processing by TestController#test as BIBTEX
7590
+  (0.0ms) SAVEPOINT active_record_1
7591
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:53.542000', 'itemType: book', 'csf', '2013-06-20 18:04:53.542000')
7592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7593
+ Sent data 3.bib (3.0ms)
7594
+ Completed 200 OK in 33ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7595
+ Processing by TestController#test as BIBTEX
7596
+  (0.0ms) SAVEPOINT active_record_1
7597
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:53.588000', 'itemType: book', 'csf', '2013-06-20 18:04:53.588000')
7598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7599
+ Sent data 3.bib (1.0ms)
7600
+ Completed 200 OK in 15ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7601
+ Processing by TestController#test as RIS
7602
+  (0.0ms) SAVEPOINT active_record_1
7603
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:04:53.616000', 'itemType: book', 'csf', '2013-06-20 18:04:53.616000')
7604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7605
+ Sent data 3.ris (2.0ms)
7606
+ Completed 200 OK in 15ms (Views: 3.0ms | ActiveRecord: 0.0ms)
7607
+ Connecting to database specified by database.yml
7608
+  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7609
+  (0.0ms) SAVEPOINT active_record_1
7610
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:16:10.882000', 'itemType: book', 'csf', '2013-06-20 18:16:10.882000')
7611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7612
+  (0.0ms) SAVEPOINT active_record_1
7613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7614
+  (0.0ms) SAVEPOINT active_record_1
7615
+ SQL (1.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7617
+  (0.0ms) SAVEPOINT active_record_1
7618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7619
+  (0.0ms) SAVEPOINT active_record_1
7620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7621
+  (0.0ms) SAVEPOINT active_record_1
7622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7623
+  (0.0ms) SAVEPOINT active_record_1
7624
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7625
+  (0.0ms) SAVEPOINT active_record_1
7626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7627
+ Processing by TestController#test as
7628
+  (1.0ms) SAVEPOINT active_record_1
7629
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:16:14.465000', 'itemType: book', 'csf', '2013-06-20 18:16:14.465000')
7630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7631
+ Completed 406 Not Acceptable in 12ms (ActiveRecord: 2.0ms)
7632
+ Processing by TestController#test as BIBTEX
7633
+  (0.0ms) SAVEPOINT active_record_1
7634
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:16:14.492000', 'itemType: book', 'csf', '2013-06-20 18:16:14.492000')
7635
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7636
+ Sent data 3.bib (3.0ms)
7637
+ Completed 200 OK in 40ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7638
+ Processing by TestController#test as BIBTEX
7639
+  (0.0ms) SAVEPOINT active_record_1
7640
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:16:14.542000', 'itemType: book', 'csf', '2013-06-20 18:16:14.542000')
7641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7642
+ Sent data 3.bib (1.0ms)
7643
+ Completed 200 OK in 17ms (Views: 4.0ms | ActiveRecord: 0.0ms)
7644
+ Processing by TestController#test as RIS
7645
+  (0.0ms) SAVEPOINT active_record_1
7646
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:16:14.570000', 'itemType: book', 'csf', '2013-06-20 18:16:14.570000')
7647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7648
+ Sent data 3.ris (1.0ms)
7649
+ Completed 200 OK in 18ms (Views: 4.0ms | ActiveRecord: 0.0ms)
7650
+ Connecting to database specified by database.yml
7651
+  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' AND name = "records"
7652
+  (0.0ms) SAVEPOINT active_record_1
7653
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:17:52.774000', 'itemType: book', 'csf', '2013-06-20 18:17:52.774000')
7654
+  (1.0ms) RELEASE SAVEPOINT active_record_1
7655
+  (0.0ms) SAVEPOINT active_record_1
7656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7657
+  (0.0ms) SAVEPOINT active_record_1
7658
+ SQL (1.0ms) DELETE FROM "records" WHERE "records"."id" = 3
7659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7660
+  (0.0ms) SAVEPOINT active_record_1
7661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7662
+  (1.0ms) SAVEPOINT active_record_1
7663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7664
+  (0.0ms) SAVEPOINT active_record_1
7665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7666
+  (0.0ms) SAVEPOINT active_record_1
7667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7668
+  (0.0ms) SAVEPOINT active_record_1
7669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7670
+ Processing by TestController#test as
7671
+  (0.0ms) SAVEPOINT active_record_1
7672
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:17:56.527000', 'itemType: book', 'csf', '2013-06-20 18:17:56.527000')
7673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7674
+ Completed 406 Not Acceptable in 14ms (ActiveRecord: 0.0ms)
7675
+ Processing by TestController#test as BIBTEX
7676
+  (0.0ms) SAVEPOINT active_record_1
7677
+ SQL (0.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:17:56.558000', 'itemType: book', 'csf', '2013-06-20 18:17:56.558000')
7678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7679
+ Sent data 3.bib (4.0ms)
7680
+ Completed 200 OK in 51ms (Views: 7.0ms | ActiveRecord: 0.0ms)
7681
+ Processing by TestController#test as BIBTEX
7682
+  (0.0ms) SAVEPOINT active_record_1
7683
+ SQL (11.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:17:56.629000', 'itemType: book', 'csf', '2013-06-20 18:17:56.629000')
7684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7685
+ Sent data 3.bib (2.0ms)
7686
+ Completed 200 OK in 38ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7687
+ Processing by TestController#test as RIS
7688
+  (0.0ms) SAVEPOINT active_record_1
7689
+ SQL (1.0ms) INSERT INTO "records" ("created_at", "data", "format", "updated_at") VALUES ('2013-06-20 18:17:56.686000', 'itemType: book', 'csf', '2013-06-20 18:17:56.686000')
7690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7691
+ Sent data 3.ris (2.0ms)
7692
+ Completed 200 OK in 31ms (Views: 9.0ms | ActiveRecord: 0.0ms)
@@ -3,9 +3,9 @@ require 'test_helper'
3
3
  class RecordTest < ActiveSupport::TestCase
4
4
  test "should be able to create a new Record" do
5
5
  rec = Record.new(:data => "itemType: book", :format => "csf")
6
- assert rec.to_ris.eql? "TY - BOOK\nER -\n\n"
7
- assert rec.to_bibtex.eql? "@book{????\n}"
8
- assert rec.to_openurl.eql? "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book"
9
- assert rec.to_easybib.eql? "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[{}]}"
6
+ assert_equal "TY - BOOK\nER -\n\n", rec.to_ris
7
+ assert_equal "@book{????\n}", rec.to_bibtex
8
+ assert_equal "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book", rec.to_openurl
9
+ assert_equal "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[]}", rec.to_easybib
10
10
  end
11
11
  end
data/test/test_helper.rb CHANGED
@@ -1,12 +1,12 @@
1
- require 'simplecov'
2
- require 'simplecov-rcov'
3
-
4
- require 'coveralls'
5
- Coveralls.wear!
6
-
7
-
8
- SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
9
- SimpleCov.start 'rails'
1
+ unless ENV['TRAVIS']
2
+ require 'simplecov'
3
+ require 'simplecov-rcov'
4
+ SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
5
+ SimpleCov.start 'rails'
6
+ else
7
+ require 'coveralls'
8
+ Coveralls.wear!
9
+ end
10
10
 
11
11
  # Configure Rails Environment
12
12
  ENV["RAILS_ENV"] = "test"
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: acts_as_citable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.0
5
+ version: 2.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - hab278
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-25 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -33,13 +33,13 @@ dependencies:
33
33
  requirements:
34
34
  - - "~>"
35
35
  - !ruby/object:Gem::Version
36
- version: 1.1.0
36
+ version: 2.1.1
37
37
  none: false
38
38
  requirement: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.1.0
42
+ version: 2.1.1
43
43
  none: false
44
44
  prerelease: false
45
45
  type: :runtime