large_text_field 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: large_text_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-15 00:00:00.000000000 Z
11
+ date: 2021-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: invoca-utils
@@ -74,21 +74,14 @@ files:
74
74
  - test/dummy/config/environments/development.rb
75
75
  - test/dummy/config/environments/production.rb
76
76
  - test/dummy/config/environments/test.rb
77
- - test/dummy/db/development.sqlite3
78
77
  - test/dummy/db/migrate/20160217033529_create_libraries.rb
79
78
  - test/dummy/db/schema.rb
80
- - test/dummy/db/test.current.sqlite3
81
79
  - test/dummy/db/test.sqlite3
82
- - test/dummy/log/development.log
83
80
  - test/dummy/log/test.log
84
81
  - test/dummy/script/rails
85
82
  - test/dummy/test/fixtures/text_field_owners.yml
86
83
  - test/fixtures/large_text_field/named_text_values.yml
87
84
  - test/large_text_field_test.rb
88
- - test/reports/current/TEST-LargeTextField-LibraryTest.xml
89
- - test/reports/current/TEST-LargeTextField-NamedTextValueTest.xml
90
- - test/reports/current/TEST-LargeTextField-OwnerTest.xml
91
- - test/reports/current/TEST-LargeTextFieldTest.xml
92
85
  - test/test_helper.rb
93
86
  - test/unit/dummy/library_test.rb
94
87
  - test/unit/large_text_field/name_text_value_test.rb
@@ -135,16 +128,9 @@ test_files:
135
128
  - test/dummy/Rakefile
136
129
  - test/dummy/db/schema.rb
137
130
  - test/dummy/db/test.sqlite3
138
- - test/dummy/db/test.current.sqlite3
139
131
  - test/dummy/db/migrate/20160217033529_create_libraries.rb
140
- - test/dummy/db/development.sqlite3
141
132
  - test/dummy/log/test.log
142
- - test/dummy/log/development.log
143
133
  - test/dummy/README.rdoc
144
134
  - test/large_text_field_test.rb
145
135
  - test/fixtures/large_text_field/named_text_values.yml
146
136
  - test/test_helper.rb
