idioma 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aac3aae53e6639492146e97bd5f2c2747dc4b28e
|
|
4
|
+
data.tar.gz: d4e25b753e35d674c47f177073fe83063eed7755
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6abaddd4ce9bd9743df2304c0b17c2f6df66cf7df25e665ff824ab70c5b18df89adad861eeb410c9dbf3846507ed02cb06c3ba6740c792e2131e9d176f63b3b0
|
|
7
|
+
data.tar.gz: b629772e1a19111ad3f59972fa2e8dceec5b5ac1182eebddbce9289d295737073758c8127d9d55ba5ea16580c210d904910be09978f359edb0d61c4dd146e532
|
data/lib/idioma/version.rb
CHANGED
|
@@ -14,7 +14,7 @@ development:
|
|
|
14
14
|
<<: *default
|
|
15
15
|
encoding: unicode
|
|
16
16
|
database: idioma
|
|
17
|
-
username:
|
|
17
|
+
username: leighhalliday
|
|
18
18
|
password:
|
|
19
19
|
|
|
20
20
|
# Warning: The database defined as "test" will be erased and
|
|
@@ -24,5 +24,5 @@ test:
|
|
|
24
24
|
<<: *default
|
|
25
25
|
encoding: unicode
|
|
26
26
|
database: idioma_test
|
|
27
|
-
username:
|
|
27
|
+
username: leighhalliday
|
|
28
28
|
password:
|
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# encoding: UTF-8
|
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
|
@@ -16,7 +15,7 @@ ActiveRecord::Schema.define(version: 20141115171836) do
|
|
|
16
15
|
# These are extensions that must be enabled in order to support this database
|
|
17
16
|
enable_extension "plpgsql"
|
|
18
17
|
|
|
19
|
-
create_table "idioma_phrases", force:
|
|
18
|
+
create_table "idioma_phrases", force: :cascade do |t|
|
|
20
19
|
t.string "locale"
|
|
21
20
|
t.string "i18n_key"
|
|
22
21
|
t.text "i18n_value"
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
[1m[35m (26.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
2
|
+
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
3
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1026054888631086300);[0m
|
|
4
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
5
|
+
Migrating to CreateIdiomaPhrases (20141115171836)
|
|
6
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
7
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
|
8
|
+
|
|
9
|
+
class CreateIdiomaPhrases < ActiveRecord::Migration[4.2] (called from load at /Users/leighhalliday/.rbenv/versions/2.4.1/bin/rake:22)
|
|
10
|
+
[1m[35m (28.8ms)[0m [1m[35mCREATE TABLE "idioma_phrases" ("id" serial primary key, "locale" character varying, "i18n_key" character varying, "i18n_value" text, "translated_at" timestamp, "flagged_at" timestamp, "notes" text, "created_at" timestamp, "updated_at" timestamp)[0m
|
|
11
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20141115171836"]]
|
|
12
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
13
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
14
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
15
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-09-24 20:17:47 UTC], ["updated_at", 2017-09-24 20:17:47 UTC]]
|
|
16
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
17
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1026054888631086300)[0m
|
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
19
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
|
20
|
+
FROM pg_constraint c
|
|
21
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
|
22
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
|
23
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
|
24
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
|
25
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
|
26
|
+
WHERE c.contype = 'f'
|
|
27
|
+
AND t1.relname = 'idioma_phrases'
|
|
28
|
+
AND t3.nspname = ANY (current_schemas(false))
|
|
29
|
+
ORDER BY c.conname
|
|
30
|
+
[0m
|
|
31
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
32
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
|
33
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
34
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
35
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
36
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
37
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
38
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
39
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
40
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
41
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
42
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
43
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
44
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
45
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
46
|
+
[1m[36mIdioma::Phrase Exists (2.0ms)[0m [1m[34mSELECT 1 AS one FROM "idioma_phrases" WHERE "idioma_phrases"."i18n_key" IS NULL AND "idioma_phrases"."locale" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
|
47
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
|
48
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
49
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
50
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
51
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
52
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
53
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
54
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
55
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
56
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
57
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
58
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
59
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
60
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
61
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
62
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
63
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
64
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
65
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
66
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
67
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
68
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
69
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
70
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
|
71
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
|
72
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
73
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
74
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
75
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
76
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
77
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
78
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
79
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
80
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
81
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
82
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
83
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
84
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
85
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
86
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
87
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
88
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
89
|
+
Processing by Idioma::PhrasesController#index as HTML
|
|
90
|
+
Rendering /Users/leighhalliday/Sites/idioma/app/views/idioma/phrases/index.html.haml within layouts/idioma/application
|
|
91
|
+
Rendered /Users/leighhalliday/Sites/idioma/app/views/idioma/phrases/index.html.haml within layouts/idioma/application (0.2ms)
|
|
92
|
+
Completed 200 OK in 19ms (Views: 14.2ms | ActiveRecord: 0.0ms)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
96
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
|
97
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
|
98
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
|
99
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
|
100
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
101
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
|
102
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
|
103
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
|
104
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
|
105
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
|
106
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
|
107
|
+
DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
|
|
108
|
+
keyword arguments in future Rails versions.
|
|
109
|
+
|
|
110
|
+
Examples:
|
|
111
|
+
|
|
112
|
+
get :show, params: { id: 1 }, session: { user_id: 1 }
|
|
113
|
+
process :update, method: :post, params: { id: 1 }
|
|
114
|
+
(called from block (3 levels) in <top (required)> at /Users/leighhalliday/Sites/idioma/spec/controllers/phrases_controller_spec.rb:80)
|
|
115
|
+
DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
|
|
116
|
+
keyword arguments in future Rails versions.
|
|
117
|
+
|
|
118
|
+
Examples:
|
|
119
|
+
|
|
120
|
+
get :show, params: { id: 1 }, session: { user_id: 1 }
|
|
121
|
+
process :update, method: :post, params: { id: 1 }
|
|
122
|
+
(called from block (3 levels) in <top (required)> at /Users/leighhalliday/Sites/idioma/spec/controllers/phrases_controller_spec.rb:80)
|
|
123
|
+
Processing by Idioma::PhrasesController#show as JSON
|
|
124
|
+
Parameters: {"id"=>"999"}
|
|
125
|
+
[1m[36mIdioma::Phrase Load (0.2ms)[0m [1m[34mSELECT "idioma_phrases".* FROM "idioma_phrases" WHERE "idioma_phrases"."id" = $1 LIMIT $2[0m [["id", 999], ["LIMIT", 1]]
|
|
126
|
+
Filter chain halted as :set_phrase rendered or redirected
|
|
127
|
+
Completed 404 Not Found in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
131
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
132
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
133
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
134
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "idioma_phrases"[0m
|
|
135
|
+
[1m[36mIdioma::Phrase Load (0.3ms)[0m [1m[34mSELECT "idioma_phrases".* FROM "idioma_phrases" WHERE "idioma_phrases"."locale" = $1 AND "idioma_phrases"."i18n_key" = $2 LIMIT $3[0m [["locale", :en], ["i18n_key", :validations], ["LIMIT", 1]]
|
|
136
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
137
|
+
[1m[36mIdioma::Phrase Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "idioma_phrases" WHERE "idioma_phrases"."i18n_key" = $1 AND "idioma_phrases"."locale" = $2 LIMIT $3[0m [["i18n_key", "validations"], ["locale", "en"], ["LIMIT", 1]]
|
|
138
|
+
[1m[35mSQL (13.0ms)[0m [1m[32mINSERT INTO "idioma_phrases" ("locale", "i18n_key", "i18n_value", "translated_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["locale", "en"], ["i18n_key", "validations"], ["i18n_value", "{:presence=>\"must be present\"}"], ["translated_at", 2017-09-24 20:18:01 UTC], ["created_at", 2017-09-24 20:18:01 UTC], ["updated_at", 2017-09-24 20:18:01 UTC]]
|
|
139
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
140
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "idioma_phrases"[0m
|
|
141
|
+
[1m[35m (1.1ms)[0m [1m[31mROLLBACK[0m
|
|
142
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
143
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "idioma_phrases"[0m
|
|
144
|
+
[1m[36mIdioma::Phrase Load (0.2ms)[0m [1m[34mSELECT "idioma_phrases".* FROM "idioma_phrases" WHERE "idioma_phrases"."locale" = $1 AND "idioma_phrases"."i18n_key" = $2 LIMIT $3[0m [["locale", :en], ["i18n_key", :validations], ["LIMIT", 1]]
|
|
145
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
|
146
|
+
[1m[36mIdioma::Phrase Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "idioma_phrases" WHERE "idioma_phrases"."i18n_key" = $1 AND "idioma_phrases"."locale" = $2 LIMIT $3[0m [["i18n_key", "validations"], ["locale", "en"], ["LIMIT", 1]]
|
|
147
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "idioma_phrases" ("locale", "i18n_key", "i18n_value", "translated_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["locale", "en"], ["i18n_key", "validations"], ["i18n_value", "{:presence=>\"must be present\"}"], ["translated_at", 2017-09-24 20:18:01 UTC], ["created_at", 2017-09-24 20:18:01 UTC], ["updated_at", 2017-09-24 20:18:01 UTC]]
|
|
148
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
|
149
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "idioma_phrases"[0m
|
|
150
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: idioma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leigh Halliday
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|
|
@@ -233,6 +233,7 @@ files:
|
|
|
233
233
|
- spec/dummy/config/secrets.yml
|
|
234
234
|
- spec/dummy/db/migrate/20141115171836_create_idioma_phrases.idioma.rb
|
|
235
235
|
- spec/dummy/db/schema.rb
|
|
236
|
+
- spec/dummy/log/development.log
|
|
236
237
|
- spec/dummy/log/test.log
|
|
237
238
|
- spec/dummy/public/404.html
|
|
238
239
|
- spec/dummy/public/422.html
|
|
@@ -266,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
266
267
|
version: '0'
|
|
267
268
|
requirements: []
|
|
268
269
|
rubyforge_project:
|
|
269
|
-
rubygems_version: 2.
|
|
270
|
+
rubygems_version: 2.6.11
|
|
270
271
|
signing_key:
|
|
271
272
|
specification_version: 4
|
|
272
273
|
summary: Idioma is a gem for managing translations through an interface.
|
|
@@ -302,6 +303,7 @@ test_files:
|
|
|
302
303
|
- spec/dummy/config.ru
|
|
303
304
|
- spec/dummy/db/migrate/20141115171836_create_idioma_phrases.idioma.rb
|
|
304
305
|
- spec/dummy/db/schema.rb
|
|
306
|
+
- spec/dummy/log/development.log
|
|
305
307
|
- spec/dummy/log/test.log
|
|
306
308
|
- spec/dummy/public/404.html
|
|
307
309
|
- spec/dummy/public/422.html
|
|
@@ -317,4 +319,3 @@ test_files:
|
|
|
317
319
|
- spec/models/phrase_spec.rb
|
|
318
320
|
- spec/models/redis_backend_spec.rb
|
|
319
321
|
- spec/spec_helper.rb
|
|
320
|
-
has_rdoc:
|