corrector 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b840557d16354f3fe065e83e369989379096a7e
4
- data.tar.gz: 6807ca775443e5c58ecc2fb739b36e80a6f9c860
3
+ metadata.gz: 61e5faa0524259a4249be030695b4b5ece4143ba
4
+ data.tar.gz: 8dc250769ad16c5b34aef9b548b068aa5e008f7f
5
5
  SHA512:
6
- metadata.gz: 7c545c92bc3405f417bcc31035fd3aa5e93c3448017d3bb30bcda96583fd01b114bedd519bece232c344c163d4581e01a4d233ceb75b1a35f85a90610b1263e7
7
- data.tar.gz: 6cbd1701c9419b6bbe5d6661a98e59ba13c46ea9f897d7b17df03cb165fe90afbd7cc139fc58f4b3b8519395521748113c12caa520aeeac68629983ca70222a7
6
+ metadata.gz: f0e7c158078f6d0ff2d1928b6bc05d2cd4a83b257dbf6a5332885ec0a514178027237b628a5bc2d30eeef3f10a2a4a8d0de6bac5f50799e19df1ddf7726caa93
7
+ data.tar.gz: e4ff2dd572ca227cc858ff6fd8ece4a47db2b17539985c2dcdf1e895127fffa74931ef28bf3d527760ad0a8c4d85c794e68d9459864865991bf5b76f863fe557
data/README.rdoc CHANGED
@@ -58,7 +58,12 @@ Or install it yourself as:
58
58
 
59
59
  == Initialization
60
60
 
61
- You should copy db migrations to your project and then run the migrations.
61
+ You should:
62
+
63
+ * copy the module's db migrations to your project and run them;
64
+ * copy the module's factories (for usage in your Rspec tests).
65
+
66
+ To do all of above you can use <tt>corrector:install</tt> rake task:
62
67
 
63
68
  === in a Rails application
64
69
 
data/Rakefile CHANGED
@@ -30,6 +30,7 @@ require "rspec/core/rake_task"
30
30
 
31
31
  RSpec::Core::RakeTask.new :spec
32
32
  task :default do
33
+ sh "mkdir spec/dummy/tmp/cache -p -v"
33
34
  sh "bundle exec rake db:migrate RAILS_ENV=test"
34
35
  sh "bundle exec rspec spec"
35
36
  end
@@ -2,5 +2,5 @@
2
2
  module Corrector
3
3
 
4
4
  # Current release
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
@@ -1,7 +1,7 @@
1
1
  namespace :corrector do
2
2
 
3
- desc "Installs the corrector"
4
- task install: %w(install:migrations) do
3
+ desc "Installs the corrector gem."
4
+ task install: %w(corrector:install:migrations) do
5
5
  sh "rake db:migrate SCOPE=corrector"
6
6
  end
7
7
  end
Binary file
@@ -25005,3 +25005,418 @@ Migrating to CreateCorrectorBases (20141014223624)
25005
25005
  Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КМИПЛФЦДВЫ' AND "corrector_bases"."scope" = 'UNITS-3') LIMIT 1
25006
25006
  Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'РАЗ ДВА' AND "corrector_bases"."scope" = 'UNITS-3') LIMIT 1
25007
25007
   (0.0ms) rollback transaction
