simple_bind 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.gitignore +55 -0
  4. data/.rspec +3 -0
  5. data/.travis.yml +11 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +6 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +101 -0
  10. data/Rakefile +6 -0
  11. data/app/assets/javascripts/simple_bind.js +21 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/images/input_select_field_result.gif +0 -0
  15. data/images/input_text_field_result.gif +0 -0
  16. data/images/profile.png +0 -0
  17. data/lib/simple_bind.rb +5 -0
  18. data/lib/simple_bind/version.rb +3 -0
  19. data/simple_bind.gemspec +31 -0
  20. data/spec/dummy/README.rdoc +28 -0
  21. data/spec/dummy/Rakefile +6 -0
  22. data/spec/dummy/app/assets/images/.keep +0 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +3 -0
  24. data/spec/dummy/app/assets/javascripts/welcome.js +2 -0
  25. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  26. data/spec/dummy/app/assets/stylesheets/welcome.css +4 -0
  27. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  28. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  29. data/spec/dummy/app/controllers/welcome_controller.rb +4 -0
  30. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  31. data/spec/dummy/app/helpers/welcome_helper.rb +2 -0
  32. data/spec/dummy/app/mailers/.keep +0 -0
  33. data/spec/dummy/app/models/.keep +0 -0
  34. data/spec/dummy/app/models/concerns/.keep +0 -0
  35. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/spec/dummy/app/views/welcome/index.html.erb +9 -0
  37. data/spec/dummy/bin/bundle +3 -0
  38. data/spec/dummy/bin/rails +4 -0
  39. data/spec/dummy/bin/rake +4 -0
  40. data/spec/dummy/bin/setup +29 -0
  41. data/spec/dummy/config.ru +4 -0
  42. data/spec/dummy/config/application.rb +31 -0
  43. data/spec/dummy/config/boot.rb +5 -0
  44. data/spec/dummy/config/database.yml +25 -0
  45. data/spec/dummy/config/environment.rb +5 -0
  46. data/spec/dummy/config/environments/development.rb +41 -0
  47. data/spec/dummy/config/environments/production.rb +79 -0
  48. data/spec/dummy/config/environments/test.rb +42 -0
  49. data/spec/dummy/config/initializers/assets.rb +11 -0
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  52. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/spec/dummy/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  55. data/spec/dummy/config/initializers/session_store.rb +3 -0
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/spec/dummy/config/locales/en.yml +23 -0
  58. data/spec/dummy/config/routes.rb +58 -0
  59. data/spec/dummy/config/secrets.yml +22 -0
  60. data/spec/dummy/db/development.sqlite3 +0 -0
  61. data/spec/dummy/db/test.sqlite3 +0 -0
  62. data/spec/dummy/lib/assets/.keep +0 -0
  63. data/spec/dummy/log/development.log +397 -0
  64. data/spec/dummy/log/test.log +140 -0
  65. data/spec/dummy/public/404.html +67 -0
  66. data/spec/dummy/public/422.html +67 -0
  67. data/spec/dummy/public/500.html +66 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-S/-SXFx5TSLt8l5U50SeQBW-Aul4iKuQhF-feqIysIn8Y.cache +0 -0
  70. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-v/-vrmwTdew6zh7svNVtoKghFp26lbM6LWXQsxDQ8-6XA.cache +0 -0
  71. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0B/0BOuVIBE4_DOe2BUgdaDN3sx_5yMjhKmUBwLSU_6lBw.cache +3 -0
  72. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0s/0sOIpG-eHx7lBIXQ3nMHi5Lk6ISn45rOFgeD_HMh4jY.cache +1 -0
  73. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1n/1naYpa61SAWjWwIth8TT2zzN7RmMadLUZS93oj6H_8A.cache +1 -0
  74. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2G/2G4BHOBkqaytWid6967EqrpofcitsYZWkk-yz2Piw9Q.cache +0 -0
  75. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2J/2JQ0p-cdaDkDdyAebrfBuLD1zldik_tcrTxHpJ9nnOM.cache +0 -0
  76. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2a/2aFUNyjJuRD7cRil5B7c9BbIIGq9KZ-UAIlCAXsEyHc.cache +0 -0
  77. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/37/37aOmfYXg7RF0-SkwC6JNCH_OceGoVFE4Ot4gBEmaEI.cache +0 -0
  78. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3f/3fmMUFlxx4RwzkfaqkUiEaDYXNuo7Y9uQJP0ysHqa5E.cache +1 -0
  79. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4v/4vaRy1-a1YdmncORBa6bma1C7ETlkdRZbcLcKJyuVOs.cache +3 -0
  80. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
  81. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6U/6Ut3uxczO3kBu5n29OrlziI2YJ2Me8WrwFZ45U8N45U.cache +0 -0
  82. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7f/7fpvh80lZ8sxXMqmEQSNT06v392vTwUYsydK-eNBmLw.cache +1 -0
  83. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/82/82eOiun42Jiyw4oJEtY3ES6DDNp0yWmR9AZoztFwacw.cache +1 -0
  84. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8U/8UQUqAbgQyr6CEnT7--faGqSGVa_lPFsM3jiI2EUl3o.cache +0 -0
  85. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8W/8W17g02M-M9IYCQZqzky0wTLtbL4HwHe7QtTL2bWP_8.cache +0 -0
  86. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8_/8_lw7nK6B5DjKiVGGtTffT_Bds9BuwTjgdPjLDbR8Jc.cache +0 -0
  87. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9C/9Ck_X_axKXWVlPm_XWPdsh085nX64SrLzlCscJUjkIQ.cache +1 -0
  88. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9F/9Fn_YJth48GScm2oabE9NTqobZ77yFr39QNNAG81-xk.cache +0 -0
  89. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9L/9LFh179EvVfBEBBDvynETn9MH7kIF1QgR5rTYsWyww8.cache +1 -0
  90. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AX/AXc9P-ffrA0fRfaGO5Gj1qtE59JA4H1uvVBFicA-uMY.cache +0 -0
  91. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ai/Ai4rS4GDdpVqdhASWApgo1v-uQlAbFip-c5Ou_DaZK4.cache +1 -0
  92. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bh/BhQHUtyqNVpvbdjZFzBGXXHfGIA5CgiRPJbHq5OiGog.cache +3 -0
  93. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/By/By6ZqFeSJogmLeaQf62X5h7Poj0KexEeTfWLgUafpfI.cache +0 -0
  94. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cd/CdWkCFdg4UVMAWfSUjysMa-EdtVpS5pNfjaqS7q4HTk.cache +0 -0
  95. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cq/CqS8f-adc43tZVUYwbeYNlaAp68VAND9gSz75EJ_qIk.cache +0 -0
  96. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cx/CxbWJ6XZjbI8fmMfhUxZWATG-IbwSay8P9kRel6SXj4.cache +0 -0
  97. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
  98. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EE/EEplIoXGshtrgJgFxcH1B6LgetWrS_RuhCYsTuqiO6s.cache +0 -0
  99. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EO/EObqv_vS6rOJBPUg-b7MawFdjw0ToQ8JeNd2gYkNYEc.cache +0 -0
  100. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Fg/FgDt2OMZq73l_4PN0FXUvPAR6e3IhZ0DUPS53vOnlR8.cache +1 -0
  101. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G5/G5_UFv6qcIMe1Dv2aIYnYGSZ0HwMRR4r6PSpQGbsFCg.cache +1 -0
  102. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gq/Gq6mGV6AcVUZsSUD63yY06XEwVrYkw4WVFAgT7Ibb3g.cache +3 -0
  103. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hb/HBtGnfIO0JsCzsj7y-Qb9AMVE0q2w335-Jcfw55meA8.cache +0 -0
  104. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hb/HbP7YSLGT9sWWPslHQRHgzTCE5zHmSMO-Zc0icRe87w.cache +0 -0
  105. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hi/HiI1b1Mqlllo2EKcI-qDuo1x6_5VpmfIZyf_CKULf5c.cache +0 -0
  106. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/I9/I9B9W3dKv4ApmTlXUHlCdrY1y84D6QOfeaGYXy9tl24.cache +0 -0
  107. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/If/IftBrL150Sj8Ze3FMqMZMFHIfgCMg4fh7263gNfx9cY.cache +0 -0
  108. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/J8/J8czGDnc-saMtfcMewm8GACeogROXioId3Pje80HcGs.cache +1 -0
  109. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kz/KzUJG2_OhN-UJ4CHBDeuMaY_aldQi9U3tQxvvaS31hc.cache +1 -0
  110. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LN/LNXgZoQF5oPlnE2LrjeB7AqgDEWjheGe4LKf961m9EI.cache +1 -0
  111. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lg/LgWiUsX7Kb9oVmQqQ0YhkI9XQvfLvxO8SnhK-Uy8hLc.cache +2 -0
  112. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ls/LsamrCAjNMbkX2bgC6QJya6MvJ9ftVfhJQbddui2VQM.cache +0 -0
  113. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mq/MqiZCbsnGcLmEAYpXjfE9CTevQqSlUVDBVBHJ4QvOeM.cache +0 -0
  114. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mu/MuB-gYYyB9lmPyQs0IBhMZ0wxBhlXj-hECJrSpphTgA.cache +2 -0
  115. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N-/N-e90pNsq2w-QkXQguKxQpFJhM7ap_vGvxzyo_YAJFM.cache +1 -0
  116. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N8/N8eQHHIo_B9wi5wMRKA5t7U92Shm1oSwBmY9VH2E9nQ.cache +0 -0
  117. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NO/NOlHin8th1N3x2LtttKoKdOMWitsbGEX0J3oOxfHb2Y.cache +1 -0
  118. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
  119. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oh/OhNb4DhNK4dmv2IxhBHXr310D7xTR_u5NpwpYHZjLLQ.cache +1 -0
  120. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PU/PUb8S9DMjmNVI4PZeuxynKnEIc0Kt11UPrJxUYNlRfw.cache +0 -0
  121. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pr/PrpPbopQrJ61FIuB9Is9NCnhCDroU1XKKFRDS5V1cMs.cache +0 -0
  122. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QH/QHPowJOFs1BkDnCYSJQaCyUE61JZf7Mf7OwJqrLNtl0.cache +0 -0
  123. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ro/RouC_aUIHgWpoYzxzMBQuYz10VVNKVxijrljxgO28pA.cache +1 -0
  124. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T6/T6IV-LNMIMzQsZ0lryF8I9ppApHUiMVNkkObQcSCIH8.cache +0 -0
  125. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Td/Tdn_AqL2zOXRbC2kGSO9Rx9E7khPK84Zn8-Ck-IU31c.cache +0 -0
  126. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ty/TyzDGcCDQYPJTA1EUZ6Q1002i-SegR21xlhGc6vbC6o.cache +0 -0
  127. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UC/UCpUVSqRROMJsxJwL4S9KR3qQdEQiXvvCm7iRw93J0E.cache +1 -0
  128. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UN/UNjsIBU09KFAe5pInvxxxb2RVX3qr9AhmJ-ATO9MHTc.cache +0 -0
  129. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uv/UvTyjrqiSE37c2Sg3OPHAyelmpsrapOqclYpLXuxOBs.cache +0 -0
  130. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VY/VYy6m8W73r7VSTmzKclw2-lMyrPAnrhX4UsrCee89DE.cache +1 -0
  131. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y3/Y3bu3QGuWL6DMzrw8kQCL0lqxM3EJPhdQvQ9EC1gEGQ.cache +0 -0
  132. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y9/Y9kT4FOU9aGgCDru8bv9rctjjb6i28jlT9eiE7KRsOQ.cache +0 -0
  133. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_A/_AqsWNwWsfYwq9Jq6e3zlAHiIP9DxBdRAw2H3n6OuGY.cache +1 -0
  134. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_h/_hImmBCBX9v8v5fvJIVyVQfJUnWtwrqCY2R6jEFrfnw.cache +1 -0
  135. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/a3/a34Yf9Ig58wVUiIERRxi5QMTMsBeWE0SoIWj309IUs0.cache +0 -0
  136. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ac/acW-QwI4ZnRMMQhsGUymq_d3Df_KxLRIqFII5Px2t_c.cache +1 -0
  137. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/am/amAEDDwE23YdnBzSK5LO0TMsTaKKGwJswAiPELwo2Fc.cache +3 -0
  138. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ap/apWYWaWioOlTNQJpRgJsKjPrAwbkQ6lpOT_AchffF30.cache +1 -0
  139. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b4/b46s-I2ejV04yRW2xEZqnNCmVjB5Xeryk_kp8_40wMQ.cache +1 -0
  140. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cv/cvIhJyoVw75tFdGwm0avistVWxW0UNcyV6nt6sIQpA8.cache +0 -0
  141. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dN/dN47yTE4JmDQaZUfZ5VLMkAuZyjQX7iFtaIYEt9gnYI.cache +1 -0
  142. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dY/dYQ7YQZyGPKvH0YChAenQ_zi-a8gowKaJm-HTn1ennY.cache +0 -0
  143. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/db/db7DsEQtiMuBVz5KaSTdEryYGuEHa5KtoAiLjH3O3Yw.cache +1 -0
  144. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dl/dll88WVT7X0YGHMK4unBpAi5z-wvaJCn1ZIH_mqZCXo.cache +1 -0
  145. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eM/eMSdj1x3ETv2rGJA1j-cCZTqEfPY7euwvQkaGpaJrdw.cache +1 -0
  146. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/f6/f6nyVBdjrwJbcqDYAkBPmIYlLl06ri__2J2_TfQwgFg.cache +1 -0
  147. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gW/gWZBBzFdWxjmucFNz2J-aD7xb2tam8l4ugEAklIXeL0.cache +1 -0
  148. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hW/hWafvjQ1crZHOwxbVvz9HVvB5jEaYUqTWLxO2mK-LNc.cache +1 -0
  149. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iB/iBY2rzI71bJ-_VJnnfKG3ty_o07pmMyJJDM2HXY1Gbs.cache +1 -0
  150. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/j2/j28-78PFaVkFewADp9FA0dAfJgqks9BYuPS8CSz93OY.cache +1 -0
  151. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/je/jeoZeFvVHc6XojTSMdRczbusIHqHfGDDUVOOeUA9qQA.cache +1 -0
  152. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/k9/k95SjEeHUvxRdwBRuVuljGvrY3lf-oOloVOep2QBxOg.cache +0 -0
  153. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lr/lrhwB-02Lk5zFYW4NPVYVNk-11KTRJlb_RThUgPB-QE.cache +1 -0
  154. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mL/mLCEMBo0C496hDR4WdpMEc52uTZmoVr8cLtsIjlPcC8.cache +0 -0
  155. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/od/odKBlCg0Q-myz-LUXIz5lbaIkQMPZROrDm6YKLn8YSI.cache +1 -0
  156. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oz/oz-qXFp3rlp9eRcgPg-qVOsRRyd2axyAZBERg_15R50.cache +0 -0
  157. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p6/p6E5dC9DdmWH4R8RX4cB-RRVYGVNcRW4svcQlp510dY.cache +0 -0
  158. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6gw2uaV_zM0MdwVbaBgmvgWE91kBhyIarj_mEV9I8s.cache +1 -0
  159. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qL/qLnyIH54mPDipahshIKtpeTBrBWTnIThbay57UdSED0.cache +1 -0
  160. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uh/uhbhmh8Z_jdjay70pCQ1G39d9wTq1MQNyXT7KPRT-uM.cache +1 -0
  161. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v4/v4RCJvLG4EMvqxePUroHBDvPuq0wIFpNk1xEpPMsPW4.cache +1 -0
  162. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vF/vFYQjmZ2ZxiMYlsLtWMte4efATVdmXV_dPv6C5_HFpM.cache +1 -0
  163. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vq/vqqxATH-a3P-Rhf3YeTRMo1_qlyw_0YdRxryNA-mA54.cache +1 -0
  164. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wx/wxgupf-KyzrZUpbVYIZHZbPMs6Owx--68cA8o_ci8Ac.cache +1 -0
  165. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xJ/xJ3axK1qG4AHcxEyr1IlK3A6vpVl2Up0Us6ZGHINVnw.cache +1 -0
  166. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yB/yBCGjecPqAjpReI7zkkUlJahPF1jpgpjX4UG33s7Y9E.cache +1 -0
  167. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yg/yg-tTIVAZdeiwWtTzIPm582EjwiTkmANuecTXX62PPM.cache +0 -0
  168. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yx/yxE31T4jZs5h0TGKSb0oCF-Mn2N2octSwjT5-mf_3lA.cache +1 -0
  169. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zA/ZaXsju_57OSef1AEANczm2G2gMJ6NrmzYw4H8uJNHyo.cache +0 -0
  170. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zA/zA-AQSRYPehRi1jH5eHKK2D8dsr4zNhIksc8hGCgpVE.cache +1 -0
  171. data/spec/dummy/tmp/capybara/capybara-201708140045131690472519.html +18 -0
  172. data/spec/features/assets_spec.rb +8 -0
  173. data/spec/features/test_input_spec.rb +16 -0
  174. data/spec/features/view_spec.rb +9 -0
  175. data/spec/simple_bind_spec.rb +7 -0
  176. data/spec/spec_helper.rb +13 -0
  177. data/spec/support/select_by_value.rb +5 -0
  178. metadata +486 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ea19f8d642097cf9f01f377e34e09080bb553c59
