ng-angularjs-rails 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/README.md +25 -0
  4. data/lib/ng/angularjs/rails.rb +11 -0
  5. data/lib/ng/angularjs/rails/version.rb +7 -0
  6. data/vendor/assets/javascripts/angular-bootstrap-prettify.js +1833 -0
  7. data/vendor/assets/javascripts/angular-bootstrap.js +166 -0
  8. data/vendor/assets/javascripts/angular-cookies.js +183 -0
  9. data/vendor/assets/javascripts/angular-loader.js +276 -0
  10. data/vendor/assets/javascripts/angular-mocks.js +1764 -0
  11. data/vendor/assets/javascripts/angular-resource.js +445 -0
  12. data/vendor/assets/javascripts/angular-sanitize.js +535 -0
  13. data/vendor/assets/javascripts/angular-scenario.js +26195 -0
  14. data/vendor/assets/javascripts/angular.js +14733 -0
  15. data/vendor/assets/javascripts/i18n/angular-locale_am-et.js +4 -0
  16. data/vendor/assets/javascripts/i18n/angular-locale_am.js +4 -0
  17. data/vendor/assets/javascripts/i18n/angular-locale_ar-eg.js +4 -0
  18. data/vendor/assets/javascripts/i18n/angular-locale_ar.js +4 -0
  19. data/vendor/assets/javascripts/i18n/angular-locale_bg-bg.js +4 -0
  20. data/vendor/assets/javascripts/i18n/angular-locale_bg.js +4 -0
  21. data/vendor/assets/javascripts/i18n/angular-locale_bn-bd.js +4 -0
  22. data/vendor/assets/javascripts/i18n/angular-locale_bn.js +4 -0
  23. data/vendor/assets/javascripts/i18n/angular-locale_ca-es.js +4 -0
  24. data/vendor/assets/javascripts/i18n/angular-locale_ca.js +4 -0
  25. data/vendor/assets/javascripts/i18n/angular-locale_cs-cz.js +4 -0
  26. data/vendor/assets/javascripts/i18n/angular-locale_cs.js +4 -0
  27. data/vendor/assets/javascripts/i18n/angular-locale_da-dk.js +4 -0
  28. data/vendor/assets/javascripts/i18n/angular-locale_da.js +4 -0
  29. data/vendor/assets/javascripts/i18n/angular-locale_de-at.js +4 -0
  30. data/vendor/assets/javascripts/i18n/angular-locale_de-be.js +4 -0
  31. data/vendor/assets/javascripts/i18n/angular-locale_de-ch.js +4 -0
  32. data/vendor/assets/javascripts/i18n/angular-locale_de-de.js +4 -0
  33. data/vendor/assets/javascripts/i18n/angular-locale_de-lu.js +4 -0
  34. data/vendor/assets/javascripts/i18n/angular-locale_de.js +4 -0
  35. data/vendor/assets/javascripts/i18n/angular-locale_el-gr.js +4 -0
  36. data/vendor/assets/javascripts/i18n/angular-locale_el-polyton.js +4 -0
  37. data/vendor/assets/javascripts/i18n/angular-locale_el.js +4 -0
  38. data/vendor/assets/javascripts/i18n/angular-locale_en-as.js +4 -0
  39. data/vendor/assets/javascripts/i18n/angular-locale_en-au.js +4 -0
  40. data/vendor/assets/javascripts/i18n/angular-locale_en-dsrt-us.js +4 -0
  41. data/vendor/assets/javascripts/i18n/angular-locale_en-dsrt.js +4 -0
  42. data/vendor/assets/javascripts/i18n/angular-locale_en-gb.js +4 -0
  43. data/vendor/assets/javascripts/i18n/angular-locale_en-gu.js +4 -0
  44. data/vendor/assets/javascripts/i18n/angular-locale_en-ie.js +4 -0
  45. data/vendor/assets/javascripts/i18n/angular-locale_en-in.js +4 -0
  46. data/vendor/assets/javascripts/i18n/angular-locale_en-iso.js +4 -0
  47. data/vendor/assets/javascripts/i18n/angular-locale_en-mh.js +4 -0
  48. data/vendor/assets/javascripts/i18n/angular-locale_en-mp.js +4 -0
  49. data/vendor/assets/javascripts/i18n/angular-locale_en-sg.js +4 -0
  50. data/vendor/assets/javascripts/i18n/angular-locale_en-um.js +4 -0
  51. data/vendor/assets/javascripts/i18n/angular-locale_en-us.js +4 -0
  52. data/vendor/assets/javascripts/i18n/angular-locale_en-vi.js +4 -0
  53. data/vendor/assets/javascripts/i18n/angular-locale_en-za.js +4 -0
  54. data/vendor/assets/javascripts/i18n/angular-locale_en-zz.js +4 -0
  55. data/vendor/assets/javascripts/i18n/angular-locale_en.js +4 -0
  56. data/vendor/assets/javascripts/i18n/angular-locale_es-es.js +4 -0
  57. data/vendor/assets/javascripts/i18n/angular-locale_es.js +4 -0
  58. data/vendor/assets/javascripts/i18n/angular-locale_et-ee.js +4 -0
  59. data/vendor/assets/javascripts/i18n/angular-locale_et.js +4 -0
  60. data/vendor/assets/javascripts/i18n/angular-locale_eu-es.js +4 -0
  61. data/vendor/assets/javascripts/i18n/angular-locale_eu.js +4 -0
  62. data/vendor/assets/javascripts/i18n/angular-locale_fa-ir.js +4 -0
  63. data/vendor/assets/javascripts/i18n/angular-locale_fa.js +4 -0
  64. data/vendor/assets/javascripts/i18n/angular-locale_fi-fi.js +4 -0
  65. data/vendor/assets/javascripts/i18n/angular-locale_fi.js +4 -0
  66. data/vendor/assets/javascripts/i18n/angular-locale_fil-ph.js +4 -0
  67. data/vendor/assets/javascripts/i18n/angular-locale_fil.js +4 -0
  68. data/vendor/assets/javascripts/i18n/angular-locale_fr-bl.js +4 -0
  69. data/vendor/assets/javascripts/i18n/angular-locale_fr-ca.js +4 -0
  70. data/vendor/assets/javascripts/i18n/angular-locale_fr-fr.js +4 -0
  71. data/vendor/assets/javascripts/i18n/angular-locale_fr-gp.js +4 -0
  72. data/vendor/assets/javascripts/i18n/angular-locale_fr-mc.js +4 -0
  73. data/vendor/assets/javascripts/i18n/angular-locale_fr-mf.js +4 -0
  74. data/vendor/assets/javascripts/i18n/angular-locale_fr-mq.js +4 -0
  75. data/vendor/assets/javascripts/i18n/angular-locale_fr-re.js +4 -0
  76. data/vendor/assets/javascripts/i18n/angular-locale_fr.js +4 -0
  77. data/vendor/assets/javascripts/i18n/angular-locale_gl-es.js +4 -0
  78. data/vendor/assets/javascripts/i18n/angular-locale_gl.js +4 -0
  79. data/vendor/assets/javascripts/i18n/angular-locale_gsw-ch.js +4 -0
  80. data/vendor/assets/javascripts/i18n/angular-locale_gsw.js +4 -0
  81. data/vendor/assets/javascripts/i18n/angular-locale_gu-in.js +4 -0
  82. data/vendor/assets/javascripts/i18n/angular-locale_gu.js +4 -0
  83. data/vendor/assets/javascripts/i18n/angular-locale_he-il.js +4 -0
  84. data/vendor/assets/javascripts/i18n/angular-locale_he.js +4 -0
  85. data/vendor/assets/javascripts/i18n/angular-locale_hi-in.js +4 -0
  86. data/vendor/assets/javascripts/i18n/angular-locale_hi.js +4 -0
  87. data/vendor/assets/javascripts/i18n/angular-locale_hr-hr.js +4 -0
  88. data/vendor/assets/javascripts/i18n/angular-locale_hr.js +4 -0
  89. data/vendor/assets/javascripts/i18n/angular-locale_hu-hu.js +4 -0
  90. data/vendor/assets/javascripts/i18n/angular-locale_hu.js +4 -0
  91. data/vendor/assets/javascripts/i18n/angular-locale_id-id.js +4 -0
  92. data/vendor/assets/javascripts/i18n/angular-locale_id.js +4 -0
  93. data/vendor/assets/javascripts/i18n/angular-locale_in.js +4 -0
  94. data/vendor/assets/javascripts/i18n/angular-locale_is-is.js +4 -0
  95. data/vendor/assets/javascripts/i18n/angular-locale_is.js +4 -0
  96. data/vendor/assets/javascripts/i18n/angular-locale_it-it.js +4 -0
  97. data/vendor/assets/javascripts/i18n/angular-locale_it.js +4 -0
  98. data/vendor/assets/javascripts/i18n/angular-locale_iw.js +4 -0
  99. data/vendor/assets/javascripts/i18n/angular-locale_ja-jp.js +4 -0
  100. data/vendor/assets/javascripts/i18n/angular-locale_ja.js +4 -0
  101. data/vendor/assets/javascripts/i18n/angular-locale_kn-in.js +4 -0
  102. data/vendor/assets/javascripts/i18n/angular-locale_kn.js +4 -0
  103. data/vendor/assets/javascripts/i18n/angular-locale_ko-kr.js +4 -0
  104. data/vendor/assets/javascripts/i18n/angular-locale_ko.js +4 -0
  105. data/vendor/assets/javascripts/i18n/angular-locale_ln-cd.js +4 -0
  106. data/vendor/assets/javascripts/i18n/angular-locale_ln.js +4 -0
  107. data/vendor/assets/javascripts/i18n/angular-locale_lt-lt.js +4 -0
  108. data/vendor/assets/javascripts/i18n/angular-locale_lt.js +4 -0
  109. data/vendor/assets/javascripts/i18n/angular-locale_lv-lv.js +4 -0
  110. data/vendor/assets/javascripts/i18n/angular-locale_lv.js +4 -0
  111. data/vendor/assets/javascripts/i18n/angular-locale_ml-in.js +4 -0
  112. data/vendor/assets/javascripts/i18n/angular-locale_ml.js +4 -0
  113. data/vendor/assets/javascripts/i18n/angular-locale_mo.js +4 -0
  114. data/vendor/assets/javascripts/i18n/angular-locale_mr-in.js +4 -0
  115. data/vendor/assets/javascripts/i18n/angular-locale_mr.js +4 -0
  116. data/vendor/assets/javascripts/i18n/angular-locale_ms-my.js +4 -0
  117. data/vendor/assets/javascripts/i18n/angular-locale_ms.js +4 -0
  118. data/vendor/assets/javascripts/i18n/angular-locale_mt-mt.js +4 -0
  119. data/vendor/assets/javascripts/i18n/angular-locale_mt.js +4 -0
  120. data/vendor/assets/javascripts/i18n/angular-locale_nl-nl.js +4 -0
  121. data/vendor/assets/javascripts/i18n/angular-locale_nl.js +4 -0
  122. data/vendor/assets/javascripts/i18n/angular-locale_no.js +4 -0
  123. data/vendor/assets/javascripts/i18n/angular-locale_or-in.js +4 -0
  124. data/vendor/assets/javascripts/i18n/angular-locale_or.js +4 -0
  125. data/vendor/assets/javascripts/i18n/angular-locale_pl-pl.js +4 -0
  126. data/vendor/assets/javascripts/i18n/angular-locale_pl.js +4 -0
  127. data/vendor/assets/javascripts/i18n/angular-locale_pt-br.js +4 -0
  128. data/vendor/assets/javascripts/i18n/angular-locale_pt-pt.js +4 -0
  129. data/vendor/assets/javascripts/i18n/angular-locale_pt.js +4 -0
  130. data/vendor/assets/javascripts/i18n/angular-locale_ro-ro.js +4 -0
  131. data/vendor/assets/javascripts/i18n/angular-locale_ro.js +4 -0
  132. data/vendor/assets/javascripts/i18n/angular-locale_ru-ru.js +4 -0
  133. data/vendor/assets/javascripts/i18n/angular-locale_ru.js +4 -0
  134. data/vendor/assets/javascripts/i18n/angular-locale_sk-sk.js +4 -0
  135. data/vendor/assets/javascripts/i18n/angular-locale_sk.js +4 -0
  136. data/vendor/assets/javascripts/i18n/angular-locale_sl-si.js +4 -0
  137. data/vendor/assets/javascripts/i18n/angular-locale_sl.js +4 -0
  138. data/vendor/assets/javascripts/i18n/angular-locale_sq-al.js +4 -0
  139. data/vendor/assets/javascripts/i18n/angular-locale_sq.js +4 -0
  140. data/vendor/assets/javascripts/i18n/angular-locale_sr-cyrl-rs.js +4 -0
  141. data/vendor/assets/javascripts/i18n/angular-locale_sr-latn-rs.js +4 -0
  142. data/vendor/assets/javascripts/i18n/angular-locale_sr-rs.js +4 -0
  143. data/vendor/assets/javascripts/i18n/angular-locale_sr.js +4 -0
  144. data/vendor/assets/javascripts/i18n/angular-locale_sv-se.js +4 -0
  145. data/vendor/assets/javascripts/i18n/angular-locale_sv.js +4 -0
  146. data/vendor/assets/javascripts/i18n/angular-locale_sw-tz.js +4 -0
  147. data/vendor/assets/javascripts/i18n/angular-locale_sw.js +4 -0
  148. data/vendor/assets/javascripts/i18n/angular-locale_ta-in.js +4 -0
  149. data/vendor/assets/javascripts/i18n/angular-locale_ta.js +4 -0
  150. data/vendor/assets/javascripts/i18n/angular-locale_te-in.js +4 -0
  151. data/vendor/assets/javascripts/i18n/angular-locale_te.js +4 -0
  152. data/vendor/assets/javascripts/i18n/angular-locale_th-th.js +4 -0
  153. data/vendor/assets/javascripts/i18n/angular-locale_th.js +4 -0
  154. data/vendor/assets/javascripts/i18n/angular-locale_tl-ph.js +4 -0
  155. data/vendor/assets/javascripts/i18n/angular-locale_tl.js +4 -0
  156. data/vendor/assets/javascripts/i18n/angular-locale_tr-tr.js +4 -0
  157. data/vendor/assets/javascripts/i18n/angular-locale_tr.js +4 -0
  158. data/vendor/assets/javascripts/i18n/angular-locale_uk-ua.js +4 -0
  159. data/vendor/assets/javascripts/i18n/angular-locale_uk.js +4 -0
  160. data/vendor/assets/javascripts/i18n/angular-locale_ur-pk.js +4 -0
  161. data/vendor/assets/javascripts/i18n/angular-locale_ur.js +4 -0
  162. data/vendor/assets/javascripts/i18n/angular-locale_vi-vn.js +4 -0
  163. data/vendor/assets/javascripts/i18n/angular-locale_vi.js +4 -0
  164. data/vendor/assets/javascripts/i18n/angular-locale_zh-cn.js +4 -0
  165. data/vendor/assets/javascripts/i18n/angular-locale_zh-hans-cn.js +4 -0
  166. data/vendor/assets/javascripts/i18n/angular-locale_zh-hans.js +4 -0
  167. data/vendor/assets/javascripts/i18n/angular-locale_zh-hk.js +4 -0
  168. data/vendor/assets/javascripts/i18n/angular-locale_zh-tw.js +4 -0
  169. data/vendor/assets/javascripts/i18n/angular-locale_zh.js +4 -0
  170. data/vendor/assets/javascripts/jstd-scenario-adapter-config.js +6 -0
  171. data/vendor/assets/javascripts/jstd-scenario-adapter.js +185 -0
  172. data/vendor/assets/javascripts/version.json +7 -0
  173. metadata +243 -0
