caxlsx_rails 0.6.2 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +75 -18
  4. data/caxlsx_rails.gemspec +33 -0
  5. data/lib/axlsx_rails/railtie.rb +3 -2
  6. data/lib/axlsx_rails/template_handler.rb +24 -28
  7. data/lib/axlsx_rails/version.rb +1 -1
  8. metadata +10 -744
  9. data/Gemfile +0 -53
  10. data/Gemfile.lock +0 -279
  11. data/Gemfile.lock.4.2 +0 -255
  12. data/Gemfile.lock.5.1 +0 -261
  13. data/Gemfile.lock.5.2 +0 -216
  14. data/Guardfile +0 -16
  15. data/Rakefile +0 -29
  16. data/spec/axlsx_builder_spec.rb +0 -48
  17. data/spec/axlsx_mailer_spec.rb +0 -15
  18. data/spec/axlsx_renderer_spec.rb +0 -16
  19. data/spec/axlsx_request_spec.rb +0 -202
  20. data/spec/ci.rb +0 -15
  21. data/spec/dummy/Rakefile +0 -7
  22. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  23. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  24. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  25. data/spec/dummy/app/controllers/home_controller.rb +0 -54
  26. data/spec/dummy/app/controllers/likes_controller.rb +0 -18
  27. data/spec/dummy/app/controllers/users_controller.rb +0 -27
  28. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  29. data/spec/dummy/app/mailers/notifier.rb +0 -14
  30. data/spec/dummy/app/models/like.rb +0 -3
  31. data/spec/dummy/app/models/user.rb +0 -10
  32. data/spec/dummy/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  33. data/spec/dummy/app/views/home/index.html.erb +0 -4
  34. data/spec/dummy/app/views/home/index.xlsx.axlsx +0 -8
  35. data/spec/dummy/app/views/home/useheader.xlsx.axlsx +0 -8
  36. data/spec/dummy/app/views/home/withpartial.xlsx.axlsx +0 -9
  37. data/spec/dummy/app/views/layouts/application.html.erb +0 -12
  38. data/spec/dummy/app/views/likes/index.html.erb +0 -17
  39. data/spec/dummy/app/views/likes/index.xlsx.axlsx +0 -7
  40. data/spec/dummy/app/views/notifier/instructions.html.erb +0 -14
  41. data/spec/dummy/app/views/users/index.html.erb +0 -23
  42. data/spec/dummy/app/views/users/index.xlsx.axlsx +0 -1
  43. data/spec/dummy/app/views/users/respond_with.xlsx.axlsx +0 -8
  44. data/spec/dummy/app/views/users/send_instructions.xlsx.axlsx +0 -5
  45. data/spec/dummy/config/application.rb +0 -70
  46. data/spec/dummy/config/boot.rb +0 -10
  47. data/spec/dummy/config/database.yml +0 -11
  48. data/spec/dummy/config/environment.rb +0 -5
  49. data/spec/dummy/config/environments/development.rb +0 -39
  50. data/spec/dummy/config/environments/production.rb +0 -69
  51. data/spec/dummy/config/environments/test.rb +0 -40
  52. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  53. data/spec/dummy/config/initializers/inflections.rb +0 -15
  54. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  55. data/spec/dummy/config/initializers/secret_token.rb +0 -8
  56. data/spec/dummy/config/initializers/session_store.rb +0 -8
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  58. data/spec/dummy/config/locales/en.yml +0 -5
  59. data/spec/dummy/config/routes.rb +0 -14
  60. data/spec/dummy/config.ru +0 -4
  61. data/spec/dummy/db/migrate/20120717192452_create_users.rb +0 -12
  62. data/spec/dummy/db/migrate/20121206210955_create_likes.rb +0 -10
  63. data/spec/dummy/db/schema.rb +0 -32
  64. data/spec/dummy/public/404.html +0 -26
  65. data/spec/dummy/public/422.html +0 -26
  66. data/spec/dummy/public/500.html +0 -25
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/dummy/script/rails +0 -6
  69. data/spec/dummy_4/Rakefile +0 -6
  70. data/spec/dummy_4/app/assets/javascripts/application.js +0 -13
  71. data/spec/dummy_4/app/assets/stylesheets/application.css +0 -15
  72. data/spec/dummy_4/app/controllers/application_controller.rb +0 -5
  73. data/spec/dummy_4/app/controllers/home_controller.rb +0 -56
  74. data/spec/dummy_4/app/controllers/likes_controller.rb +0 -18
  75. data/spec/dummy_4/app/controllers/users_controller.rb +0 -27
  76. data/spec/dummy_4/app/helpers/application_helper.rb +0 -2
  77. data/spec/dummy_4/app/mailers/notifier.rb +0 -14
  78. data/spec/dummy_4/app/models/like.rb +0 -3
  79. data/spec/dummy_4/app/models/user.rb +0 -10
  80. data/spec/dummy_4/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  81. data/spec/dummy_4/app/views/home/index.html.erb +0 -4
  82. data/spec/dummy_4/app/views/home/index.xlsx.axlsx +0 -8
  83. data/spec/dummy_4/app/views/home/only_html.html.erb +0 -1
  84. data/spec/dummy_4/app/views/home/useheader.xlsx.axlsx +0 -8
  85. data/spec/dummy_4/app/views/home/withpartial.xlsx.axlsx +0 -9
  86. data/spec/dummy_4/app/views/layouts/application.html.erb +0 -12
  87. data/spec/dummy_4/app/views/layouts/users.html.erb +0 -12
  88. data/spec/dummy_4/app/views/likes/index.html.erb +0 -17
  89. data/spec/dummy_4/app/views/likes/index.xlsx.axlsx +0 -7
  90. data/spec/dummy_4/app/views/notifier/instructions.html.erb +0 -14
  91. data/spec/dummy_4/app/views/notifier/instructions.txt.erb +0 -6
  92. data/spec/dummy_4/app/views/users/export.xlsx.axlsx +0 -8
  93. data/spec/dummy_4/app/views/users/index.html.erb +0 -23
  94. data/spec/dummy_4/app/views/users/index.xlsx.axlsx +0 -1
  95. data/spec/dummy_4/app/views/users/noaction.xlsx.axlsx +0 -1
  96. data/spec/dummy_4/app/views/users/respond_with.xlsx.axlsx +0 -8
  97. data/spec/dummy_4/app/views/users/send_instructions.xlsx.axlsx +0 -5
  98. data/spec/dummy_4/bin/bundle +0 -3
  99. data/spec/dummy_4/bin/rails +0 -4
  100. data/spec/dummy_4/bin/rake +0 -4
  101. data/spec/dummy_4/config/application.rb +0 -23
  102. data/spec/dummy_4/config/boot.rb +0 -5
  103. data/spec/dummy_4/config/database.yml +0 -25
  104. data/spec/dummy_4/config/environment.rb +0 -5
  105. data/spec/dummy_4/config/environments/development.rb +0 -37
  106. data/spec/dummy_4/config/environments/production.rb +0 -83
  107. data/spec/dummy_4/config/environments/test.rb +0 -40
  108. data/spec/dummy_4/config/initializers/backtrace_silencers.rb +0 -7
  109. data/spec/dummy_4/config/initializers/cookies_serializer.rb +0 -3
  110. data/spec/dummy_4/config/initializers/filter_parameter_logging.rb +0 -4
  111. data/spec/dummy_4/config/initializers/inflections.rb +0 -16
  112. data/spec/dummy_4/config/initializers/mime_types.rb +0 -4
  113. data/spec/dummy_4/config/initializers/secret_token.rb +0 -2
  114. data/spec/dummy_4/config/initializers/session_store.rb +0 -3
  115. data/spec/dummy_4/config/initializers/wrap_parameters.rb +0 -14
  116. data/spec/dummy_4/config/locales/en.yml +0 -23
  117. data/spec/dummy_4/config/routes.rb +0 -17
  118. data/spec/dummy_4/config/secrets.yml +0 -22
  119. data/spec/dummy_4/config.ru +0 -4
  120. data/spec/dummy_4/db/migrate/20120717192452_create_users.rb +0 -12
  121. data/spec/dummy_4/db/migrate/20121206210955_create_likes.rb +0 -10
  122. data/spec/dummy_4/db/schema.rb +0 -32
  123. data/spec/dummy_4/db/test.sqlite3 +0 -0
  124. data/spec/dummy_4/log/test.log +0 -4652
  125. data/spec/dummy_4/public/404.html +0 -67
  126. data/spec/dummy_4/public/422.html +0 -67
  127. data/spec/dummy_4/public/500.html +0 -66
  128. data/spec/dummy_4/public/favicon.ico +0 -0
  129. data/spec/dummy_5/db/test.sqlite3 +0 -0
  130. data/spec/dummy_5/log/test.log +0 -3645
  131. data/spec/dummy_5.0/Rakefile +0 -6
  132. data/spec/dummy_5.0/app/assets/javascripts/application.js +0 -13
  133. data/spec/dummy_5.0/app/assets/stylesheets/application.css +0 -15
  134. data/spec/dummy_5.0/app/controllers/application_controller.rb +0 -5
  135. data/spec/dummy_5.0/app/controllers/home_controller.rb +0 -56
  136. data/spec/dummy_5.0/app/controllers/likes_controller.rb +0 -18
  137. data/spec/dummy_5.0/app/controllers/users_controller.rb +0 -37
  138. data/spec/dummy_5.0/app/helpers/application_helper.rb +0 -2
  139. data/spec/dummy_5.0/app/mailers/notifier.rb +0 -14
  140. data/spec/dummy_5.0/app/models/like.rb +0 -3
  141. data/spec/dummy_5.0/app/models/user.rb +0 -10
  142. data/spec/dummy_5.0/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  143. data/spec/dummy_5.0/app/views/home/index.html.erb +0 -4
  144. data/spec/dummy_5.0/app/views/home/index.xlsx.axlsx +0 -8
  145. data/spec/dummy_5.0/app/views/home/only_html.html.erb +0 -1
  146. data/spec/dummy_5.0/app/views/home/useheader.xlsx.axlsx +0 -8
  147. data/spec/dummy_5.0/app/views/home/withpartial.xlsx.axlsx +0 -9
  148. data/spec/dummy_5.0/app/views/layouts/application.html.erb +0 -12
  149. data/spec/dummy_5.0/app/views/layouts/users.html.erb +0 -12
  150. data/spec/dummy_5.0/app/views/likes/index.html.erb +0 -17
  151. data/spec/dummy_5.0/app/views/likes/index.xlsx.axlsx +0 -7
  152. data/spec/dummy_5.0/app/views/notifier/instructions.html.erb +0 -14
  153. data/spec/dummy_5.0/app/views/notifier/instructions.txt.erb +0 -6
  154. data/spec/dummy_5.0/app/views/users/export.xlsx.axlsx +0 -8
  155. data/spec/dummy_5.0/app/views/users/index.html.erb +0 -23
  156. data/spec/dummy_5.0/app/views/users/index.xlsx.axlsx +0 -1
  157. data/spec/dummy_5.0/app/views/users/noaction.xlsx.axlsx +0 -1
  158. data/spec/dummy_5.0/app/views/users/respond_with.xlsx.axlsx +0 -8
  159. data/spec/dummy_5.0/app/views/users/send_instructions.xlsx.axlsx +0 -5
  160. data/spec/dummy_5.0/bin/bundle +0 -3
  161. data/spec/dummy_5.0/bin/rails +0 -4
  162. data/spec/dummy_5.0/bin/rake +0 -4
  163. data/spec/dummy_5.0/config/application.rb +0 -23
  164. data/spec/dummy_5.0/config/boot.rb +0 -5
  165. data/spec/dummy_5.0/config/database.yml +0 -25
  166. data/spec/dummy_5.0/config/environment.rb +0 -5
  167. data/spec/dummy_5.0/config/environments/development.rb +0 -37
  168. data/spec/dummy_5.0/config/environments/production.rb +0 -83
  169. data/spec/dummy_5.0/config/environments/test.rb +0 -40
  170. data/spec/dummy_5.0/config/initializers/backtrace_silencers.rb +0 -7
  171. data/spec/dummy_5.0/config/initializers/cookies_serializer.rb +0 -3
  172. data/spec/dummy_5.0/config/initializers/filter_parameter_logging.rb +0 -4
  173. data/spec/dummy_5.0/config/initializers/inflections.rb +0 -16
  174. data/spec/dummy_5.0/config/initializers/mime_types.rb +0 -4
  175. data/spec/dummy_5.0/config/initializers/secret_token.rb +0 -2
  176. data/spec/dummy_5.0/config/initializers/session_store.rb +0 -3
  177. data/spec/dummy_5.0/config/initializers/wrap_parameters.rb +0 -14
  178. data/spec/dummy_5.0/config/locales/en.yml +0 -23
  179. data/spec/dummy_5.0/config/routes.rb +0 -17
  180. data/spec/dummy_5.0/config/secrets.yml +0 -22
  181. data/spec/dummy_5.0/config.ru +0 -4
  182. data/spec/dummy_5.0/db/migrate/20120717192452_create_users.rb +0 -12
  183. data/spec/dummy_5.0/db/migrate/20121206210955_create_likes.rb +0 -10
  184. data/spec/dummy_5.0/db/schema.rb +0 -31
  185. data/spec/dummy_5.0/public/404.html +0 -67
  186. data/spec/dummy_5.0/public/422.html +0 -67
  187. data/spec/dummy_5.0/public/500.html +0 -66
  188. data/spec/dummy_5.0/public/favicon.ico +0 -0
  189. data/spec/dummy_5.1/Rakefile +0 -6
  190. data/spec/dummy_5.1/app/assets/javascripts/application.js +0 -13
  191. data/spec/dummy_5.1/app/assets/stylesheets/application.css +0 -15
  192. data/spec/dummy_5.1/app/controllers/application_controller.rb +0 -5
  193. data/spec/dummy_5.1/app/controllers/home_controller.rb +0 -56
  194. data/spec/dummy_5.1/app/controllers/likes_controller.rb +0 -18
  195. data/spec/dummy_5.1/app/controllers/users_controller.rb +0 -37
  196. data/spec/dummy_5.1/app/helpers/application_helper.rb +0 -2
  197. data/spec/dummy_5.1/app/mailers/notifier.rb +0 -14
  198. data/spec/dummy_5.1/app/models/like.rb +0 -3
  199. data/spec/dummy_5.1/app/models/user.rb +0 -10
  200. data/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  201. data/spec/dummy_5.1/app/views/home/index.html.erb +0 -4
  202. data/spec/dummy_5.1/app/views/home/index.xlsx.axlsx +0 -8
  203. data/spec/dummy_5.1/app/views/home/only_html.html.erb +0 -1
  204. data/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx +0 -8
  205. data/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx +0 -9
  206. data/spec/dummy_5.1/app/views/layouts/application.html.erb +0 -12
  207. data/spec/dummy_5.1/app/views/layouts/users.html.erb +0 -12
  208. data/spec/dummy_5.1/app/views/likes/index.html.erb +0 -17
  209. data/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx +0 -7
  210. data/spec/dummy_5.1/app/views/notifier/instructions.html.erb +0 -14
  211. data/spec/dummy_5.1/app/views/notifier/instructions.txt.erb +0 -6
  212. data/spec/dummy_5.1/app/views/users/export.xlsx.axlsx +0 -8
  213. data/spec/dummy_5.1/app/views/users/index.html.erb +0 -23
  214. data/spec/dummy_5.1/app/views/users/index.xlsx.axlsx +0 -1
  215. data/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx +0 -1
  216. data/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx +0 -8
  217. data/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx +0 -5
  218. data/spec/dummy_5.1/bin/bundle +0 -3
  219. data/spec/dummy_5.1/bin/rails +0 -4
  220. data/spec/dummy_5.1/bin/rake +0 -4
  221. data/spec/dummy_5.1/config/application.rb +0 -23
  222. data/spec/dummy_5.1/config/boot.rb +0 -5
  223. data/spec/dummy_5.1/config/database.yml +0 -25
  224. data/spec/dummy_5.1/config/environment.rb +0 -5
  225. data/spec/dummy_5.1/config/environments/development.rb +0 -37
  226. data/spec/dummy_5.1/config/environments/production.rb +0 -83
  227. data/spec/dummy_5.1/config/environments/test.rb +0 -40
  228. data/spec/dummy_5.1/config/initializers/backtrace_silencers.rb +0 -7
  229. data/spec/dummy_5.1/config/initializers/cookies_serializer.rb +0 -3
  230. data/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb +0 -4
  231. data/spec/dummy_5.1/config/initializers/inflections.rb +0 -16
  232. data/spec/dummy_5.1/config/initializers/mime_types.rb +0 -4
  233. data/spec/dummy_5.1/config/initializers/secret_token.rb +0 -2
  234. data/spec/dummy_5.1/config/initializers/session_store.rb +0 -3
  235. data/spec/dummy_5.1/config/initializers/wrap_parameters.rb +0 -14
  236. data/spec/dummy_5.1/config/locales/en.yml +0 -23
  237. data/spec/dummy_5.1/config/routes.rb +0 -17
  238. data/spec/dummy_5.1/config/secrets.yml +0 -22
  239. data/spec/dummy_5.1/config.ru +0 -4
  240. data/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb +0 -12
  241. data/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb +0 -10
  242. data/spec/dummy_5.1/db/schema.rb +0 -31
  243. data/spec/dummy_5.1/db/test.sqlite3 +0 -0
  244. data/spec/dummy_5.1/log/test.log +0 -3645
  245. data/spec/dummy_5.1/public/404.html +0 -67
  246. data/spec/dummy_5.1/public/422.html +0 -67
  247. data/spec/dummy_5.1/public/500.html +0 -66
  248. data/spec/dummy_5.1/public/favicon.ico +0 -0
  249. data/spec/dummy_5.2/Rakefile +0 -6
  250. data/spec/dummy_5.2/app/assets/javascripts/application.js +0 -13
  251. data/spec/dummy_5.2/app/assets/stylesheets/application.css +0 -15
  252. data/spec/dummy_5.2/app/controllers/application_controller.rb +0 -5
  253. data/spec/dummy_5.2/app/controllers/home_controller.rb +0 -56
  254. data/spec/dummy_5.2/app/controllers/likes_controller.rb +0 -18
  255. data/spec/dummy_5.2/app/controllers/users_controller.rb +0 -37
  256. data/spec/dummy_5.2/app/helpers/application_helper.rb +0 -2
  257. data/spec/dummy_5.2/app/mailers/notifier.rb +0 -14
  258. data/spec/dummy_5.2/app/models/like.rb +0 -3
  259. data/spec/dummy_5.2/app/models/user.rb +0 -10
  260. data/spec/dummy_5.2/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  261. data/spec/dummy_5.2/app/views/home/index.html.erb +0 -4
  262. data/spec/dummy_5.2/app/views/home/index.xlsx.axlsx +0 -8
  263. data/spec/dummy_5.2/app/views/home/only_html.html.erb +0 -1
  264. data/spec/dummy_5.2/app/views/home/useheader.xlsx.axlsx +0 -8
  265. data/spec/dummy_5.2/app/views/home/withpartial.xlsx.axlsx +0 -9
  266. data/spec/dummy_5.2/app/views/layouts/application.html.erb +0 -12
  267. data/spec/dummy_5.2/app/views/layouts/users.html.erb +0 -12
  268. data/spec/dummy_5.2/app/views/likes/index.html.erb +0 -17
  269. data/spec/dummy_5.2/app/views/likes/index.xlsx.axlsx +0 -7
  270. data/spec/dummy_5.2/app/views/notifier/instructions.html.erb +0 -14
  271. data/spec/dummy_5.2/app/views/notifier/instructions.txt.erb +0 -6
  272. data/spec/dummy_5.2/app/views/users/export.xlsx.axlsx +0 -8
  273. data/spec/dummy_5.2/app/views/users/index.html.erb +0 -23
  274. data/spec/dummy_5.2/app/views/users/index.xlsx.axlsx +0 -1
  275. data/spec/dummy_5.2/app/views/users/noaction.xlsx.axlsx +0 -1
  276. data/spec/dummy_5.2/app/views/users/respond_with.xlsx.axlsx +0 -8
  277. data/spec/dummy_5.2/app/views/users/send_instructions.xlsx.axlsx +0 -5
  278. data/spec/dummy_5.2/bin/bundle +0 -3
  279. data/spec/dummy_5.2/bin/rails +0 -4
  280. data/spec/dummy_5.2/bin/rake +0 -4
  281. data/spec/dummy_5.2/config/application.rb +0 -23
  282. data/spec/dummy_5.2/config/boot.rb +0 -5
  283. data/spec/dummy_5.2/config/database.yml +0 -25
  284. data/spec/dummy_5.2/config/environment.rb +0 -5
  285. data/spec/dummy_5.2/config/environments/development.rb +0 -37
  286. data/spec/dummy_5.2/config/environments/production.rb +0 -83
  287. data/spec/dummy_5.2/config/environments/test.rb +0 -40
  288. data/spec/dummy_5.2/config/initializers/backtrace_silencers.rb +0 -7
  289. data/spec/dummy_5.2/config/initializers/cookies_serializer.rb +0 -3
  290. data/spec/dummy_5.2/config/initializers/filter_parameter_logging.rb +0 -4
  291. data/spec/dummy_5.2/config/initializers/inflections.rb +0 -16
  292. data/spec/dummy_5.2/config/initializers/mime_types.rb +0 -4
  293. data/spec/dummy_5.2/config/initializers/secret_token.rb +0 -2
  294. data/spec/dummy_5.2/config/initializers/session_store.rb +0 -3
  295. data/spec/dummy_5.2/config/initializers/wrap_parameters.rb +0 -14
  296. data/spec/dummy_5.2/config/locales/en.yml +0 -23
  297. data/spec/dummy_5.2/config/routes.rb +0 -17
  298. data/spec/dummy_5.2/config/secrets.yml +0 -22
  299. data/spec/dummy_5.2/config.ru +0 -4
  300. data/spec/dummy_5.2/db/migrate/20120717192452_create_users.rb +0 -12
  301. data/spec/dummy_5.2/db/migrate/20121206210955_create_likes.rb +0 -10
  302. data/spec/dummy_5.2/db/schema.rb +0 -31
  303. data/spec/dummy_5.2/db/test.sqlite3 +0 -0
  304. data/spec/dummy_5.2/log/test.log +0 -3645
  305. data/spec/dummy_5.2/public/404.html +0 -67
  306. data/spec/dummy_5.2/public/422.html +0 -67
  307. data/spec/dummy_5.2/public/500.html +0 -66
  308. data/spec/dummy_5.2/public/favicon.ico +0 -0
  309. data/spec/dummy_6.0/Rakefile +0 -6
  310. data/spec/dummy_6.0/app/assets/javascripts/application.js +0 -13
  311. data/spec/dummy_6.0/app/assets/stylesheets/application.css +0 -15
  312. data/spec/dummy_6.0/app/controllers/application_controller.rb +0 -5
  313. data/spec/dummy_6.0/app/controllers/home_controller.rb +0 -56
  314. data/spec/dummy_6.0/app/controllers/likes_controller.rb +0 -18
  315. data/spec/dummy_6.0/app/controllers/users_controller.rb +0 -37
  316. data/spec/dummy_6.0/app/helpers/application_helper.rb +0 -2
  317. data/spec/dummy_6.0/app/mailers/notifier.rb +0 -14
  318. data/spec/dummy_6.0/app/models/like.rb +0 -3
  319. data/spec/dummy_6.0/app/models/user.rb +0 -10
  320. data/spec/dummy_6.0/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  321. data/spec/dummy_6.0/app/views/home/index.html.erb +0 -4
  322. data/spec/dummy_6.0/app/views/home/index.xlsx.axlsx +0 -8
  323. data/spec/dummy_6.0/app/views/home/only_html.html.erb +0 -1
  324. data/spec/dummy_6.0/app/views/home/useheader.xlsx.axlsx +0 -8
  325. data/spec/dummy_6.0/app/views/home/withpartial.xlsx.axlsx +0 -9
  326. data/spec/dummy_6.0/app/views/layouts/application.html.erb +0 -12
  327. data/spec/dummy_6.0/app/views/layouts/users.html.erb +0 -12
  328. data/spec/dummy_6.0/app/views/likes/index.html.erb +0 -17
  329. data/spec/dummy_6.0/app/views/likes/index.xlsx.axlsx +0 -7
  330. data/spec/dummy_6.0/app/views/notifier/instructions.html.erb +0 -14
  331. data/spec/dummy_6.0/app/views/notifier/instructions.txt.erb +0 -6
  332. data/spec/dummy_6.0/app/views/users/export.xlsx.axlsx +0 -8
  333. data/spec/dummy_6.0/app/views/users/index.html.erb +0 -23
  334. data/spec/dummy_6.0/app/views/users/index.xlsx.axlsx +0 -1
  335. data/spec/dummy_6.0/app/views/users/noaction.xlsx.axlsx +0 -1
  336. data/spec/dummy_6.0/app/views/users/respond_with.xlsx.axlsx +0 -8
  337. data/spec/dummy_6.0/app/views/users/send_instructions.xlsx.axlsx +0 -5
  338. data/spec/dummy_6.0/bin/bundle +0 -3
  339. data/spec/dummy_6.0/bin/rails +0 -4
  340. data/spec/dummy_6.0/bin/rake +0 -4
  341. data/spec/dummy_6.0/config/application.rb +0 -23
  342. data/spec/dummy_6.0/config/boot.rb +0 -5
  343. data/spec/dummy_6.0/config/database.yml +0 -25
  344. data/spec/dummy_6.0/config/environment.rb +0 -5
  345. data/spec/dummy_6.0/config/environments/development.rb +0 -37
  346. data/spec/dummy_6.0/config/environments/production.rb +0 -83
  347. data/spec/dummy_6.0/config/environments/test.rb +0 -40
  348. data/spec/dummy_6.0/config/initializers/backtrace_silencers.rb +0 -7
  349. data/spec/dummy_6.0/config/initializers/cookies_serializer.rb +0 -3
  350. data/spec/dummy_6.0/config/initializers/filter_parameter_logging.rb +0 -4
  351. data/spec/dummy_6.0/config/initializers/inflections.rb +0 -16
  352. data/spec/dummy_6.0/config/initializers/mime_types.rb +0 -4
  353. data/spec/dummy_6.0/config/initializers/secret_token.rb +0 -2
  354. data/spec/dummy_6.0/config/initializers/session_store.rb +0 -3
  355. data/spec/dummy_6.0/config/initializers/wrap_parameters.rb +0 -14
  356. data/spec/dummy_6.0/config/locales/en.yml +0 -23
  357. data/spec/dummy_6.0/config/routes.rb +0 -17
  358. data/spec/dummy_6.0/config/secrets.yml +0 -22
  359. data/spec/dummy_6.0/config.ru +0 -4
  360. data/spec/dummy_6.0/db/migrate/20120717192452_create_users.rb +0 -12
  361. data/spec/dummy_6.0/db/migrate/20121206210955_create_likes.rb +0 -10
  362. data/spec/dummy_6.0/db/schema.rb +0 -31
  363. data/spec/dummy_6.0/public/404.html +0 -67
  364. data/spec/dummy_6.0/public/422.html +0 -67
  365. data/spec/dummy_6.0/public/500.html +0 -66
  366. data/spec/dummy_6.0/public/favicon.ico +0 -0
  367. data/spec/reset_gems.sh +0 -2
  368. data/spec/spec_helper.rb +0 -53
  369. data/spec/test_3.1.sh +0 -16
  370. data/spec/test_3.2.sh +0 -16
  371. data/spec/test_4.0.sh +0 -16
  372. data/spec/test_4.1.sh +0 -16
  373. data/spec/test_4.2.sh +0 -16
  374. data/spec/test_5.0.sh +0 -16
  375. data/spec/test_5.1.sh +0 -16
  376. data/spec/test_5.2.sh +0 -16
  377. data/spec/test_6.0.sh +0 -16
  378. data/spec/test_all_rails.sh +0 -8
  379. data/spec/test_revert.sh +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f263d86f6909925b4fbc02450180f0faa6f4f6dac0500224a2861dcea886e03
