acts_as_citable 5.0.0.beta → 5.1.0

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
- SHA1:
3
- metadata.gz: 5937109957c6aa133c0b3d8c08d564fc0916bdea
4
- data.tar.gz: 4df220bb144a375d8a25c5f90ed87ec7abb771fd
2
+ SHA256:
3
+ metadata.gz: c91d19f9204e04e6aeef89cd75a2342752ea365eb53b6b8f2f1ae2670bf54007
4
+ data.tar.gz: 4b45e5408398c1ac83e271e7fabaa6edd462ae9c929666942712f7069944ed4c
5
5
  SHA512:
6
- metadata.gz: d216008792da6e278222f297ad2e112f5c09377e20d13c797bafe9141effb62da84d6f2aebf75dfd7623d9db5398d1443a5884e0f5ccdee16215f428808b484b
7
- data.tar.gz: 0002062073d025808a245ffc0505764dc740c52b837bccb0bde650385bdcb790c9dec10c42afd8953937eb406ea7c3edb7954156463202a03477d1475b9d432f
6
+ metadata.gz: 5aa84f5fb374d431c4271eaa5ae35443c53415af2ecf90832dc23706617fbb5e42b8e036c85774b54105387a9f5be5fdbcb2319355217e861771e4265a5f6f0f
7
+ data.tar.gz: 2ba7184dc60699eea885614b8ed5397c5107b284bfd2cc777ddcbdda0332381496e3ba1f5881d55215668d987b1d74719f907cad4c61be0c862094f18e1af11d
@@ -0,0 +1,47 @@
1
+ acts_as_citable
2
+ ===============
3
+ [![Build Status](https://travis-ci.org/NYULibraries/acts_as_citable.svg?branch=master)](https://travis-ci.org/NYULibraries/acts_as_citable)
4
+ [![Coverage Status](https://coveralls.io/repos/github/NYULibraries/acts_as_citable/badge.svg?branch=master)](https://coveralls.io/github/NYULibraries/acts_as_citable?branch=master)
5
+ [![Gem Version](https://badge.fury.io/rb/acts_as_citable.svg)](https://badge.fury.io/rb/acts_as_citable)
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/c0f67ceb0bd39473a368/maintainability)](https://codeclimate.com/github/NYULibraries/acts_as_citable/maintainability)
7
+
8
+ Acts as gem for Citero. This gem allows an object to utilize Citero's translating properties.
9
+
10
+ Config
11
+ ======
12
+ Simply put acts_as_citable in your model. If you have attributes named _data_ and _format_, you are set. If you must configure, do the following.
13
+
14
+ ```
15
+ acts_as_citable do |c|
16
+ c.format_field = 'your_format_field_name'
17
+ c.data_field = 'your_data_field_name'
18
+ end
19
+ ```
20
+ How to use
21
+ ==========
22
+ Using acts_as_citable is easy! Once you have your model configured, simply use the _to\_format_ method on your model where _format_ is one of the desired formats.
23
+
24
+ * BibTeX
25
+ * RIS
26
+ * OpenURL
27
+ * EasyBib
28
+ * CSF (**C**itero **S**tandard **F**ormat)
29
+
30
+ The results are returned as string. Additionally, you can have it render the format with a responds with action. You must have something like this in your controller.
31
+
32
+ class TestController < ApplicationController
33
+ respond_to :ris, :bibtex, :json
34
+ def test
35
+ rec = Record.create(:data => "itemType: book", :format => "csf")
36
+ arr = Array.new
37
+ arr << rec
38
+ respond_with(arr)
39
+ end
40
+ end
41
+
42
+ Finally, to interact with the CSF object, you can call the _csf_ method.
43
+
44
+ rec = Record.create(:data => "itemType: book", :format => "csf")
45
+ csf = rec.csf
46
+ p csf.itemType # => Prints ['book']
47
+ p csf.keys # => Prints ['itemType']
data/Rakefile CHANGED
@@ -24,6 +24,6 @@ Bundler::GemHelper.install_tasks
24
24
 
25
25
  require 'rspec/core/rake_task'
26
26
  RSpec::Core::RakeTask.new(:spec) do |t|
27
- t.ruby_opts = "--debug --dev"
27
+ # t.ruby_opts = "--debug --dev"
28
28
  end
29
29
  task default: :spec
@@ -1,3 +1,3 @@
1
1
  module ActsAsCitable
2
- VERSION = "5.0.0.beta"
2
+ VERSION = "5.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_citable
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hab278
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 4.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5'
22
+ version: '6'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 4.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5'
32
+ version: '6'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: citero
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -80,13 +80,12 @@ extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
82
  - MIT-LICENSE
83
- - README.rdoc
83
+ - README.md
84
84
  - Rakefile
85
85
  - lib/acts_as_citable.rb
86
86
  - lib/acts_as_citable/base.rb
87
87
  - lib/acts_as_citable/version.rb
88
88
  - lib/tasks/acts_as_citable_tasks.rake
89
- - test/dummy/log/test.log
90
89
  homepage: https://github.com/NYULibraries/acts_as_citable
91
90
  licenses: []
92
91
  metadata: {}
@@ -101,14 +100,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
100
  version: '0'
102
101
  required_rubygems_version: !ruby/object:Gem::Requirement
103
102
  requirements:
104
- - - ">"
103
+ - - ">="
105
104
  - !ruby/object:Gem::Version
106
- version: 1.3.1
105
+ version: '0'
107
106
  requirements: []
108
107
  rubyforge_project:
109
- rubygems_version: 2.6.11
108
+ rubygems_version: 2.7.6
110
109
  signing_key:
111
110
  specification_version: 4
112
111
  summary: Acts As gem for allowing models to be used as citable objects.
113
- test_files:
114
- - test/dummy/log/test.log
112
+ test_files: []
@@ -1,3 +0,0 @@
1
- = ActsAsCitable
2
-
3
- This project rocks and uses MIT-LICENSE.
@@ -1,605 +0,0 @@
1
-  (4.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
2
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
3
-  (2.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "record_changed_fields"
4
-  (4.0ms) CREATE TABLE "record_changed_fields" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "from_format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
5
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "records"
6
-  (1.0ms) CREATE TABLE "records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
8
-  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
10
-  (1.0ms) SELECT sqlite_version(*)
11
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12
-  (0.0ms) SELECT version FROM "schema_migrations"
13
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221214225')
14
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221210429')
15
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
16
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
- -------------------------------------------------------------
18
- RecordTest: test_should_be_able_to_convert_to_an_export_STYLE
19
- -------------------------------------------------------------
20
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'
21
- ------------------------------------------------------
22
- RecordTest: test_should_be_able_to_create_a_new_Record
23
- ------------------------------------------------------
24
- --------------------------------------------------
25
- RecordTest: test_should_be_available_to_convert_to
26
- --------------------------------------------------
27
- -----------------------------------------------------
28
- RecordTest: test_should_check_if_i_can_use_the_record
29
- -----------------------------------------------------
30
- Savepoint (3.0ms) SAVEPOINT active_record_1
31
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
32
- -------------------------------------------------------------
33
- RecordTest: test_should_check_to_see_if_format_fields_are_set
34
- -------------------------------------------------------------
35
- ----------------------------------------------------------------
36
- RecordTest: test_should_check_to_see_if_records_can_be_converted
37
- ----------------------------------------------------------------
38
- Savepoint (0.0ms) SAVEPOINT active_record_1
39
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
40
- ---------------------------------------------------------------
41
- RecordTest: test_should_check_to_see_if_you_cannot_convert_from
42
- ---------------------------------------------------------------
43
- ---------------------------------------------
44
- RecordTest: test_should_raise_no_method_error
45
- ---------------------------------------------
46
- Savepoint (0.0ms) SAVEPOINT active_record_1
47
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
48
- -------------------------------------------------
49
- ActsAsCitableTest: test_new_nokogiri_xml_document
50
- -------------------------------------------------
51
- -----------------------------
52
- ActsAsCitableTest: test_truth
53
- -----------------------------
54
- -------------------------------------------------------------------------
55
- RecordChangedFieldTest: test_should_be_able_to_convert_to_an_export_STYLE
56
- -------------------------------------------------------------------------
57
- --------------------------------------------------------------------------------------
58
- RecordChangedFieldTest: test_should_be_able_to_create_a_new_Record_with_changed_fields
59
- --------------------------------------------------------------------------------------
60
- --------------------------------------------------------------
61
- RecordChangedFieldTest: test_should_be_available_to_convert_to
62
- --------------------------------------------------------------
63
- -------------------------------------------------------------------------------------
64
- RecordChangedFieldTest: test_should_check_if_i_can_use_the_record_with_changed_fields
65
- -------------------------------------------------------------------------------------
66
- Savepoint (0.0ms) SAVEPOINT active_record_1
67
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
68
- ------------------------------------------------------------------------------
69
- RecordChangedFieldTest: test_should_check_to_see_if_from_format_fields_are_set
70
- ------------------------------------------------------------------------------
71
- ------------------------------------------------------------------------------------------------
72
- RecordChangedFieldTest: test_should_check_to_see_if_records_with_changed_fields_can_be_converted
73
- ------------------------------------------------------------------------------------------------
74
- Savepoint (2.0ms) SAVEPOINT active_record_1
75
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
76
- ---------------------------------------------------------------------------
77
- RecordChangedFieldTest: test_should_check_to_see_if_you_cannot_convert_from
78
- ---------------------------------------------------------------------------
79
- ---------------------------------------------------------
80
- RecordChangedFieldTest: test_should_raise_no_method_error
81
- ---------------------------------------------------------
82
- Savepoint (0.0ms) SAVEPOINT active_record_1
83
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
84
- ----------------------------------------------------------------------
85
- InheritedRecordTest: test_should_be_able_to_convert_to_an_export_STYLE
86
- ----------------------------------------------------------------------
87
- -------------------------------------------------------------------------
88
- InheritedRecordTest: test_should_be_able_to_create_a_new_Inherited_Record
89
- -------------------------------------------------------------------------
90
- -----------------------------------------------------------
91
- InheritedRecordTest: test_should_be_available_to_convert_to
92
- -----------------------------------------------------------
93
- ------------------------------------------------------------------------
94
- InheritedRecordTest: test_should_check_if_i_can_use_the_Inherited_record
95
- ------------------------------------------------------------------------
96
- Savepoint (0.0ms) SAVEPOINT active_record_1
97
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
98
- -----------------------------------------------------------------------------------
99
- InheritedRecordTest: test_should_check_to_see_if_Inherited_records_can_be_converted
100
- -----------------------------------------------------------------------------------
101
- Savepoint (0.0ms) SAVEPOINT active_record_1
102
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
103
- ----------------------------------------------------------------------
104
- InheritedRecordTest: test_should_check_to_see_if_format_fields_are_set
105
- ----------------------------------------------------------------------
106
- ------------------------------------------------------------------------
107
- InheritedRecordTest: test_should_check_to_see_if_you_cannot_convert_from
108
- ------------------------------------------------------------------------
109
- ------------------------------------------------------
110
- InheritedRecordTest: test_should_raise_no_method_error
111
- ------------------------------------------------------
112
- Savepoint (0.0ms) SAVEPOINT active_record_1
113
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
114
-  (12.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
115
- ActiveRecord::SchemaMigration Load (3.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
116
-  (11.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "record_changed_fields"
117
-  (15.0ms) CREATE TABLE "record_changed_fields" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "from_format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
118
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "records"
119
-  (2.0ms) CREATE TABLE "records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
120
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
121
-  (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
122
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
123
-  (3.0ms) SELECT sqlite_version(*)
124
-  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
125
-  (1.0ms) SELECT version FROM "schema_migrations"
126
-  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221214225')
127
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221210429')
128
-  (2.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
129
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
130
- ----------------------------------------------------------------------
131
- InheritedRecordTest: test_should_be_able_to_convert_to_an_export_STYLE
132
- ----------------------------------------------------------------------
133
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'
134
- -------------------------------------------------------------------------
135
- InheritedRecordTest: test_should_be_able_to_create_a_new_Inherited_Record
136
- -------------------------------------------------------------------------
137
- -----------------------------------------------------------
138
- InheritedRecordTest: test_should_be_available_to_convert_to
139
- -----------------------------------------------------------
140
- Savepoint (21.0ms) SAVEPOINT active_record_1
141
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
142
- ------------------------------------------------------------------------
143
- InheritedRecordTest: test_should_check_if_i_can_use_the_Inherited_record
144
- ------------------------------------------------------------------------
145
- Savepoint (1.0ms) SAVEPOINT active_record_1
146
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
147
- -----------------------------------------------------------------------------------
148
- InheritedRecordTest: test_should_check_to_see_if_Inherited_records_can_be_converted
149
- -----------------------------------------------------------------------------------
150
- Savepoint (1.0ms) SAVEPOINT active_record_1
151
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
152
- ----------------------------------------------------------------------
153
- InheritedRecordTest: test_should_check_to_see_if_format_fields_are_set
154
- ----------------------------------------------------------------------
155
- ------------------------------------------------------------------------
156
- InheritedRecordTest: test_should_check_to_see_if_you_cannot_convert_from
157
- ------------------------------------------------------------------------
158
- ------------------------------------------------------
159
- InheritedRecordTest: test_should_raise_no_method_error
160
- ------------------------------------------------------
161
- Savepoint (1.0ms) SAVEPOINT active_record_1
162
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
163
- -------------------------------------------------------------------------
164
- RecordChangedFieldTest: test_should_be_able_to_convert_to_an_export_STYLE
165
- -------------------------------------------------------------------------
166
- --------------------------------------------------------------------------------------
167
- RecordChangedFieldTest: test_should_be_able_to_create_a_new_Record_with_changed_fields
168
- --------------------------------------------------------------------------------------
169
- --------------------------------------------------------------
170
- RecordChangedFieldTest: test_should_be_available_to_convert_to
171
- --------------------------------------------------------------
172
- Savepoint (0.0ms) SAVEPOINT active_record_1
173
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
174
- -------------------------------------------------------------------------------------
175
- RecordChangedFieldTest: test_should_check_if_i_can_use_the_record_with_changed_fields
176
- -------------------------------------------------------------------------------------
177
- Savepoint (1.0ms) SAVEPOINT active_record_1
178
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
179
- ------------------------------------------------------------------------------
180
- RecordChangedFieldTest: test_should_check_to_see_if_from_format_fields_are_set
181
- ------------------------------------------------------------------------------
182
- ------------------------------------------------------------------------------------------------
183
- RecordChangedFieldTest: test_should_check_to_see_if_records_with_changed_fields_can_be_converted
184
- ------------------------------------------------------------------------------------------------
185
- Savepoint (1.0ms) SAVEPOINT active_record_1
186
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
187
- ---------------------------------------------------------------------------
188
- RecordChangedFieldTest: test_should_check_to_see_if_you_cannot_convert_from
189
- ---------------------------------------------------------------------------
190
- ---------------------------------------------------------
191
- RecordChangedFieldTest: test_should_raise_no_method_error
192
- ---------------------------------------------------------
193
- Savepoint (0.0ms) SAVEPOINT active_record_1
194
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
195
- -------------------------------------------------
196
- ActsAsCitableTest: test_new_nokogiri_xml_document
197
- -------------------------------------------------
198
- -----------------------------
199
- ActsAsCitableTest: test_truth
200
- -----------------------------
201
- -------------------------------------------------------------
202
- RecordTest: test_should_be_able_to_convert_to_an_export_STYLE
203
- -------------------------------------------------------------
204
- ------------------------------------------------------
205
- RecordTest: test_should_be_able_to_create_a_new_Record
206
- ------------------------------------------------------
207
- --------------------------------------------------
208
- RecordTest: test_should_be_available_to_convert_to
209
- --------------------------------------------------
210
- Savepoint (0.0ms) SAVEPOINT active_record_1
211
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
212
- -----------------------------------------------------
213
- RecordTest: test_should_check_if_i_can_use_the_record
214
- -----------------------------------------------------
215
- Savepoint (0.0ms) SAVEPOINT active_record_1
216
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
217
- -------------------------------------------------------------
218
- RecordTest: test_should_check_to_see_if_format_fields_are_set
219
- -------------------------------------------------------------
220
- ----------------------------------------------------------------
221
- RecordTest: test_should_check_to_see_if_records_can_be_converted
222
- ----------------------------------------------------------------
223
- Savepoint (0.0ms) SAVEPOINT active_record_1
224
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
225
- ---------------------------------------------------------------
226
- RecordTest: test_should_check_to_see_if_you_cannot_convert_from
227
- ---------------------------------------------------------------
228
- ---------------------------------------------
229
- RecordTest: test_should_raise_no_method_error
230
- ---------------------------------------------
231
- Savepoint (0.0ms) SAVEPOINT active_record_1
232
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
233
-  (3.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
234
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
235
-  (4.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "record_changed_fields"
236
-  (5.0ms) CREATE TABLE "record_changed_fields" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "from_format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
237
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "records"
238
-  (1.0ms) CREATE TABLE "records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
239
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
240
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
241
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
242
-  (1.0ms) SELECT sqlite_version(*)
243
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
244
-  (0.0ms) SELECT version FROM "schema_migrations"
245
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221214225')
246
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221210429')
247
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
248
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
249
- -------------------------------------------------------------
250
- RecordTest: test_should_be_able_to_convert_to_an_export_STYLE
251
- -------------------------------------------------------------
252
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'
253
- ------------------------------------------------------
254
- RecordTest: test_should_be_able_to_create_a_new_Record
255
- ------------------------------------------------------
256
- --------------------------------------------------
257
- RecordTest: test_should_be_available_to_convert_to
258
- --------------------------------------------------
259
- Savepoint (4.0ms) SAVEPOINT active_record_1
260
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
261
- -----------------------------------------------------
262
- RecordTest: test_should_check_if_i_can_use_the_record
263
- -----------------------------------------------------
264
- Savepoint (0.0ms) SAVEPOINT active_record_1
265
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
266
- -------------------------------------------------------------
267
- RecordTest: test_should_check_to_see_if_format_fields_are_set
268
- -------------------------------------------------------------
269
- ----------------------------------------------------------------
270
- RecordTest: test_should_check_to_see_if_records_can_be_converted
271
- ----------------------------------------------------------------
272
- Savepoint (1.0ms) SAVEPOINT active_record_1
273
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
274
- ---------------------------------------------------------------
275
- RecordTest: test_should_check_to_see_if_you_cannot_convert_from
276
- ---------------------------------------------------------------
277
- ---------------------------------------------
278
- RecordTest: test_should_raise_no_method_error
279
- ---------------------------------------------
280
- Savepoint (0.0ms) SAVEPOINT active_record_1
281
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
282
- -------------------------------------------------
283
- ActsAsCitableTest: test_new_nokogiri_xml_document
284
- -------------------------------------------------
285
- -----------------------------
286
- ActsAsCitableTest: test_truth
287
- -----------------------------
288
- -------------------------------------------------------------------------
289
- RecordChangedFieldTest: test_should_be_able_to_convert_to_an_export_STYLE
290
- -------------------------------------------------------------------------
291
- --------------------------------------------------------------------------------------
292
- RecordChangedFieldTest: test_should_be_able_to_create_a_new_Record_with_changed_fields
293
- --------------------------------------------------------------------------------------
294
- --------------------------------------------------------------
295
- RecordChangedFieldTest: test_should_be_available_to_convert_to
296
- --------------------------------------------------------------
297
- Savepoint (0.0ms) SAVEPOINT active_record_1
298
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
299
- -------------------------------------------------------------------------------------
300
- RecordChangedFieldTest: test_should_check_if_i_can_use_the_record_with_changed_fields
301
- -------------------------------------------------------------------------------------
302
- Savepoint (0.0ms) SAVEPOINT active_record_1
303
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
304
- ------------------------------------------------------------------------------
305
- RecordChangedFieldTest: test_should_check_to_see_if_from_format_fields_are_set
306
- ------------------------------------------------------------------------------
307
- ------------------------------------------------------------------------------------------------
308
- RecordChangedFieldTest: test_should_check_to_see_if_records_with_changed_fields_can_be_converted
309
- ------------------------------------------------------------------------------------------------
310
- Savepoint (0.0ms) SAVEPOINT active_record_1
311
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
312
- ---------------------------------------------------------------------------
313
- RecordChangedFieldTest: test_should_check_to_see_if_you_cannot_convert_from
314
- ---------------------------------------------------------------------------
315
- ---------------------------------------------------------
316
- RecordChangedFieldTest: test_should_raise_no_method_error
317
- ---------------------------------------------------------
318
- Savepoint (0.0ms) SAVEPOINT active_record_1
319
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
320
- ----------------------------------------------------------------------
321
- InheritedRecordTest: test_should_be_able_to_convert_to_an_export_STYLE
322
- ----------------------------------------------------------------------
323
- -------------------------------------------------------------------------
324
- InheritedRecordTest: test_should_be_able_to_create_a_new_Inherited_Record
325
- -------------------------------------------------------------------------
326
- -----------------------------------------------------------
327
- InheritedRecordTest: test_should_be_available_to_convert_to
328
- -----------------------------------------------------------
329
- Savepoint (0.0ms) SAVEPOINT active_record_1
330
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
331
- ------------------------------------------------------------------------
332
- InheritedRecordTest: test_should_check_if_i_can_use_the_Inherited_record
333
- ------------------------------------------------------------------------
334
- Savepoint (0.0ms) SAVEPOINT active_record_1
335
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
336
- -----------------------------------------------------------------------------------
337
- InheritedRecordTest: test_should_check_to_see_if_Inherited_records_can_be_converted
338
- -----------------------------------------------------------------------------------
339
- Savepoint (1.0ms) SAVEPOINT active_record_1
340
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
341
- ----------------------------------------------------------------------
342
- InheritedRecordTest: test_should_check_to_see_if_format_fields_are_set
343
- ----------------------------------------------------------------------
344
- ------------------------------------------------------------------------
345
- InheritedRecordTest: test_should_check_to_see_if_you_cannot_convert_from
346
- ------------------------------------------------------------------------
347
- ------------------------------------------------------
348
- InheritedRecordTest: test_should_raise_no_method_error
349
- ------------------------------------------------------
350
- Savepoint (0.0ms) SAVEPOINT active_record_1
351
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
352
-  (4.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
353
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
354
-  (6.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "record_changed_fields"
355
-  (6.0ms) CREATE TABLE "record_changed_fields" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "from_format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
356
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "records"
357
-  (1.0ms) CREATE TABLE "records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar(255), "format" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
358
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
359
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
360
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
361
-  (1.0ms) SELECT sqlite_version(*)
362
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
363
-  (0.0ms) SELECT version FROM "schema_migrations"
364
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221214225')
365
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221210429')
366
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
367
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
368
- -------------------------------------------------------------
369
- RecordTest: test_should_be_able_to_convert_to_an_export_STYLE
370
- -------------------------------------------------------------
371
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'
372
- ------------------------------------------------------
373
- RecordTest: test_should_be_able_to_create_a_new_Record
374
- ------------------------------------------------------
375
- --------------------------------------------------
376
- RecordTest: test_should_be_available_to_convert_to
377
- --------------------------------------------------
378
- Savepoint (2.0ms) SAVEPOINT active_record_1
379
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
380
- -----------------------------------------------------
381
- RecordTest: test_should_check_if_i_can_use_the_record
382
- -----------------------------------------------------
383
- Savepoint (0.0ms) SAVEPOINT active_record_1
384
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
385
- -------------------------------------------------------------
386
- RecordTest: test_should_check_to_see_if_format_fields_are_set
387
- -------------------------------------------------------------
388
- ----------------------------------------------------------------
389
- RecordTest: test_should_check_to_see_if_records_can_be_converted
390
- ----------------------------------------------------------------
391
- Savepoint (0.0ms) SAVEPOINT active_record_1
392
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
393
- ---------------------------------------------------------------
394
- RecordTest: test_should_check_to_see_if_you_cannot_convert_from
395
- ---------------------------------------------------------------
396
- ---------------------------------------------
397
- RecordTest: test_should_raise_no_method_error
398
- ---------------------------------------------
399
- Savepoint (0.0ms) SAVEPOINT active_record_1
400
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
401
- -------------------------------------------------------------------------
402
- RecordChangedFieldTest: test_should_be_able_to_convert_to_an_export_STYLE
403
- -------------------------------------------------------------------------
404
- --------------------------------------------------------------------------------------
405
- RecordChangedFieldTest: test_should_be_able_to_create_a_new_Record_with_changed_fields
406
- --------------------------------------------------------------------------------------
407
- --------------------------------------------------------------
408
- RecordChangedFieldTest: test_should_be_available_to_convert_to
409
- --------------------------------------------------------------
410
- Savepoint (1.0ms) SAVEPOINT active_record_1
411
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
412
- -------------------------------------------------------------------------------------
413
- RecordChangedFieldTest: test_should_check_if_i_can_use_the_record_with_changed_fields
414
- -------------------------------------------------------------------------------------
415
- Savepoint (1.0ms) SAVEPOINT active_record_1
416
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
417
- ------------------------------------------------------------------------------
418
- RecordChangedFieldTest: test_should_check_to_see_if_from_format_fields_are_set
419
- ------------------------------------------------------------------------------
420
- ------------------------------------------------------------------------------------------------
421
- RecordChangedFieldTest: test_should_check_to_see_if_records_with_changed_fields_can_be_converted
422
- ------------------------------------------------------------------------------------------------
423
- Savepoint (0.0ms) SAVEPOINT active_record_1
424
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
425
- ---------------------------------------------------------------------------
426
- RecordChangedFieldTest: test_should_check_to_see_if_you_cannot_convert_from
427
- ---------------------------------------------------------------------------
428
- ---------------------------------------------------------
429
- RecordChangedFieldTest: test_should_raise_no_method_error
430
- ---------------------------------------------------------
431
- Savepoint (0.0ms) SAVEPOINT active_record_1
432
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
433
- -------------------------------------------------
434
- ActsAsCitableTest: test_new_nokogiri_xml_document
435
- -------------------------------------------------
436
- -----------------------------
437
- ActsAsCitableTest: test_truth
438
- -----------------------------
439
- ----------------------------------------------------------------------
440
- InheritedRecordTest: test_should_be_able_to_convert_to_an_export_STYLE
441
- ----------------------------------------------------------------------
442
- -------------------------------------------------------------------------
443
- InheritedRecordTest: test_should_be_able_to_create_a_new_Inherited_Record
444
- -------------------------------------------------------------------------
445
- -----------------------------------------------------------
446
- InheritedRecordTest: test_should_be_available_to_convert_to
447
- -----------------------------------------------------------
448
- Savepoint (0.0ms) SAVEPOINT active_record_1
449
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
450
- ------------------------------------------------------------------------
451
- InheritedRecordTest: test_should_check_if_i_can_use_the_Inherited_record
452
- ------------------------------------------------------------------------
453
- Savepoint (1.0ms) SAVEPOINT active_record_1
454
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
455
- -----------------------------------------------------------------------------------
456
- InheritedRecordTest: test_should_check_to_see_if_Inherited_records_can_be_converted
457
- -----------------------------------------------------------------------------------
458
- Savepoint (0.0ms) SAVEPOINT active_record_1
459
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
460
- ----------------------------------------------------------------------
461
- InheritedRecordTest: test_should_check_to_see_if_format_fields_are_set
462
- ----------------------------------------------------------------------
463
- ------------------------------------------------------------------------
464
- InheritedRecordTest: test_should_check_to_see_if_you_cannot_convert_from
465
- ------------------------------------------------------------------------
466
- ------------------------------------------------------
467
- InheritedRecordTest: test_should_raise_no_method_error
468
- ------------------------------------------------------
469
- Savepoint (0.0ms) SAVEPOINT active_record_1
470
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
471
-  (5.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
472
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
473
-  (4.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "record_changed_fields"
474
-  (4.0ms) CREATE TABLE "record_changed_fields" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar, "from_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
475
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "records"
476
-  (1.0ms) CREATE TABLE "records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar, "format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
477
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
478
-  (0.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
479
-  (2.0ms) SELECT sqlite_version(*)
480
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
481
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
482
-  (0.0ms) SELECT version FROM "schema_migrations"
483
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221214225')
484
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221210429')
485
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
486
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
487
- -------------------------------------------------------------
488
- RecordTest: test_should_be_able_to_convert_to_an_export_STYLE
489
- -------------------------------------------------------------
490
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'
491
- ------------------------------------------------------
492
- RecordTest: test_should_be_able_to_create_a_new_Record
493
- ------------------------------------------------------
494
- --------------------------------------------------
495
- RecordTest: test_should_be_available_to_convert_to
496
- --------------------------------------------------
497
- Savepoint (4.0ms) SAVEPOINT active_record_1
498
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
499
- -----------------------------------------------------
500
- RecordTest: test_should_check_if_i_can_use_the_record
501
- -----------------------------------------------------
502
- Savepoint (0.0ms) SAVEPOINT active_record_1
503
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
504
- -------------------------------------------------------------
505
- RecordTest: test_should_check_to_see_if_format_fields_are_set
506
- -------------------------------------------------------------
507
- ----------------------------------------------------------------
508
- RecordTest: test_should_check_to_see_if_records_can_be_converted
509
- ----------------------------------------------------------------
510
- Savepoint (0.0ms) SAVEPOINT active_record_1
511
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
512
- ---------------------------------------------------------------
513
- RecordTest: test_should_check_to_see_if_you_cannot_convert_from
514
- ---------------------------------------------------------------
515
- ---------------------------------------------
516
- RecordTest: test_should_raise_no_method_error
517
- ---------------------------------------------
518
- Savepoint (0.0ms) SAVEPOINT active_record_1
519
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
520
- -------------------------------------------------
521
- ActsAsCitableTest: test_new_nokogiri_xml_document
522
- -------------------------------------------------
523
- -----------------------------
524
- ActsAsCitableTest: test_truth
525
- -----------------------------
526
- -------------------------------------------------------------------------
527
- RecordChangedFieldTest: test_should_be_able_to_convert_to_an_export_STYLE
528
- -------------------------------------------------------------------------
529
- --------------------------------------------------------------------------------------
530
- RecordChangedFieldTest: test_should_be_able_to_create_a_new_Record_with_changed_fields
531
- --------------------------------------------------------------------------------------
532
- --------------------------------------------------------------
533
- RecordChangedFieldTest: test_should_be_available_to_convert_to
534
- --------------------------------------------------------------
535
- Savepoint (1.0ms) SAVEPOINT active_record_1
536
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
537
- -------------------------------------------------------------------------------------
538
- RecordChangedFieldTest: test_should_check_if_i_can_use_the_record_with_changed_fields
539
- -------------------------------------------------------------------------------------
540
- Savepoint (0.0ms) SAVEPOINT active_record_1
541
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
542
- ------------------------------------------------------------------------------
543
- RecordChangedFieldTest: test_should_check_to_see_if_from_format_fields_are_set
544
- ------------------------------------------------------------------------------
545
- ------------------------------------------------------------------------------------------------
546
- RecordChangedFieldTest: test_should_check_to_see_if_records_with_changed_fields_can_be_converted
547
- ------------------------------------------------------------------------------------------------
548
- Savepoint (1.0ms) SAVEPOINT active_record_1
549
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
550
- ---------------------------------------------------------------------------
551
- RecordChangedFieldTest: test_should_check_to_see_if_you_cannot_convert_from
552
- ---------------------------------------------------------------------------
553
- ---------------------------------------------------------
554
- RecordChangedFieldTest: test_should_raise_no_method_error
555
- ---------------------------------------------------------
556
- Savepoint (0.0ms) SAVEPOINT active_record_1
557
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
558
- ----------------------------------------------------------------------
559
- InheritedRecordTest: test_should_be_able_to_convert_to_an_export_STYLE
560
- ----------------------------------------------------------------------
561
- -------------------------------------------------------------------------
562
- InheritedRecordTest: test_should_be_able_to_create_a_new_Inherited_Record
563
- -------------------------------------------------------------------------
564
- -----------------------------------------------------------
565
- InheritedRecordTest: test_should_be_available_to_convert_to
566
- -----------------------------------------------------------
567
- Savepoint (1.0ms) SAVEPOINT active_record_1
568
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
569
- ------------------------------------------------------------------------
570
- InheritedRecordTest: test_should_check_if_i_can_use_the_Inherited_record
571
- ------------------------------------------------------------------------
572
- Savepoint (0.0ms) SAVEPOINT active_record_1
573
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
574
- -----------------------------------------------------------------------------------
575
- InheritedRecordTest: test_should_check_to_see_if_Inherited_records_can_be_converted
576
- -----------------------------------------------------------------------------------
577
- Savepoint (0.0ms) SAVEPOINT active_record_1
578
- Savepoint (1.0ms) RELEASE SAVEPOINT active_record_1
579
- ----------------------------------------------------------------------
580
- InheritedRecordTest: test_should_check_to_see_if_format_fields_are_set
581
- ----------------------------------------------------------------------
582
- ------------------------------------------------------------------------
583
- InheritedRecordTest: test_should_check_to_see_if_you_cannot_convert_from
584
- ------------------------------------------------------------------------
585
- ------------------------------------------------------
586
- InheritedRecordTest: test_should_raise_no_method_error
587
- ------------------------------------------------------
588
- Savepoint (0.0ms) SAVEPOINT active_record_1
589
- Savepoint (0.0ms) RELEASE SAVEPOINT active_record_1
590
-  (4.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
591
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
592
-  (4.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "record_changed_fields"
593
-  (4.0ms) CREATE TABLE "record_changed_fields" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar, "from_format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
594
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "records"
595
-  (0.0ms) CREATE TABLE "records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar, "format" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
596
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
597
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
598
-  (1.0ms) SELECT sqlite_version(*)
599
-  (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
600
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
601
-  (0.0ms) SELECT version FROM "schema_migrations"
602
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221214225')
603
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130221210429')
604
-  (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "schema_migrations"
605
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"