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.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +8 -20
  3. data/Rakefile +25 -17
  4. data/app/views/tr8n_client_sdk/tags/_scripts.html.erb +16 -1
  5. data/lib/tasks/{tr8n_client_sdk_tasks.rake → tr8n_client_sdk.rake} +9 -0
  6. data/lib/tr8n_client_sdk/version.rb +1 -1
  7. data/lib/tr8n_client_sdk.rb +1 -0
  8. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/a@_[6b714be8673fcc4a3].json +69 -0
  9. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[de].json +290 -0
  10. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en-US].json +1435 -0
  11. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en].json +1424 -0
  12. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[fr].json +298 -0
  13. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[ru].json +550 -0
  14. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[zh].json +272 -0
  15. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-].json +6 -0
  16. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-index].json +1150 -0
  17. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-installation].json +422 -0
  18. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml].json +445 -0
  19. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml_content].json +40 -0
  20. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs].json +6 -0
  21. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-index].json +746 -0
  22. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-upgrade_cache].json +6 -0
  23. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home].json +6 -0
  24. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-login-cookies].json +6 -0
  25. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-].json +6 -0
  26. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-index].json +1135 -0
  27. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-installation].json +389 -0
  28. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml].json +413 -0
  29. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml_content].json +41 -0
  30. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs].json +6 -0
  31. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-index].json +689 -0
  32. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-upgrade_cache].json +6 -0
  33. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home].json +6 -0
  34. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-login-cookies].json +6 -0
  35. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-].json +6 -0
  36. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-index].json +1041 -0
  37. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-installation].json +357 -0
  38. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml].json +379 -0
  39. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml_content].json +38 -0
  40. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs].json +6 -0
  41. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-index].json +632 -0
  42. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-upgrade_cache].json +6 -0
  43. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home].json +6 -0
  44. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-login-cookies].json +6 -0
  45. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-].json +6 -0
  46. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-index].json +1165 -0
  47. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-installation].json +434 -0
  48. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml].json +476 -0
  49. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml_content].json +40 -0
  50. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs].json +6 -0
  51. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-index].json +742 -0
  52. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-upgrade_cache].json +6 -0
  53. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home].json +6 -0
  54. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-login-cookies].json +6 -0
  55. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-].json +6 -0
  56. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-index].json +1251 -0
  57. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-installation].json +457 -0
  58. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml].json +521 -0
  59. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml_content].json +45 -0
  60. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs].json +6 -0
  61. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-index].json +809 -0
  62. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-upgrade_cache].json +6 -0
  63. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home].json +6 -0
  64. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-login-cookies].json +6 -0
  65. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-].json +6 -0
  66. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-index].json +1135 -0
  67. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-installation].json +391 -0
  68. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml].json +415 -0
  69. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml_content].json +41 -0
  70. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs].json +6 -0
  71. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-index].json +693 -0
  72. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-upgrade_cache].json +6 -0
  73. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home].json +6 -0
  74. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-login-cookies].json +6 -0
  75. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/a@_[6b714be8673fcc4a3].json +69 -0
  76. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[de].json +290 -0
  77. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en-US].json +1435 -0
  78. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en].json +1424 -0
  79. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[fr].json +298 -0
  80. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[ru].json +550 -0
  81. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[zh].json +272 -0
  82. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-].json +6 -0
  83. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-index].json +1150 -0
  84. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-installation].json +422 -0
  85. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml].json +445 -0
  86. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml_content].json +40 -0
  87. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs].json +6 -0
  88. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-index].json +746 -0
  89. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-upgrade_cache].json +6 -0
  90. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home].json +6 -0
  91. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-login-cookies].json +6 -0
  92. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-].json +6 -0
  93. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-index].json +1135 -0
  94. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-installation].json +389 -0
  95. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml].json +413 -0
  96. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml_content].json +41 -0
  97. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs].json +6 -0
  98. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-index].json +689 -0
  99. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-upgrade_cache].json +6 -0
  100. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home].json +6 -0
  101. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-login-cookies].json +6 -0
  102. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-].json +6 -0
  103. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-index].json +1041 -0
  104. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-installation].json +357 -0
  105. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml].json +379 -0
  106. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml_content].json +38 -0
  107. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs].json +6 -0
  108. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-index].json +632 -0
  109. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-upgrade_cache].json +6 -0
  110. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home].json +6 -0
  111. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-login-cookies].json +6 -0
  112. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-].json +6 -0
  113. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-index].json +1165 -0
  114. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-installation].json +434 -0
  115. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml].json +476 -0
  116. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml_content].json +40 -0
  117. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs].json +6 -0
  118. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-index].json +742 -0
  119. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-upgrade_cache].json +6 -0
  120. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home].json +6 -0
  121. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-login-cookies].json +6 -0
  122. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-].json +6 -0
  123. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-index].json +1251 -0
  124. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-installation].json +457 -0
  125. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml].json +521 -0
  126. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml_content].json +45 -0
  127. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs].json +6 -0
  128. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-index].json +809 -0
  129. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-upgrade_cache].json +6 -0
  130. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home].json +6 -0
  131. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-login-cookies].json +6 -0
  132. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-].json +6 -0
  133. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-index].json +1135 -0
  134. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-installation].json +391 -0
  135. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml].json +415 -0
  136. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml_content].json +41 -0
  137. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs].json +6 -0
  138. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-index].json +693 -0
  139. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-upgrade_cache].json +6 -0
  140. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home].json +6 -0
  141. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-login-cookies].json +6 -0
  142. data/test/dummy/config/environments/development.rb +2 -0
  143. data/test/dummy/log/development.log +1509 -0
  144. data/test/dummy/log/tr8n.log +1630 -0
  145. 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
- # Tr8n Client SDK for Ruby on Rails
1
+ <p align="center">
2
+ <img src="https://raw.github.com/tr8n/tr8n/master/doc/screenshots/tr8nlogo.png">
3
+ </p>
2
4
 
3
- This Client SDK provides all tools and extensions necessary for translating any Rails application using the Tr8n service.
5
+ Tr8n Client SDK for Ruby on Rails
6
+ ===================================
4
7
 
5
- You can use http://sandbox.tr8nhub.com or download and install the service locally by following these instructions:
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
- Bundler::GemHelper.install_tasks
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
- require 'rake/testtask'
40
+ Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
29
41
 
30
- Rake::TestTask.new(:test) do |t|
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 => :test
46
+ task :default => :spec
@@ -15,6 +15,21 @@
15
15
  }
16
16
  </style>
17
17
 
18
- <script src="<%=Tr8n.config.application.js_boot_url%>"></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 %>
@@ -27,4 +27,13 @@ namespace :tr8n_client_sdk do
27
27
 
28
28
  end
29
29
 
30
+ task :cache do
31
+ require "tr8n_client_sdk/config"
32
+ Tr8n.config = Tr8nClientSdk::Config.new
33
+
34
+ Tr8n.config.init_application
35
+ g = Tr8nCore::Generators::Cache::File.new
36
+ g.run
37
+ end
38
+
30
39
  end
@@ -23,5 +23,5 @@
23
23
 
24
24
 
25
25
  module Tr8nClientSdk
26
- VERSION = "1.1.0"
26
+ VERSION = "1.1.1"
27
27
  end
@@ -25,4 +25,5 @@ require "tr8n_client_sdk/railtie"
25
25
  require "tr8n_client_sdk/engine"
26
26
 
27
27
  module Tr8nClientSdk
28
+
28
29
  end
@@ -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
+ }