rtml 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +396 -0
  3. data/PostInstall.txt +2 -0
  4. data/README.rdoc +42 -0
  5. data/Rakefile +33 -0
  6. data/app_generators/rtml/USAGE +5 -0
  7. data/app_generators/rtml/rtml_generator.rb +78 -0
  8. data/app_generators/rtml/templates/rails_template.rb +36 -0
  9. data/app_generators/rtml/templates/rtml/MIT-LICENSE +20 -0
  10. data/app_generators/rtml/templates/rtml/README +109 -0
  11. data/app_generators/rtml/templates/rtml/Rakefile +38 -0
  12. data/app_generators/rtml/templates/rtml/app/controllers/beryl_controller.rb +70 -0
  13. data/app_generators/rtml/templates/rtml/app/controllers/rtml/magcard_demo_controller.rb +9 -0
  14. data/app_generators/rtml/templates/rtml/app/controllers/rtml/oe/btmlpa_controller.rb +158 -0
  15. data/app_generators/rtml/templates/rtml/app/controllers/rtml/rtml_app_controller.rb +252 -0
  16. data/app_generators/rtml/templates/rtml/app/controllers/rtml/tml_app_controller.rb +418 -0
  17. data/app_generators/rtml/templates/rtml/app/helpers/beryl_helper.rb +72 -0
  18. data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/auth_result.rb +56 -0
  19. data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/common.rb +19 -0
  20. data/app_generators/rtml/templates/rtml/app/helpers/beryl_tml_helpers/index.rb +82 -0
  21. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_helper.rb +2 -0
  22. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/authorized.rb +10 -0
  23. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/common.rb +20 -0
  24. data/app_generators/rtml/templates/rtml/app/helpers/rtml/magcard_demo_tml_helpers/index.rb +33 -0
  25. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_helper.rb +2 -0
  26. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/auth_result.rb +23 -0
  27. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/common.rb +23 -0
  28. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/dynamic.rb +11 -0
  29. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/icc.rb +384 -0
  30. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/index.rb +191 -0
  31. data/app_generators/rtml/templates/rtml/app/helpers/rtml/oe/btmlpa_tml_helpers/receipt.rb +152 -0
  32. data/app_generators/rtml/templates/rtml/app/helpers/rtml/rtml_app_helper.rb +74 -0
  33. data/app_generators/rtml/templates/rtml/app/helpers/rtml/rtml_app_tml_helpers/common.rb +9 -0
  34. data/app_generators/rtml/templates/rtml/app/helpers/rtml/tml_app_helper.rb +43 -0
  35. data/app_generators/rtml/templates/rtml/app/models/rtml/card.rb +83 -0
  36. data/app_generators/rtml/templates/rtml/app/models/rtml/card_avs.rb +14 -0
  37. data/app_generators/rtml/templates/rtml/app/models/rtml/card_cvv.rb +14 -0
  38. data/app_generators/rtml/templates/rtml/app/models/rtml/card_parser.rb +21 -0
  39. data/app_generators/rtml/templates/rtml/app/models/rtml/card_pin.rb +18 -0
  40. data/app_generators/rtml/templates/rtml/app/models/rtml/emv_card_data.rb +25 -0
  41. data/app_generators/rtml/templates/rtml/app/models/rtml/mag_card_data.rb +21 -0
  42. data/app_generators/rtml/templates/rtml/app/models/rtml/reference_code.rb +26 -0
  43. data/app_generators/rtml/templates/rtml/app/models/rtml/state.rb +12 -0
  44. data/app_generators/rtml/templates/rtml/app/models/rtml/terminal.rb +8 -0
  45. data/app_generators/rtml/templates/rtml/app/models/rtml/transaction.rb +68 -0
  46. data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/another_rcpt.rtml.erb +15 -0
  47. data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/receipt.rtml.erb +108 -0
  48. data/app_generators/rtml/templates/rtml/app/views/beryl/auth_result/receipt_single_column.rtml.erb +106 -0
  49. data/app_generators/rtml/templates/rtml/app/views/beryl/index/about.rtml.erb +8 -0
  50. data/app_generators/rtml/templates/rtml/app/views/beryl/index/admin.rtml.erb +4 -0
  51. data/app_generators/rtml/templates/rtml/app/views/beryl/index/construction.rtml.erb +10 -0
  52. data/app_generators/rtml/templates/rtml/app/views/beryl/index/idle.rtml.erb +13 -0
  53. data/app_generators/rtml/templates/rtml/app/views/beryl/index/main_menu.rtml.erb +12 -0
  54. data/app_generators/rtml/templates/rtml/app/views/beryl/index/menu_credit.rtml.erb +8 -0
  55. data/app_generators/rtml/templates/rtml/app/views/beryl/index/menu_debit.rtml.erb +3 -0
  56. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/beryl_color.rtml.erb +24 -0
  57. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/beryl_mono.rtml.erb +8 -0
  58. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/magcard_demo_color.rtml.erb +24 -0
  59. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/magcard_demo_mono.rtml.erb +3 -0
  60. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/oe/btmlpa_i5100.rtml.erb +3 -0
  61. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/oe/btmlpa_i8550.rtml.erb +17 -0
  62. data/app_generators/rtml/templates/rtml/app/views/layouts/rtml/uml.html.erb +11 -0
  63. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/authorized.html.erb +15 -0
  64. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/authorized/main.rtml.erb +5 -0
  65. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index.html.erb +15 -0
  66. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/_error.rtml.erb +2 -0
  67. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/enter_amount.rtml.erb +5 -0
  68. data/app_generators/rtml/templates/rtml/app/views/rtml/magcard_demo/index/main.rtml.erb +4 -0
  69. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/dynamic/response.rtml.erb +2 -0
  70. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/icc.rtml.erb +760 -0
  71. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_enter_amount.rtml.erb +4 -0
  72. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_about.rtml.erb +8 -0
  73. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_duplicate.rtml.erb +9 -0
  74. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_examples.rtml.erb +9 -0
  75. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_logo.rtml.erb +11 -0
  76. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_other.rtml.erb +20 -0
  77. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_refund.rtml.erb +8 -0
  78. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_reversal.rtml.erb +9 -0
  79. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_sale.rtml.erb +8 -0
  80. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/_menu_sale_cashback.rtml.erb +8 -0
  81. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/about.rtml.erb +1 -0
  82. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/assert.rtml.erb +2 -0
  83. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/card_nmb.rtml.erb +19 -0
  84. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/compl_txn.rtml.erb +1 -0
  85. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/confirm_rev.rtml.erb +3 -0
  86. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/duplicate_na.rtml.erb +1 -0
  87. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/error_scr.rtml.erb +4 -0
  88. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/main_menu.rtml.bak +31 -0
  89. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/main_menu.rtml.erb +40 -0
  90. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/print_pf.rtml.erb +1 -0
  91. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/rd_sale_disp.rtml.erb +1 -0
  92. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/read_refund.rtml.erb +1 -0
  93. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/read_scb.rtml.erb +10 -0
  94. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/reject_trans.rtml.erb +1 -0
  95. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/remove_card.rtml.erb +1 -0
  96. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/rev_bad.rtml.erb +1 -0
  97. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/scb_check_f.rtml.erb +2 -0
  98. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/sign_check.rtml.erb +3 -0
  99. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/subm_err.rtml.erb +2 -0
  100. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/to_man_entry.rtml.erb +2 -0
  101. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/trans_abrt.rtml.erb +1 -0
  102. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/index/void_trans.rtml.erb +1 -0
  103. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/receipt/_receipt.rtml.erb +29 -0
  104. data/app_generators/rtml/templates/rtml/app/views/rtml/oe/btmlpa/receipt/error_paper.rtml.erb +3 -0
  105. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_development.html.erb +167 -0
  106. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_header.html.erb +12 -0
  107. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/_default_production.html.erb +8 -0
  108. data/app_generators/rtml/templates/rtml/app/views/rtml/rtml_app/charts.html.erb +14 -0
  109. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/do_tml_redirect.rtml.erb +7 -0
  110. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/get_terminal_info.rtml.erb +26 -0
  111. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/rescue_action_in_public.rtml.erb +9 -0
  112. data/app_generators/rtml/templates/rtml/app/views/rtml/tml_app/rescue_action_locally.rtml.erb +42 -0
  113. data/app_generators/rtml/templates/rtml/components/rtml/features/common.rb +303 -0
  114. data/app_generators/rtml/templates/rtml/components/rtml/features/force.rb +46 -0
  115. data/app_generators/rtml/templates/rtml/components/rtml/features/return.rb +22 -0
  116. data/app_generators/rtml/templates/rtml/components/rtml/features/sale.rb +49 -0
  117. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_confirmation.rtml.erb +10 -0
  118. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_agreement.rtml.erb +3 -0
  119. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_footer.rtml.erb +2 -0
  120. data/app_generators/rtml/templates/rtml/components/rtml/features/views/_receipt_header.rtml.erb +4 -0
  121. data/app_generators/rtml/templates/rtml/components/rtml/features/views/ask_cashback.rtml.erb +11 -0
  122. data/app_generators/rtml/templates/rtml/components/rtml/features/views/card_imprint.rtml.erb +7 -0
  123. data/app_generators/rtml/templates/rtml/components/rtml/features/views/check_cb.rtml.erb +11 -0
  124. data/app_generators/rtml/templates/rtml/components/rtml/features/views/conf_debit.rtml.erb +5 -0
  125. data/app_generators/rtml/templates/rtml/components/rtml/features/views/confirm_sale.rtml.erb +4 -0
  126. data/app_generators/rtml/templates/rtml/components/rtml/features/views/confrm_force.rtml.erb +4 -0
  127. data/app_generators/rtml/templates/rtml/components/rtml/features/views/cvv_skipped.rtml.erb +10 -0
  128. data/app_generators/rtml/templates/rtml/components/rtml/features/views/disp_avs.rtml.erb +8 -0
  129. data/app_generators/rtml/templates/rtml/components/rtml/features/views/do_avs_zip.rtml.erb +8 -0
  130. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_amount.rtml.erb +12 -0
  131. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_card.rtml.erb +8 -0
  132. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_cashbk.rtml.erb +10 -0
  133. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_cvv2.rtml.erb +8 -0
  134. data/app_generators/rtml/templates/rtml/components/rtml/features/views/enter_expiry.rtml.erb +9 -0
  135. data/app_generators/rtml/templates/rtml/components/rtml/features/views/fraud_check1.rtml.erb +6 -0
  136. data/app_generators/rtml/templates/rtml/components/rtml/features/views/fraud_check2.rtml.erb +8 -0
  137. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_aprvl.rtml.erb +8 -0
  138. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_avs_zip.rtml.erb +8 -0
  139. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frc_bad_aprv.rtml.erb +5 -0
  140. data/app_generators/rtml/templates/rtml/components/rtml/features/views/frd_chk_fail.rtml.erb +5 -0
  141. data/app_generators/rtml/templates/rtml/components/rtml/features/views/invalid_exp.rtml.erb +1 -0
  142. data/app_generators/rtml/templates/rtml/components/rtml/features/views/no_entr_crd.rtml.erb +1 -0
  143. data/app_generators/rtml/templates/rtml/components/rtml/features/views/remove_card.rtml.erb +1 -0
  144. data/app_generators/rtml/templates/rtml/components/rtml/features/views/swipe_card.rtml.erb +7 -0
  145. data/app_generators/rtml/templates/rtml/components/rtml/features/views/trans_abort.rtml.erb +1 -0
  146. data/app_generators/rtml/templates/rtml/components/rtml/features/views/trans_reject.rtml.erb +1 -0
  147. data/app_generators/rtml/templates/rtml/components/rtml/features/views/void_ref.rtml.erb +10 -0
  148. data/app_generators/rtml/templates/rtml/components/rtml/features/void.rb +30 -0
  149. data/app_generators/rtml/templates/rtml/components/rtml/widgets/card_parser_widget.rb +90 -0
  150. data/app_generators/rtml/templates/rtml/components/rtml/widgets/display_widget.rb +66 -0
  151. data/app_generators/rtml/templates/rtml/components/rtml/widgets/element_builder_widget.rb +123 -0
  152. data/app_generators/rtml/templates/rtml/components/rtml/widgets/emv_support_widget.rb +365 -0
  153. data/app_generators/rtml/templates/rtml/components/rtml/widgets/form_submit_widget.rb +65 -0
  154. data/app_generators/rtml/templates/rtml/components/rtml/widgets/get_transaction_variables_widget.rb +33 -0
  155. data/app_generators/rtml/templates/rtml/components/rtml/widgets/get_variable_widget.rb +39 -0
  156. data/app_generators/rtml/templates/rtml/components/rtml/widgets/receipt_widget.rb +66 -0
  157. data/app_generators/rtml/templates/rtml/components/rtml/widgets/screen_builder_widget.rb +49 -0
  158. data/app_generators/rtml/templates/rtml/db/migrate/20090825132217_create_rtml_states.rb +15 -0
  159. data/app_generators/rtml/templates/rtml/db/migrate/20090825132401_create_rtml_terminals.rb +16 -0
  160. data/app_generators/rtml/templates/rtml/db/migrate/20090825132530_create_rtml_transactions.rb +24 -0
  161. data/app_generators/rtml/templates/rtml/db/migrate/20090825134118_create_rtml_cards.rb +23 -0
  162. data/app_generators/rtml/templates/rtml/db/migrate/20090825134622_create_rtml_emv_card_data.rb +20 -0
  163. data/app_generators/rtml/templates/rtml/db/migrate/20090825134629_create_rtml_mag_card_data.rb +17 -0
  164. data/app_generators/rtml/templates/rtml/db/migrate/20090825135838_create_rtml_card_parsers.rb +19 -0
  165. data/app_generators/rtml/templates/rtml/db/migrate/20090826103509_create_reference_codes.rb +14 -0
  166. data/app_generators/rtml/templates/rtml/db/migrate/20090915030044_add_batch_to_rtml_transactions.rb +10 -0
  167. data/app_generators/rtml/templates/rtml/db/migrate/20090915031155_add_additional_data_to_rtml_transactions.rb +10 -0
  168. data/app_generators/rtml/templates/rtml/db/migrate/20090915031156_add_hidden_data_to_rtml_transactions.rb +10 -0
  169. data/app_generators/rtml/templates/rtml/db/migrate/20091016133313_create_rtml_card_avs.rb +16 -0
  170. data/app_generators/rtml/templates/rtml/db/migrate/20091016135800_create_rtml_card_cvvs.rb +16 -0
  171. data/app_generators/rtml/templates/rtml/db/migrate/20091016135810_create_rtml_card_pins.rb +16 -0
  172. data/app_generators/rtml/templates/rtml/db/migrate/20091016135820_reverse_card_transaction_relationship.rb +11 -0
  173. data/app_generators/rtml/templates/rtml/db/migrate/20100127115105_convert_rtml_migrations_to_rails_migrations.rb +31 -0
  174. data/app_generators/rtml/templates/rtml/generators/rtml_controller/USAGE +25 -0
  175. data/app_generators/rtml/templates/rtml/generators/rtml_controller/rtml_controller_generator.rb +49 -0
  176. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/common_tml_helper.rb +20 -0
  177. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/controller.rb +3 -0
  178. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/css_color.css +37 -0
  179. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/css_mono.css +12 -0
  180. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/functional_test.rb +11 -0
  181. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/helper.rb +2 -0
  182. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/layout_color.rtml.erb +24 -0
  183. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/layout_mono.rtml.erb +3 -0
  184. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/tml_helper.rb +16 -0
  185. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/view.html.erb +15 -0
  186. data/app_generators/rtml/templates/rtml/generators/rtml_controller/templates/view.rtml.erb +2 -0
  187. data/app_generators/rtml/templates/rtml/generators/rtml_document/USAGE +8 -0
  188. data/app_generators/rtml/templates/rtml/generators/rtml_document/rtml_document_generator.rb +45 -0
  189. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/controller.rb +7 -0
  190. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/functional_test.rb +10 -0
  191. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/helper.rb +2 -0
  192. data/app_generators/rtml/templates/rtml/generators/rtml_document/templates/view.rtml.erb +11 -0
  193. data/app_generators/rtml/templates/rtml/generators/rtml_widget/USAGE +8 -0
  194. data/app_generators/rtml/templates/rtml/generators/rtml_widget/rtml_widget_generator.rb +66 -0
  195. data/app_generators/rtml/templates/rtml/generators/rtml_widget/templates/basic_widget.rb +57 -0
  196. data/app_generators/rtml/templates/rtml/generators/rtml_widget/templates/basic_widget_no_help.rb +27 -0
  197. data/app_generators/rtml/templates/rtml/init.rb +40 -0
  198. data/app_generators/rtml/templates/rtml/install.rb +18 -0
  199. data/app_generators/rtml/templates/rtml/lib/environment.rb +61 -0
  200. data/app_generators/rtml/templates/rtml/lib/extensions/action_controller/request.rb +9 -0
  201. data/app_generators/rtml/templates/rtml/lib/extensions/action_controller/routing/route_set.rb +34 -0
  202. data/app_generators/rtml/templates/rtml/lib/extensions/action_view/base.rb +74 -0
  203. data/app_generators/rtml/templates/rtml/lib/extensions/action_view/partial_template.rb +24 -0
  204. data/app_generators/rtml/templates/rtml/lib/extensions/active_record.rb +13 -0
  205. data/app_generators/rtml/templates/rtml/lib/extensions/active_support/dependencies.rb +25 -0
  206. data/app_generators/rtml/templates/rtml/lib/extensions/array.rb +15 -0
  207. data/app_generators/rtml/templates/rtml/lib/extensions/attr_boolean.rb +10 -0
  208. data/app_generators/rtml/templates/rtml/lib/extensions/hash.rb +28 -0
  209. data/app_generators/rtml/templates/rtml/lib/extensions/nil_class.rb +20 -0
  210. data/app_generators/rtml/templates/rtml/lib/extensions/rake.rb +19 -0
  211. data/app_generators/rtml/templates/rtml/lib/extensions/regexp.rb +16 -0
  212. data/app_generators/rtml/templates/rtml/lib/extensions/string.rb +37 -0
  213. data/app_generators/rtml/templates/rtml/lib/other_plugins.rb +23 -0
  214. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/MIT-LICENSE +20 -0
  215. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/README +36 -0
  216. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/Rakefile +44 -0
  217. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/init.rb +25 -0
  218. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/action_controller/filters/before_render_filter.rb +30 -0
  219. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/before_render.rb +43 -0
  220. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/before_render_instance.rb +45 -0
  221. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/filter_chain_has_many_types_of_filters.rb +87 -0
  222. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/lib/filter_has_before_render.rb +26 -0
  223. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/tasks/before_render_tasks.rake +25 -0
  224. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/test/before_render_test.rb +29 -0
  225. data/app_generators/rtml/templates/rtml/lib/other_plugins/before_render/test/test_helper.rb +24 -0
  226. data/app_generators/rtml/templates/rtml/lib/rtml.rb +77 -0
  227. data/app_generators/rtml/templates/rtml/lib/rtml/beryl/constants.rb +12 -0
  228. data/app_generators/rtml/templates/rtml/lib/rtml/beryl/version.rb +11 -0
  229. data/app_generators/rtml/templates/rtml/lib/rtml/common/renderable.rb +13 -0
  230. data/app_generators/rtml/templates/rtml/lib/rtml/core/include.rb +30 -0
  231. data/app_generators/rtml/templates/rtml/lib/rtml/core/layout.rb +59 -0
  232. data/app_generators/rtml/templates/rtml/lib/rtml/core/next.rb +188 -0
  233. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen.rb +91 -0
  234. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/iterators.rb +63 -0
  235. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/next_screen_methods.rb +70 -0
  236. data/app_generators/rtml/templates/rtml/lib/rtml/core/screen/variable_methods.rb +73 -0
  237. data/app_generators/rtml/templates/rtml/lib/rtml/core/support/importer.rb +55 -0
  238. data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document.rb +318 -0
  239. data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document/screen_methods.rb +79 -0
  240. data/app_generators/rtml/templates/rtml/lib/rtml/core/tml_document/variable_methods.rb +83 -0
  241. data/app_generators/rtml/templates/rtml/lib/rtml/core/variable.rb +123 -0
  242. data/app_generators/rtml/templates/rtml/lib/rtml/debug/browser_emulator.rb +59 -0
  243. data/app_generators/rtml/templates/rtml/lib/rtml/debug/rtml_controller_test_case.rb +7 -0
  244. data/app_generators/rtml/templates/rtml/lib/rtml/debug/rtml_core_unit_test.rb +11 -0
  245. data/app_generators/rtml/templates/rtml/lib/rtml/debug/unit_test.rb +3 -0
  246. data/app_generators/rtml/templates/rtml/lib/rtml/delegation.rb +8 -0
  247. data/app_generators/rtml/templates/rtml/lib/rtml/doc.rb +12 -0
  248. data/app_generators/rtml/templates/rtml/lib/rtml/element.rb +75 -0
  249. data/app_generators/rtml/templates/rtml/lib/rtml/errors/widget_accessor_failure.rb +9 -0
  250. data/app_generators/rtml/templates/rtml/lib/rtml/events/event_handler.rb +79 -0
  251. data/app_generators/rtml/templates/rtml/lib/rtml/events/event_processor.rb +106 -0
  252. data/app_generators/rtml/templates/rtml/lib/rtml/events/processors.rb +10 -0
  253. data/app_generators/rtml/templates/rtml/lib/rtml/events/processors/defaults_processor.rb +18 -0
  254. data/app_generators/rtml/templates/rtml/lib/rtml/events/processors/key_processor.rb +21 -0
  255. data/app_generators/rtml/templates/rtml/lib/rtml/feature.rb +32 -0
  256. data/app_generators/rtml/templates/rtml/lib/rtml/feature_config.rb +195 -0
  257. data/app_generators/rtml/templates/rtml/lib/rtml/features.rb +18 -0
  258. data/app_generators/rtml/templates/rtml/lib/rtml/features/array_of_feature_instances.rb +17 -0
  259. data/app_generators/rtml/templates/rtml/lib/rtml/features/controller_class_methods.rb +30 -0
  260. data/app_generators/rtml/templates/rtml/lib/rtml/features/controller_instance_methods.rb +35 -0
  261. data/app_generators/rtml/templates/rtml/lib/rtml/helpers.rb +21 -0
  262. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/controller_helpers.rb +59 -0
  263. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/controller_helpers/menu_helpers.rb +193 -0
  264. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/action_view_wrapper.rb +23 -0
  265. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/event_helpers.rb +28 -0
  266. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/layout_helpers.rb +47 -0
  267. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/widget_support.rb +181 -0
  268. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/widget_support/class_methods.rb +28 -0
  269. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/core_helpers/yield_helpers.rb +33 -0
  270. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/proxy_helpers/feature_helpers.rb +17 -0
  271. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/render_helper.rb +71 -0
  272. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/terminal_helpers.rb +21 -0
  273. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers.rb +6 -0
  274. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers/tml_validation_assertions.rb +10 -0
  275. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/test_helpers/variable_assertions.rb +27 -0
  276. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/view_helpers/form_helpers.rb +70 -0
  277. data/app_generators/rtml/templates/rtml/lib/rtml/helpers/view_helpers/rtml_form_builder.rb +174 -0
  278. data/app_generators/rtml/templates/rtml/lib/rtml/oe/btmlpa_constants.rb +48 -0
  279. data/app_generators/rtml/templates/rtml/lib/rtml/proxying/method_missing_methods.rb +14 -0
  280. data/app_generators/rtml/templates/rtml/lib/rtml/proxying/rtml_interface.rb +33 -0
  281. data/app_generators/rtml/templates/rtml/lib/rtml/proxying/sandbox.rb +18 -0
  282. data/app_generators/rtml/templates/rtml/lib/rtml/text_utils.rb +51 -0
  283. data/app_generators/rtml/templates/rtml/lib/rtml/tml_param_parser.rb +95 -0
  284. data/app_generators/rtml/templates/rtml/lib/rtml/validation/dom_rule_parser.rb +61 -0
  285. data/app_generators/rtml/templates/rtml/lib/rtml/validation/dom_tag.rb +52 -0
  286. data/app_generators/rtml/templates/rtml/lib/rtml/validation/predefined_variable_rule_parser.rb +97 -0
  287. data/app_generators/rtml/templates/rtml/lib/rtml/validation/tml_validator.rb +16 -0
  288. data/app_generators/rtml/templates/rtml/lib/rtml/version.rb +11 -0
  289. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/property.rb +11 -0
  290. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/property_accessors.rb +59 -0
  291. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/widget.rb +251 -0
  292. data/app_generators/rtml/templates/rtml/lib/rtml/widgets/widget_class_methods.rb +213 -0
  293. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/dot.gif +0 -0
  294. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_can.gif +0 -0
  295. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_cand.gif +0 -0
  296. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_en.gif +0 -0
  297. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_end.gif +0 -0
  298. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_i.gif +0 -0
  299. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icd.gif +0 -0
  300. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icl.gif +0 -0
  301. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icr.gif +0 -0
  302. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_ics.gif +0 -0
  303. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icsw.gif +0 -0
  304. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_icv.gif +0 -0
  305. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_int.gif +0 -0
  306. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_int2.gif +0 -0
  307. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_men.gif +0 -0
  308. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_mend.gif +0 -0
  309. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_next.gif +0 -0
  310. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_no.gif +0 -0
  311. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_nod.gif +0 -0
  312. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_ok.gif +0 -0
  313. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_okd.gif +0 -0
  314. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic1.gif +0 -0
  315. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic2.gif +0 -0
  316. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic3.gif +0 -0
  317. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_pic4.gif +0 -0
  318. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_top.gif +0 -0
  319. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_txn.gif +0 -0
  320. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_yes.gif +0 -0
  321. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/btmlpa/nbg_yesd.gif +0 -0
  322. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/btmlpa.gif +0 -0
  323. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/can_dn.gif +0 -0
  324. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/can_up.gif +0 -0
  325. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/conf.gif +0 -0
  326. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/iccemv.gif +0 -0
  327. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/images.lib +0 -0
  328. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/magcard.gif +0 -0
  329. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/no_dn.gif +0 -0
  330. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/no_up.gif +0 -0
  331. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/ok_dn.gif +0 -0
  332. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/ok_up.gif +0 -0
  333. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/top.gif +0 -0
  334. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/yes_dn.gif +0 -0
  335. data/app_generators/rtml/templates/rtml/public/images/rtml/oe/examples/yes_up.gif +0 -0
  336. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/beryl_color.css +37 -0
  337. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/beryl_mono.css +17 -0
  338. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/charts.css +0 -0
  339. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/i5100.css +12 -0
  340. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/i8550.css +37 -0
  341. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/btmlpa/receipt.css +4 -0
  342. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/examples/i5100.css +12 -0
  343. data/app_generators/rtml/templates/rtml/public/stylesheets/rtml/oe/examples/i8550.css +37 -0
  344. data/app_generators/rtml/templates/rtml/reporting/110409 +227 -0
  345. data/app_generators/rtml/templates/rtml/reporting/linecount.rb +42 -0
  346. data/app_generators/rtml/templates/rtml/rules/predefined_tml_variables.rb +63 -0
  347. data/app_generators/rtml/templates/rtml/rules/tml_document_structure.rb +84 -0
  348. data/app_generators/rtml/templates/rtml/rules/varns/audio.rb +30 -0
  349. data/app_generators/rtml/templates/rtml/rules/varns/card.rb +17 -0
  350. data/app_generators/rtml/templates/rtml/rules/varns/card/emv.rb +31 -0
  351. data/app_generators/rtml/templates/rtml/rules/varns/card/mag.rb +8 -0
  352. data/app_generators/rtml/templates/rtml/rules/varns/card/parser.rb +7 -0
  353. data/app_generators/rtml/templates/rtml/rules/varns/card/pin.rb +6 -0
  354. data/app_generators/rtml/templates/rtml/rules/varns/cfgm.rb +15 -0
  355. data/app_generators/rtml/templates/rtml/rules/varns/com.rb +9 -0
  356. data/app_generators/rtml/templates/rtml/rules/varns/err.rb +14 -0
  357. data/app_generators/rtml/templates/rtml/rules/varns/gma/event.rb +13 -0
  358. data/app_generators/rtml/templates/rtml/rules/varns/gprs.rb +8 -0
  359. data/app_generators/rtml/templates/rtml/rules/varns/imager.rb +8 -0
  360. data/app_generators/rtml/templates/rtml/rules/varns/ip.rb +15 -0
  361. data/app_generators/rtml/templates/rtml/rules/varns/oebr.rb +42 -0
  362. data/app_generators/rtml/templates/rtml/rules/varns/oebr/3rdparty.rb +7 -0
  363. data/app_generators/rtml/templates/rtml/rules/varns/oebr/backlight.rb +4 -0
  364. data/app_generators/rtml/templates/rtml/rules/varns/oebr/cache.rb +1 -0
  365. data/app_generators/rtml/templates/rtml/rules/varns/oebr/connect.rb +5 -0
  366. data/app_generators/rtml/templates/rtml/rules/varns/oebr/connection.rb +5 -0
  367. data/app_generators/rtml/templates/rtml/rules/varns/oebr/offline.rb +5 -0
  368. data/app_generators/rtml/templates/rtml/rules/varns/oegw.rb +12 -0
  369. data/app_generators/rtml/templates/rtml/rules/varns/payment.rb +21 -0
  370. data/app_generators/rtml/templates/rtml/rules/varns/ppp.rb +11 -0
  371. data/app_generators/rtml/templates/rtml/rules/varns/terminal.rb +29 -0
  372. data/app_generators/rtml/templates/rtml/tasks/rtml_tasks.rake +78 -0
  373. data/app_generators/rtml/templates/rtml/template.rb +64 -0
  374. data/app_generators/rtml/templates/rtml/test/core/element_test.rb +17 -0
  375. data/app_generators/rtml/templates/rtml/test/core/screen_test.rb +91 -0
  376. data/app_generators/rtml/templates/rtml/test/core/tml_document_test.rb +53 -0
  377. data/app_generators/rtml/templates/rtml/test/functional/beryl_controller_test.rb +13 -0
  378. data/app_generators/rtml/templates/rtml/test/functional/btmlpa_controller_test.rb +13 -0
  379. data/app_generators/rtml/templates/rtml/test/functional/magcard_demo_controller_test.rb +20 -0
  380. data/app_generators/rtml/templates/rtml/test/functional/rtml_app_controller_test.rb +9 -0
  381. data/app_generators/rtml/templates/rtml/test/functional/rtml_routing_test.rb +19 -0
  382. data/app_generators/rtml/templates/rtml/test/functional/tml_controller_params_test.rb +20 -0
  383. data/app_generators/rtml/templates/rtml/test/rtml_test_helper.rb +44 -0
  384. data/app_generators/rtml/templates/rtml/test/validation/predefined_variable_rule_parser_test.rb +11 -0
  385. data/app_generators/rtml/templates/rtml/uninstall.rb +1 -0
  386. data/app_generators/rtml/templates/rtml/update.rb +57 -0
  387. data/bin/rtml +36 -0
  388. data/lib/rtml.rb +4 -0
  389. data/script/console +10 -0
  390. data/script/destroy +14 -0
  391. data/script/generate +14 -0
  392. data/tasks/reglob.rake +28 -0
  393. data/test/test_generator_helper.rb +29 -0
  394. data/test/test_helper.rb +3 -0
  395. data/test/test_rtml.rb +11 -0
  396. data/test/test_rtml_generator.rb +43 -0
  397. metadata +516 -0