147
- - test/reports/current/TEST-LargeTextField-OwnerTest.xml
148
- - test/reports/current/TEST-LargeTextField-NamedTextValueTest.xml
149
- - test/reports/current/TEST-LargeTextField-LibraryTest.xml
150
- - test/reports/current/TEST-LargeTextFieldTest.xml
Binary file
File without changes
@@ -1,24 +0,0 @@
1
-  (7.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to AddLargeTextFields (20110217210640)
6
-  (0.1ms) begin transaction
7
-  (0.7ms) CREATE TABLE "large_text_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field_name" varchar NOT NULL, "value" text(16777215), "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL)
8
-  (0.1ms) CREATE UNIQUE INDEX "large_text_field_by_owner_field" ON "large_text_fields" ("owner_type", "owner_id", "field_name")
9
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20110217210640"]]
10
-  (1.7ms) commit transaction
11
- Migrating to CreateLibraries (20160217033529)
12
-  (0.1ms) begin transaction
13
-  (0.4ms) CREATE TABLE "libraries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) 
14
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160217033529"]]
15
-  (1.6ms) commit transaction
16
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
-  (0.1ms)  SELECT sql
18
- FROM sqlite_master
19
- WHERE name='large_text_field_by_owner_field' AND type='index'
20
- UNION ALL
21
- SELECT sql
22
- FROM sqlite_temp_master
23
- WHERE name='large_text_field_by_owner_field' AND type='index'
24
- 
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites>
3
- <testsuite name="LargeTextField::LibraryTest" filepath="/Users/jebentier/invoca/large_text_field/test/unit/dummy/library_test.rb" skipped="0" failures="0" errors="0" tests="2" assertions="2" time="0.01392800034955144">
4
- <testcase name="test_: LargeTextField::Library should be able to construct a library. " lineno="7" classname="LargeTextField::LibraryTest" assertions="2" time="0.011233000084757805">
5
- </testcase>
6
- <testcase name="test_: LargeTextField::Library should be able to dup a class that has no current large text field. " lineno="20" classname="LargeTextField::LibraryTest" assertions="0" time="0.0026950002647936344">
7
- </testcase>
8
- </testsuite>
9
- </testsuites>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites>
3
- <testsuite name="LargeTextField::NamedTextValueTest" filepath="/Users/jebentier/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/shoulda-context-1.2.2/lib/shoulda/context/context.rb" skipped="0" failures="0" errors="0" tests="5" assertions="9" time="0.04323700023815036">
4
- <testcase name="test_: LargeTextField::NamedTextValue should belong to owner. " lineno="346" classname="LargeTextField::NamedTextValueTest" assertions="1" time="0.002053000032901764">
5
- </testcase>
6
- <testcase name="test_: LargeTextField::NamedTextValue should have field name and value attributes. " lineno="11" classname="LargeTextField::NamedTextValueTest" assertions="6" time="0.013486000243574381">
7
- </testcase>
8
- <testcase name="test_: LargeTextField::NamedTextValue should use large_text_fields as the table name. " lineno="7" classname="LargeTextField::NamedTextValueTest" assertions="1" time="0.0011599999852478504">
9
- </testcase>
10
- <testcase name="test_: unique index should allow different owners and field names. " lineno="36" classname="LargeTextField::NamedTextValueTest" assertions="0" time="0.01757899997755885">
11
- </testcase>
12
- <testcase name="test_: unique index should raise a unique constraint failure on the same owner, and field name. " lineno="27" classname="LargeTextField::NamedTextValueTest" assertions="1" time="0.008958999998867512">
13
- </testcase>
14
- </testsuite>
15
- </testsuites>
@@ -1,51 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites>
3
- <testsuite name="LargeTextField::OwnerTest" filepath="/Users/jebentier/invoca/large_text_field/test/unit/large_text_field/owner_test.rb" skipped="0" failures="0" errors="0" tests="23" assertions="98" time="0.26905300142243505">
4
- <testcase name="test_: a large text field should allow a custom maximum length to be provided. " lineno="135" classname="LargeTextField::OwnerTest" assertions="3" time="0.032752000261098146">
5
- </testcase>
6
- <testcase name="test_: a large text field should allow for concurrent sets and deletes. " lineno="84" classname="LargeTextField::OwnerTest" assertions="9" time="0.013085000216960907">
7
- </testcase>
8
- <testcase name="test_: a large text field should allow get and set with saves and deletes. " lineno="61" classname="LargeTextField::OwnerTest" assertions="7" time="0.014650000259280205">
9
- </testcase>
10
- <testcase name="test_: a large text field should be able to be eager loaded. " lineno="244" classname="LargeTextField::OwnerTest" assertions="3" time="0.015831999946385622">
11
- </testcase>
12
- <testcase name="test_: a large text field should be able to update deleted fields. " lineno="194" classname="LargeTextField::OwnerTest" assertions="7" time="0.015867999754846096">
13
- </testcase>
14
- <testcase name="test_: a large text field should be cloned with the rest of the record. " lineno="218" classname="LargeTextField::OwnerTest" assertions="9" time="0.018189999740570784">
15
- </testcase>
16
- <testcase name="test_: a large text field should declare the association when it is first described and other meta data when it is first defined. " lineno="35" classname="LargeTextField::OwnerTest" assertions="3" time="0.004155999980866909">
17
- </testcase>
18
- <testcase name="test_: a large text field should delete fields when they are set to blank. " lineno="173" classname="LargeTextField::OwnerTest" assertions="6" time="0.014672000426799059">
19
- </testcase>
20
- <testcase name="test_: a large text field should delete large text fields when the owner is destroyed. " lineno="301" classname="LargeTextField::OwnerTest" assertions="4" time="0.01027100021019578">
21
- </testcase>
22
- <testcase name="test_: a large text field should detect changes when @text_field_hash hash is/not empty. " lineno="268" classname="LargeTextField::OwnerTest" assertions="7" time="0.008167000021785498">
23
- </testcase>
24
- <testcase name="test_: a large text field should forget about changes if they are not saved. " lineno="109" classname="LargeTextField::OwnerTest" assertions="3" time="0.011673000175505877">
25
- </testcase>
26
- <testcase name="test_: a large text field should not save fields that are set to blank. " lineno="157" classname="LargeTextField::OwnerTest" assertions="5" time="0.009471999946981668">
27
- </testcase>
28
- <testcase name="test_: a large text field should only validate_large_text_fields if loaded. " lineno="285" classname="LargeTextField::OwnerTest" assertions="4" time="0.005114000290632248">
29
- </testcase>
30
- <testcase name="test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range. " lineno="147" classname="LargeTextField::OwnerTest" assertions="3" time="0.004856999963521957">
31
- </testcase>
32
- <testcase name="test_: a large text field should prevent a non-Integer to be provided for a custom maximum. " lineno="141" classname="LargeTextField::OwnerTest" assertions="2" time="0.003192999865859747">
33
- </testcase>
34
- <testcase name="test_: a large text field should read from a file. " lineno="41" classname="LargeTextField::OwnerTest" assertions="3" time="0.015109000261873007">
35
- </testcase>
36
- <testcase name="test_: a large text field should reload changes when they come from a different model. " lineno="292" classname="LargeTextField::OwnerTest" assertions="2" time="0.012649000156670809">
37
- </testcase>
38
- <testcase name="test_: a large text field should singularize the errors if requested. " lineno="129" classname="LargeTextField::OwnerTest" assertions="3" time="0.013137999922037125">
39
- </testcase>
40
- <testcase name="test_: a large text field should support strings or symbols for get/set methods. " lineno="256" classname="LargeTextField::OwnerTest" assertions="7" time="0.006538000423461199">
41
- </testcase>
42
- <testcase name="test_: a large text field should validate the maximum length. " lineno="123" classname="LargeTextField::OwnerTest" assertions="3" time="0.011657999828457832">
43
- </testcase>
44
- <testcase name="test_: updating in large_text_field_save hook should be able to assign empty string. " lineno="9" classname="LargeTextField::OwnerTest" assertions="2" time="0.0056409998796880245">
45
- </testcase>
46
- <testcase name="test_: updating in large_text_field_save hook should be able to assign non empty string. " lineno="9" classname="LargeTextField::OwnerTest" assertions="2" time="0.0075889998115599155">
47
- </testcase>
48
- <testcase name="test_: updating in large_text_field_save hook should raise error on saving nil value. " lineno="19" classname="LargeTextField::OwnerTest" assertions="1" time="0.014779000077396631">
49
- </testcase>
50
- </testsuite>
51
- </testsuites>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites>
3
- <testsuite name="LargeTextFieldTest" filepath="/Users/jebentier/invoca/large_text_field/test/large_text_field_test.rb" skipped="0" failures="0" errors="0" tests="1" assertions="1" time="0.0006389999762177467">
4
- <testcase name="test_truth" lineno="6" classname="LargeTextFieldTest" assertions="1" time="0.0006389999762177467">
5
- </testcase>
6
- </testsuite>
7
- </testsuites>