25008
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25009
+  (4.7ms) DELETE FROM "corrector_bases";
25010
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
25011
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'corrector_bases';
25012
+  (0.1ms) begin transaction
25013
+  (0.0ms) commit transaction
25014
+  (0.0ms) begin transaction
25015
+  (0.1ms) rollback transaction
25016
+  (0.0ms) begin transaction
25017
+  (0.0ms) commit transaction
25018
+  (0.0ms) begin transaction
25019
+  (0.0ms) rollback transaction
25020
+  (0.0ms) begin transaction
25021
+  (0.0ms) commit transaction
25022
+  (0.0ms) begin transaction
25023
+  (0.0ms) rollback transaction
25024
+  (0.0ms) begin transaction
25025
+  (0.0ms) commit transaction
25026
+  (0.0ms) begin transaction
25027
+  (0.0ms) rollback transaction
25028
+  (0.0ms) begin transaction
25029
+  (0.0ms) commit transaction
25030
+  (0.0ms) begin transaction
25031
+  (0.0ms) rollback transaction
25032
+  (0.0ms) begin transaction
25033
+  (0.0ms) commit transaction
25034
+  (0.0ms) begin transaction
25035
+  (0.0ms) rollback transaction
25036
+  (0.0ms) begin transaction
25037
+  (0.0ms) commit transaction
25038
+  (0.0ms) begin transaction
25039
+  (0.0ms) rollback transaction
25040
+  (0.0ms) begin transaction
25041
+  (0.0ms) commit transaction
25042
+  (0.0ms) begin transaction
25043
+  (0.0ms) rollback transaction
25044
+  (0.0ms) begin transaction
25045
+  (0.0ms) commit transaction
25046
+  (0.0ms) begin transaction
25047
+  (0.0ms) rollback transaction
25048
+  (0.0ms) begin transaction
25049
+  (0.0ms) commit transaction
25050
+  (0.0ms) begin transaction
25051
+  (0.0ms) rollback transaction
25052
+  (0.0ms) begin transaction
25053
+  (0.0ms) commit transaction
25054
+  (0.0ms) begin transaction
25055
+  (0.0ms) rollback transaction
25056
+  (0.0ms) begin transaction
25057
+  (0.0ms) commit transaction
25058
+  (0.0ms) begin transaction
25059
+  (0.0ms) rollback transaction
25060
+  (0.0ms) begin transaction
25061
+  (0.0ms) commit transaction
25062
+  (0.0ms) begin transaction
25063
+  (0.0ms) rollback transaction
25064
+  (0.0ms) begin transaction
25065
+  (0.0ms) commit transaction
25066
+  (0.0ms) begin transaction
25067
+  (0.0ms) rollback transaction
25068
+  (0.0ms) begin transaction
25069
+  (0.0ms) commit transaction
25070
+  (0.0ms) begin transaction
25071
+  (0.0ms) rollback transaction
25072
+  (0.0ms) begin transaction
25073
+  (0.0ms) commit transaction
25074
+  (0.0ms) begin transaction
25075
+  (0.0ms) rollback transaction
25076
+  (0.0ms) begin transaction
25077
+  (0.0ms) commit transaction
25078
+  (0.0ms) begin transaction
25079
+  (0.0ms) rollback transaction
25080
+  (0.0ms) begin transaction
25081
+  (0.0ms) commit transaction
25082
+  (0.0ms) begin transaction
25083
+  (0.0ms) rollback transaction
25084
+  (0.0ms) begin transaction
25085
+  (0.0ms) commit transaction
25086
+  (0.0ms) begin transaction
25087
+  (0.0ms) rollback transaction
25088
+  (0.0ms) begin transaction
25089
+  (0.0ms) commit transaction
25090
+  (0.0ms) begin transaction
25091
+  (0.0ms) rollback transaction
25092
+  (0.0ms) begin transaction
25093
+  (0.0ms) commit transaction
25094
+  (0.0ms) begin transaction
25095
+  (0.0ms) rollback transaction
25096
+  (0.0ms) begin transaction
25097
+  (0.0ms) commit transaction
25098
+  (0.0ms) begin transaction
25099
+  (0.0ms) rollback transaction
25100
+  (0.0ms) begin transaction
25101
+  (0.0ms) commit transaction
25102
+  (0.0ms) begin transaction
25103
+  (0.0ms) rollback transaction
25104
+  (0.0ms) begin transaction
25105
+  (0.0ms) commit transaction
25106
+  (0.0ms) begin transaction
25107
+  (0.0ms) rollback transaction
25108
+  (0.0ms) begin transaction
25109
+  (0.0ms) commit transaction
25110
+  (0.0ms) begin transaction
25111
+  (0.0ms) SAVEPOINT active_record_1
25112
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS-1') LIMIT 1
25113
+ SQL (0.4ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS-1"], ["to", "К"], ["type", "Corrector::Prefix"]]
25114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25115
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix')
25116
+  (0.1ms) rollback transaction
25117
+  (0.0ms) begin transaction
25118
+  (0.0ms) commit transaction
25119
+  (0.0ms) begin transaction
25120
+  (0.0ms) SAVEPOINT active_record_1
25121
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS-2') LIMIT 1
25122
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS-2"], ["to", "К"], ["type", "Corrector::Prefix"]]
25123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25124
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix')
25125
+  (0.1ms) rollback transaction
25126
+  (0.0ms) begin transaction
25127
+  (0.0ms) commit transaction
25128
+  (0.0ms) begin transaction
25129
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИБРПСИБУЭ' AND "corrector_bases"."scope" = 'UNITS-3') LIMIT 1
25130
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'РАЗ ДВА' AND "corrector_bases"."scope" = 'UNITS-3') LIMIT 1
25131
+  (0.1ms) rollback transaction
25132
+  (0.0ms) begin transaction
25133
+  (0.0ms) commit transaction
25134
+  (0.0ms) begin transaction
25135
+  (0.1ms) rollback transaction
25136
+  (0.0ms) begin transaction
25137
+  (0.0ms) commit transaction
25138
+  (0.0ms) begin transaction
25139
+  (0.0ms) rollback transaction
25140
+  (0.0ms) begin transaction
25141
+  (0.0ms) commit transaction
25142
+  (0.0ms) begin transaction
25143
+  (0.0ms) SAVEPOINT active_record_1
25144
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '3-ЧЛЕН' AND "corrector_bases"."scope" = 'USER') LIMIT 1
25145
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to") VALUES (?, ?, ?) [["from", "3-ЧЛЕН"], ["scope", "USER"], ["to", "МНОГОЧЛЕН"]]
25146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25147
+  (0.0ms) SAVEPOINT active_record_1
25148
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '4-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25149
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to") VALUES (?, ?, ?) [["from", "4-ЧЛЕН"], ["scope", "UNITS"], ["to", "МНОГОЧЛЕН"]]
25150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25151
+ Corrector::Base Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."scope" = 'UNITS'
25152
+  (0.1ms) rollback transaction
25153
+  (0.0ms) begin transaction
25154
+  (0.0ms) commit transaction
25155
+  (0.0ms) begin transaction
25156
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '5-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-3') LIMIT 1
25157
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '5-ЧЛЕН' AND "corrector_bases"."scope" = '') LIMIT 1
25158
+  (0.0ms) rollback transaction
25159
+  (0.0ms) begin transaction
25160
+  (0.0ms) commit transaction
25161
+  (0.0ms) begin transaction
25162
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '6-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-4') LIMIT 1
25163
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '' AND "corrector_bases"."scope" = 'UNITS-4') LIMIT 1
25164
+  (0.0ms) rollback transaction
25165
+  (0.0ms) begin transaction
25166
+  (0.0ms) commit transaction
25167
+  (0.0ms) begin transaction
25168
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '7-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-5') LIMIT 1
25169
+  (0.1ms) SAVEPOINT active_record_1
25170
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '8-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-5') LIMIT 1
25171
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to") VALUES (?, ?, ?) [["from", "8-ЧЛЕН"], ["scope", "UNITS-5"], ["to", "МНОГОЧЛЕН"]]
25172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25173
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '7-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-5') LIMIT 1
25174
+  (0.1ms) rollback transaction
25175
+  (0.0ms) begin transaction
25176
+  (0.0ms) commit transaction
25177
+  (0.0ms) begin transaction
25178
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '9-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-6') LIMIT 1
25179
+  (0.0ms) SAVEPOINT active_record_1
25180
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '9-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-6') LIMIT 1
25181
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to") VALUES (?, ?, ?) [["from", "9-ЧЛЕН"], ["scope", "UNITS-6"], ["to", "МНОГОЧЛЕН"]]
25182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25183
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '9-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-6') LIMIT 1
25184
+  (0.1ms) rollback transaction
25185
+  (0.0ms) begin transaction
25186
+  (0.0ms) commit transaction
25187
+  (0.0ms) begin transaction
25188
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '10-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-7') LIMIT 1
25189
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '10-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-7') LIMIT 1
25190
+  (0.0ms) rollback transaction
25191
+  (0.0ms) begin transaction
25192
+  (0.0ms) commit transaction
25193
+  (0.0ms) begin transaction
25194
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '11-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-8') LIMIT 1
25195
+  (0.0ms) SAVEPOINT active_record_1
25196
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '11-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-9') LIMIT 1
25197
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to") VALUES (?, ?, ?) [["from", "11-ЧЛЕН"], ["scope", "UNITS-9"], ["to", "МНОГОЧЛЕН"]]
25198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25199
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '11-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-8') LIMIT 1
25200
+  (0.1ms) rollback transaction
25201
+  (0.0ms) begin transaction
25202
+  (0.0ms) commit transaction
25203
+  (0.0ms) begin transaction
25204
+  (0.0ms) rollback transaction
25205
+  (0.0ms) begin transaction
25206
+  (0.0ms) commit transaction
25207
+  (0.0ms) begin transaction
25208
+ Corrector::Base Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."from" = 'ЧАС' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25209
+  (0.0ms) rollback transaction
25210
+  (0.0ms) begin transaction
25211
+  (0.0ms) commit transaction
25212
+  (0.0ms) begin transaction
25213
+  (0.0ms) SAVEPOINT active_record_1
25214
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'ЧАС' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25215
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to") VALUES (?, ?, ?) [["from", "ЧАС"], ["scope", "UNITS"], ["to", "Ч"]]
25216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25217
+ Corrector::Base Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."from" = 'ЧАС' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25218
+  (0.1ms) rollback transaction
25219
+  (0.0ms) begin transaction
25220
+  (0.0ms) commit transaction
25221
+  (0.0ms) begin transaction
25222
+ Corrector::Prefix Load (0.2ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25223
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'АВСД' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25224
+ Corrector::Phrase Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Phrase') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'АВСД' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25225
+  (0.0ms) rollback transaction
25226
+  (0.2ms) begin transaction
25227
+  (0.0ms) commit transaction
25228
+  (0.0ms) begin transaction
25229
+  (0.0ms) SAVEPOINT active_record_1
25230
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25231
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS"], ["to", "К"], ["type", "Corrector::Prefix"]]
25232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25233
+  (0.0ms) SAVEPOINT active_record_1
25234
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРОВ' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25235
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРОВ"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25237
+  (0.0ms) SAVEPOINT active_record_1
25238
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРА' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25239
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРА"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25241
+  (0.0ms) SAVEPOINT active_record_1
25242
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'ЧАС' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25243
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "ЧАС"], ["scope", "UNITS"], ["to", "Ч"], ["type", "Corrector::Word"]]
25244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25245
+  (0.0ms) SAVEPOINT active_record_1
25246
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КМ В Ч' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25247
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КМ В Ч"], ["scope", "UNITS"], ["to", "КМ/Ч"], ["type", "Corrector::Phrase"]]
25248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25249
+  (0.1ms) rollback transaction
25250
+  (0.0ms) begin transaction
25251
+  (0.0ms) commit transaction
25252
+  (0.0ms) begin transaction
25253
+  (0.0ms) SAVEPOINT active_record_1
25254
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25255
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS"], ["to", "К"], ["type", "Corrector::Prefix"]]
25256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25257
+  (0.0ms) SAVEPOINT active_record_1
25258
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРОВ' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25259
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРОВ"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25261
+  (0.0ms) SAVEPOINT active_record_1
25262
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРА' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25263
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРА"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25265
+  (0.0ms) SAVEPOINT active_record_1
25266
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'ЧАС' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25267
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "ЧАС"], ["scope", "UNITS"], ["to", "Ч"], ["type", "Corrector::Word"]]
25268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25269
+  (0.0ms) SAVEPOINT active_record_1
25270
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КМ В Ч' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25271
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КМ В Ч"], ["scope", "UNITS"], ["to", "КМ/Ч"], ["type", "Corrector::Phrase"]]
25272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25273
+  (0.1ms) rollback transaction
25274
+  (0.0ms) begin transaction
25275
+  (0.0ms) commit transaction
25276
+  (0.0ms) begin transaction
25277
+  (0.0ms) SAVEPOINT active_record_1
25278
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25279
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS"], ["to", "К"], ["type", "Corrector::Prefix"]]
25280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25281
+  (0.0ms) SAVEPOINT active_record_1
25282
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРОВ' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25283
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРОВ"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25285
+  (0.0ms) SAVEPOINT active_record_1
25286
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРА' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25287
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРА"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25289
+  (0.0ms) SAVEPOINT active_record_1
25290
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'ЧАС' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25291
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "ЧАС"], ["scope", "UNITS"], ["to", "Ч"], ["type", "Corrector::Word"]]
25292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25293
+  (0.0ms) SAVEPOINT active_record_1
25294
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КМ В Ч' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25295
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КМ В Ч"], ["scope", "UNITS"], ["to", "КМ/Ч"], ["type", "Corrector::Phrase"]]
25296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25297
+  (0.1ms) rollback transaction
25298
+  (0.0ms) begin transaction
25299
+  (0.0ms) commit transaction
25300
+  (0.0ms) begin transaction
25301
+  (0.0ms) SAVEPOINT active_record_1
25302
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25303
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS"], ["to", "К"], ["type", "Corrector::Prefix"]]
25304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25305
+  (0.0ms) SAVEPOINT active_record_1
25306
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРОВ' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25307
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРОВ"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25309
+  (0.0ms) SAVEPOINT active_record_1
25310
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРА' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25311
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРА"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25313
+  (0.0ms) SAVEPOINT active_record_1
25314
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'ЧАС' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25315
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "ЧАС"], ["scope", "UNITS"], ["to", "Ч"], ["type", "Corrector::Word"]]
25316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25317
+  (0.0ms) SAVEPOINT active_record_1
25318
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КМ В Ч' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25319
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КМ В Ч"], ["scope", "UNITS"], ["to", "КМ/Ч"], ["type", "Corrector::Phrase"]]
25320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25321
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25322
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25323
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25324
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25325
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = '100' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25326
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'МЕТРОВ' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25327
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = '/' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25328
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'ЧАС' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25329
+ Corrector::Phrase Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Phrase') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = '100 М/Ч' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25330
+  (0.1ms) rollback transaction
25331
+  (0.0ms) begin transaction
25332
+  (0.0ms) commit transaction
25333
+  (0.0ms) begin transaction
25334
+  (0.0ms) SAVEPOINT active_record_1
25335
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25336
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS"], ["to", "К"], ["type", "Corrector::Prefix"]]
25337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25338
+  (0.0ms) SAVEPOINT active_record_1
25339
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРОВ' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25340
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРОВ"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25342
+  (0.0ms) SAVEPOINT active_record_1
25343
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРА' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25344
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРА"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25346
+  (0.0ms) SAVEPOINT active_record_1
25347
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'ЧАС' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25348
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "ЧАС"], ["scope", "UNITS"], ["to", "Ч"], ["type", "Corrector::Word"]]
25349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25350
+  (0.0ms) SAVEPOINT active_record_1
25351
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КМ В Ч' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25352
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КМ В Ч"], ["scope", "UNITS"], ["to", "КМ/Ч"], ["type", "Corrector::Phrase"]]
25353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25354
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25355
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25356
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25357
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'К' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25358
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = '^' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25359
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'МЕТРА' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25360
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'В' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25361
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'ЧАС' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25362
+ Corrector::Phrase Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Phrase') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'КМ В Ч' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25363
+  (0.1ms) rollback transaction
25364
+  (0.0ms) begin transaction
25365
+  (0.0ms) commit transaction
25366
+  (0.0ms) begin transaction
25367
+  (0.0ms) SAVEPOINT active_record_1
25368
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КИЛО' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25369
+ SQL (0.3ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КИЛО"], ["scope", "UNITS"], ["to", "К"], ["type", "Corrector::Prefix"]]
25370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25371
+  (0.0ms) SAVEPOINT active_record_1
25372
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРОВ' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25373
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРОВ"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25375
+  (0.0ms) SAVEPOINT active_record_1
25376
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'МЕТРА' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25377
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "МЕТРА"], ["scope", "UNITS"], ["to", "М"], ["type", "Corrector::Word"]]
25378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25379
+  (0.0ms) SAVEPOINT active_record_1
25380
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'ЧАС' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25381
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "ЧАС"], ["scope", "UNITS"], ["to", "Ч"], ["type", "Corrector::Word"]]
25382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25383
+  (0.0ms) SAVEPOINT active_record_1
25384
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'КМ В Ч' AND "corrector_bases"."scope" = 'UNITS') LIMIT 1
25385
+ SQL (0.1ms) INSERT INTO "corrector_bases" ("from", "scope", "to", "type") VALUES (?, ?, ?, ?) [["from", "КМ В Ч"], ["scope", "UNITS"], ["to", "КМ/Ч"], ["type", "Corrector::Phrase"]]
25386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25387
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25388
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25389
+ Corrector::Prefix Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Prefix') AND "corrector_bases"."scope" = 'UNITS'
25390
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'К' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25391
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = '^' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25392
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'МЕТРОВ' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25393
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = '/' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25394
+ Corrector::Word Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Word') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'ЧАС' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25395
+ Corrector::Phrase Load (0.1ms) SELECT "corrector_bases".* FROM "corrector_bases" WHERE "corrector_bases"."type" IN ('Corrector::Phrase') AND "corrector_bases"."scope" = 'UNITS' AND "corrector_bases"."from" = 'КМ/Ч' ORDER BY "corrector_bases"."id" ASC LIMIT 1
25396
+  (0.1ms) rollback transaction
25397
+  (0.0ms) begin transaction
25398
+  (0.0ms) commit transaction
25399
+  (0.0ms) begin transaction
25400
+  (0.0ms) rollback transaction
25401
+  (0.0ms) begin transaction
25402
+  (0.0ms) commit transaction
25403
+  (0.0ms) begin transaction
25404
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = '1-ЧЛЕН' AND "corrector_bases"."scope" = 'UNITS-1') LIMIT 1
25405
+ Corrector::Base Exists (0.1ms) SELECT 1 AS one FROM "corrector_bases" WHERE ("corrector_bases"."from" = 'РАЗ ДВА' AND "corrector_bases"."scope" = 'UNITS-1') LIMIT 1
25406
+  (0.0ms) rollback transaction
25407
+  (0.0ms) begin transaction
25408
+  (0.0ms) commit transaction
25409
+  (0.0ms) begin transaction
25410
+  (0.0ms) rollback transaction
25411
+  (0.0ms) begin transaction
25412
+  (0.0ms) commit transaction
25413
+  (0.0ms) begin transaction
25414
+  (0.0ms) rollback transaction
25415
+  (0.0ms) begin transaction
25416
+  (0.0ms) commit transaction
25417
+  (0.0ms) begin transaction
25418
+  (0.0ms) rollback transaction
25419
+  (0.0ms) begin transaction
25420
+  (0.0ms) commit transaction
25421
+  (0.0ms) begin transaction
25422
+  (0.0ms) rollback transaction
@@ -1,7 +1,7 @@
1
1
  FactoryGirl.define do