@@ -0,0 +1,4 @@
1
+ angular.module("ngLocale", [], ["$provide", function($provide) {
2
+ var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
3
+ $provide.value("$locale", {"NUMBER_FORMATS":{"DECIMAL_SEP":".","GROUP_SEP":",","PATTERNS":[{"minInt":1,"minFrac":0,"macFrac":0,"posPre":"","posSuf":"","negPre":"-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":3},{"minInt":1,"minFrac":2,"macFrac":0,"posPre":"\u00A4","posSuf":"","negPre":"\u00A4-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":2}],"CURRENCY_SYM":"¥"},"pluralCat":function (n) { return PLURAL_CATEGORY.OTHER;},"DATETIME_FORMATS":{"MONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"SHORTMONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"DAY":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"SHORTDAY":["周日","周一","周二","周三","周四","周五","周六"],"AMPMS":["上午","下午"],"medium":"yyyy-M-d ah:mm:ss","short":"yy-M-d ah:mm","fullDate":"y年M月d日EEEE","longDate":"y年M月d日","mediumDate":"yyyy-M-d","shortDate":"yy-M-d","mediumTime":"ah:mm:ss","shortTime":"ah:mm"},"id":"zh-hans-cn"});
4
+ }]);
@@ -0,0 +1,4 @@
1
+ angular.module("ngLocale", [], ["$provide", function($provide) {
2
+ var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
3
+ $provide.value("$locale", {"NUMBER_FORMATS":{"DECIMAL_SEP":".","GROUP_SEP":",","PATTERNS":[{"minInt":1,"minFrac":0,"macFrac":0,"posPre":"","posSuf":"","negPre":"-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":3},{"minInt":1,"minFrac":2,"macFrac":0,"posPre":"\u00A4","posSuf":"","negPre":"\u00A4-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":2}],"CURRENCY_SYM":"¥"},"pluralCat":function (n) { return PLURAL_CATEGORY.OTHER;},"DATETIME_FORMATS":{"MONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"SHORTMONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"DAY":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"SHORTDAY":["周日","周一","周二","周三","周四","周五","周六"],"AMPMS":["上午","下午"],"medium":"yyyy-M-d ah:mm:ss","short":"yy-M-d ah:mm","fullDate":"y年M月d日EEEE","longDate":"y年M月d日","mediumDate":"yyyy-M-d","shortDate":"yy-M-d","mediumTime":"ah:mm:ss","shortTime":"ah:mm"},"id":"zh-hans"});
4
+ }]);
@@ -0,0 +1,4 @@
1
+ angular.module("ngLocale", [], ["$provide", function($provide) {
2
+ var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
3
+ $provide.value("$locale", {"DATETIME_FORMATS":{"MONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"SHORTMONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"DAY":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"SHORTDAY":["週日","週一","週二","週三","週四","週五","週六"],"AMPMS":["上午","下午"],"medium":"y年M月d日 ahh:mm:ss","short":"yy年M月d日 ah:mm","fullDate":"y年M月d日EEEE","longDate":"y年M月d日","mediumDate":"y年M月d日","shortDate":"yy年M月d日","mediumTime":"ahh:mm:ss","shortTime":"ah:mm"},"NUMBER_FORMATS":{"DECIMAL_SEP":".","GROUP_SEP":",","PATTERNS":[{"minInt":1,"minFrac":0,"macFrac":0,"posPre":"","posSuf":"","negPre":"-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":3},{"minInt":1,"minFrac":2,"macFrac":0,"posPre":"\u00A4","posSuf":"","negPre":"(\u00A4","negSuf":")","gSize":3,"lgSize":3,"maxFrac":2}],"CURRENCY_SYM":"$"},"pluralCat":function (n) { return PLURAL_CATEGORY.OTHER;},"id":"zh-hk"});
4
+ }]);
@@ -0,0 +1,4 @@
1
+ angular.module("ngLocale", [], ["$provide", function($provide) {
2
+ var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
3
+ $provide.value("$locale", {"DATETIME_FORMATS":{"MONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"SHORTMONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"DAY":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"SHORTDAY":["週日","週一","週二","週三","週四","週五","週六"],"AMPMS":["上午","下午"],"medium":"yyyy/M/d ah:mm:ss","short":"yy/M/d ah:mm","fullDate":"y年M月d日EEEE","longDate":"y年M月d日","mediumDate":"yyyy/M/d","shortDate":"yy/M/d","mediumTime":"ah:mm:ss","shortTime":"ah:mm"},"NUMBER_FORMATS":{"DECIMAL_SEP":".","GROUP_SEP":",","PATTERNS":[{"minInt":1,"minFrac":0,"macFrac":0,"posPre":"","posSuf":"","negPre":"-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":3},{"minInt":1,"minFrac":2,"macFrac":0,"posPre":"\u00A4","posSuf":"","negPre":"\u00A4-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":2}],"CURRENCY_SYM":"NT$"},"pluralCat":function (n) { return PLURAL_CATEGORY.OTHER;},"id":"zh-tw"});
4
+ }]);
@@ -0,0 +1,4 @@
1
+ angular.module("ngLocale", [], ["$provide", function($provide) {
2
+ var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
3
+ $provide.value("$locale", {"DATETIME_FORMATS":{"MONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"SHORTMONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"DAY":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"SHORTDAY":["周日","周一","周二","周三","周四","周五","周六"],"AMPMS":["上午","下午"],"medium":"yyyy-M-d ah:mm:ss","short":"yy-M-d ah:mm","fullDate":"y年M月d日EEEE","longDate":"y年M月d日","mediumDate":"yyyy-M-d","shortDate":"yy-M-d","mediumTime":"ah:mm:ss","shortTime":"ah:mm"},"NUMBER_FORMATS":{"DECIMAL_SEP":".","GROUP_SEP":",","PATTERNS":[{"minInt":1,"minFrac":0,"macFrac":0,"posPre":"","posSuf":"","negPre":"-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":3},{"minInt":1,"minFrac":2,"macFrac":0,"posPre":"\u00A4","posSuf":"","negPre":"\u00A4-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":2}],"CURRENCY_SYM":"¥"},"pluralCat":function (n) { return PLURAL_CATEGORY.OTHER;},"id":"zh"});
4
+ }]);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Configuration for jstd scenario adapter
3
+ */
4
+ var jstdScenarioAdapter = {
5
+ relativeUrlPrefix: '/build/docs/'
6
+ };
@@ -0,0 +1,185 @@
1
+ /**
2
+ * @license AngularJS v1.0.5
3
+ * (c) 2010-2012 Google, Inc. http://angularjs.org
4
+ * License: MIT
5
+ */
6
+ (function(window) {
7
+ 'use strict';
8
+
9
+ /**
10
+ * JSTestDriver adapter for angular scenario tests
11
+ *
12
+ * Example of jsTestDriver.conf for running scenario tests with JSTD:
13
+ <pre>
14
+ server: http://localhost:9877
15
+
16
+ load:
17
+ - lib/angular-scenario.js
18
+ - lib/jstd-scenario-adapter-config.js
19
+ - lib/jstd-scenario-adapter.js
20
+ # your test files go here #
21
+
22
+ proxy:
23
+ - {matcher: "/your-prefix/*", server: "http://localhost:8000/"}
24
+ </pre>
25
+ *
26
+ * For more information on how to configure jstd proxy, see {@link http://code.google.com/p/js-test-driver/wiki/Proxy}
27
+ * Note the order of files - it's important !
28
+ *
29
+ * Example of jstd-scenario-adapter-config.js
30
+ <pre>
31
+ var jstdScenarioAdapter = {
32
+ relativeUrlPrefix: '/your-prefix/'
33
+ };
34
+ </pre>
35
+ *
36
+ * Whenever you use <code>browser().navigateTo('relativeUrl')</code> in your scenario test, the relativeUrlPrefix will be prepended.
37
+ * You have to configure this to work together with JSTD proxy.
38
+ *
39
+ * Let's assume you are using the above configuration (jsTestDriver.conf and jstd-scenario-adapter-config.js):
40
+ * Now, when you call <code>browser().navigateTo('index.html')</code> in your scenario test, the browser will open /your-prefix/index.html.
41
+ * That matches the proxy, so JSTD will proxy this request to http://localhost:8000/index.html.
42
+ */
43
+
44
+ /**
45
+ * Custom type of test case
46
+ *
47
+ * @const
48
+ * @see jstestdriver.TestCaseInfo
49
+ */
50
+ var SCENARIO_TYPE = 'scenario';
51
+
52
+ /**
53
+ * Plugin for JSTestDriver
54
+ * Connection point between scenario's jstd output and jstestdriver.
55
+ *
56
+ * @see jstestdriver.PluginRegistrar
57
+ */
58
+ function JstdPlugin() {
59
+ var nop = function() {};
60
+
61
+ this.reportResult = nop;
62
+ this.reportEnd = nop;
63
+ this.runScenario = nop;
64
+
65
+ this.name = 'Angular Scenario Adapter';
66
+
67
+ /**
68
+ * Called for each JSTD TestCase
69
+ *
70
+ * Handles only SCENARIO_TYPE test cases. There should be only one fake TestCase.
71
+ * Runs all scenario tests (under one fake TestCase) and report all results to JSTD.
72
+ *
73
+ * @param {jstestdriver.TestRunConfiguration} configuration
74
+ * @param {Function} onTestDone
75
+ * @param {Function} onAllTestsComplete
76
+ * @returns {boolean} True if this type of test is handled by this plugin, false otherwise
77
+ */
78
+ this.runTestConfiguration = function(configuration, onTestDone, onAllTestsComplete) {
79
+ if (configuration.getTestCaseInfo().getType() != SCENARIO_TYPE) return false;
80
+
81
+ this.reportResult = onTestDone;
82
+ this.reportEnd = onAllTestsComplete;
83
+ this.runScenario();
84
+
85
+ return true;
86
+ };
87
+
88
+ this.getTestRunsConfigurationFor = function(testCaseInfos, expressions, testRunsConfiguration) {
89
+ testRunsConfiguration.push(
90
+ new jstestdriver.TestRunConfiguration(
91
+ new jstestdriver.TestCaseInfo(
92
+ 'Angular Scenario Tests', function() {}, SCENARIO_TYPE), []));
93
+
94
+ return true;
95
+ };
96
+ }
97
+
98
+ /**
99
+ * Singleton instance of the plugin
100
+ * Accessed using closure by:
101
+ * - jstd output (reports to this plugin)
102
+ * - initScenarioAdapter (register the plugin to jstd)
103
+ */
104
+ var plugin = new JstdPlugin();
105
+
106
+ /**
107
+ * Initialise scenario jstd-adapter
108
+ * (only if jstestdriver is defined)
109
+ *
110
+ * @param {Object} jstestdriver Undefined when run from browser (without jstd)
111
+ * @param {Function} initScenarioAndRun Function that inits scenario and runs all the tests
112
+ * @param {Object=} config Configuration object, supported properties:
113
+ * - relativeUrlPrefix: prefix for all relative links when navigateTo()
114
+ */
115
+ function initScenarioAdapter(jstestdriver, initScenarioAndRun, config) {
116
+ if (jstestdriver) {
117
+ // create and register ScenarioPlugin
118
+ jstestdriver.pluginRegistrar.register(plugin);
119
+ plugin.runScenario = initScenarioAndRun;
120
+
121
+ /**
122
+ * HACK (angular.scenario.Application.navigateTo)
123
+ *
124
+ * We need to navigate to relative urls when running from browser (without JSTD),
125
+ * because we want to allow running scenario tests without creating its own virtual host.
126
+ * For example: http://angular.local/build/docs/docs-scenario.html
127
+ *
128
+ * On the other hand, when running with JSTD, we need to navigate to absolute urls,
129
+ * because of JSTD proxy. (proxy, because of same domain policy)
130
+ *
131
+ * So this hack is applied only if running with JSTD and change all relative urls to absolute.
132
+ */
133
+ var appProto = angular.scenario.Application.prototype,
134
+ navigateTo = appProto.navigateTo,
135
+ relativeUrlPrefix = config && config.relativeUrlPrefix || '/';
136
+
137
+ appProto.navigateTo = function(url, loadFn, errorFn) {
138
+ if (url.charAt(0) != '/' && url.charAt(0) != '#' &&
139
+ url != 'about:blank' && !url.match(/^https?/)) {
140
+ url = relativeUrlPrefix + url;
141
+ }
142
+
143
+ return navigateTo.call(this, url, loadFn, errorFn);
144
+ };
145
+ }
146
+ }
147
+
148
+ /**
149
+ * Builds proper TestResult object from given model spec
150
+ *
151
+ * TODO(vojta) report error details
152
+ *
153
+ * @param {angular.scenario.ObjectModel.Spec} spec
154
+ * @returns {jstestdriver.TestResult}
155
+ */
156
+ function createTestResultFromSpec(spec) {
157
+ var map = {
158
+ success: 'PASSED',
159
+ error: 'ERROR',
160
+ failure: 'FAILED'
161
+ };
162
+
163
+ return new jstestdriver.TestResult(
164
+ spec.fullDefinitionName,
165
+ spec.name,
166
+ jstestdriver.TestResult.RESULT[map[spec.status]],
167
+ spec.error || '',
168
+ spec.line || '',
169
+ spec.duration);
170
+ }
171
+
172
+ /**
173
+ * Generates JSTD output (jstestdriver.TestResult)
174
+ */
175
+ angular.scenario.output('jstd', function(context, runner, model) {
176
+ model.on('SpecEnd', function(spec) {
177
+ plugin.reportResult(createTestResultFromSpec(spec));
178
+ });
179
+
180
+ model.on('RunnerEnd', function() {
181
+ plugin.reportEnd();
182
+ });
183
+ });
184
+ initScenarioAdapter(window.jstestdriver, angular.scenario.setUpAndRun, window.jstdScenarioAdapter);
185
+ })(window);
@@ -0,0 +1,7 @@
1
+ {
2
+ "full": "1.0.5",
3
+ "major": "1",
4
+ "minor": "0",
5
+ "dot": "5",
6
+ "codename": "flatulent-propulsion"
7
+ }
metadata ADDED
@@ -0,0 +1,243 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ng-angularjs-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - mjason
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-03-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: angularjs use rails
42
+ email:
43
+ - tywf91@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/ng/angularjs/rails/version.rb
49
+ - lib/ng/angularjs/rails.rb
50
+ - vendor/assets/javascripts/angular-bootstrap-prettify.js
51
+ - vendor/assets/javascripts/angular-bootstrap.js
52
+ - vendor/assets/javascripts/angular-cookies.js
53
+ - vendor/assets/javascripts/angular-loader.js
54
+ - vendor/assets/javascripts/angular-mocks.js
55
+ - vendor/assets/javascripts/angular-resource.js
56
+ - vendor/assets/javascripts/angular-sanitize.js
57
+ - vendor/assets/javascripts/angular-scenario.js
58
+ - vendor/assets/javascripts/angular.js
59
+ - vendor/assets/javascripts/i18n/angular-locale_am-et.js
60
+ - vendor/assets/javascripts/i18n/angular-locale_am.js
61
+ - vendor/assets/javascripts/i18n/angular-locale_ar-eg.js
62
+ - vendor/assets/javascripts/i18n/angular-locale_ar.js
63
+ - vendor/assets/javascripts/i18n/angular-locale_bg-bg.js
64
+ - vendor/assets/javascripts/i18n/angular-locale_bg.js
65
+ - vendor/assets/javascripts/i18n/angular-locale_bn-bd.js
66
+ - vendor/assets/javascripts/i18n/angular-locale_bn.js
67
+ - vendor/assets/javascripts/i18n/angular-locale_ca-es.js
68
+ - vendor/assets/javascripts/i18n/angular-locale_ca.js
69
+ - vendor/assets/javascripts/i18n/angular-locale_cs-cz.js
70
+ - vendor/assets/javascripts/i18n/angular-locale_cs.js
71
+ - vendor/assets/javascripts/i18n/angular-locale_da-dk.js
72
+ - vendor/assets/javascripts/i18n/angular-locale_da.js
73
+ - vendor/assets/javascripts/i18n/angular-locale_de-at.js
74
+ - vendor/assets/javascripts/i18n/angular-locale_de-be.js
75
+ - vendor/assets/javascripts/i18n/angular-locale_de-ch.js
76
+ - vendor/assets/javascripts/i18n/angular-locale_de-de.js
77
+ - vendor/assets/javascripts/i18n/angular-locale_de-lu.js
78
+ - vendor/assets/javascripts/i18n/angular-locale_de.js
79
+ - vendor/assets/javascripts/i18n/angular-locale_el-gr.js
80
+ - vendor/assets/javascripts/i18n/angular-locale_el-polyton.js
81
+ - vendor/assets/javascripts/i18n/angular-locale_el.js
82
+ - vendor/assets/javascripts/i18n/angular-locale_en-as.js
83
+ - vendor/assets/javascripts/i18n/angular-locale_en-au.js
84
+ - vendor/assets/javascripts/i18n/angular-locale_en-dsrt-us.js
85
+ - vendor/assets/javascripts/i18n/angular-locale_en-dsrt.js
86
+ - vendor/assets/javascripts/i18n/angular-locale_en-gb.js
87
+ - vendor/assets/javascripts/i18n/angular-locale_en-gu.js
88
+ - vendor/assets/javascripts/i18n/angular-locale_en-ie.js
89
+ - vendor/assets/javascripts/i18n/angular-locale_en-in.js
90
+ - vendor/assets/javascripts/i18n/angular-locale_en-iso.js
91
+ - vendor/assets/javascripts/i18n/angular-locale_en-mh.js
92
+ - vendor/assets/javascripts/i18n/angular-locale_en-mp.js
93
+ - vendor/assets/javascripts/i18n/angular-locale_en-sg.js
94
+ - vendor/assets/javascripts/i18n/angular-locale_en-um.js
95
+ - vendor/assets/javascripts/i18n/angular-locale_en-us.js
96
+ - vendor/assets/javascripts/i18n/angular-locale_en-vi.js
97
+ - vendor/assets/javascripts/i18n/angular-locale_en-za.js
98
+ - vendor/assets/javascripts/i18n/angular-locale_en-zz.js
99
+ - vendor/assets/javascripts/i18n/angular-locale_en.js
100
+ - vendor/assets/javascripts/i18n/angular-locale_es-es.js
101
+ - vendor/assets/javascripts/i18n/angular-locale_es.js
102
+ - vendor/assets/javascripts/i18n/angular-locale_et-ee.js
103
+ - vendor/assets/javascripts/i18n/angular-locale_et.js
104
+ - vendor/assets/javascripts/i18n/angular-locale_eu-es.js
105
+ - vendor/assets/javascripts/i18n/angular-locale_eu.js
106
+ - vendor/assets/javascripts/i18n/angular-locale_fa-ir.js
107
+ - vendor/assets/javascripts/i18n/angular-locale_fa.js
108
+ - vendor/assets/javascripts/i18n/angular-locale_fi-fi.js
109
+ - vendor/assets/javascripts/i18n/angular-locale_fi.js
110
+ - vendor/assets/javascripts/i18n/angular-locale_fil-ph.js
111
+ - vendor/assets/javascripts/i18n/angular-locale_fil.js
112
+ - vendor/assets/javascripts/i18n/angular-locale_fr-bl.js
113
+ - vendor/assets/javascripts/i18n/angular-locale_fr-ca.js
114
+ - vendor/assets/javascripts/i18n/angular-locale_fr-fr.js
115
+ - vendor/assets/javascripts/i18n/angular-locale_fr-gp.js
116
+ - vendor/assets/javascripts/i18n/angular-locale_fr-mc.js
117
+ - vendor/assets/javascripts/i18n/angular-locale_fr-mf.js
118
+ - vendor/assets/javascripts/i18n/angular-locale_fr-mq.js
119
+ - vendor/assets/javascripts/i18n/angular-locale_fr-re.js
120
+ - vendor/assets/javascripts/i18n/angular-locale_fr.js
121
+ - vendor/assets/javascripts/i18n/angular-locale_gl-es.js
122
+ - vendor/assets/javascripts/i18n/angular-locale_gl.js
123
+ - vendor/assets/javascripts/i18n/angular-locale_gsw-ch.js
124
+ - vendor/assets/javascripts/i18n/angular-locale_gsw.js
125
+ - vendor/assets/javascripts/i18n/angular-locale_gu-in.js
126
+ - vendor/assets/javascripts/i18n/angular-locale_gu.js
127
+ - vendor/assets/javascripts/i18n/angular-locale_he-il.js
128
+ - vendor/assets/javascripts/i18n/angular-locale_he.js
129
+ - vendor/assets/javascripts/i18n/angular-locale_hi-in.js
130
+ - vendor/assets/javascripts/i18n/angular-locale_hi.js
131
+ - vendor/assets/javascripts/i18n/angular-locale_hr-hr.js
132
+ - vendor/assets/javascripts/i18n/angular-locale_hr.js
133
+ - vendor/assets/javascripts/i18n/angular-locale_hu-hu.js
134
+ - vendor/assets/javascripts/i18n/angular-locale_hu.js
135
+ - vendor/assets/javascripts/i18n/angular-locale_id-id.js
136
+ - vendor/assets/javascripts/i18n/angular-locale_id.js
137
+ - vendor/assets/javascripts/i18n/angular-locale_in.js
138
+ - vendor/assets/javascripts/i18n/angular-locale_is-is.js
139
+ - vendor/assets/javascripts/i18n/angular-locale_is.js
140
+ - vendor/assets/javascripts/i18n/angular-locale_it-it.js
141
+ - vendor/assets/javascripts/i18n/angular-locale_it.js
142
+ - vendor/assets/javascripts/i18n/angular-locale_iw.js
143
+ - vendor/assets/javascripts/i18n/angular-locale_ja-jp.js
144
+ - vendor/assets/javascripts/i18n/angular-locale_ja.js
145
+ - vendor/assets/javascripts/i18n/angular-locale_kn-in.js
146
+ - vendor/assets/javascripts/i18n/angular-locale_kn.js
147
+ - vendor/assets/javascripts/i18n/angular-locale_ko-kr.js
148
+ - vendor/assets/javascripts/i18n/angular-locale_ko.js
149
+ - vendor/assets/javascripts/i18n/angular-locale_ln-cd.js
150
+ - vendor/assets/javascripts/i18n/angular-locale_ln.js
151
+ - vendor/assets/javascripts/i18n/angular-locale_lt-lt.js
152
+ - vendor/assets/javascripts/i18n/angular-locale_lt.js
153
+ - vendor/assets/javascripts/i18n/angular-locale_lv-lv.js
154
+ - vendor/assets/javascripts/i18n/angular-locale_lv.js
155
+ - vendor/assets/javascripts/i18n/angular-locale_ml-in.js
156
+ - vendor/assets/javascripts/i18n/angular-locale_ml.js
157
+ - vendor/assets/javascripts/i18n/angular-locale_mo.js
158
+ - vendor/assets/javascripts/i18n/angular-locale_mr-in.js
159
+ - vendor/assets/javascripts/i18n/angular-locale_mr.js
160
+ - vendor/assets/javascripts/i18n/angular-locale_ms-my.js
161
+ - vendor/assets/javascripts/i18n/angular-locale_ms.js
162
+ - vendor/assets/javascripts/i18n/angular-locale_mt-mt.js
163
+ - vendor/assets/javascripts/i18n/angular-locale_mt.js
164
+ - vendor/assets/javascripts/i18n/angular-locale_nl-nl.js
165
+ - vendor/assets/javascripts/i18n/angular-locale_nl.js
166
+ - vendor/assets/javascripts/i18n/angular-locale_no.js
167
+ - vendor/assets/javascripts/i18n/angular-locale_or-in.js
168
+ - vendor/assets/javascripts/i18n/angular-locale_or.js
169
+ - vendor/assets/javascripts/i18n/angular-locale_pl-pl.js
170
+ - vendor/assets/javascripts/i18n/angular-locale_pl.js
171
+ - vendor/assets/javascripts/i18n/angular-locale_pt-br.js
172
+ - vendor/assets/javascripts/i18n/angular-locale_pt-pt.js
173
+ - vendor/assets/javascripts/i18n/angular-locale_pt.js
174
+ - vendor/assets/javascripts/i18n/angular-locale_ro-ro.js
175
+ - vendor/assets/javascripts/i18n/angular-locale_ro.js
176
+ - vendor/assets/javascripts/i18n/angular-locale_ru-ru.js
177
+ - vendor/assets/javascripts/i18n/angular-locale_ru.js
178
+ - vendor/assets/javascripts/i18n/angular-locale_sk-sk.js
179
+ - vendor/assets/javascripts/i18n/angular-locale_sk.js
180
+ - vendor/assets/javascripts/i18n/angular-locale_sl-si.js
181
+ - vendor/assets/javascripts/i18n/angular-locale_sl.js
182
+ - vendor/assets/javascripts/i18n/angular-locale_sq-al.js
183
+ - vendor/assets/javascripts/i18n/angular-locale_sq.js
184
+ - vendor/assets/javascripts/i18n/angular-locale_sr-cyrl-rs.js
185
+ - vendor/assets/javascripts/i18n/angular-locale_sr-latn-rs.js
186
+ - vendor/assets/javascripts/i18n/angular-locale_sr-rs.js
187
+ - vendor/assets/javascripts/i18n/angular-locale_sr.js
188
+ - vendor/assets/javascripts/i18n/angular-locale_sv-se.js
189
+ - vendor/assets/javascripts/i18n/angular-locale_sv.js
190
+ - vendor/assets/javascripts/i18n/angular-locale_sw-tz.js
191
+ - vendor/assets/javascripts/i18n/angular-locale_sw.js
192
+ - vendor/assets/javascripts/i18n/angular-locale_ta-in.js
193
+ - vendor/assets/javascripts/i18n/angular-locale_ta.js
194
+ - vendor/assets/javascripts/i18n/angular-locale_te-in.js
195
+ - vendor/assets/javascripts/i18n/angular-locale_te.js
196
+ - vendor/assets/javascripts/i18n/angular-locale_th-th.js
197
+ - vendor/assets/javascripts/i18n/angular-locale_th.js
198
+ - vendor/assets/javascripts/i18n/angular-locale_tl-ph.js
199
+ - vendor/assets/javascripts/i18n/angular-locale_tl.js
200
+ - vendor/assets/javascripts/i18n/angular-locale_tr-tr.js
201
+ - vendor/assets/javascripts/i18n/angular-locale_tr.js
202
+ - vendor/assets/javascripts/i18n/angular-locale_uk-ua.js
203
+ - vendor/assets/javascripts/i18n/angular-locale_uk.js
204
+ - vendor/assets/javascripts/i18n/angular-locale_ur-pk.js
205
+ - vendor/assets/javascripts/i18n/angular-locale_ur.js
206
+ - vendor/assets/javascripts/i18n/angular-locale_vi-vn.js
207
+ - vendor/assets/javascripts/i18n/angular-locale_vi.js
208
+ - vendor/assets/javascripts/i18n/angular-locale_zh-cn.js
209
+ - vendor/assets/javascripts/i18n/angular-locale_zh-hans-cn.js
210
+ - vendor/assets/javascripts/i18n/angular-locale_zh-hans.js
211
+ - vendor/assets/javascripts/i18n/angular-locale_zh-hk.js
212
+ - vendor/assets/javascripts/i18n/angular-locale_zh-tw.js
213
+ - vendor/assets/javascripts/i18n/angular-locale_zh.js
214
+ - vendor/assets/javascripts/jstd-scenario-adapter-config.js
215
+ - vendor/assets/javascripts/jstd-scenario-adapter.js
216
+ - vendor/assets/javascripts/version.json
217
+ - LICENSE.txt
218
+ - README.md
219
+ homepage: https://github.com/mjason/ng-angularjs-rails.git
220
+ licenses:
221
+ - MIT
222
+ metadata: {}
223
+ post_install_message:
224
+ rdoc_options: []
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - '>='
230
+ - !ruby/object:Gem::Version
231
+ version: '0'
232
+ required_rubygems_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '>='
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ requirements: []
238
+ rubyforge_project:
239
+ rubygems_version: 2.0.0
240
+ signing_key:
241
+ specification_version: 4
242
+ summary: easy useing angularjs with rails
243
+ test_files: []