@@ -0,0 +1,227 @@
1
+ 1 => ./rules/varns/oebr/cache.rb
2
+ 1 => ./uninstall.rb
3
+ 2 => ./app/helpers/rtml/oe/btmlpa_helper.rb
4
+ 2 => ./generators/rtml_controller/templates/helper.rb
5
+ 2 => ./generators/rtml_document/templates/helper.rb
6
+ 3 => ./generators/rtml_controller/templates/controller.rb
7
+ 3 => ./lib/rtml/debug/unit_test.rb
8
+ 4 => ./rules/varns/oebr/backlight.rb
9
+ 5 => ./rules/varns/oebr/connect.rb
10
+ 5 => ./rules/varns/oebr/connection.rb
11
+ 5 => ./rules/varns/oebr/offline.rb
12
+ 6 => ./lib/rtml/helpers/test_helpers.rb
13
+ 6 => ./rules/varns/card/pin.rb
14
+ 7 => ./generators/rtml_document/templates/controller.rb
15
+ 7 => ./lib/rtml/debug/rtml_controller_test_case.rb
16
+ 7 => ./lib/rtml/version.rb
17
+ 7 => ./rules/varns/card/parser.rb
18
+ 7 => ./rules/varns/oebr/3rdparty.rb
19
+ 8 => ./app/models/rtml/terminal.rb
20
+ 8 => ./lib/rtml/delegation.rb
21
+ 8 => ./rules/varns/card/mag.rb
22
+ 8 => ./rules/varns/gprs.rb
23
+ 8 => ./rules/varns/imager.rb
24
+ 9 => ./app/helpers/rtml/rtml_app_tml_helpers/common.rb
25
+ 9 => ./db/migrate/20090915030044_add_batch_to_rtml_transactions.rb
26
+ 9 => ./db/migrate/20090915031155_add_additional_data_to_rtml_transactions.rb
27
+ 9 => ./db/migrate/20090915031156_add_hidden_data_to_rtml_transactions.rb
28
+ 9 => ./lib/extensions/array.rb
29
+ 9 => ./lib/rtml/errors/widget_accessor_failure.rb
30
+ 9 => ./rules/varns/com.rb
31
+ 9 => ./test/functional/rtml_app_controller_test.rb
32
+ 9 => ./test/validation/predefined_variable_rule_parser_test.rb
33
+ 10 => ./generators/rtml_document/templates/functional_test.rb
34
+ 10 => ./lib/extensions/attr_boolean.rb
35
+ 10 => ./lib/rtml/events/processors.rb
36
+ 10 => ./lib/rtml/helpers/test_helpers/tml_validation_assertions.rb
37
+ 11 => ./app/helpers/rtml/oe/btmlpa_tml_helpers/dynamic.rb
38
+ 11 => ./generators/rtml_controller/templates/functional_test.rb
39
+ 11 => ./lib/rtml/widgets/property.rb
40
+ 11 => ./rules/varns/ppp.rb
41
+ 12 => ./app/models/rtml/state.rb
42
+ 12 => ./lib/rtml/beryl/constants.rb
43
+ 12 => ./lib/rtml/doc.rb
44
+ 12 => ./rules/varns/oegw.rb
45
+ 13 => ./db/migrate/20090826103509_create_reference_codes.rb
46
+ 13 => ./lib/extensions/active_record.rb
47
+ 13 => ./lib/rtml/common/renderable.rb
48
+ 13 => ./rules/varns/gma/event.rb
49
+ 13 => ./test/functional/beryl_controller_test.rb
50
+ 13 => ./test/functional/btmlpa_controller_test.rb
51
+ 14 => ./app/models/rtml/card_avs.rb
52
+ 14 => ./app/models/rtml/card_cvv.rb
53
+ 14 => ./db/migrate/20090825132217_create_rtml_states.rb
54
+ 14 => ./lib/rtml/proxying/method_missing_methods.rb
55
+ 14 => ./rules/varns/err.rb
56
+ 15 => ./db/migrate/20090825132401_create_rtml_terminals.rb
57
+ 15 => ./db/migrate/20091016133313_create_rtml_card_avs.rb
58
+ 15 => ./db/migrate/20091016135800_create_rtml_card_cvvs.rb
59
+ 15 => ./lib/rtml/core/screen/iterators.rb
60
+ 15 => ./rules/varns/cfgm.rb
61
+ 15 => ./rules/varns/ip.rb
62
+ 15 => ./test/core/element_test.rb
63
+ 16 => ./app/helpers/beryl_helper.rb
64
+ 16 => ./db/migrate/20090825134629_create_rtml_mag_card_data.rb
65
+ 16 => ./generators/rtml_controller/templates/tml_helper.rb
66
+ 16 => ./lib/extensions/regexp.rb
67
+ 16 => ./lib/rtml/validation/tml_validator.rb
68
+ 17 => ./lib/rtml/features/array_of_feature_instances.rb
69
+ 17 => ./lib/rtml/helpers/proxy_helpers/feature_helpers.rb
70
+ 17 => ./rules/varns/card.rb
71
+ 18 => ./db/migrate/20090825135838_create_rtml_card_parsers.rb
72
+ 18 => ./lib/rtml/events/processors/defaults_processor.rb
73
+ 18 => ./lib/rtml/features.rb
74
+ 18 => ./lib/rtml/proxying/sandbox.rb
75
+ 19 => ./app/helpers/beryl_tml_helpers/common.rb
76
+ 19 => ./db/migrate/20090825134622_create_rtml_emv_card_data.rb
77
+ 19 => ./lib/extensions/rake.rb
78
+ 19 => ./test/functional/rtml_routing_test.rb
79
+ 20 => ./generators/rtml_controller/templates/common_tml_helper.rb
80
+ 20 => ./lib/extensions/nil_class.rb
81
+ 21 => ./app/models/rtml/card_parser.rb
82
+ 21 => ./app/models/rtml/mag_card_data.rb
83
+ 21 => ./init.rb
84
+ 21 => ./lib/rtml/events/processors/key_processor.rb
85
+ 21 => ./lib/rtml/helpers.rb
86
+ 21 => ./lib/rtml/helpers/terminal_helpers.rb
87
+ 21 => ./rules/varns/payment.rb
88
+ 22 => ./db/migrate/20090825134118_create_rtml_cards.rb
89
+ 23 => ./app/helpers/rtml/oe/btmlpa_tml_helpers/auth_result.rb
90
+ 23 => ./app/helpers/rtml/oe/btmlpa_tml_helpers/common.rb
91
+ 23 => ./components/rtml/features/return.rb
92
+ 23 => ./db/migrate/20090825132530_create_rtml_transactions.rb
93
+ 23 => ./lib/other_plugins.rb
94
+ 23 => ./lib/rtml/helpers/core_helpers/action_view_wrapper.rb
95
+ 24 => ./lib/extensions/action_view/partial_template.rb
96
+ 24 => ./lib/other_plugins/before_render/test/test_helper.rb
97
+ 25 => ./app/models/rtml/emv_card_data.rb
98
+ 25 => ./install.rb
99
+ 25 => ./lib/extensions/active_support/dependencies.rb
100
+ 25 => ./lib/other_plugins/before_render/init.rb
101
+ 26 => ./app/models/rtml/reference_code.rb
102
+ 26 => ./lib/other_plugins/before_render/lib/filter_has_before_render.rb
103
+ 26 => ./lib/rtml/migrator.rb
104
+ 27 => ./generators/rtml_widget/templates/basic_widget_no_help.rb
105
+ 27 => ./lib/rtml/helpers/test_helpers/variable_assertions.rb
106
+ 28 => ./lib/extensions/hash.rb
107
+ 28 => ./lib/rtml/helpers/core_helpers/event_helpers.rb
108
+ 28 => ./lib/rtml/helpers/core_helpers/widget_support/class_methods.rb
109
+ 29 => ./lib/other_plugins/before_render/test/before_render_test.rb
110
+ 29 => ./rules/varns/terminal.rb
111
+ 30 => ./components/rtml/features/void.rb
112
+ 30 => ./lib/other_plugins/before_render/lib/action_controller/filters/before_render_filter.rb
113
+ 30 => ./lib/rtml/core/include.rb
114
+ 30 => ./lib/rtml/features/controller_class_methods.rb
115
+ 30 => ./rules/varns/audio.rb
116
+ 31 => ./rules/varns/card/emv.rb
117
+ 32 => ./lib/rtml/feature.rb
118
+ 33 => ./components/rtml/widgets/get_transaction_variables_widget.rb
119
+ 33 => ./lib/rtml/helpers/core_helpers/yield_helpers.rb
120
+ 33 => ./lib/rtml/proxying/rtml_interface.rb
121
+ 34 => ./lib/extensions/action_controller/routing/route_set.rb
122
+ 35 => ./lib/rtml/features/controller_instance_methods.rb
123
+ 37 => ./lib/extensions/string.rb
124
+ 38 => ./test/rtml_test_helper.rb
125
+ 39 => ./components/rtml/widgets/get_variable_widget.rb
126
+ 39 => ./reporting/linecount.rb
127
+ 42 => ./rules/varns/oebr.rb
128
+ 43 => ./app/helpers/rtml/tml_app_helper.rb
129
+ 43 => ./lib/other_plugins/before_render/lib/before_render.rb
130
+ 45 => ./generators/rtml_document/rtml_document_generator.rb
131
+ 45 => ./lib/other_plugins/before_render/lib/before_render_instance.rb
132
+ 47 => ./lib/rtml/helpers/core_helpers/layout_helpers.rb
133
+ 48 => ./components/rtml/features/force.rb
134
+ 48 => ./lib/rtml/oe/btmlpa_constants.rb
135
+ 49 => ./components/rtml/features/sale.rb
136
+ 49 => ./components/rtml/widgets/screen_builder_widget.rb
137
+ 49 => ./generators/rtml_controller/rtml_controller_generator.rb
138
+ 49 => ./lib/rtml/core/tml_document/screen_methods.rb
139
+ 51 => ./lib/rtml/text_utils.rb
140
+ 52 => ./lib/rtml/validation/dom_tag.rb
141
+ 54 => ./app/helpers/beryl_tml_helpers/auth_result.rb
142
+ 55 => ./lib/rtml/core/support/importer.rb
143
+ 55 => ./template.rb
144
+ 57 => ./generators/rtml_widget/templates/basic_widget.rb
145
+ 57 => ./lib/environment.rb
146
+ 58 => ./app/helpers/beryl_tml_helpers/index.rb
147
+ 59 => ./components/rtml/widgets/form_submit_widget.rb
148
+ 59 => ./lib/rtml/core/layout.rb
149
+ 59 => ./lib/rtml/debug/browser_emulator.rb
150
+ 59 => ./lib/rtml/helpers/controller_helpers.rb
151
+ 59 => ./lib/rtml/widgets/property_accessors.rb
152
+ 61 => ./lib/rtml/validation/dom_rule_parser.rb
153
+ 63 => ./rules/predefined_tml_variables.rb
154
+ 63 => ./test/core/tml_document_test.rb
155
+ 66 => ./app/controllers/beryl_controller.rb
156
+ 66 => ./components/rtml/widgets/display_widget.rb
157
+ 66 => ./components/rtml/widgets/receipt_widget.rb
158
+ 66 => ./generators/rtml_widget/rtml_widget_generator.rb
159
+ 68 => ./app/models/rtml/transaction.rb
160
+ 70 => ./lib/rtml/core/screen/next_screen_methods.rb
161
+ 70 => ./lib/rtml/element.rb
162
+ 70 => ./lib/rtml/helpers/view_helpers/form_helpers.rb
163
+ 71 => ./app/models/rtml/card.rb
164
+ 71 => ./lib/rtml/helpers/render_helper.rb
165
+ 73 => ./lib/rtml/core/screen/variable_methods.rb
166
+ 74 => ./app/helpers/rtml/rtml_app_helper.rb
167
+ 74 => ./lib/extensions/action_view/base.rb
168
+ 77 => ./lib/rtml.rb
169
+ 79 => ./lib/rtml/events/event_handler.rb
170
+ 83 => ./lib/rtml/core/tml_document/variable_methods.rb
171
+ 84 => ./rules/tml_document_structure.rb
172
+ 87 => ./lib/other_plugins/before_render/lib/filter_chain_has_many_types_of_filters.rb
173
+ 90 => ./components/rtml/widgets/card_parser_widget.rb
174
+ 91 => ./lib/rtml/core/screen.rb
175
+ 97 => ./lib/rtml/validation/predefined_variable_rule_parser.rb
176
+ 106 => ./lib/rtml/events/event_processor.rb
177
+ 121 => ./components/rtml/widgets/element_builder_widget.rb
178
+ 123 => ./lib/rtml/core/variable.rb
179
+ 152 => ./app/helpers/rtml/oe/btmlpa_tml_helpers/receipt.rb
180
+ 158 => ./app/controllers/rtml/oe/btmlpa_controller.rb
181
+ 166 => ./lib/rtml/helpers/view_helpers/rtml_form_builder.rb
182
+ 170 => ./lib/rtml/helpers/core_helpers/widget_support.rb
183
+ 186 => ./lib/rtml/core/next.rb
184
+ 191 => ./app/helpers/rtml/oe/btmlpa_tml_helpers/index.rb
185
+ 193 => ./lib/rtml/helpers/controller_helpers/menu_helpers.rb
186
+ 195 => ./lib/rtml/feature_config.rb
187
+ 213 => ./lib/rtml/widgets/widget_class_methods.rb
188
+ 236 => ./app/controllers/rtml/rtml_app_controller.rb
189
+ 251 => ./lib/rtml/widgets/widget.rb
190
+ 292 => ./components/rtml/features/common.rb
191
+ 312 => ./lib/rtml/core/tml_document.rb
192
+ 365 => ./components/rtml/widgets/emv_support_widget.rb
193
+ 384 => ./app/helpers/rtml/oe/btmlpa_tml_helpers/icc.rb
194
+ 470 => ./app/controllers/rtml/tml_app_controller.rb
195
+ Total: 9523
196
+
197
+ Margin: +/- 4
198
+
199
+ lns pcnt
200
+ 0 ( 4%) ........
201
+ 9 (21%) ..........................................
202
+ 18 (19%) ......................................
203
+ 27 (14%) ............................
204
+ 36 ( 5%) ..........
205
+ 45 ( 6%) ............
206
+ 54 ( 4%) ........
207
+ 63 ( 6%) ............
208
+ 72 ( 4%) .........
209
+ 81 ( 2%) ....
210
+ 90 ( 1%) ...
211
+ 99 ( 0%) .
212
+ 108 ( 0%) .
213
+ 117 ( 0%) .
214
+ 126 ( 0%) .
215
+ 153 ( 0%) .
216
+ 162 ( 1%) ..
217
+ 171 ( 0%) .
218
+ 189 ( 1%) ...
219
+ 198 ( 0%) .
220
+ 216 ( 0%) .
221
+ 234 ( 0%) .
222
+ 252 ( 0%) .
223
+ 288 ( 0%) .
224
+ 315 ( 0%) .
225
+ 369 ( 0%) .
226
+ 387 ( 0%) .
227
+ 468 ( 0%) .
@@ -0,0 +1,42 @@
1
+ # This is here for my own curiosity and enjoyment, because I like to watch numbers change.
2
+ # Usage: from target directory, 'ruby reporting/linecount.rb [anything else to sort the results]'
3
+
4
+ count = 0
5
+ max = 0
6
+ buffer = []
7
+ Dir.glob("./**/*.rb").each do |fi|
8
+ content = File.read(fi)
9
+ numln = content.to_a.length
10
+ buffer << [fi, numln]
11
+ count += numln
12
+ max = numln if numln > max
13
+ end
14
+
15
+ buffer.sort! { |a,b| (((a[1] <=> b[1]) == 0) ? (a[0] <=> b[0]) : (a[1] <=> b[1])) } if ARGV[0]
16
+ buffer.each { |a| puts " #{a[1]}\t=> #{a[0]}" }
17
+
18
+ # now a pretty graph
19
+ max_lines = 100
20
+ margin = (max / max_lines)
21
+ puts "Total: #{count}"
22
+ puts
23
+ puts "Margin: +/- #{margin}"
24
+ buffer.sort! { |a,b| a[1] <=> b[1] }
25
+ matches = []
26
+ m = 0
27
+ buffer.collect { |a| a[1] }.uniq.sort.each do |num|
28
+ m = num if num > m+margin
29
+ c = buffer.collect { |a| a[1] }.select { |a| a >= m-margin && a <= m+margin }.length
30
+ matches << [m, c]
31
+ m += ((margin*2)+1)
32
+ end
33
+
34
+ digits = max.to_s.length
35
+ puts
36
+ puts 'lns pcnt '
37
+ matches.each do |a|
38
+ num, c = a
39
+ pcnt = ((c.to_f / buffer.collect { |a| a[1]}.length.to_f) * 100).to_i
40
+ puts "#{num.to_s.rjust(digits)} (#{pcnt.to_s.rjust(2)}%) #{"."*c}" if c > 0
41
+ end
42
+
@@ -0,0 +1,63 @@
1
+ =begin
2
+ This file describes the built-in TML variables and is used to assert that, when the user
3
+ assigns them values, the assignments are valid and to check whether undeclared variables
4
+ are being used by the application.
5
+
6
+ "Inheritable" below means that if an option is specified at the namespace level, it will
7
+ be used as the default for all variables and namespaces beneath it.
8
+
9
+ #namespace_path specifies a search path, relative to the current file, to use when loading
10
+ namespaces.
11
+
12
+ #namespace specifies a namespace to create or add to. If a file called "#{namespace}.rb"
13
+ is found in the search path, it will be loaded immediately. After this is attempted, any
14
+ attached blocks will be evaluated.
15
+
16
+ #ns is an alias for #namespace.
17
+
18
+ #type specifies the variable type (:integer, :string, :opaque, :date). Inheritable.
19
+
20
+ #perms specifies the access permissions for this variable. Inheritable.
21
+
22
+ #values specifies the valid values that may be assigned to this variable; if omitted, then any
23
+ legal value can be assigned. Inheritable.
24
+
25
+ #default specifies the default value for this variable. Inheritable.
26
+
27
+ #desc specifies the description for this namespace or variable, if any.
28
+
29
+ Any of these options can be specified more than once, and will only affect variables defined
30
+ after the option is set. For example:
31
+
32
+ type :integer # all variables defined after this point are integers by default
33
+ age
34
+ customer_number
35
+
36
+ type :string # all variables defined after this point are strings by default
37
+ first_name
38
+ last_name
39
+ current_time, :type => :date # this one is a date
40
+ country
41
+ =end
42
+
43
+ search_path 'varns'
44
+
45
+ namespace :audio
46
+ namespace :card
47
+ namespace :cfgm
48
+ namespace :com
49
+ namespace :err
50
+ namespace :gprs
51
+ namespace :ip
52
+ namespace :oebr
53
+ namespace :gma do
54
+ namespace :event
55
+ end
56
+ namespace :oegw
57
+ namespace :payment
58
+ namespace :ppp
59
+ namespace :terminal
60
+ namespace :imager
61
+
62
+ passwd 'The variable that stores intermediate results of working with the Supervisor Password parameter.', :type => :string, :perms => 'rw---'
63
+ screen_after_call 'The variable that stores the URI of the screen that should be processed after the call of a function such as Clear HTTP Cache, Disconnect from OEGW, and so on.', :type => :string, :perms => 'rw---'
@@ -0,0 +1,84 @@
1
+ # This rule set defines which TML tags are valid tags, which tags may be enclosed by each tag,
2
+ # and the order children may appear in. This mirrors the Incendo tag definitions so that functional
3
+ # tests may be used to ensure well formed TML. A functional test can do this by first requesting
4
+ # the TML document from the controller, and then calling assert_valid_tml
5
+
6
+ # defines all available TML tags.
7
+ define_tags %W{
8
+ a baddata base br call_func card col colgroup dd defaults display div dl dt
9
+ econn error form getvar h1 h2 h3 h4 h5 h6 head hr img input layout li link log
10
+ logdcl logrec next ol p pinentry postvar pre print prompt screen setvar
11
+ span strtemplate submit submit_log table tbody td textarea tfoot tform th
12
+ thead tml tmlpost tr ul vardcl variant
13
+ }
14
+
15
+ # defines the topmost element. There can only be 1.
16
+ root :tml
17
+
18
+ # constrains the order in which tags may appear within certain elements
19
+ order do
20
+ head :base, :link, :defaults, :error
21
+ logdcl :vardcl, :layout
22
+ screen :setvar, :strtemplate, :logrec, :next, :error, :call_func, :display, :print, :submit, :tform
23
+ submit :econn, :getvar, :submit_log
24
+ table :col, :colgroup, :thead, :tfoot, :tbody, :tr
25
+ tform :baddata, :card, :prompt, :pinentry
26
+ tml :head, :vardcl, :logdcl, :screen
27
+ end
28
+
29
+ # lists which children are allowed to appear in certain elements, with optional :minimum and :maximum constraints
30
+ # default constraints are :minimum => 0, no maximum
31
+ children do
32
+ a :img
33
+ baddata %W{a br div dl h1 h2 h3 h4 h5 h6 hr img getvar ol p pre span table ul}
34
+ colgroup :col
35
+ dd %W{a br span getvar input textarea div dl h1 h2 h3 h4 h5 h6 hr img ol p pre table ul form}
36
+ display %W{a br div dl form getvar h1 h2 h3 h4 h5 h6 hr img input log ol p pre span table textarea ul}
37
+ div %W{a br div dl form getvar h1 h2 h3 h4 h5 h6 hr img input ol p pre span table textarea ul}
38
+ dl %W{dt dd}, :minimum => 1 #dt+ dd+
39
+ dt %W{a br div dl form getvar h1 h2 h3 h4 h5 h6 hr img input ol p pre span table textarea ul}
40
+ econn :variant #variant*
41
+ error :variant #variant*
42
+ form %W{div dl h1 h2 h3 h4 h5 h6 hr img ol p pre table ul input textarea}
43
+ h1 %W{a br getvar input span textarea}
44
+ h2 %W{a br getvar input span textarea}
45
+ h3 %W{a br getvar input span textarea}
46
+ h4 %W{a br getvar input span textarea}
47
+ h5 %W{a br getvar input span textarea}
48
+ h6 %W{a br getvar input span textarea}
49
+ head %W{base defaults error}, :minimum => 0, :maximum => 1 #base?, defaults?, error?
50
+ head :link # link*
51
+ input :baddata, :minimum => 0, :maximum => 1
52
+ layout all_elements - [:form]
53
+ li %W{a br span getvar input textarea div dl h1 h2 h3 h4 h5 h6 hr img ol p pre table ul form}
54
+ log %W{vardcl layout}
55
+ send :next, %W{variant}
56
+ ol :li
57
+ send :p, %W{a br getvar input span textarea}
58
+ pre %W{a br getvar input span textarea}
59
+ send :print, %W{div dl h1 h2 h3 h4 h5 h6 hr img log ol p pre table ul form}
60
+ prompt %W{div dl h1 h2 h3 h4 h5 h6 hr img ol p pre table ul}
61
+ screen %W{setvar strtemplate logrec}
62
+ screen %W{next error call_func display print submit tform}, :maximum => 1
63
+ span %W{a br span getvar input textarea}
64
+ strtemplate :getvar, :minimum => 0, :maximum => 9
65
+ submit :econn, :maximum => 1
66
+ submit %W{getvar submit_log}
67
+ table %W{col colgroup tbody tr}
68
+ table %W{thead tfoot}, :maximum => 1
69
+ tbody :tr
70
+ td %W{a br span getvar input textarea div dl h1 h2 h3 h4 h5 h6 hr img ol p pre table ul form dd display li print td th}
71
+ textarea :baddata, :maximum => 1
72
+ tfoot :tr
73
+ tform %W{baddata prompt}, :maximum => 1
74
+ tform :card
75
+ tform :pinentry, :maximum => 1
76
+ th %W{a br span getvar input textarea div dl h1 h2 h3 h4 h5 h6 hr img ol p pre table ul form dd display li print td th}
77
+ thead :tr
78
+ tml :head, :maximum => 1
79
+ tml %W{vardcl logdcl screen}
80
+ tmlpost :postvar
81
+ tr [:th, :td]
82
+ ul :li
83
+ variant :li
84
+ end
@@ -0,0 +1,30 @@
1
+ type :string
2
+ perms 'rwxr-'
3
+ values [ 'sound_click_low', 'sound_click_midtone', 'sound_click_high',
4
+ 'sound_short_low', 'sound_short_midtone', 'sound_short_high',
5
+ 'sound_long_low', 'sound_long_midtone', 'sound_long_high' ]
6
+ default 'sound_click_midtone'
7
+ desc 'This section describes predefined TML variables related to various audio options. Most of the variables in this group are used to assign different kinds of sounds to different events, such as a press of a key on the terminal keypad, swiping of a magnetic card, insertion of a smart card, and so on.'
8
+
9
+ any_key 'The sound that the terminal produces when an alphanumeric, the DOWN, the UP, or the navigation key on the terminal keypad is pressed.'
10
+ app_error 'The sound that the terminal produces when MicroBrowser encounters an error.'
11
+ app_start 'The sound that the terminal produces when MicroBrowser is started.'
12
+ app_stop 'The sound that the terminal produces when MicroBrowser is stopped.'
13
+ barcode_failed 'The sound that the terminal produces when the bar code scanner fails to read a bar code.', :default => 'sound_short_low'
14
+ barcode_read 'The sound that the terminal produces when the bar code scanner has successfully read the bar code.', :default => 'sound_short_high'
15
+ cancel_key 'The sound that the terminal produces when the CANCEL (red) key on the terminal keypad is pressed.'
16
+ clear_key 'The sound that the terminal produces when the C (yellow) key on the terminal keypad is pressed.'
17
+ connection_close 'The sound that is produced when the terminal disconnects from the Gateway.'
18
+ connection_open 'The sound that is produced when the terminal connects to the Gateway.'
19
+ emv_insert 'The sound that the terminal produces when a smart card is inserted into the card reader.'
20
+ emv_remove 'The sound that the terminal produces when a smart card is removed from the card reader.'
21
+ enter_key 'The sound that the terminal produces when the OK (green) button is pressed.'
22
+ focus_get 'The sound that the terminal produces when an element on the terminal screen, such as a data field, is brought into focus.'
23
+ mute 'The variable whose value defines whether the mute option is on or off. This variable is used to turn the sounds for all events on or off.', :values => [ "on", "off"], :default => 'off'
24
+ next_ref 'The sound that the terminal produces when the next link on the terminal screen is brought into focus.'
25
+ next_url 'The sound that the terminal produces when the link which is in focus is selected.'
26
+ paper_feed_key 'The sound that the terminal produces when the paper feed key (the one with the arrow pointing up) on the terminal keypad is pressed.'
27
+ swipe 'The sound that the terminal produces when a magnetic card is swiped through the card reader.'
28
+ swipe_failed 'The sound that is produced when the terminal fails to read the card data from the magnetic card.', :default => 'sound_click_low'
29
+ tml_key_press 'The sound that the terminal produces when "a TML key," -- that is, a button shown on the terminal screen -- is selected.'
30
+ volume 'The variable whose value defines the volume (loudness) of sounds for all events. When set to 0, the sounds are off. The maximum possible value is 100.', :default => 100, :values => (0..100).to_a