2
2
  factory :base, class: Corrector::Base do
3
- sequence(:scope) { |n| "UNITS-#{ n }" }
4
- sequence(:from) { |n| "#{ n }-ЧЛЕН" }
5
- to { "МНОГОЧЛЕН" }
3
+ sequence(:scope) { |n| "UNITS-#{ n }" }
4
+ sequence(:from) { |n| "#{ n }-ЧЛЕН" }
5
+ to "МНОГОЧЛЕН"
6
6
  end
7
7
  end
@@ -2,6 +2,6 @@ FactoryGirl.define do
2
2
  factory :phrase, class: Corrector::Phrase do
3
3
  sequence(:scope) { |n| "UNITS-#{ n }" }
4
4
  sequence(:from) { |n| "#{ n } СЛОВ" }
5
- to { "ПРЕДЛОЖЕНИЕ" }
5
+ to "ПРЕДЛОЖЕНИЕ"
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  FactoryGirl.define do
2
2
  factory :prefix, class: Corrector::Prefix do
3
3
  sequence(:scope) { |n| "UNITS-#{ n }" }
4
- from { 10.times.map { ("А".."Я").to_a.sample }.join("") }
5
- to { "КГ" }
4
+ from { 10.times.map { ("А".."Я").to_a.sample }.join("") }
5
+ to "КГ"
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  FactoryGirl.define do
2
2
  factory :word, class: Corrector::Word do