4
- data.tar.gz: 170415d18b4ecaea6bc524dd5d3b4dde2a310dd8b1bab80ffe39d482af2bd7c5
3
+ metadata.gz: ed6804c086bd3783c84283db93df9a972a5dd22f14393a70eca1b66ad22212f4
4
+ data.tar.gz: 3c8b9f058f4df8dc3d79ebce09e64988ba0300e6cb1f1b86197ea6c65345b0fe
5
5
  SHA512:
6
- metadata.gz: 29b9b7180d97e4fecdb9bfe4f8ae3e6d1d6bd47c420e79d46c03d2fc51c75705d531bb5d202c14f6dc0356a918e786196533e96b6696e200dd81d8011f1de90d
7
- data.tar.gz: 0633e8f87e84799219bcd6f874455ba41c59dfd3471f0ce122e301b0891be22ddd2c2d691560dc8931d3f708b5502991c17d9bafae65425f89c3f779ccac39ce
6
+ metadata.gz: 329d8ef7d3fe9ef8c3b70ac1a342a9ecce75ea1ca06f803449dff898fc697472e8d6c48455790c029011ac451b0d86b00e88f99b28be242221d2a1bf716acf7c
7
+ data.tar.gz: 8ab327efb87a5e095aee190b7d77ae46841874a899d0b6cc9da6d9aa8a870b52123c64fda6cf512f950eb5f4ca36fcf4ccddf9768efc1cda4bb945fcd99efdea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change log
2
2
 
