copycat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/copycat_engine.css +14 -1
- data/app/controllers/copycat_translations_controller.rb +0 -1
- data/app/models/copycat_translation.rb +48 -17
- data/app/views/copycat_translations/edit.html.erb +3 -1
- data/app/views/copycat_translations/index.html.erb +1 -1
- data/app/views/copycat_translations/readme.html.erb +3 -6
- data/db/migrate/20120313191745_create_copycat_translations.rb +2 -1
- data/lib/copycat.rb +4 -81
- data/lib/copycat/version.rb +1 -1
- data/spec/dummy/config/initializers/copycat.rb +2 -2
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/{20120316153248_create_copycat_translations.copycat_engine.rb → 20120320143433_create_copycat_translations.copycat_engine.rb} +2 -1
- data/spec/dummy/db/schema.rb +3 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +26 -0
- data/spec/dummy/log/test.log +625 -0
- data/spec/factories/copycat_translations.rb +1 -0
- data/spec/integration/copycat_spec.rb +61 -2
- data/spec/lib/copycat_spec.rb +4 -22
- data/spec/models/copycat_translation_spec.rb +27 -1
- metadata +6 -6
@@ -20,6 +20,7 @@ div#copycat {
|
|
20
20
|
padding-top: 2em;
|
21
21
|
}
|
22
22
|
#copycat table {
|
23
|
+
width: 100%;
|
23
24
|
border-bottom: 1px #CCC dotted;
|
24
25
|
padding-bottom: 1em;
|
25
26
|
}
|
@@ -48,4 +49,16 @@ div#copycat {
|
|
48
49
|
color: green;
|
49
50
|
font-weight: bold;
|
50
51
|
}
|
51
|
-
|
52
|
+
#copycat div.copycat-edit-form {
|
53
|
+
width: 50%;
|
54
|
+
}
|
55
|
+
#copycat div.copycat-edit-form textarea {
|
56
|
+
font-size: 0.8em;
|
57
|
+
width: 99%;
|
58
|
+
margin-top: 1em;
|
59
|
+
}
|
60
|
+
#copycat div.copycat-edit-form input {
|
61
|
+
margin-top: 0.5em;
|
62
|
+
font-size: 1em;
|
63
|
+
float: right;
|
64
|
+
}
|
@@ -20,7 +20,6 @@ class CopycatTranslationsController < ApplicationController
|
|
20
20
|
cct = CopycatTranslation.find_by_id(params["id"])
|
21
21
|
cct.value = params["copycat_translation"]["value"]
|
22
22
|
if cct.save
|
23
|
-
#Copycat.clear_cache(params["copycat_translation"]["key"])
|
24
23
|
@copycat_translations = CopycatTranslation.all
|
25
24
|
redirect_to copycat_translations_path
|
26
25
|
else
|
@@ -1,26 +1,57 @@
|
|
1
1
|
class CopycatTranslation < ActiveRecord::Base
|
2
2
|
|
3
|
-
validates :key, :presence => true
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
validates :key, :presence => true
|
4
|
+
validates :locale, :presence => true
|
5
|
+
|
6
|
+
module Serialize
|
7
|
+
|
8
|
+
def import_yaml(yaml)
|
9
|
+
hash = YAML.load(yaml)
|
10
|
+
hash.each do |locale, data|
|
11
|
+
hash_flatten(data).each do |key, value|
|
12
|
+
c = where(key: key, locale: locale).first
|
13
|
+
c ||= new(key: key, locale: locale)
|
14
|
+
c.value = value
|
15
|
+
c.save
|
16
|
+
end
|
14
17
|
end
|
15
18
|
end
|
16
|
-
end
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
def export_yaml
|
21
|
+
hash = {}
|
22
|
+
all.each do |c|
|
23
|
+
hash_fatten!(hash, [c.locale].concat(c.key.split(".")), c.value)
|
24
|
+
end
|
25
|
+
hash.to_yaml
|
26
|
+
end
|
27
|
+
|
28
|
+
# {"foo"=>{"a"=>"1", "b"=>"2"}} ----> {"foo.a"=>1, "foo.b"=>2}
|
29
|
+
def hash_flatten(hash)
|
30
|
+
result = {}
|
31
|
+
hash.each do |key, value|
|
32
|
+
if value.is_a? Hash
|
33
|
+
hash_flatten(value).each { |k,v| result["#{key}.#{k}"] = v }
|
34
|
+
else
|
35
|
+
result[key] = value
|
36
|
+
end
|
37
|
+
end
|
38
|
+
result
|
39
|
+
end
|
40
|
+
|
41
|
+
# ({"a"=>{"b"=>{"e"=>"f"}}}, ["a","b","c"], "d") ----> {"a"=>{"b"=>{"c"=>"d", "e"=>"f"}}}
|
42
|
+
def hash_fatten!(hash, keys, value)
|
43
|
+
if keys.length == 1
|
44
|
+
hash[keys.first] = value
|
45
|
+
else
|
46
|
+
head = keys.first
|
47
|
+
rest = keys[1..-1]
|
48
|
+
hash[head] ||= {}
|
49
|
+
hash_fatten!(hash[head], rest, value)
|
50
|
+
end
|
22
51
|
end
|
23
|
-
|
52
|
+
|
24
53
|
end
|
25
54
|
|
55
|
+
extend Serialize
|
56
|
+
|
26
57
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
+
<div class="copycat-edit-form">
|
1
2
|
<%= form_for @copycat_translation, :url => { :action => "update" }, :html => {:class => "copycat_translation"} do |f| %>
|
2
|
-
|
3
|
+
<span class="copycat-edit-form-key"><%= @copycat_translation.key %></span>
|
3
4
|
<br>
|
4
5
|
<%= f.text_area :value, :size => "60x12" %>
|
5
6
|
<br>
|
6
7
|
<%= f.submit "Update" %>
|
7
8
|
<% end %>
|
9
|
+
</div>
|
@@ -7,7 +7,9 @@
|
|
7
7
|
|
8
8
|
<div class="section">
|
9
9
|
<h2> How to use </h2>
|
10
|
-
<p>The values you see here correspond to
|
10
|
+
<p>The values you see here correspond to copy text in different parts of the parent website. When you edit them, the text on the website will change. Use ctrl/command-f to search for text, then click the left hand side links to edit. </p>
|
11
|
+
|
12
|
+
<p>Values with keys ending in "_html" will be parsed as literal html, so you can insert tags. All other values are parsed as plain text.</p>
|
11
13
|
</div>
|
12
14
|
|
13
15
|
<div class="section">
|
@@ -21,10 +23,5 @@
|
|
21
23
|
<p>If you're pretty happy with your copy and don't expect to need to update it live anymore, or just want a bit more security, you can download your copy as YAML and include it as part of the Ruby on Rails application underneath your main website. You can then remove Copycat from the application entirely, and the website will still run exactly as before--it interfaces with Ruby on Rails's built-in translation mechanisms in a very unobtrusive way.
|
22
24
|
</div>
|
23
25
|
|
24
|
-
<div class="section">
|
25
|
-
<h2> About </h2>
|
26
|
-
<p>Copycat is a product of <a href="http://www.vermonster.com">Vermonster LLC</a>. Thanks for using!</p>
|
27
|
-
</div>
|
28
|
-
|
29
26
|
</div>
|
30
27
|
|
@@ -1,12 +1,13 @@
|
|
1
1
|
class CreateCopycatTranslations < ActiveRecord::Migration
|
2
2
|
def up
|
3
3
|
create_table :copycat_translations do |t|
|
4
|
+
t.string :locale
|
4
5
|
t.string :key
|
5
6
|
t.text :value
|
6
7
|
t.timestamps
|
7
8
|
end
|
8
9
|
change_table :copycat_translations do |t|
|
9
|
-
t.index :key
|
10
|
+
t.index [:locale, :key], :unique => true
|
10
11
|
end
|
11
12
|
end
|
12
13
|
|
data/lib/copycat.rb
CHANGED
@@ -1,40 +1,19 @@
|
|
1
1
|
require "copycat/engine"
|
2
2
|
|
3
|
-
=begin
|
4
|
-
from i18n gem, lib/i18n/backend/simple.rb
|
5
|
-
|
6
|
-
# Looks up a translation from the translations hash. Returns nil if
|
7
|
-
# eiher key is nil, or locale, scope or key do not exist as a key in the
|
8
|
-
# nested translations hash. Splits keys or scopes containing dots
|
9
|
-
# into multiple keys, i.e. <tt>currency.format</tt> is regarded the same as
|
10
|
-
# <tt>%w(currency format)</tt>.
|
11
|
-
def lookup(locale, key, scope = [], options = {})
|
12
|
-
init_translations unless initialized?
|
13
|
-
keys = I18n.normalize_keys(locale, key, scope, options[:separator])
|
14
|
-
|
15
|
-
keys.inject(translations) do |result, _key|
|
16
|
-
_key = _key.to_sym
|
17
|
-
return nil unless result.is_a?(Hash) && result.has_key?(_key)
|
18
|
-
result = result[_key]
|
19
|
-
result = resolve(locale, _key, result, options.merge(:scope => nil)) if result.is_a?(Symbol)
|
20
|
-
result
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
=end
|
25
3
|
module CopycatImplementation
|
4
|
+
# this method overrides part of the i18n gem, lib/i18n/backend/simple.rb
|
26
5
|
def lookup(locale, key, scope = [], options = {})
|
27
6
|
begin
|
28
|
-
cct = CopycatTranslation.
|
7
|
+
cct = CopycatTranslation.where(locale: locale, key: key).first
|
29
8
|
rescue ActiveRecord::StatementInvalid
|
30
|
-
raise if CopycatTranslation.table_exists?
|
9
|
+
raise if CopycatTranslation.table_exists?
|
31
10
|
#assert Rails is initializing for the purpose of running the copycat_translations migration
|
32
11
|
super
|
33
12
|
else
|
34
13
|
return cct.value if cct
|
35
14
|
value = super(locale, key, scope, options)
|
36
15
|
if value.is_a?(String) || value.nil?
|
37
|
-
CopycatTranslation.create(key: key, value: value)
|
16
|
+
CopycatTranslation.create(locale: locale, key: key, value: value)
|
38
17
|
end
|
39
18
|
value
|
40
19
|
end
|
@@ -44,59 +23,3 @@ end
|
|
44
23
|
class I18n::Backend::Simple
|
45
24
|
include CopycatImplementation
|
46
25
|
end
|
47
|
-
|
48
|
-
module Copycat
|
49
|
-
|
50
|
-
# {"foo"=>{"a"=>"1", "b"=>"2"}} ----> {"foo.a"=>1, "foo.b"=>2}
|
51
|
-
def self.hash_flatten(hash)
|
52
|
-
result = {}
|
53
|
-
hash.each do |key, value|
|
54
|
-
if value.is_a? Hash
|
55
|
-
hash_flatten(value).each { |k,v| result["#{key}.#{k}"] = v }
|
56
|
-
else
|
57
|
-
result[key] = value
|
58
|
-
end
|
59
|
-
end
|
60
|
-
result
|
61
|
-
end
|
62
|
-
|
63
|
-
# ({"a"=>{"b"=>{"e"=>"f"}}}, ["a","b","c"], "d") ----> {"a"=>{"b"=>{"c"=>"d", "e"=>"f"}}}
|
64
|
-
def self.hash_fatten(hash, keys, value)
|
65
|
-
if keys.length == 1
|
66
|
-
raise "duplicate key" if hash[keys.first]
|
67
|
-
hash[keys.first] = value
|
68
|
-
else
|
69
|
-
head = keys.first
|
70
|
-
rest = keys[1..-1]
|
71
|
-
hash[head] = hash_fatten(hash[head] || {}, rest, value)
|
72
|
-
end
|
73
|
-
hash
|
74
|
-
end
|
75
|
-
|
76
|
-
|
77
|
-
=begin
|
78
|
-
def self.cache
|
79
|
-
@cache ||= {}
|
80
|
-
end
|
81
|
-
|
82
|
-
def self.t(key)
|
83
|
-
if cache[key]
|
84
|
-
cache[key].html_safe
|
85
|
-
else
|
86
|
-
copybar = CopycatTranslation.where("key = '#{key}'").limit(1).first
|
87
|
-
copybar = CopycatTranslation.create!(:key => key, :value => "Missing copy for #{key}") unless copybar
|
88
|
-
cache[key] = copybar.value
|
89
|
-
copybar.value.html_safe
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
def self.clear_cache(key=nil)
|
94
|
-
if key
|
95
|
-
cache[key] = nil
|
96
|
-
else
|
97
|
-
@cache = {}
|
98
|
-
end
|
99
|
-
end
|
100
|
-
=end
|
101
|
-
|
102
|
-
end
|
data/lib/copycat/version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
COPYCAT_USERNAME = "
|
2
|
-
COPYCAT_PASSWORD = "
|
1
|
+
COPYCAT_USERNAME = "cb0ae97"
|
2
|
+
COPYCAT_PASSWORD = "301f624"
|
Binary file
|
@@ -2,12 +2,13 @@
|
|
2
2
|
class CreateCopycatTranslations < ActiveRecord::Migration
|
3
3
|
def up
|
4
4
|
create_table :copycat_translations do |t|
|
5
|
+
t.string :locale
|
5
6
|
t.string :key
|
6
7
|
t.text :value
|
7
8
|
t.timestamps
|
8
9
|
end
|
9
10
|
change_table :copycat_translations do |t|
|
10
|
-
t.index :key
|
11
|
+
t.index [:locale, :key], :unique => true
|
11
12
|
end
|
12
13
|
end
|
13
14
|
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,15 +11,16 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20120320143433) do
|
15
15
|
|
16
16
|
create_table "copycat_translations", :force => true do |t|
|
17
|
+
t.string "locale"
|
17
18
|
t.string "key"
|
18
19
|
t.text "value"
|
19
20
|
t.datetime "created_at", :null => false
|
20
21
|
t.datetime "updated_at", :null => false
|
21
22
|
end
|
22
23
|
|
23
|
-
add_index "copycat_translations", ["key"], :name => "
|
24
|
+
add_index "copycat_translations", ["locale", "key"], :name => "index_copycat_translations_on_locale_and_key", :unique => true
|
24
25
|
|
25
26
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -672,3 +672,29 @@ Started GET "/copycat_translations" for 127.0.0.1 at 2012-03-16 11:40:16 -0400
|
|
672
672
|
Processing by CopycatTranslationsController#index as HTML
|
673
673
|
Filter chain halted as #<Proc:0x000001024955e0@/Users/sjm/.rvm/gems/ruby-1.9.3-p125@copycat/gems/actionpack-3.2.2/lib/action_controller/metal/http_authentication.rb:112> rendered or redirected
|
674
674
|
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
675
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
676
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
677
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
678
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
679
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
680
|
+
Migrating to CreateCopycatTranslations (20120320143433)
|
681
|
+
[1m[35m (0.0ms)[0m begin transaction
|
682
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "copycat_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "key" varchar(255), "value" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
683
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("copycat_translations")
|
684
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_copycat_translations_on_locale_and_key" ON "copycat_translations" ("locale", "key")[0m
|
685
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120320143433')
|
686
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
687
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
688
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
689
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("copycat_translations")
|
690
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_copycat_translations_on_locale_and_key')[0m
|
691
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
692
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
693
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "copycat_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar(255), "key" varchar(255), "value" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
694
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("copycat_translations")
|
695
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_copycat_translations_on_locale_and_key" ON "copycat_translations" ("locale", "key")[0m
|
696
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
697
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
698
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
699
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
700
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120320143433')
|
data/spec/dummy/log/test.log
CHANGED
@@ -11029,3 +11029,628 @@ Completed 400 Bad Request in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
|
11029
11029
|
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "updated_at", "value") VALUES (?, ?, ?, ?) [["created_at", Mon, 19 Mar 2012 15:16:36 UTC +00:00], ["key", "site.title"], ["updated_at", Mon, 19 Mar 2012 15:16:36 UTC +00:00], ["value", "My Blog"]]
|
11030
11030
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11031
11031
|
[1m[35m (0.4ms)[0m rollback transaction
|
11032
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11033
|
+
[1m[35mCopycatTranslation Load (0.2ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11034
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11035
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11036
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11037
|
+
|
11038
|
+
|
11039
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:33:38 -0400
|
11040
|
+
Processing by SiteController#index as HTML
|
11041
|
+
[1m[36mCopycatTranslation Load (0.2ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11042
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11043
|
+
Completed 500 Internal Server Error in 16ms
|
11044
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11045
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11046
|
+
[1m[35mCopycatTranslation Load (0.5ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11047
|
+
|
11048
|
+
|
11049
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:33:38 -0400
|
11050
|
+
Processing by SiteController#index as HTML
|
11051
|
+
[1m[36mCopycatTranslation Load (0.2ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11052
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11053
|
+
Completed 500 Internal Server Error in 1ms
|
11054
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11055
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11056
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'site.index.intro' LIMIT 1
|
11057
|
+
|
11058
|
+
|
11059
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:33:38 -0400
|
11060
|
+
Processing by SiteController#index as HTML
|
11061
|
+
[1m[36mCopycatTranslation Load (0.2ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11062
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11063
|
+
Completed 500 Internal Server Error in 1ms
|
11064
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11065
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11066
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11067
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11068
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11069
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11070
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11072
|
+
|
11073
|
+
|
11074
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:33:38 -0400
|
11075
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11076
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (1.2ms)
|
11077
|
+
Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms)
|
11078
|
+
|
11079
|
+
|
11080
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:33:38 -0400
|
11081
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11082
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x0000010118ac20 @original_filename="copycat20120320-63216-126c7ux", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63216-126c7ux\"\r\nContent-Type: \r\nContent-Length: 7\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63216-cg0gta>>, "commit"=>"Upload"}
|
11083
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.6ms)
|
11084
|
+
Completed 400 Bad Request in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
11085
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "copycat_translations"
|
11086
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11087
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11088
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11089
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11090
|
+
|
11091
|
+
|
11092
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:33:38 -0400
|
11093
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11094
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.5ms)
|
11095
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
11096
|
+
|
11097
|
+
|
11098
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:33:38 -0400
|
11099
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11100
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000100a34b38 @original_filename="copycat20120320-63216-kka28g", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63216-kka28g\"\r\nContent-Type: \r\nContent-Length: 62\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63216-185bmdz>>, "commit"=>"Upload"}
|
11101
|
+
[1m[36mCopycatTranslation Load (0.2ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'hello' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11102
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'hello' AND "copycat_translations"."locale" = 'en' LIMIT 1
|
11103
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.6ms)
|
11104
|
+
Completed 400 Bad Request in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
11105
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "copycat_translations"
|
11106
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11107
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11108
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11109
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11110
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" IS NULL AND "copycat_translations"."key" = '' LIMIT 1[0m
|
11111
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" IS NULL AND "copycat_translations"."key" = '' LIMIT 1
|
11112
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11113
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11114
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11115
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11116
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'foo'
|
11117
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT COUNT(*) FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'foo'
|
11118
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11119
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11120
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11121
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11122
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11123
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11124
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11125
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11126
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11127
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11128
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11130
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11131
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11132
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.title' LIMIT 1[0m
|
11133
|
+
SQLite3::SQLException: no such column: copycat_translations.locale: SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.title' LIMIT 1
|
11134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11135
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11136
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11137
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11138
|
+
|
11139
|
+
|
11140
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:34:48 -0400
|
11141
|
+
Processing by SiteController#index as HTML
|
11142
|
+
Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.1ms)
|
11143
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11144
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11147
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11149
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11150
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11151
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11152
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11153
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11154
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11155
|
+
|
11156
|
+
|
11157
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:34:48 -0400
|
11158
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11159
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (1.1ms)
|
11160
|
+
Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
11161
|
+
|
11162
|
+
|
11163
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:34:48 -0400
|
11164
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11165
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000101f4adb0 @original_filename="copycat20120320-63279-a4l3gb", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63279-a4l3gb\"\r\nContent-Type: \r\nContent-Length: 7\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63279-11h1apm>>, "commit"=>"Upload"}
|
11166
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.6ms)
|
11167
|
+
Completed 400 Bad Request in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
11168
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11169
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11170
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11172
|
+
|
11173
|
+
|
11174
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:34:48 -0400
|
11175
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11176
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.6ms)
|
11177
|
+
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
|
11178
|
+
|
11179
|
+
|
11180
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:34:48 -0400
|
11181
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11182
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000103d5bcf0 @original_filename="copycat20120320-63279-168hvpy", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63279-168hvpy\"\r\nContent-Type: \r\nContent-Length: 62\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63279-17bq87o>>, "commit"=>"Upload"}
|
11183
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.6ms)
|
11184
|
+
Completed 400 Bad Request in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
11185
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11186
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11187
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11188
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11189
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11190
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11191
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11192
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11193
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11194
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11195
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11196
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11197
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11199
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11200
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11201
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11203
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11204
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11207
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11209
|
+
[1m[35mCopycatTranslation Load (0.2ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11210
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11211
|
+
[1m[35mSQL (5.3ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "The Header"]]
|
11212
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11213
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1
|
11214
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11215
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11216
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11217
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11219
|
+
|
11220
|
+
|
11221
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11222
|
+
Processing by SiteController#index as HTML
|
11223
|
+
[1m[35mCopycatTranslation Load (0.2ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11225
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "The Header"]]
|
11226
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11227
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1
|
11228
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11229
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11231
|
+
Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 1.0ms)
|
11232
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
11233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11234
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11235
|
+
|
11236
|
+
|
11237
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11238
|
+
Processing by SiteController#index as HTML
|
11239
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11240
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11241
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "The Header"]]
|
11242
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11243
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1[0m
|
11244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11245
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11246
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11247
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.9ms)
|
11248
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11249
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11250
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11251
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'site.index.intro' LIMIT 1
|
11252
|
+
|
11253
|
+
|
11254
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11255
|
+
Processing by SiteController#index as HTML
|
11256
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11257
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11258
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "The Header"]]
|
11259
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11260
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1[0m
|
11261
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11262
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11263
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11264
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.9ms)
|
11265
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'site.index.intro' LIMIT 1[0m
|
11266
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11268
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11269
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "A different header"]]
|
11270
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11271
|
+
|
11272
|
+
|
11273
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11274
|
+
Processing by SiteController#index as HTML
|
11275
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11276
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1
|
11277
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11278
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11279
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11280
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.5ms)
|
11281
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11282
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11284
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.foo1"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar1"]]
|
11285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11286
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11287
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.foo2:"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar2"]]
|
11288
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11289
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11290
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.b.foo3"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar3"]]
|
11291
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11292
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11293
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "c.foo4"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar4"]]
|
11294
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11295
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11296
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", 2], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar5"]]
|
11297
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11298
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "copycat_translations" [0m
|
11299
|
+
|
11300
|
+
|
11301
|
+
Started GET "/copycat_translations.yaml" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11302
|
+
Processing by CopycatTranslationsController#index as YAML
|
11303
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11304
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11305
|
+
Sent data copycat_translations_2012_03_20_10_35_08.yml (2.3ms)
|
11306
|
+
Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.1ms)
|
11307
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11308
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11309
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ? [["id", 1]]
|
11310
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11311
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11312
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ?[0m [["id", 2]]
|
11313
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11314
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11315
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ? [["id", 3]]
|
11316
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11317
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11318
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ?[0m [["id", 4]]
|
11319
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11320
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11321
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ? [["id", 5]]
|
11322
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11323
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "copycat_translations"
|
11324
|
+
|
11325
|
+
|
11326
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11327
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11328
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (1.1ms)
|
11329
|
+
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
11330
|
+
|
11331
|
+
|
11332
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11333
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11334
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000100a099b0 @original_filename="copycat20120320-63321-1he0fuq", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63321-1he0fuq\"\r\nContent-Type: \r\nContent-Length: 104\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63321-ivcgqk>>, "commit"=>"Upload"}
|
11335
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.foo1' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11336
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11337
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.foo1"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar1"]]
|
11338
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11339
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.foo2:' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11340
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11341
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.foo2:"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar2"]]
|
11342
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11343
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.b.foo3' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11345
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.b.foo3"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar3"]]
|
11346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11347
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'c.foo4' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11348
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11349
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "c.foo4"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar4"]]
|
11350
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11351
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = '2' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11352
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11353
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "2"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar5"]]
|
11354
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11355
|
+
Redirected to http://www.example.com/copycat_translations
|
11356
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.6ms)
|
11357
|
+
|
11358
|
+
|
11359
|
+
Started GET "/copycat_translations" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11360
|
+
Processing by CopycatTranslationsController#index as HTML
|
11361
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11362
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.5ms)
|
11363
|
+
Completed 200 OK in 26ms (Views: 25.6ms | ActiveRecord: 0.1ms)
|
11364
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "copycat_translations"
|
11365
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.foo1' LIMIT 1[0m
|
11366
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.foo2:' LIMIT 1
|
11367
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.b.foo3' LIMIT 1[0m
|
11368
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'c.foo4' LIMIT 1
|
11369
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 2 LIMIT 1[0m
|
11370
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11373
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.foo"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "“hello world“ üokåa®fgsdf;::fs;kdf"]]
|
11374
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11375
|
+
|
11376
|
+
|
11377
|
+
Started GET "/copycat_translations.yaml" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11378
|
+
Processing by CopycatTranslationsController#index as YAML
|
11379
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11380
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11381
|
+
Sent data copycat_translations_2012_03_20_10_35_08.yml (0.3ms)
|
11382
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
11383
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11384
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11385
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ?[0m [["id", 1]]
|
11386
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11387
|
+
|
11388
|
+
|
11389
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11390
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11391
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.6ms)
|
11392
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
11393
|
+
|
11394
|
+
|
11395
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11396
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11397
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000104b986d8 @original_filename="copycat20120320-63321-1t9ca72", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63321-1t9ca72\"\r\nContent-Type: \r\nContent-Length: 64\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63321-14jy317>>, "commit"=>"Upload"}
|
11398
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.foo' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11399
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11400
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.foo"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "“hello world“ üokåa®fgsdf;::fs;kdf"]]
|
11401
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11402
|
+
Redirected to http://www.example.com/copycat_translations
|
11403
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
11404
|
+
|
11405
|
+
|
11406
|
+
Started GET "/copycat_translations" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11407
|
+
Processing by CopycatTranslationsController#index as HTML
|
11408
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11409
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.5ms)
|
11410
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
11411
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'a.foo' LIMIT 1
|
11412
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11413
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11414
|
+
|
11415
|
+
|
11416
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11417
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11418
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.5ms)
|
11419
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
11420
|
+
|
11421
|
+
|
11422
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11423
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11424
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x000001045972c0 @original_filename="copycat20120320-63321-t1zgwc", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63321-t1zgwc\"\r\nContent-Type: \r\nContent-Length: 7\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63321-1w200zy>>, "commit"=>"Upload"}
|
11425
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.6ms)
|
11426
|
+
Completed 400 Bad Request in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
11427
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "copycat_translations" [0m
|
11428
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11429
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11431
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "world"]]
|
11432
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11434
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", "es"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "mundo"]]
|
11435
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11436
|
+
|
11437
|
+
|
11438
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11439
|
+
Processing by SiteController#index as HTML
|
11440
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11441
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11442
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "The Header"]]
|
11443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11444
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1
|
11445
|
+
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)
|
11446
|
+
|
11447
|
+
|
11448
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11449
|
+
Processing by SiteController#index as HTML
|
11450
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'es' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1[0m
|
11451
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11452
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", :es], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11453
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11454
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'es' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1[0m
|
11455
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.5ms)
|
11456
|
+
|
11457
|
+
|
11458
|
+
Started GET "/" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11459
|
+
Processing by SiteController#index as HTML
|
11460
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'fa' AND "copycat_translations"."key" = 'site.index.header' LIMIT 1
|
11461
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11462
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.header"], ["locale", :fa], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11463
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11464
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'fa' AND "copycat_translations"."key" = 'site.index.intro' LIMIT 1
|
11465
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11466
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.index.intro"], ["locale", :fa], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11467
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11468
|
+
Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.7ms)
|
11469
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11470
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11471
|
+
|
11472
|
+
|
11473
|
+
Started GET "/copycat_translations/upload" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11474
|
+
Processing by CopycatTranslationsController#upload as HTML
|
11475
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.5ms)
|
11476
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
11477
|
+
|
11478
|
+
|
11479
|
+
Started POST "/copycat_translations/import_yaml" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11480
|
+
Processing by CopycatTranslationsController#import_yaml as HTML
|
11481
|
+
Parameters: {"utf8"=>"✓", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000100a22bb8 @original_filename="copycat20120320-63321-dejf8q", @content_type="", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"copycat20120320-63321-dejf8q\"\r\nContent-Type: \r\nContent-Length: 62\r\n", @tempfile=#<File:/var/folders/rn/rnXUYLOZH-mYuzcjL2v8Fk+++TI/-Tmp-/RackMultipart20120320-63321-1gtuig1>>, "commit"=>"Upload"}
|
11482
|
+
[1m[35mCopycatTranslation Load (0.2ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'hello' AND "copycat_translations"."locale" = 'en' LIMIT 1
|
11483
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11484
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "hello"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "world"]]
|
11485
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11486
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'hello' AND "copycat_translations"."locale" = 'es' LIMIT 1
|
11487
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11488
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "hello"], ["locale", "es"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "mundo"]]
|
11489
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11490
|
+
Redirected to http://www.example.com/copycat_translations
|
11491
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
11492
|
+
|
11493
|
+
|
11494
|
+
Started GET "/copycat_translations" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11495
|
+
Processing by CopycatTranslationsController#index as HTML
|
11496
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11497
|
+
Rendered /vermonster/copycat/app/views/copycat_translations/_copycat_header.html.erb (0.5ms)
|
11498
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
11499
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "copycat_translations" [0m
|
11500
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' LIMIT 1
|
11501
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'es' LIMIT 1[0m
|
11502
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11503
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11504
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11505
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "hello"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "world"]]
|
11506
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11507
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11508
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "hello"], ["locale", "es"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "mundo"]]
|
11509
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11510
|
+
|
11511
|
+
|
11512
|
+
Started GET "/copycat_translations.yaml" for 127.0.0.1 at 2012-03-20 10:35:08 -0400
|
11513
|
+
Processing by CopycatTranslationsController#index as YAML
|
11514
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11515
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11516
|
+
Sent data copycat_translations_2012_03_20_10_35_08.yml (0.3ms)
|
11517
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
11518
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11519
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11520
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" IS NULL AND "copycat_translations"."key" = '' LIMIT 1
|
11521
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11522
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'copycat_translation' LIMIT 1
|
11523
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :copycat_translation], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11524
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.attributes.copycat_translation.key' LIMIT 1
|
11525
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"activerecord.attributes.copycat_translation.key"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11526
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'attributes.key' LIMIT 1
|
11527
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"attributes.key"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11528
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.errors.models.copycat_translation.attributes.key.blank' LIMIT 1
|
11529
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"activerecord.errors.models.copycat_translation.attributes.key.blank"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11530
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.errors.models.copycat_translation.blank' LIMIT 1
|
11531
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"activerecord.errors.models.copycat_translation.blank"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11532
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.errors.messages.blank' LIMIT 1
|
11533
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"activerecord.errors.messages.blank"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11534
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'errors.attributes.key.blank' LIMIT 1
|
11535
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"errors.attributes.key.blank"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11536
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'errors.messages.blank' LIMIT 1
|
11537
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"errors.messages.blank"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "can't be blank"]]
|
11538
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'copycat_translation' LIMIT 1
|
11539
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.attributes.copycat_translation.locale' LIMIT 1[0m
|
11540
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"activerecord.attributes.copycat_translation.locale"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11541
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'attributes.locale' LIMIT 1[0m
|
11542
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"attributes.locale"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11543
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.errors.models.copycat_translation.attributes.locale.blank' LIMIT 1[0m
|
11544
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"activerecord.errors.models.copycat_translation.attributes.locale.blank"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11545
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.errors.models.copycat_translation.blank' LIMIT 1[0m
|
11546
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'activerecord.errors.messages.blank' LIMIT 1
|
11547
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'errors.attributes.locale.blank' LIMIT 1[0m
|
11548
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", :"errors.attributes.locale.blank"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11549
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'errors.messages.blank' LIMIT 1[0m
|
11550
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
11551
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11552
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11553
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11554
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "string000000001"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "string000000002"]]
|
11555
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11556
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'string000000001' LIMIT 1
|
11557
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11558
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11559
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'foo'[0m
|
11560
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'foo' LIMIT 1
|
11561
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11562
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "foo"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "translation missing"]]
|
11563
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11564
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'foo'
|
11565
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11566
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11567
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11568
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "sample_copy"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "copyfoo"]]
|
11569
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11571
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "sample_copy2"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "copybaz"]]
|
11572
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11573
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'sample_copy' LIMIT 1[0m
|
11574
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'sample_copy2' LIMIT 1
|
11575
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'hello' LIMIT 1[0m
|
11576
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'hello' AND "copycat_translations"."locale" = 'en' LIMIT 1
|
11577
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11578
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "hello"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "Hello world"]]
|
11579
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11580
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'sample_copy' AND "copycat_translations"."locale" = 'en' LIMIT 1
|
11581
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11582
|
+
[1m[35m (0.1ms)[0m UPDATE "copycat_translations" SET "value" = 'lorem ipsum', "updated_at" = '2012-03-20 14:35:08.528509' WHERE "copycat_translations"."id" = 1
|
11583
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11584
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'sample_copy' LIMIT 1
|
11585
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'sample_copy2' LIMIT 1[0m
|
11586
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'hello' LIMIT 1
|
11587
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11588
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11589
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11590
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "sample_copy"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "copyfoo"]]
|
11591
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11592
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11593
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "sample_copy2"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "copybaz"]]
|
11594
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11595
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11596
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11597
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.sample_copy3"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "copyfoo"]]
|
11598
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11599
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11600
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "a.sample_copy4"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "copybaz"]]
|
11601
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11602
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11603
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11605
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11606
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "moby_dick"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "<p>Lorem ipsum</p><p class=\"highlight\">∆'≈:</p>"]]
|
11607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11608
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11609
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11610
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11611
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ?[0m [["id", 1]]
|
11612
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11613
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'moby_dick' AND "copycat_translations"."locale" = 'en' LIMIT 1[0m
|
11614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11615
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "moby_dick"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "<p>Lorem ipsum</p><p class=\"highlight\">∆'≈:</p>"]]
|
11616
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11617
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."key" = 'moby_dick' LIMIT 1[0m
|
11618
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11619
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11620
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11621
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "foo"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar"]]
|
11622
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11623
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11624
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "foo"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar2"]]
|
11625
|
+
SQLite3::ConstraintException: constraint failed: INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)
|
11626
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
11627
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11628
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "foo"], ["locale", "fa"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "bar"]]
|
11629
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11630
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11631
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11632
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11633
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11634
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11635
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11636
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.title' LIMIT 1[0m
|
11637
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11638
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.title"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", nil]]
|
11639
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11640
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11641
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11642
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ?[0m [["id", 1]]
|
11643
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11644
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11645
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.title"], ["locale", "en"], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "My Blog"]]
|
11646
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11647
|
+
[1m[35mCopycatTranslation Load (0.1ms)[0m SELECT "copycat_translations".* FROM "copycat_translations"
|
11648
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" [0m
|
11649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11650
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "copycat_translations" WHERE "copycat_translations"."id" = ?[0m [["id", 2]]
|
11651
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11652
|
+
[1m[36mCopycatTranslation Load (0.1ms)[0m [1mSELECT "copycat_translations".* FROM "copycat_translations" WHERE "copycat_translations"."locale" = 'en' AND "copycat_translations"."key" = 'site.title' LIMIT 1[0m
|
11653
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11654
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "copycat_translations" ("created_at", "key", "locale", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["key", "site.title"], ["locale", :en], ["updated_at", Tue, 20 Mar 2012 14:35:08 UTC +00:00], ["value", "My Blog"]]
|
11655
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11656
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|