copycat 0.2.1 → 0.2.2
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/README.md +8 -1
- data/app/models/copycat_translation.rb +4 -0
- 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/{20120320194234_create_copycat_translations.copycat_engine.rb → 20120407193855_create_copycat_translations.copycat_engine.rb} +0 -0
- data/spec/dummy/db/schema.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +25 -1299
- data/spec/dummy/log/test.log +179 -23252
- data/spec/factories/copycat_translations.rb +2 -2
- data/spec/integration/copycat_spec.rb +16 -16
- data/spec/integration/dummy_spec.rb +2 -2
- data/spec/models/copycat_translation_spec.rb +7 -7
- metadata +65 -82
- data/spec/dummy/tmp/cache/assets/C19/060/sprockets%2F125436f53217b7f564aa5016d1168709 +0 -0
- data/spec/dummy/tmp/cache/assets/CB3/6E0/sprockets%2F0f4c96b04436bf7ae900561753947d4c +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/D09/190/sprockets%2Fb2bddd007999a56d8b20c92301ea1983 +0 -0
- data/spec/dummy/tmp/cache/assets/D1A/DB0/sprockets%2F26d700197b8d25f954d56d8f31f2c8bc +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/DA4/EE0/sprockets%2Fcd39e3d56788faea331e0f5bac67329b +0 -0
- data/spec/dummy/tmp/cache/assets/DBD/220/sprockets%2F0cbff5c1a349439c1c444cbb4a57acc4 +0 -0
- data/spec/dummy/tmp/cache/assets/DDD/780/sprockets%2Fe7880b84c3ecb507fabc99b9ef6b70e3 +0 -0
- data/spec/dummy/tmp/cache/assets/DF8/310/sprockets%2Fccb12c4009c2f876d51dee8bae4c64ec +0 -0
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Copycat is a Rails engine that allows users to edit live website copy.
|
|
4
4
|
|
5
5
|
## How to use ##
|
6
6
|
|
7
|
-
Add ```copycat``` to your Gemfile and run bundle
|
7
|
+
Add ```copycat``` to your Gemfile and run ```bundle install```.
|
8
8
|
|
9
9
|
Copycat uses a database table to store the copy items, and so it is necessary to create that:
|
10
10
|
|
@@ -52,6 +52,13 @@ Rails.application.routes.draw do
|
|
52
52
|
end
|
53
53
|
```
|
54
54
|
|
55
|
+
## Logging ##
|
56
|
+
Because Copycat does a SQL query for each token, it can produce a lot of noise in the log output. Therefore by default the logger is disabled for the Copycat ActiveRecord class. It can be enabled with the environment variable COPYCAT_DEBUG, e.g.
|
57
|
+
|
58
|
+
```bash
|
59
|
+
COPYCAT_DEBUG=1 rails s
|
60
|
+
```
|
61
|
+
|
55
62
|
## Example ##
|
56
63
|
|
57
64
|
See an example application [here](https://github.com/Vermonster/copycat-demo).
|
data/lib/copycat/version.rb
CHANGED
Binary file
|
File without changes
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
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 => 20120407193855) do
|
15
15
|
|
16
16
|
create_table "copycat_translations", :force => true do |t|
|
17
17
|
t.string "locale"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|