3
- sequence(:scope) { |n| "UNITS-#{ n }" }
4
- sequence(:from) { |n| "#{ n }-ЧЛЕН" }
5
- to { "МНОГОЧЛЕН" }
3
+ sequence(:scope) { |n| "UNITS-#{ n }" }
4
+ sequence(:from) { |n| "#{ n }-ЧЛЕН" }
5
+ to "МНОГОЧЛЕН"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corrector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-18 00:00:00.000000000 Z
11
+ date: 2014-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -185,10 +185,6 @@ files:
185
185
  - spec/dummy/public/422.html
186
186
  - spec/dummy/public/500.html
187
187
  - spec/dummy/public/favicon.ico
188
- - spec/dummy/tmp/cache/206/7F1/UNITS%2F%D0%9A%D0%98%D0%9B%D0%9E%D0%9C%D0%95%D0%A2%D0%A0%D0%90+%D0%92+%D0%A7%D0%90%D0%A1
189
- - spec/dummy/tmp/cache/262/AB1/UNITS%2F%D0%9A%D0%98%D0%9B%D0%9E%D0%9C%D0%95%D0%A2%D0%A0%D0%9E%D0%92%2F%D0%A7%D0%90%D0%A1
190
- - spec/dummy/tmp/cache/D58/820/UNITS%2F3+%D0%9A%D0%98%D0%9B%D0%9E%D0%9C%D0%95%D0%A2%D0%A0%D0%90
191
- - spec/dummy/tmp/cache/E42/C10/UNITS%2F100+%D0%9C%D0%95%D0%A2%D0%A0%D0%9E%D0%92%2F%D0%A7%D0%90%D0%A1
192
188
  - spec/factories/bases.rb