4
+ data.tar.gz: ff3c67e315e294ca526f8fc57b9f8dea342023cf
5
+ SHA512:
6
+ metadata.gz: b98ed492e0164600184568c34144942213774121175a4ac4668c6b6797d8a970320850a2937ac20acd1c43d546eed83f37acea469df31624bf3f27ae00983654
7
+ data.tar.gz: c652e0fa91afa412d418f99e88f484cac4f4c739312c449978e3cfcf3a3f1a07b6a14a34ca3599ea09e72e52e2324ef21f75fd2ba7124d490c3d98268a607610
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,55 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+ /spec/dummy/.bundle
14
+ /spec/dummy/vendor/bundle/
15
+ /spec/dummy/vendor/ruby/
16
+ /spec/dummy/db/*.sqlite3
17
+ /spec/dummy/db/*.sqlite3-journal
18
+ /spec/dummy/log/*
19
+ /spec/dummy/tmp/*
20
+ /spec/dummy/**.war
21
+ /spec/dummy/*.rbc
22
+ /spec/dummy/*.sassc
23
+ /spec/dummy/.redcar/
24
+ /spec/dummy/.sass-cache
25
+ /spec/dummy/config/config.yml
26
+ /spec/dummy/coverage.data
27
+ /spec/dummy/coverage/
28
+ /spec/dummy/db/*.javadb/
29
+ /spec/dummy/db/*.sqlite3
30
+ /spec/dummy/doc/api/
31
+ /spec/dummy/doc/app/
32
+ /spec/dummy/doc/features.html
33
+ /spec/dummy/doc/specs.html
34
+ /spec/dummy/public/cache
35
+ /spec/dummy/public/stylesheets/compiled
36
+ /spec/dummy/public/system/*
37
+ /spec/dummy/spec/tmp/*
38
+ /spec/dummy/cache
39
+ /spec/dummy/capybara*
40
+ /spec/dummy/capybara-*.html
41
+ /spec/dummy/gems
42
+ /spec/dummy/specifications
43
+ /spec/dummy/rerun.txt
44
+ /spec/dummy/pickle-email-*.html
45
+ /spec/dummy/.zeus.sock
46
+ /spec/dummy/**.orig
47
+ /spec/dummy/.DS_Store
48
+ /spec/dummy/nbproject/
49
+ /spec/dummy/.idea
50
+ /spec/dummy/*.tmproj
51
+ /spec/dummy/**.swp
52
+ /spec/dummy/.env
53
+ /spec/dummy/.powenv
54
+ /spec/dummy/*~
55
+ simple_bind-*.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --colour
2
+ --format documentation
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ sudo: false
2
+ language: ruby
3
+ before_install:
4
+ - gem install bundler -v 1.15.3
5
+ rvm:
6
+ - 2.3.0
7
+ - 2.3.4
8
+ - 2.4.0
9
+
10
+ gemfile:
11
+ - Gemfile
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at dave@k-innovations.net. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in simple_bind.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Kimura Innovations, LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,101 @@
1
+ # Simple Bind
2
+
3
+ ![Simple Bind](images/profile.png)
4
+
5
+ [![Build Status](https://travis-ci.org/simple-bind/simple_bind.svg?branch=master)](https://travis-ci.org/simple-bind/simple_bind)
6
+ [![Gem Version](https://badge.fury.io/rb/simple_bind.svg)](https://badge.fury.io/rb/simple_bind)
7
+
8
+ *NOTE*: This gem has just begun development. Many changes are going to be made often and can be breaking.
9
+
10
+ Simple Bind's goal is to give a realtime feel to your Ruby on Rails application without the added weight of a Javascript framework while being as unobtrusive as possible.
11
+
12
+ # Basic Functionality Goals
13
+
14
+ When content changes in a HTML Input field, update labels and/or display elements on your browser automatically. *Note*: this is not Two Way Data Binding and any changes would only be reflected on the browser in which the changes were made.
15
+
16
+ # Installation
17
+
18
+ Add this line to your application's Gemfile:
19
+
20
+ ```ruby
21
+ gem 'simple_bind'
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install simple_bind
31
+
32
+ # Usage
33
+
34
+ ## In `application.js`
35
+
36
+ //= require simple_bind
37
+
38
+ ## In Views
39
+
40
+ Within the views, there are two parts for the data bind. You have to select an input to be the binder and some element to be the listener.
41
+
42
+ # Supported Inputs
43
+
44
+ ## Text Fields
45
+
46
+ For the binder, we create a data attribute called `data-bind` and set it to some ID. This should be a unique value so it does not conflict with other data binds on the current view.
47
+
48
+ <%= form_with model: @object do |f| %>
49
+ <%= f.text_field :name, data: { bind: @object.object_id } %>
50
+ <% end %>
51
+
52
+ For the listener, we create an attribute called `bind` and have it set to the same ID as the Binder.
53
+
54
+ <%= content_tag :span, @object.name, bind: @object.object_id %>
55
+
56
+ ![Simple Bind Input Text Field Result](https://github.com/simple-bind/simple_bind/raw/master/images/input_text_field_result.gif)
57
+
58
+ ## Select Fields
59
+
60
+ For the binder, we create a data attribute called `data-bind` and set it to some ID. This should be a unique value so it does not conflict with other data binds on the current view.
61
+
62
+ <%= select_tag :select, options_for_select([['First Option', :first_option], ['Second Option', :second_option]]), id: 'select_input', data: { bind: id } %></p>
63
+
64
+ For the listener, we create an attribute called `bind` and have it set to the same ID as the Binder.
65
+
66
+ <%= content_tag :span, 'First Option', bind: id, id: 'span_select_tag' %>
67
+
68
+ ![Simple Bind Input Select Field Result](https://github.com/simple-bind/simple_bind/raw/master/images/input_select_field_result.gif)
69
+
70
+ # Contributing
71
+
72
+ Bug reports and pull requests are welcome on GitHub at https://github.com/simple-bind/simple_bind. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
73
+
74
+ # License
75
+
76
+ The MIT License (MIT)
77
+
78
+ Copyright (c) 2017 Dave Kimura
79
+
80
+ Permission is hereby granted, free of charge, to any person obtaining a copy
81
+ of this software and associated documentation files (the "Software"), to deal
82
+ in the Software without restriction, including without limitation the rights
83
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
84
+ copies of the Software, and to permit persons to whom the Software is
85
+ furnished to do so, subject to the following conditions:
86
+
87
+ The above copyright notice and this permission notice shall be included in
88
+ all copies or substantial portions of the Software.
89
+
90
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
91
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
92
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
93
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
94
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
95
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
96
+ THE SOFTWARE.
97
+
98
+
99
+ # Code of Conduct
100
+
101
+ Everyone interacting in the SimpleBind project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/simple-bind/simple_bind/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,21 @@
1
+ this.simpleBind = function() {
2
+ $('input:text').keyup(function() {
3
+ var id = $(this).data('bind');
4
+ $("[bind='" + id + "']").html($(this).val());
5
+ });
6
+
7
+ $('select').change(function() {
8
+ var id = $(this).data('bind');
9
+ $("[bind='" + id + "']").html($(this).find("option:selected").text());
10
+ });
11
+ };
12
+
13
+ if (typeof defined === "function" ? defined(Turbolinks) : void 0) {
14
+ $(document).on('turbolinks:load', function() {
15
+ simpleBind();
16
+ });
17
+ } else {
18
+ $(document).on('ready', function() {
19
+ simpleBind();
20
+ });
21
+ }
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "simple_bind"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ require "simple_bind/version"
2
+
3
+ module SimpleBind
4
+ class Engine < ::Rails::Engine ; end
5
+ end
@@ -0,0 +1,3 @@
1
+ module SimpleBind
2
+ VERSION = "0.1.1"
3
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "simple_bind/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "simple_bind"
8
+ spec.version = SimpleBind::VERSION
9
+ spec.authors = ["Dave Kimura"]
10
+ spec.email = ["dave@k-innovations.net"]
11
+
12
+ spec.summary = %q{Data Binding for HTML Inputs and components in Rails}
13
+ spec.description = %q{}
14
+ spec.homepage = "https://www.github.com/simple-bind/simple_bind"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+ spec.test_files = Dir["spec/**/*"]
21
+
22
+
23
+ spec.add_development_dependency 'jquery-rails', '>= 3.1.0'
24
+ spec.add_development_dependency "bundler", "~> 1.15"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency 'rails', '~> 4.2.0'
27
+ spec.add_development_dependency 'rspec-rails', '~> 3.0'
28
+ spec.add_development_dependency 'capybara', '~> 2.6'
29
+ spec.add_development_dependency 'poltergeist', '~> 1.16.0'
30
+ spec.add_development_dependency 'sqlite3', '~> 1.3'
31
+ end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
File without changes
@@ -0,0 +1,3 @@
1
+ //= require jquery
2
+ //= require simple_bind
3
+ //= require_tree .