we_bridge_rails_engine_langs 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/lang.rb +1 -0
- data/db/migrate/20150814101311_modify_lang_position_default.rb +5 -0
- data/lib/we_bridge_rails_engine_langs/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +2 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +70 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51f852e2a11e2dad023b20a7274c251173500e97
|
4
|
+
data.tar.gz: 8b9ba47220bfe674f6fde2660bce863dbd5b624b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a71409658f0db473eaaa6f1aaba7a105c346533a2f781f63f6334e92dfeaac5a4d87bc8309784275f3c518b322ce5472b9bd403788f2dcb299c81f8305e2ca
|
7
|
+
data.tar.gz: c547a1a644b1bf9ce99f9425d5a359ebad8f5024cd9a84a5e8511c55d69dee35f8e85e99bf7264c72d354dfc1497bdfddb179b442cd426e346ce613bd85b87ae
|
data/app/models/lang.rb
CHANGED
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20150814101311) do
|
15
15
|
|
16
16
|
create_table "lang_texts", force: :cascade do |t|
|
17
17
|
t.integer "parent_id", null: false
|
@@ -26,7 +26,7 @@ ActiveRecord::Schema.define(version: 20150803101150) do
|
|
26
26
|
create_table "langs", force: :cascade do |t|
|
27
27
|
t.string "code", limit: 5, null: false
|
28
28
|
t.boolean "east", default: false, null: false
|
29
|
-
t.integer "position", default:
|
29
|
+
t.integer "position", default: 10000, null: false
|
30
30
|
t.boolean "enable", default: true, null: false
|
31
31
|
t.datetime "created_at", null: false
|
32
32
|
t.datetime "updated_at", null: false
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -14980,3 +14980,73 @@ Completed 200 OK in 114ms (Views: 107.7ms | ActiveRecord: 2.1ms)
|
|
14980
14980
|
[1m[35mSQL (0.6ms)[0m INSERT INTO "langs" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-09 04:16:12.302387"], ["updated_at", "2015-08-09 04:16:12.302387"]]
|
14981
14981
|
SQLite3::ConstraintException: NOT NULL constraint failed: langs.code: INSERT INTO "langs" ("created_at", "updated_at") VALUES (?, ?)
|
14982
14982
|
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
14983
|
+
[1m[36mLang Load (0.7ms)[0m [1mSELECT "langs".* FROM "langs" ORDER BY "langs"."position" ASC[0m
|
14984
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14985
|
+
Migrating to CreateLangs (20150803101150)
|
14986
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14987
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
14988
|
+
SQLite3::SQLException: table "langs" already exists: CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
14989
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14990
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14991
|
+
Migrating to CreateLangs (20150803101150)
|
14992
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14993
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
14994
|
+
SQLite3::SQLException: table "langs" already exists: CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
14995
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
14996
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
14997
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
14998
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
14999
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
15000
|
+
Migrating to CreateLangs (20150803101150)
|
15001
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15002
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
15003
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_langs_on_code" ON "langs" ("code")[0m
|
15004
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "lang_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer NOT NULL, "lang_id" integer NOT NULL, "label" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
15005
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_lang_texts_on_parent_id_and_lang_id" ON "lang_texts" ("parent_id", "lang_id")[0m
|
15006
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150803101150"]]
|
15007
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
15008
|
+
Migrating to ModifyLangPositionDefault (20150814101311)
|
15009
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15010
|
+
[1m[36m (0.6ms)[0m [1mCREATE TEMPORARY TABLE "alangs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 1 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
15011
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
15012
|
+
FROM sqlite_master
|
15013
|
+
WHERE name='index_langs_on_code' AND type='index'
|
15014
|
+
UNION ALL
|
15015
|
+
SELECT sql
|
15016
|
+
FROM sqlite_temp_master
|
15017
|
+
WHERE name='index_langs_on_code' AND type='index'
|
15018
|
+
|
15019
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "tindex_alangs_on_code" ON "alangs" ("code")[0m
|
15020
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "langs"
|
15021
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "langs"[0m
|
15022
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "langs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5) NOT NULL, "east" boolean DEFAULT 'f' NOT NULL, "position" integer DEFAULT 10000 NOT NULL, "enable" boolean DEFAULT 't' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
15023
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
15024
|
+
FROM sqlite_master
|
15025
|
+
WHERE name='tindex_alangs_on_code' AND type='index'
|
15026
|
+
UNION ALL
|
15027
|
+
SELECT sql
|
15028
|
+
FROM sqlite_temp_master
|
15029
|
+
WHERE name='tindex_alangs_on_code' AND type='index'
|
15030
|
+
[0m
|
15031
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_langs_on_code" ON "langs" ("code")
|
15032
|
+
[1m[36m (0.0ms)[0m [1mSELECT * FROM "alangs"[0m
|
15033
|
+
[1m[35m (0.1ms)[0m DROP TABLE "alangs"
|
15034
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150814101311"]]
|
15035
|
+
[1m[35m (1.2ms)[0m commit transaction
|
15036
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15037
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
15038
|
+
FROM sqlite_master
|
15039
|
+
WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
|
15040
|
+
UNION ALL
|
15041
|
+
SELECT sql
|
15042
|
+
FROM sqlite_temp_master
|
15043
|
+
WHERE name='index_lang_texts_on_parent_id_and_lang_id' AND type='index'
|
15044
|
+
|
15045
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
15046
|
+
FROM sqlite_master
|
15047
|
+
WHERE name='index_langs_on_code' AND type='index'
|
15048
|
+
UNION ALL
|
15049
|
+
SELECT sql
|
15050
|
+
FROM sqlite_temp_master
|
15051
|
+
WHERE name='index_langs_on_code' AND type='index'
|
15052
|
+
[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: we_bridge_rails_engine_langs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shinjiro Itagaki
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- app/views/langs/show.html.builder
|
144
144
|
- config/routes.rb
|
145
145
|
- db/migrate/20150803101150_create_langs.rb
|
146
|
+
- db/migrate/20150814101311_modify_lang_position_default.rb
|
146
147
|
- db/seeds.rb
|
147
148
|
- db/seeds/de.rb
|
148
149
|
- db/seeds/de/de.txt
|