3
+ **June 18, 2024**: 0.6.4 release
4
+
5
+ - Convert to Github actions
6
+ - Improve tests
7
+ - Fix broken templates with comments as their last line
8
+
9
+ **March 8, 2022**: 0.6.3 release
10
+
11
+ - Exclude rspec directory (#149)[https://github.com/caxlsx/caxlsx_rails/pull/149]
12
+
3
13
  **December 18, 2019**: 0.6.2 release
4
14
 
5
15
  - Release under caxlsx_rails
data/README.md CHANGED
@@ -1,25 +1,31 @@
1
1
  Notice: axlsx_rails renamed to caxlsx_rails
2
2
  ===================================================
3
- This gem has been renamed to match other gems in the Axlsx community organization: http://github.com/caxlsx
3
+ This gem has been renamed to match other gems in the Axlsx community organization: https://github.com/caxlsx
4
4
 
5
5
  Axlsx-Rails — Spreadsheet templates for Rails
6
6
  ===================================================
7
7
 
8
- [![Build Status](https://secure.travis-ci.org/caxlsx/caxlsx_rails.svg?branch=master)](http://travis-ci.org/caxlsx/caxlsx_rails)
9
8
  [![Gem
10
- Version](https://badge.fury.io/rb/caxlsx_rails.svg)](http://badge.fury.io/rb/caxlsx_rails)
9
+ Version](https://badge.fury.io/rb/caxlsx_rails.svg)](https://badge.fury.io/rb/caxlsx_rails)
11
10
  [![Coverage
12
11
  Status](https://coveralls.io/repos/caxlsx/caxlsx_rails/badge.svg)](https://coveralls.io/r/caxlsx/caxlsx_rails)
12
+ [![tests](https://github.com/caxlsx/caxlsx_rails/actions/workflows/test.yml/badge.svg)](https://github.com/caxlsx/caxlsx_rails/actions)
13
+ ![downloads](https://img.shields.io/gem/dt/caxlsx_rails?label=downloads)
13
14
 
14
- ![Total downloads](http://ruby-gem-downloads-badge.herokuapp.com/caxlsx_rails?type=total)
15
- ![Total downloads axlsx_rails](http://ruby-gem-downloads-badge.herokuapp.com/axlsx_rails?type=total)
16
- ![Downloads for 0.6.1 (latest)](http://ruby-gem-downloads-badge.herokuapp.com/caxlsx_rails/0.6.0?label=0.6.1)
15
+ ## Notice: Community Axlsx Organization
16
+
17
+ To better maintain the Axlsx ecosystem, all related gems have been forked or moved to the following community organization:
18
+
19
+ https://github.com/caxlsx
20
+
21
+ [Join the Caxlsx Slack channel](https://join.slack.com/t/caxlsx/shared_invite/enQtOTI5OTM0MzI1Njk5LTBlMDQzNDk2YzkwODMxMmVkODMyYzJiZGU5NTQ3YTg5NTBlN2IwZTlmNTRjNzhiY2E0MDY2OTEyYmFlODI5NjA)
17
22
 
18
23
  ## Installation
19
24
 
20
25
  In your Gemfile:
21
26
 
22
27
  ```ruby
28
+ gem 'caxlsx'
23
29
  gem 'caxlsx_rails'
24
30
  ```
25
31
 
@@ -27,19 +33,19 @@ See [previous installations](#previous-installations) if needed.
27
33
 
28
34
  ## Requirements
29
35
 
30
- * Tested on Rails 4.2, 5.x and 6.0
36
+ * Tested on Rails 4.2, 5.x, 6.x, and 7.x.
31
37
  * For Rails 3.1 or 3.2 use version 3.0
32
38
  * **As of 0.5.0 requires Axlsx 2.0.1, but strongly suggests 2.1.0.pre, which requires rubyzip 1.1.0**
33
39
  * As of Rails 4.1 you must use `render_to_string` to render a mail attachment.
34
40
 
35
41
  ## FYI
36
42
 
37
- * This gem depends on [Axlsx](https://github.com/caxlsx/axlsx). See [the blog](http://axlsx.blog.randym.net/) or the [examples page](https://github.com/randym/axlsx/blob/master/examples/example.rb) for usage.
43
+ * This gem depends on [caxlsx](https://github.com/caxlsx/caxlsx). See [the blog](http://axlsx.blog.randym.net/) or the [examples page](https://github.com/caxlsx/caxlsx/tree/master/examples) for usage.
38
44
  * Check out [axlsx_styler](https://github.com/sakovias/axlsx_styler) by [sakovias](https://github.com/sakovias) for easier styles and borders!
39
45
 
40
46
  ## Usage
41
47
 
42
- Axlsx-Rails provides a renderer and a template handler. It adds the `:xlsx` format and parses `.xlsx.axlsx` templates. This lets you take all the [Axlsx](https://github.com/caxlsx/axlsx) code out of your controller or model and place it inside the template, where view code belongs! **See [this blog post](http://axlsx.blog.randym.net/2012/08/excel-on-rails-like-pro-with-axlsxrails.html) for a more complete walkthrough.**
48
+ Axlsx-Rails provides a renderer and a template handler. It adds the `:xlsx` format and parses `.xlsx.axlsx` templates. This lets you take all the [caxlsx](https://github.com/caxlsx/caxlsx) code out of your controller or model and place it inside the template, where view code belongs! **See [this blog post](http://axlsx.blog.randym.net/2012/08/excel-on-rails-like-pro-with-axlsxrails.html) for a more complete walkthrough.**
43
49
 
44
50
  ### Controller
45
51
 
@@ -69,7 +75,7 @@ wb.add_worksheet(name: "Buttons") do |sheet|
69
75
  end
70
76
  ```
71
77
 
72
- This is where you place all your [Axlsx](https://github.com/caxlsx/axlsx) specific markup. Add worksheets, fill content, merge cells, add styles. See the [Axlsx examples](https://github.com/caxlsx/axlsx/tree/master/examples/example.rb) page to see what you can do.
78
+ This is where you place all your [caxlsx](https://github.com/caxlsx/caxlsx) specific markup. Add worksheets, fill content, merge cells, add styles. See the [caxlsx examples](https://github.com/caxlsx/caxlsx/tree/master/examples) page to see what you can do.
73
79
 
74
80
  Remember, like in `erb` templates, view helpers are available to use the `.xlsx.axlsx` template.
75
81
 
@@ -286,7 +292,7 @@ end
286
292
 
287
293
  require 'rspec/expectations'
288
294
 
289
- module XslsMatchers
295
+ module XlsxMatchers
290
296
 
291
297
  RSpec::Matchers.define :have_header_cells do |cell_values|
292
298
  match do |worksheet|
@@ -325,6 +331,30 @@ end
325
331
  * If it says your template is missing, check that its extension is `.xlsx.axlsx`.
326
332
  * If you get the error `uninitialized constant Mime::XSLX` you have used `format.xslx` instead of `format.xlsx`, or something similar.
327
333
 
334
+ ### Using axlsx_rails in API mode
335
+
336
+ In API mode Rails does not include ActionView, so axlsx_rails will not work. To render axlsx_rails templates you must include ActionView::Rendering in your controller and override render_to_body:
337
+
338
+ ```ruby
339
+ class MyController < ActionController::API
340
+ include ActionView::Rendering
341
+
342
+ def show
343
+ respond_to do |format|
344
+ format.xlsx
345
+ end
346
+ end
347
+
348
+ private
349
+
350
+ def render_to_body(options)
351
+ _render_to_body_with_renderer(options) || super
352
+ end
353
+ end
354
+ ```
355
+
356
+ See [issue 107](https://github.com/caxlsx/caxlsx_rails/issues/107)
357
+
328
358
  ### Mailer Attachments: No content, cannot read, Invalid Byte Sequence in UTF-8
329
359
 
330
360
  If you are having problems with rendering a template and attaching it to a template, try a few options:
@@ -348,6 +378,10 @@ end
348
378
 
349
379
  If you get these errors, please open an issue and share code so the bug can be isolated. Or comment on issue [#29](https://github.com/caxlsx/caxlsx_rails/issues/29) or [#25](https://github.com/caxlsx/caxlsx_rails/issues/25).
350
380
 
381
+ ### The unparsed template is returned, or something similar
382
+
383
+ Have you followed other tutorials for serving Excel from Rails? Have you declared the MIME type already? These may be incompatible with caxlsx_rails (which declares the MIME type for you.) Remove any vestiges of other tutorials from your code and try again.
384
+
351
385
  ### Generated Files Can't Be Opened or Invalid Byte Sequence in UTF-8
352
386
 
353
387
  Both these errors *appear* to be caused by Rails applying a layout to the template. Passing `layout: false` to `render :xlsx` should fix this issue. Version 0.5.0 attempts to fix this issue.
@@ -385,9 +419,29 @@ If you are using turbolinks, you may need to disable turbolinks when you link to
385
419
  link_to 'Download spreadsheet', path_to_sheet, data: {turbolinks: false}
386
420
  ```
387
421
 
422
+ ### Rails 7 Unknown Format
423
+
424
+ In Rails 7, if you get an error of "Unknown Format" you may need to add `(format: "xlsx")` to the named route.
425
+
426
+ A clue to the "format" that Rails is responding with is to look at your log file or console after you click the HTML link or submit your form. You should see `Processing by Controller#action as XLSX`.
427
+
428
+ #### Code Examples
429
+
430
+ Scenario 1 - HTML Link within index.html.erb
431
+
432
+ ```ruby
433
+ link_to "Download as Excel", my_named_route_path(format: "xlsx")
434
+ ```
435
+
436
+ Scenario 2 - Using form_with()
437
+
438
+ ```ruby
439
+ form_with method: :post, url: my_named_route_path(format: :xlsx) do |f|
440
+ ```
441
+
388
442
  ### What to do
389
443
 
390
- If you are having problems, try to isolate the issue. Use the console or a script to make sure your data is good. Then create the spreadsheet line by line without Axlsx-Rails to see if you are having Axlsx problems. If you can manually create the spreadsheet, create an issue and we will work it out.
444
+ If you are having problems, try to isolate the issue. Use the console or a script to make sure your data is good. Then create the spreadsheet line by line without Axlsx-Rails to see if you are having caxlsx problems. If you can manually create the spreadsheet, create an issue and we will work it out.
391
445
 
392
446
  ## Previous Installations
393
447
 
@@ -418,7 +472,7 @@ gem 'axlsx_rails'
418
472
  ## Dependencies
419
473
 
420
474
  - [Rails](https://github.com/rails/rails)
421
- - [Axlsx](https://github.com/caxlsx/axlsx)
475
+ - [caxlsx](https://github.com/caxlsx/caxlsx)
422
476
 
423
477
  ## Authors
424
478
 
@@ -440,14 +494,17 @@ Many thanks to [contributors](https://github.com/caxlsx/caxlsx_rails/graphs/cont
440
494
  * [JohnSmall](https://github.com/JohnSmall)
441
495
  * [BenoitHiller](https://github.com/BenoitHiller)
442
496
 
443
- ## Donations
497
+ ## Change log
498
+
499
+ **June 18, 2024**: 0.6.4 release
444
500
 
445
- Say thanks for Axlsx-Rails by donating! It makes it easier for me to provide to open
446
- source:
501
+ - Convert to Github actions
502
+ - Improve tests
503
+ - Fix broken templates with comments as their last line
447
504
 
448
- [![Click here to lend your support to: Axlsx-Rails!](http://www.pledgie.com/campaigns/27737.png?skin_name=chrome)](http://www.pledgie.com/campaigns/27737)
505
+ **March 8, 2022**: 0.6.3 release
449
506
 
450
- ## Change log
507
+ - Exclude rspec directory (#149)[https://github.com/caxlsx/caxlsx_rails/pull/149]
451
508
 
452
509
  **December 18, 2019**: 0.6.2 release
453
510
 
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/axlsx_rails/version'
4
+
5
+ # Describe your gem and declare its dependencies:
6
+ Gem::Specification.new do |s|
7
+ s.name = 'caxlsx_rails'
8
+ s.version = AxlsxRails::VERSION
9
+ s.licenses = ['MIT']
10
+ s.authors = ['Noel Peden']
11
+ s.email = ['noel@peden.biz']
12
+ s.homepage = 'https://github.com/caxlsx/caxlsx_rails'
13
+ s.summary = 'A simple rails plugin to provide an xlsx renderer using the caxlsx gem.'
14
+ s.description = "Caxlsx_Rails provides an Caxlsx renderer so you can move all your spreadsheet code from your controller into view files. Partials are supported so you can organize any code into reusable chunks (e.g. cover sheets, common styling, etc.) You can use it with acts_as_caxlsx, placing the to_xlsx call in a view and adding ':package => xlsx_package' to the parameter list. Now you can keep your controllers thin!"
15
+
16
+ s.files = Dir['lib/**/*', 'CHANGELOG.md', 'README.md', 'MIT-LICENSE', 'caxlsx_rails.gemspec']
17
+
18
+ s.add_dependency 'actionpack', '>= 3.1'
19
+ s.add_dependency 'caxlsx', '>= 3.0'
20
+
21
+ s.add_development_dependency 'bundler'
22
+ s.add_development_dependency 'rake'
23
+ s.add_development_dependency 'rspec-rails'
24
+ s.add_development_dependency 'guard-rspec'
25
+ s.add_development_dependency 'capybara'
26
+ s.add_development_dependency 'roo'
27
+ s.add_development_dependency 'rubyzip'
28
+ s.add_development_dependency 'growl'
29
+ s.add_development_dependency 'rb-fsevent'
30
+ s.add_development_dependency 'coveralls'
31
+ s.add_development_dependency 'pry'
32
+ s.add_development_dependency 'pry-nav'
33
+ end
@@ -1,11 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'axlsx_rails/template_handler'
4
+
3
5
  module AxlsxRails
4
6
  class Railtie < Rails::Railtie
5
7
  initializer 'axlsx_rails.initialization' do
6
8
  ActiveSupport.on_load(:action_view) do
7
- require 'axlsx_rails/template_handler'
8
- ActionView::Template.register_template_handler :axlsx, ActionView::Template::Handlers::AxlsxBuilder.new
9
+ ActionView::Template.register_template_handler :axlsx, AxlsxRails::TemplateHandler.new
9
10
  end
10
11
 
11
12
  ActiveSupport.on_load(:action_controller) do
@@ -1,37 +1,33 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'action_view'
4
3
  require 'stringio'
5
4
 
6
- module ActionView
7
- module Template::Handlers
8
- class AxlsxBuilder
9
-
10
- def default_format
11
- case
12
- when Rails.version.to_f >= 6
13
- Mime[:xlsx].symbol
14
- when Rails.version.to_f >= 5
15
- Mime[:xlsx]
16
- else
17
- Mime::XLSX
18
- end
5
+ module AxlsxRails
6
+ class TemplateHandler
7
+ def default_format
8
+ case
9
+ when Rails.version.to_f >= 6
10
+ Mime[:xlsx].symbol
11
+ when Rails.version.to_f >= 5
12
+ Mime[:xlsx]
13
+ else
14
+ Mime::XLSX
19
15
  end
16
+ end
20
17
 
21
- def call(template, source = nil)
22
- builder = StringIO.new
23
- builder << "require 'axlsx';"
24
- builder << "xlsx_author = defined?(xlsx_author).nil? ? nil : xlsx_author;"
25
- builder << "xlsx_created_at = defined?(xlsx_created_at).nil? ? nil : xlsx_created_at;"
26
- builder << "xlsx_use_shared_strings = defined?(xlsx_use_shared_strings).nil? ? nil : xlsx_use_shared_strings;"
27
- builder << "xlsx_package = Axlsx::Package.new("
28
- builder << ":author => xlsx_author,"
29
- builder << ":created_at => xlsx_created_at,"
30
- builder << ":use_shared_strings => xlsx_use_shared_strings);"
31
- builder << (source || template.source)
32
- builder << ";xlsx_package.to_stream.string;"
33
- builder.string
34
- end
18
+ def call(template, source = nil)
19
+ builder = StringIO.new
20
+ builder << "require 'axlsx';"
21
+ builder << "xlsx_author = defined?(xlsx_author).nil? ? nil : xlsx_author;"
22
+ builder << "xlsx_created_at = defined?(xlsx_created_at).nil? ? nil : xlsx_created_at;"
23
+ builder << "xlsx_use_shared_strings = defined?(xlsx_use_shared_strings).nil? ? nil : xlsx_use_shared_strings;"
24
+ builder << "xlsx_package = Axlsx::Package.new("
25
+ builder << ":author => xlsx_author,"
26
+ builder << ":created_at => xlsx_created_at,"
27
+ builder << ":use_shared_strings => xlsx_use_shared_strings);"
28
+ builder << (source || template.source)
29
+ builder << "\n;xlsx_package.to_stream.string;"
30
+ builder.string
35
31
  end
36
32
  end
37
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AxlsxRails
4
- VERSION = '0.6.2'
4
+ VERSION = '0.6.4'
5
5
  end