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: 3efc4b3bbc23be1b4ae667f1b3cb2878324a46aa
4
- data.tar.gz: 19a7084c786fb6440439a59011ad50467583a340
3
+ metadata.gz: aac3aae53e6639492146e97bd5f2c2747dc4b28e
4
+ data.tar.gz: d4e25b753e35d674c47f177073fe83063eed7755
5
5
  SHA512:
6
- metadata.gz: e5f5cc5ee771ae2eef24ae85008e32308e5a32ac97f5ea4e8954f77e1dac823ec0324c601dfeed9ce139e1a3f17d1425813569a7dd007605638f26f2ea2f26f2
7
- data.tar.gz: 88c609abf4dc92107f39d8b9e7b91f71ddd397f82be7fae13be484964d26622f57fe07bdc52803df6e259dc4e0899676b3dab15a5d59491fc463ef44a736e563
6
+ metadata.gz: 6abaddd4ce9bd9743df2304c0b17c2f6df66cf7df25e665ff824ab70c5b18df89adad861eeb410c9dbf3846507ed02cb06c3ba6740c792e2131e9d176f63b3b0
7
+ data.tar.gz: b629772e1a19111ad3f59972fa2e8dceec5b5ac1182eebddbce9289d295737073758c8127d9d55ba5ea16580c210d904910be09978f359edb0d61c4dd146e532
@@ -1,4 +1,4 @@
1
- class CreateIdiomaPhrases < ActiveRecord::Migration
1
+ class CreateIdiomaPhrases < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :idioma_phrases do |t|
4
4
  t.string :locale
@@ -1,3 +1,3 @@
1
1
  module Idioma
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -14,7 +14,7 @@ development:
14
14
  <<: *default
15
15
  encoding: unicode
16
16
  database: idioma
17
- username: lhalliday
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: lhalliday
27
+ username: leighhalliday
28
28
  password:
