tr8n_client_sdk 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +8 -20
- data/Rakefile +25 -17
- data/app/views/tr8n_client_sdk/tags/_scripts.html.erb +16 -1
- data/lib/tasks/{tr8n_client_sdk_tasks.rake → tr8n_client_sdk.rake} +9 -0
- data/lib/tr8n_client_sdk/version.rb +1 -1
- data/lib/tr8n_client_sdk.rb +1 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/a@_[6b714be8673fcc4a3].json +69 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[de].json +290 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en-US].json +1435 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en].json +1424 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[fr].json +298 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[ru].json +550 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[zh].json +272 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-index].json +1150 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-installation].json +422 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml].json +445 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml_content].json +40 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-index].json +746 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-index].json +1135 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-installation].json +389 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml].json +413 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml_content].json +41 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-index].json +689 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-index].json +1041 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-installation].json +357 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml].json +379 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml_content].json +38 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-index].json +632 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-index].json +1165 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-installation].json +434 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml].json +476 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml_content].json +40 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-index].json +742 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-index].json +1251 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-installation].json +457 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml].json +521 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml_content].json +45 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-index].json +809 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-index].json +1135 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-installation].json +391 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml].json +415 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml_content].json +41 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-index].json +693 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/a@_[6b714be8673fcc4a3].json +69 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[de].json +290 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en-US].json +1435 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en].json +1424 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[fr].json +298 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[ru].json +550 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[zh].json +272 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-index].json +1150 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-installation].json +422 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml].json +445 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml_content].json +40 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-index].json +746 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-index].json +1135 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-installation].json +389 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml].json +413 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml_content].json +41 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-index].json +689 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-index].json +1041 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-installation].json +357 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml].json +379 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml_content].json +38 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-index].json +632 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-index].json +1165 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-installation].json +434 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml].json +476 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml_content].json +40 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-index].json +742 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-index].json +1251 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-installation].json +457 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml].json +521 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml_content].json +45 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-index].json +809 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-login-cookies].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-index].json +1135 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-installation].json +391 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml].json +415 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml_content].json +41 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-index].json +693 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-upgrade_cache].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home].json +6 -0
- data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-login-cookies].json +6 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/log/development.log +1509 -0
- data/test/dummy/log/tr8n.log +1630 -0
- metadata +280 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b8d0103283b05a19ab6981ce073537294d3dd176
|
4
|
+
data.tar.gz: 0bfdf3265f60d79eb255b6ceb3d150fec606cf1b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 38a034b6a92ba6ede6e13c9b6e8bdb3735ac589cbfd37cc1ed20c1639644e6a82df939acd90187b21b44b167999794ed12ca7b9794e74988314284528f09787e
|
7
|
+
data.tar.gz: 0173898286496b8be08f43195094ceed4082fd69820dbdac692e1e1bb4d112da0b762566c7a460688c16f60eebbd0d41040671a08d0e8a140c01d914f219570b
|
data/README.md
CHANGED
@@ -1,28 +1,16 @@
|
|
1
|
-
|
1
|
+
<p align="center">
|
2
|
+
<img src="https://raw.github.com/tr8n/tr8n/master/doc/screenshots/tr8nlogo.png">
|
3
|
+
</p>
|
2
4
|
|
3
|
-
|
5
|
+
Tr8n Client SDK for Ruby on Rails
|
6
|
+
===================================
|
4
7
|
|
5
|
-
|
8
|
+
This Client SDK provides tools and extensions necessary for translating any Rails application using the Tr8n service.
|
6
9
|
|
7
|
-
```sh
|
8
|
-
$ git clone https://github.com/tr8n/tr8n.git
|
9
|
-
$ cd tr8n/test/dummy
|
10
|
-
$ bundle install
|
11
|
-
$ rake db:migrate
|
12
|
-
$ rake tr8n:init
|
13
|
-
$ rails s
|
14
|
-
```
|
15
|
-
|
16
|
-
Open your browser and point to:
|
17
|
-
|
18
|
-
http://localhost:3000
|
19
|
-
|
20
|
-
This is your Tr8n Service Instance.
|
21
|
-
|
22
|
-
Now you can install and run the Client SDK sample.
|
23
10
|
|
11
|
+
Runing the Client SDK Sample
|
12
|
+
===================================
|
24
13
|
|
25
|
-
# Runing the Client SDK Sample
|
26
14
|
|
27
15
|
To run the gem as a stand-alone application follow these:
|
28
16
|
|
data/Rakefile
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
-
begin
|
3
|
-
require 'bundler/setup'
|
4
|
-
rescue LoadError
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
2
|
+
#begin
|
3
|
+
# require 'bundler/setup'
|
4
|
+
#rescue LoadError
|
5
|
+
# puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
#end
|
7
|
+
|
7
8
|
begin
|
8
9
|
require 'rdoc/task'
|
9
10
|
rescue LoadError
|
@@ -20,19 +21,26 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
21
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
22
|
end
|
22
23
|
|
23
|
-
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
24
|
-
load 'rails/tasks/engine.rake'
|
25
|
-
|
26
|
-
|
24
|
+
#APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
25
|
+
#load 'rails/tasks/engine.rake'
|
26
|
+
#
|
27
|
+
#Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
|
28
|
+
#
|
29
|
+
#Bundler::GemHelper.install_tasks
|
30
|
+
#
|
31
|
+
#require 'rake/testtask'
|
32
|
+
#
|
33
|
+
#Rake::TestTask.new(:test) do |t|
|
34
|
+
# t.libs << 'lib'
|
35
|
+
# t.libs << 'test'
|
36
|
+
# t.pattern = 'test/**/*_test.rb'
|
37
|
+
# t.verbose = false
|
38
|
+
#end
|
27
39
|
|
28
|
-
|
40
|
+
Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
|
29
41
|
|
30
|
-
|
31
|
-
t.libs << 'lib'
|
32
|
-
t.libs << 'test'
|
33
|
-
t.pattern = 'test/**/*_test.rb'
|
34
|
-
t.verbose = false
|
35
|
-
end
|
42
|
+
require 'rspec/core/rake_task'
|
36
43
|
|
44
|
+
RSpec::Core::RakeTask.new(:spec)
|
37
45
|
|
38
|
-
task :default => :
|
46
|
+
task :default => :spec
|
@@ -15,6 +15,21 @@
|
|
15
15
|
}
|
16
16
|
</style>
|
17
17
|
|
18
|
-
<script
|
18
|
+
<script type="text/javascript">
|
19
|
+
(function() {
|
20
|
+
function async_load(){
|
21
|
+
var s = document.createElement('script');
|
22
|
+
s.type = 'text/javascript';
|
23
|
+
s.async = true;
|
24
|
+
s.src = '<%= Tr8n.config.application.js_boot_url %>';
|
25
|
+
var x = document.getElementsByTagName('script')[0];
|
26
|
+
x.parentNode.insertBefore(s, x);
|
27
|
+
}
|
28
|
+
if (window.attachEvent)
|
29
|
+
window.attachEvent('onload', async_load);
|
30
|
+
else
|
31
|
+
window.addEventListener('load', async_load, false);
|
32
|
+
})();
|
33
|
+
</script>
|
19
34
|
|
20
35
|
<% end %>
|
data/lib/tr8n_client_sdk.rb
CHANGED
data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/a@_[6b714be8673fcc4a3].json
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
{
|
2
|
+
"key": "6b714be8673fcc4a3",
|
3
|
+
"name": "Rails Client SDK Dummy",
|
4
|
+
"description": "",
|
5
|
+
"default_locale": "en-US",
|
6
|
+
"languages": [
|
7
|
+
{
|
8
|
+
"locale": "zh",
|
9
|
+
"name": "中文(香港)",
|
10
|
+
"english_name": "Chinese",
|
11
|
+
"native_name": "中文(香港)",
|
12
|
+
"flag_url": "http://localhost:3000/media/47/81/78/85/b04d625bd57ee0fc2.png"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"locale": "en",
|
16
|
+
"name": "English",
|
17
|
+
"english_name": "English",
|
18
|
+
"native_name": "English",
|
19
|
+
"flag_url": "http://localhost:3000/media/57/65/20/52/3755a41bc40938b41.png"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"locale": "en-US",
|
23
|
+
"name": "English (US)",
|
24
|
+
"english_name": "English (US)",
|
25
|
+
"native_name": "English (US)",
|
26
|
+
"flag_url": "http://localhost:3000/media/57/23/20/19/cf185dab9566b718e.png"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"locale": "fr",
|
30
|
+
"name": "Français",
|
31
|
+
"english_name": "French",
|
32
|
+
"native_name": "Français",
|
33
|
+
"flag_url": "http://localhost:3000/media/22/5/6/87/e52809adf86d81215.png"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"locale": "de",
|
37
|
+
"name": "Deutsch",
|
38
|
+
"english_name": "German",
|
39
|
+
"native_name": "Deutsch",
|
40
|
+
"flag_url": "http://localhost:3000/media/5/11/98/10/bc99d7cc527101e6d.png"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"locale": "ru",
|
44
|
+
"name": "Русский",
|
45
|
+
"english_name": "Russian",
|
46
|
+
"native_name": "Русский",
|
47
|
+
"flag_url": "http://localhost:3000/media/54/39/11/49/cb768f030bde97f97.png"
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"threshold": 1,
|
51
|
+
"translator_level": 1,
|
52
|
+
"features": {
|
53
|
+
"inline_translations": true,
|
54
|
+
"google_suggestions": false,
|
55
|
+
"decorations": true,
|
56
|
+
"shortcuts": true,
|
57
|
+
"context_rules": true,
|
58
|
+
"language_cases": true,
|
59
|
+
"javascript_sdk": false,
|
60
|
+
"glossary": true,
|
61
|
+
"forum": true,
|
62
|
+
"awards": true,
|
63
|
+
"admin_translations": true,
|
64
|
+
"open_registration": true,
|
65
|
+
"language_flags": true
|
66
|
+
},
|
67
|
+
"tokens": {
|
68
|
+
}
|
69
|
+
}
|
@@ -0,0 +1,290 @@
|
|
1
|
+
{
|
2
|
+
"locale": "de",
|
3
|
+
"name": "Deutsch",
|
4
|
+
"english_name": "German",
|
5
|
+
"native_name": "Deutsch",
|
6
|
+
"flag_url": "http://localhost:3000/media/5/11/98/10/bc99d7cc527101e6d.png",
|
7
|
+
"contexts": {
|
8
|
+
"date": {
|
9
|
+
"keyword": "date",
|
10
|
+
"keys": [
|
11
|
+
"past",
|
12
|
+
"present",
|
13
|
+
"future"
|
14
|
+
],
|
15
|
+
"default_key": "present",
|
16
|
+
"token_expression": "/.*(date|time)(\\d)*$/",
|
17
|
+
"variables": [
|
18
|
+
"@date"
|
19
|
+
],
|
20
|
+
"token_mapping": [
|
21
|
+
"unsupported",
|
22
|
+
"unsupported",
|
23
|
+
{
|
24
|
+
"past": "{$0}",
|
25
|
+
"present": "{$1}",
|
26
|
+
"future": "{$2}"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"rules": {
|
30
|
+
"future": {
|
31
|
+
"keyword": "future",
|
32
|
+
"description": "{token} is in the past",
|
33
|
+
"conditions": "(< @date (today))",
|
34
|
+
"conditions_expression": [
|
35
|
+
"<",
|
36
|
+
"@date",
|
37
|
+
[
|
38
|
+
"today"
|
39
|
+
]
|
40
|
+
]
|
41
|
+
},
|
42
|
+
"past": {
|
43
|
+
"keyword": "past",
|
44
|
+
"description": "{token} is in the future",
|
45
|
+
"conditions": "(> @date (today))",
|
46
|
+
"conditions_expression": [
|
47
|
+
">",
|
48
|
+
"@date",
|
49
|
+
[
|
50
|
+
"today"
|
51
|
+
]
|
52
|
+
]
|
53
|
+
},
|
54
|
+
"present": {
|
55
|
+
"keyword": "present",
|
56
|
+
"description": "{token} is in the present",
|
57
|
+
"conditions": "(= @date (today))",
|
58
|
+
"conditions_expression": [
|
59
|
+
"=",
|
60
|
+
"@date",
|
61
|
+
[
|
62
|
+
"today"
|
63
|
+
]
|
64
|
+
]
|
65
|
+
}
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"gender": {
|
69
|
+
"keyword": "gender",
|
70
|
+
"keys": [
|
71
|
+
"male",
|
72
|
+
"female",
|
73
|
+
"unknown"
|
74
|
+
],
|
75
|
+
"default_key": "other",
|
76
|
+
"token_expression": "/.*(user|translator|profile|actor|target)(\\d)*$/",
|
77
|
+
"variables": [
|
78
|
+
"@gender"
|
79
|
+
],
|
80
|
+
"token_mapping": [
|
81
|
+
{
|
82
|
+
"other": "{$0}"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"male": "{$0}",
|
86
|
+
"female": "{$1}",
|
87
|
+
"other": "{$0}/{$1}"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"male": "{$0}",
|
91
|
+
"female": "{$1}",
|
92
|
+
"other": "{$2}"
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"rules": {
|
96
|
+
"female": {
|
97
|
+
"keyword": "female",
|
98
|
+
"description": "{token} is a female",
|
99
|
+
"conditions": "(= 'female' @gender)",
|
100
|
+
"conditions_expression": [
|
101
|
+
"=",
|
102
|
+
"female",
|
103
|
+
"@gender"
|
104
|
+
]
|
105
|
+
},
|
106
|
+
"male": {
|
107
|
+
"keyword": "male",
|
108
|
+
"description": "{token} is a male",
|
109
|
+
"conditions": "(= 'male' @gender)",
|
110
|
+
"conditions_expression": [
|
111
|
+
"=",
|
112
|
+
"male",
|
113
|
+
"@gender"
|
114
|
+
]
|
115
|
+
},
|
116
|
+
"other": {
|
117
|
+
"keyword": "other",
|
118
|
+
"description": "{token}'s gender is unknown"
|
119
|
+
}
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"genders": {
|
123
|
+
"keyword": "genders",
|
124
|
+
"keys": [
|
125
|
+
"male",
|
126
|
+
"female",
|
127
|
+
"unknown",
|
128
|
+
"other"
|
129
|
+
],
|
130
|
+
"default_key": "other",
|
131
|
+
"token_expression": "/.*(users|profiles|actors|targets)(\\d)*$/",
|
132
|
+
"variables": [
|
133
|
+
"@genders"
|
134
|
+
],
|
135
|
+
"token_mapping": [
|
136
|
+
"unsupported",
|
137
|
+
"unsupported",
|
138
|
+
"unsupported",
|
139
|
+
{
|
140
|
+
"male": "{$0}",
|
141
|
+
"female": "{$1}",
|
142
|
+
"unknown": "{$2}",
|
143
|
+
"other": "{$3}"
|
144
|
+
}
|
145
|
+
],
|
146
|
+
"rules": {
|
147
|
+
"female": {
|
148
|
+
"keyword": "female",
|
149
|
+
"description": "{token} contains 1 female",
|
150
|
+
"conditions": "(&& (= 1 (count @genders)) (all @genders 'female'))",
|
151
|
+
"conditions_expression": [
|
152
|
+
"&&",
|
153
|
+
[
|
154
|
+
"=",
|
155
|
+
1,
|
156
|
+
[
|
157
|
+
"count",
|
158
|
+
"@genders"
|
159
|
+
]
|
160
|
+
],
|
161
|
+
[
|
162
|
+
"all",
|
163
|
+
"@genders",
|
164
|
+
"female"
|
165
|
+
]
|
166
|
+
]
|
167
|
+
},
|
168
|
+
"male": {
|
169
|
+
"keyword": "male",
|
170
|
+
"description": "{token} contains 1 male",
|
171
|
+
"conditions": "(&& (= 1 (count @genders)) (all @genders 'male'))",
|
172
|
+
"conditions_expression": [
|
173
|
+
"&&",
|
174
|
+
[
|
175
|
+
"=",
|
176
|
+
1,
|
177
|
+
[
|
178
|
+
"count",
|
179
|
+
"@genders"
|
180
|
+
]
|
181
|
+
],
|
182
|
+
[
|
183
|
+
"all",
|
184
|
+
"@genders",
|
185
|
+
"male"
|
186
|
+
]
|
187
|
+
]
|
188
|
+
},
|
189
|
+
"other": {
|
190
|
+
"keyword": "other",
|
191
|
+
"description": "{token} contains at least 2 people"
|
192
|
+
},
|
193
|
+
"unknown": {
|
194
|
+
"keyword": "unknown",
|
195
|
+
"description": "{token} contains 1 person with unknown gender",
|
196
|
+
"conditions": "(&& (= 1 (count @genders)) (all @genders 'unknown'))",
|
197
|
+
"conditions_expression": [
|
198
|
+
"&&",
|
199
|
+
[
|
200
|
+
"=",
|
201
|
+
1,
|
202
|
+
[
|
203
|
+
"count",
|
204
|
+
"@genders"
|
205
|
+
]
|
206
|
+
],
|
207
|
+
[
|
208
|
+
"all",
|
209
|
+
"@genders",
|
210
|
+
"unknown"
|
211
|
+
]
|
212
|
+
]
|
213
|
+
}
|
214
|
+
}
|
215
|
+
},
|
216
|
+
"list": {
|
217
|
+
"keyword": "list",
|
218
|
+
"keys": [
|
219
|
+
"one",
|
220
|
+
"other"
|
221
|
+
],
|
222
|
+
"default_key": "other",
|
223
|
+
"token_expression": "/.*(items|list)(\\d)*$/",
|
224
|
+
"variables": [
|
225
|
+
"@count"
|
226
|
+
],
|
227
|
+
"token_mapping": [
|
228
|
+
"unsupported",
|
229
|
+
{
|
230
|
+
"one": "{$0}",
|
231
|
+
"other": "{$1}"
|
232
|
+
}
|
233
|
+
],
|
234
|
+
"rules": {
|
235
|
+
"one": {
|
236
|
+
"keyword": "one",
|
237
|
+
"description": "{token} contains 1 element",
|
238
|
+
"conditions": "(= 1 @count)",
|
239
|
+
"conditions_expression": [
|
240
|
+
"=",
|
241
|
+
1,
|
242
|
+
"@count"
|
243
|
+
]
|
244
|
+
},
|
245
|
+
"other": {
|
246
|
+
"keyword": "other",
|
247
|
+
"description": "{token} contains at least 2 elements"
|
248
|
+
}
|
249
|
+
}
|
250
|
+
},
|
251
|
+
"number": {
|
252
|
+
"keyword": "number",
|
253
|
+
"keys": [
|
254
|
+
"one",
|
255
|
+
"other"
|
256
|
+
],
|
257
|
+
"default_key": "other",
|
258
|
+
"token_expression": "/.*(count|num|minutes|seconds|hours|sum|total)(\\d)*$/",
|
259
|
+
"variables": [
|
260
|
+
"@n"
|
261
|
+
],
|
262
|
+
"token_mapping": [
|
263
|
+
"unsupported",
|
264
|
+
{
|
265
|
+
"one": "{$0}",
|
266
|
+
"other": "{$1}"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
"rules": {
|
270
|
+
"one": {
|
271
|
+
"keyword": "one",
|
272
|
+
"description": "{n} is 1",
|
273
|
+
"examples": "1",
|
274
|
+
"conditions": "(= @n 1)",
|
275
|
+
"conditions_expression": [
|
276
|
+
"=",
|
277
|
+
"@n",
|
278
|
+
1
|
279
|
+
]
|
280
|
+
},
|
281
|
+
"other": {
|
282
|
+
"keyword": "other",
|
283
|
+
"examples": "0, 2-999; 1.2, 2.07..."
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
},
|
288
|
+
"cases": {
|
289
|
+
}
|
290
|
+
}
|