193
189
  - spec/factories/phrases.rb
194
190
  - spec/factories/prefixes.rb
@@ -264,10 +260,6 @@ test_files:
264
260
  - spec/dummy/config/initializers/cookies_serializer.rb
265
261
  - spec/dummy/config/initializers/filter_parameter_logging.rb
266
262
  - spec/dummy/config/initializers/assets.rb
267
- - spec/dummy/tmp/cache/262/AB1/UNITS%2F%D0%9A%D0%98%D0%9B%D0%9E%D0%9C%D0%95%D0%A2%D0%A0%D0%9E%D0%92%2F%D0%A7%D0%90%D0%A1
268
- - spec/dummy/tmp/cache/D58/820/UNITS%2F3+%D0%9A%D0%98%D0%9B%D0%9E%D0%9C%D0%95%D0%A2%D0%A0%D0%90
269
- - spec/dummy/tmp/cache/206/7F1/UNITS%2F%D0%9A%D0%98%D0%9B%D0%9E%D0%9C%D0%95%D0%A2%D0%A0%D0%90+%D0%92+%D0%A7%D0%90%D0%A1
270
- - spec/dummy/tmp/cache/E42/C10/UNITS%2F100+%D0%9C%D0%95%D0%A2%D0%A0%D0%9E%D0%92%2F%D0%A7%D0%90%D0%A1
271
263
  - spec/dummy/db/test.sqlite3
272
264
  - spec/dummy/db/schema.rb
273
265
  - spec/dummy/app/views/layouts/application.html.erb
@@ -1 +0,0 @@
1
- o: ActiveSupport::Cache::Entry: @valueI" КМ/Ч:ET:@created_atf1413660198.7723005:@expires_in0
@@ -1 +0,0 @@
1
- o: ActiveSupport::Cache::Entry: @valueI" КМ/Ч:ET:@created_atf1413660198.7860334:@expires_in0
@@ -1 +0,0 @@
1
- o: ActiveSupport::Cache::Entry: @valueI" 3 КМ:ET:@created_atf1413660198.7994218:@expires_in0
@@ -1 +0,0 @@
1
- o: ActiveSupport::Cache::Entry: @valueI"100 М/Ч:ET:@created_atf1413660198.7577171:@expires_in0