@@ -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: true do |t|
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
+  (26.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
2
+  (10.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3
+  (0.3ms) SELECT pg_try_advisory_lock(1026054888631086300);
4
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateIdiomaPhrases (20141115171836)
6
+  (0.1ms) BEGIN
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
+  (28.8ms) CREATE 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)
11
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141115171836"]]
12
+  (0.3ms) COMMIT
13
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
14
+  (0.1ms) BEGIN
15
+ SQL (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2017-09-24 20:17:47 UTC], ["updated_at", 2017-09-24 20:17:47 UTC]]
16
+  (0.2ms) COMMIT
17
+  (0.2ms) SELECT pg_advisory_unlock(1026054888631086300)
18
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+  (1.9ms) SELECT 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
+ 
31
+  (0.1ms) BEGIN
32
+  (0.2ms) ROLLBACK
33
+  (0.1ms) BEGIN
34
+  (0.1ms) ROLLBACK
35
+  (0.1ms) BEGIN
36
+  (0.1ms) ROLLBACK
37
+  (0.1ms) BEGIN
38
+  (0.1ms) ROLLBACK
39
+  (0.1ms) BEGIN
40
+  (0.1ms) ROLLBACK
41
+  (0.1ms) BEGIN
42
+  (0.1ms) ROLLBACK
43
+  (0.1ms) BEGIN
44
+  (0.1ms) ROLLBACK
45
+  (0.1ms) BEGIN
46
+ Idioma::Phrase Exists (2.0ms) SELECT 1 AS one FROM "idioma_phrases" WHERE "idioma_phrases"."i18n_key" IS NULL AND "idioma_phrases"."locale" IS NULL LIMIT $1 [["LIMIT", 1]]
47
+  (0.2ms) ROLLBACK
48
+  (0.1ms) BEGIN
49
+  (0.1ms) ROLLBACK
50
+  (0.1ms) BEGIN
51
+  (0.1ms) ROLLBACK
52
+  (0.1ms) BEGIN
53
+  (0.1ms) ROLLBACK
54
+  (0.1ms) BEGIN
55
+  (0.1ms) ROLLBACK
56
+  (0.1ms) BEGIN
57
+  (0.1ms) ROLLBACK
58
+  (0.1ms) BEGIN
59
+  (0.1ms) ROLLBACK
60
+  (0.1ms) BEGIN
61
+  (0.1ms) ROLLBACK
62
+  (0.1ms) BEGIN
63
+  (0.1ms) ROLLBACK
64
+  (0.1ms) BEGIN
65
+  (0.1ms) ROLLBACK
66
+  (0.1ms) BEGIN
67
+  (0.1ms) ROLLBACK
68
+  (0.1ms) BEGIN
69
+  (0.1ms) ROLLBACK
70
+  (0.0ms) BEGIN
71
+  (0.0ms) ROLLBACK
72
+  (0.1ms) BEGIN
73
+  (0.1ms) ROLLBACK
74
+  (0.1ms) BEGIN
75
+  (0.1ms) ROLLBACK
76
+  (0.1ms) BEGIN
77
+  (0.1ms) ROLLBACK
78
+  (0.1ms) BEGIN
79
+  (0.1ms) ROLLBACK
80
+  (0.1ms) BEGIN
81
+  (0.1ms) ROLLBACK
82
+  (0.1ms) BEGIN
83
+  (0.1ms) ROLLBACK
84
+  (0.1ms) BEGIN
85
+  (0.1ms) ROLLBACK
86
+  (0.1ms) BEGIN
87
+  (0.1ms) ROLLBACK
88
+  (0.1ms) BEGIN
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
+  (0.1ms) ROLLBACK
96
+  (0.0ms) BEGIN
97
+  (0.0ms) ROLLBACK
98
+  (0.0ms) BEGIN
99
+  (0.0ms) ROLLBACK
100
+  (0.1ms) BEGIN
101
+  (0.0ms) ROLLBACK
102
+  (0.0ms) BEGIN
103
+  (0.0ms) ROLLBACK
104
+  (0.0ms) BEGIN
105
+  (0.0ms) ROLLBACK
106
+  (0.0ms) BEGIN
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
+ Idioma::Phrase Load (0.2ms) SELECT "idioma_phrases".* FROM "idioma_phrases" WHERE "idioma_phrases"."id" = $1 LIMIT $2 [["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
+  (0.1ms) ROLLBACK
131
+  (0.1ms) BEGIN
132
+  (0.1ms) ROLLBACK
133
+  (0.1ms) BEGIN
134
+  (0.3ms) SELECT COUNT(*) FROM "idioma_phrases"
135
+ Idioma::Phrase Load (0.3ms) SELECT "idioma_phrases".* FROM "idioma_phrases" WHERE "idioma_phrases"."locale" = $1 AND "idioma_phrases"."i18n_key" = $2 LIMIT $3 [["locale", :en], ["i18n_key", :validations], ["LIMIT", 1]]
136
+  (0.1ms) SAVEPOINT active_record_1
137
+ Idioma::Phrase Exists (0.2ms) SELECT 1 AS one FROM "idioma_phrases" WHERE "idioma_phrases"."i18n_key" = $1 AND "idioma_phrases"."locale" = $2 LIMIT $3 [["i18n_key", "validations"], ["locale", "en"], ["LIMIT", 1]]
138
+ SQL (13.0ms) INSERT INTO "idioma_phrases" ("locale", "i18n_key", "i18n_value", "translated_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140
+  (0.2ms) SELECT COUNT(*) FROM "idioma_phrases"
141
+  (1.1ms) ROLLBACK
142
+  (0.1ms) BEGIN
143
+  (0.2ms) SELECT COUNT(*) FROM "idioma_phrases"
144
+ Idioma::Phrase Load (0.2ms) SELECT "idioma_phrases".* FROM "idioma_phrases" WHERE "idioma_phrases"."locale" = $1 AND "idioma_phrases"."i18n_key" = $2 LIMIT $3 [["locale", :en], ["i18n_key", :validations], ["LIMIT", 1]]
145
+  (0.1ms) SAVEPOINT active_record_1
146
+ Idioma::Phrase Exists (0.2ms) SELECT 1 AS one FROM "idioma_phrases" WHERE "idioma_phrases"."i18n_key" = $1 AND "idioma_phrases"."locale" = $2 LIMIT $3 [["i18n_key", "validations"], ["locale", "en"], ["LIMIT", 1]]
147
+ SQL (0.2ms) INSERT INTO "idioma_phrases" ("locale", "i18n_key", "i18n_value", "translated_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
149
+  (0.1ms) SELECT COUNT(*) FROM "idioma_phrases"
150
+  (0.1ms) ROLLBACK
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.1.4
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: 2016-12-12 00:00:00.000000000 Z
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.5.1
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: