activerecord_translatable 0.0.1
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.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +73 -0
- data/Rakefile +38 -0
- data/lib/activerecord_translatable.rb +9 -0
- data/lib/activerecord_translatable/extension.rb +86 -0
- data/spec/activerecord_translateable_spec.rb +81 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/something.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +29 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/i18n_backend.rb +1 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/db/migrate/20121015083259_create_somethings.rb +8 -0
- data/spec/dummy/db/schema.rb +22 -0
- data/spec/dummy/log/development.log +96 -0
- data/spec/dummy/log/test.log +47 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/spec_helper.rb +15 -0
- metadata +192 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20121015083259) do
|
15
|
+
|
16
|
+
create_table "somethings", :force => true do |t|
|
17
|
+
t.string_array "locales", :limit => 255
|
18
|
+
t.datetime "created_at", :null => false
|
19
|
+
t.datetime "updated_at", :null => false
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
5
|
+
[1m[35m (4.0ms)[0m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
6
|
+
FROM pg_class t
|
7
|
+
INNER JOIN pg_index d ON t.oid = d.indrelid
|
8
|
+
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
9
|
+
WHERE i.relkind = 'i'
|
10
|
+
AND d.indisprimary = 'f'
|
11
|
+
AND t.relname = 'schema_migrations'
|
12
|
+
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
13
|
+
ORDER BY i.relname
|
14
|
+
|
15
|
+
[1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
16
|
+
[1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
17
|
+
Migrating to CreateSomethings (20121015083259)
|
18
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
19
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
20
|
+
Connecting to database specified by database.yml
|
21
|
+
[1m[36m (0.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
22
|
+
Migrating to CreateSomethings (20121015083259)
|
23
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
25
|
+
Connecting to database specified by database.yml
|
26
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
27
|
+
Migrating to CreateSomethings (20121015083259)
|
28
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
30
|
+
Connecting to database specified by database.yml
|
31
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
32
|
+
Migrating to CreateSomethings (20121015083259)
|
33
|
+
[1m[35m (0.1ms)[0m BEGIN
|
34
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
35
|
+
Connecting to database specified by database.yml
|
36
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
37
|
+
Migrating to CreateSomethings (20121015083259)
|
38
|
+
[1m[35m (0.1ms)[0m BEGIN
|
39
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40
|
+
Connecting to database specified by database.yml
|
41
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
42
|
+
Migrating to CreateSomethings (20121015083259)
|
43
|
+
[1m[35m (0.1ms)[0m BEGIN
|
44
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
45
|
+
Connecting to database specified by database.yml
|
46
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
47
|
+
Migrating to CreateSomethings (20121015083259)
|
48
|
+
[1m[35m (0.1ms)[0m BEGIN
|
49
|
+
[1m[36m (8.4ms)[0m [1mCREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
50
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20121015083259')
|
51
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
52
|
+
[1m[35m (0.5ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
53
|
+
[1m[36mPK and serial sequence (3.4ms)[0m [1m SELECT attr.attname, seq.relname
|
54
|
+
FROM pg_class seq,
|
55
|
+
pg_attribute attr,
|
56
|
+
pg_depend dep,
|
57
|
+
pg_namespace name,
|
58
|
+
pg_constraint cons
|
59
|
+
WHERE seq.oid = dep.objid
|
60
|
+
AND seq.relkind = 'S'
|
61
|
+
AND attr.attrelid = dep.refobjid
|
62
|
+
AND attr.attnum = dep.refobjsubid
|
63
|
+
AND attr.attrelid = cons.conrelid
|
64
|
+
AND attr.attnum = cons.conkey[1]
|
65
|
+
AND cons.contype = 'p'
|
66
|
+
AND dep.refobjid = '"somethings"'::regclass
|
67
|
+
[0m
|
68
|
+
[1m[35m (1.9ms)[0m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
69
|
+
FROM pg_class t
|
70
|
+
INNER JOIN pg_index d ON t.oid = d.indrelid
|
71
|
+
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
72
|
+
WHERE i.relkind = 'i'
|
73
|
+
AND d.indisprimary = 'f'
|
74
|
+
AND t.relname = 'somethings'
|
75
|
+
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
76
|
+
ORDER BY i.relname
|
77
|
+
|
78
|
+
Connecting to database specified by database.yml
|
79
|
+
[1m[36m (0.9ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
80
|
+
[1m[35m (429.1ms)[0m DROP DATABASE IF EXISTS "translatable_test"
|
81
|
+
[1m[36m (334.5ms)[0m [1mCREATE DATABASE "translatable_test" ENCODING = 'unicode'[0m
|
82
|
+
[1m[35m (9.8ms)[0m CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
83
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
84
|
+
[1m[35m (3.1ms)[0m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
85
|
+
FROM pg_class t
|
86
|
+
INNER JOIN pg_index d ON t.oid = d.indrelid
|
87
|
+
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
88
|
+
WHERE i.relkind = 'i'
|
89
|
+
AND d.indisprimary = 'f'
|
90
|
+
AND t.relname = 'schema_migrations'
|
91
|
+
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
92
|
+
ORDER BY i.relname
|
93
|
+
|
94
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
95
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
96
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121015083259')[0m
|
@@ -0,0 +1,47 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
7
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
9
|
+
[1m[36mSQL (10.6ms)[0m [1mINSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
10
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
11
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12
|
+
[1m[35m (0.1ms)[0m BEGIN
|
13
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
15
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
18
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
19
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
20
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
21
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
22
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
24
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
25
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
26
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
29
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
30
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
32
|
+
[1m[35m (0.1ms)[0m BEGIN
|
33
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
34
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
35
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
38
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
39
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\",\"de\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
40
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
41
|
+
[1m[36mSomething Load (1.0ms)[0m [1mSELECT "somethings".* FROM "somethings" WHERE "somethings"."id" = $1 LIMIT 1[0m [["id", 87]]
|
42
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
43
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
44
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
45
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "somethings" ("created_at", "locales", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00], ["locales", "{\"en\"}"], ["updated_at", Tue, 16 Oct 2012 09:07:48 UTC +00:00]]
|
46
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
47
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
14
|
+
config.use_transactional_fixtures = true
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activerecord_translatable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Philipp Fehre
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.8
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.8
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: pg
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: activerecord-postgres-array
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec-rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: translatable activerecord attributes
|
79
|
+
email:
|
80
|
+
- philipp.fehre@gmail.com
|
81
|
+
executables: []
|
82
|
+
extensions: []
|
83
|
+
extra_rdoc_files: []
|
84
|
+
files:
|
85
|
+
- lib/activerecord_translatable/extension.rb
|
86
|
+
- lib/activerecord_translatable.rb
|
87
|
+
- MIT-LICENSE
|
88
|
+
- Rakefile
|
89
|
+
- README.rdoc
|
90
|
+
- spec/activerecord_translateable_spec.rb
|
91
|
+
- spec/dummy/app/assets/javascripts/application.js
|
92
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
93
|
+
- spec/dummy/app/controllers/application_controller.rb
|
94
|
+
- spec/dummy/app/helpers/application_helper.rb
|
95
|
+
- spec/dummy/app/models/something.rb
|
96
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
97
|
+
- spec/dummy/config/application.rb
|
98
|
+
- spec/dummy/config/boot.rb
|
99
|
+
- spec/dummy/config/database.yml
|
100
|
+
- spec/dummy/config/environment.rb
|
101
|
+
- spec/dummy/config/environments/development.rb
|
102
|
+
- spec/dummy/config/environments/production.rb
|
103
|
+
- spec/dummy/config/environments/test.rb
|
104
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
105
|
+
- spec/dummy/config/initializers/i18n_backend.rb
|
106
|
+
- spec/dummy/config/initializers/inflections.rb
|
107
|
+
- spec/dummy/config/initializers/mime_types.rb
|
108
|
+
- spec/dummy/config/initializers/secret_token.rb
|
109
|
+
- spec/dummy/config/initializers/session_store.rb
|
110
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
111
|
+
- spec/dummy/config/locales/en.yml
|
112
|
+
- spec/dummy/config/routes.rb
|
113
|
+
- spec/dummy/config.ru
|
114
|
+
- spec/dummy/db/migrate/20121015083259_create_somethings.rb
|
115
|
+
- spec/dummy/db/schema.rb
|
116
|
+
- spec/dummy/log/development.log
|
117
|
+
- spec/dummy/log/test.log
|
118
|
+
- spec/dummy/public/404.html
|
119
|
+
- spec/dummy/public/422.html
|
120
|
+
- spec/dummy/public/500.html
|
121
|
+
- spec/dummy/public/favicon.ico
|
122
|
+
- spec/dummy/Rakefile
|
123
|
+
- spec/dummy/README.rdoc
|
124
|
+
- spec/dummy/script/rails
|
125
|
+
- spec/spec_helper.rb
|
126
|
+
homepage: http://github.com/sideshowcoder/activerecord_translatable
|
127
|
+
licenses: []
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
segments:
|
139
|
+
- 0
|
140
|
+
hash: -3909879885711798376
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ! '>='
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
hash: -3909879885711798376
|
150
|
+
requirements: []
|
151
|
+
rubyforge_project:
|
152
|
+
rubygems_version: 1.8.23
|
153
|
+
signing_key:
|
154
|
+
specification_version: 3
|
155
|
+
summary: make attributes of active record translatable via the normal i18n backend
|
156
|
+
test_files:
|
157
|
+
- spec/activerecord_translateable_spec.rb
|
158
|
+
- spec/dummy/app/assets/javascripts/application.js
|
159
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
160
|
+
- spec/dummy/app/controllers/application_controller.rb
|
161
|
+
- spec/dummy/app/helpers/application_helper.rb
|
162
|
+
- spec/dummy/app/models/something.rb
|
163
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
164
|
+
- spec/dummy/config/application.rb
|
165
|
+
- spec/dummy/config/boot.rb
|
166
|
+
- spec/dummy/config/database.yml
|
167
|
+
- spec/dummy/config/environment.rb
|
168
|
+
- spec/dummy/config/environments/development.rb
|
169
|
+
- spec/dummy/config/environments/production.rb
|
170
|
+
- spec/dummy/config/environments/test.rb
|
171
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
172
|
+
- spec/dummy/config/initializers/i18n_backend.rb
|
173
|
+
- spec/dummy/config/initializers/inflections.rb
|
174
|
+
- spec/dummy/config/initializers/mime_types.rb
|
175
|
+
- spec/dummy/config/initializers/secret_token.rb
|
176
|
+
- spec/dummy/config/initializers/session_store.rb
|
177
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
178
|
+
- spec/dummy/config/locales/en.yml
|
179
|
+
- spec/dummy/config/routes.rb
|
180
|
+
- spec/dummy/config.ru
|
181
|
+
- spec/dummy/db/migrate/20121015083259_create_somethings.rb
|
182
|
+
- spec/dummy/db/schema.rb
|
183
|
+
- spec/dummy/log/development.log
|
184
|
+
- spec/dummy/log/test.log
|
185
|
+
- spec/dummy/public/404.html
|
186
|
+
- spec/dummy/public/422.html
|
187
|
+
- spec/dummy/public/500.html
|
188
|
+
- spec/dummy/public/favicon.ico
|
189
|
+
- spec/dummy/Rakefile
|
190
|
+
- spec/dummy/README.rdoc
|
191
|
+
- spec/dummy/script/rails
|
192
|
+
- spec/spec_helper.rb
|