incline 0.3.13 → 0.3.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (335) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/Gemfile +3 -2
  4. data/Gemfile.lock +25 -12
  5. data/MIT-LICENSE +0 -0
  6. data/README.rdoc +0 -0
  7. data/Rakefile +0 -0
  8. data/app/assets/fonts/incline/.keep +0 -0
  9. data/app/assets/images/incline/.keep +0 -0
  10. data/app/assets/images/incline/barcode-B.svg +0 -0
  11. data/app/assets/javascripts/incline/activate_classed_items.js +0 -0
  12. data/app/assets/javascripts/incline/application.js +0 -0
  13. data/app/assets/javascripts/incline/bootstrap-datepicker.js +0 -0
  14. data/app/assets/javascripts/incline/datatables.js +0 -0
  15. data/app/assets/javascripts/incline/escapeHtml.js +0 -0
  16. data/app/assets/javascripts/incline/inline_actions.js +0 -0
  17. data/app/assets/javascripts/incline/jquery.doubleScroll.js +0 -0
  18. data/app/assets/javascripts/incline/jquery.number.js +0 -0
  19. data/app/assets/javascripts/incline/regexMask.js +0 -0
  20. data/app/assets/javascripts/incline/select2/i18n/en.js +0 -0
  21. data/app/assets/javascripts/incline/select2/select2.full.js +0 -0
  22. data/app/assets/stylesheets/incline/application.css +0 -0
  23. data/app/assets/stylesheets/incline/bootstrap-theme.min.css +0 -0
  24. data/app/assets/stylesheets/incline/custom.scss +0 -0
  25. data/app/assets/stylesheets/incline/datatables.css +0 -0
  26. data/app/assets/stylesheets/incline/datepicker3.css +0 -0
  27. data/app/assets/stylesheets/incline/select2.css +0 -0
  28. data/app/controllers/incline/access_groups_controller.rb +0 -0
  29. data/app/controllers/incline/access_test_controller.rb +0 -0
  30. data/app/controllers/incline/account_activations_controller.rb +0 -0
  31. data/app/controllers/incline/application_controller.rb +0 -0
  32. data/app/controllers/incline/contact_controller.rb +0 -0
  33. data/app/controllers/incline/password_resets_controller.rb +0 -0
  34. data/app/controllers/incline/security_controller.rb +0 -0
  35. data/app/controllers/incline/sessions_controller.rb +0 -0
  36. data/app/controllers/incline/users_controller.rb +0 -0
  37. data/app/controllers/incline/welcome_controller.rb +0 -0
  38. data/app/helpers/incline/.keep +0 -0
  39. data/app/mailers/incline/application_mailer_base.rb +0 -0
  40. data/app/mailers/incline/contact_form.rb +0 -0
  41. data/app/mailers/incline/user_mailer.rb +0 -0
  42. data/app/models/incline/access_group.rb +0 -0
  43. data/app/models/incline/access_group_group_member.rb +0 -0
  44. data/app/models/incline/access_group_user_member.rb +0 -0
  45. data/app/models/incline/action_group.rb +0 -0
  46. data/app/models/incline/action_security.rb +0 -0
  47. data/app/models/incline/contact_message.rb +0 -0
  48. data/app/models/incline/disable_info.rb +0 -0
  49. data/app/models/incline/password_reset.rb +0 -0
  50. data/app/models/incline/password_reset_request.rb +0 -0
  51. data/app/models/incline/user.rb +0 -0
  52. data/app/models/incline/user_login_history.rb +0 -0
  53. data/app/views/incline/access_groups/_details.json.jbuilder +0 -0
  54. data/app/views/incline/access_groups/_form.html.erb +0 -0
  55. data/app/views/incline/access_groups/_list.html.erb +0 -0
  56. data/app/views/incline/access_groups/_messages.json.jbuilder +0 -0
  57. data/app/views/incline/access_groups/edit.html.erb +0 -0
  58. data/app/views/incline/access_groups/index.html.erb +0 -0
  59. data/app/views/incline/access_groups/index.json.jbuilder +0 -0
  60. data/app/views/incline/access_groups/new.html.erb +0 -0
  61. data/app/views/incline/access_groups/show.html.erb +0 -0
  62. data/app/views/incline/access_groups/show.json.jbuilder +0 -0
  63. data/app/views/incline/contact/new.html.erb +0 -0
  64. data/app/views/incline/contact_form/contact.html.erb +0 -0
  65. data/app/views/incline/contact_form/contact.text.erb +0 -0
  66. data/app/views/incline/password_resets/edit.html.erb +0 -0
  67. data/app/views/incline/password_resets/new.html.erb +0 -0
  68. data/app/views/incline/security/_details.json.jbuilder +0 -0
  69. data/app/views/incline/security/_form.html.erb +0 -0
  70. data/app/views/incline/security/_list.html.erb +0 -0
  71. data/app/views/incline/security/_messages.json.jbuilder +0 -0
  72. data/app/views/incline/security/edit.html.erb +0 -0
  73. data/app/views/incline/security/index.html.erb +0 -0
  74. data/app/views/incline/security/index.json.jbuilder +0 -0
  75. data/app/views/incline/security/show.html.erb +0 -0
  76. data/app/views/incline/security/show.json.jbuilder +0 -0
  77. data/app/views/incline/sessions/new.html.erb +0 -0
  78. data/app/views/incline/user_mailer/account_activation.html.erb +0 -0
  79. data/app/views/incline/user_mailer/account_activation.text.erb +0 -0
  80. data/app/views/incline/user_mailer/invalid_password_reset.html.erb +0 -0
  81. data/app/views/incline/user_mailer/invalid_password_reset.text.erb +0 -0
  82. data/app/views/incline/user_mailer/password_reset.html.erb +0 -0
  83. data/app/views/incline/user_mailer/password_reset.text.erb +0 -0
  84. data/app/views/incline/users/_details.json.jbuilder +0 -0
  85. data/app/views/incline/users/_form.html.erb +0 -0
  86. data/app/views/incline/users/_list.html.erb +0 -0
  87. data/app/views/incline/users/_messages.json.jbuilder +0 -0
  88. data/app/views/incline/users/disable_confirm.html.erb +0 -0
  89. data/app/views/incline/users/edit.html.erb +0 -0
  90. data/app/views/incline/users/index.html.erb +0 -0
  91. data/app/views/incline/users/index.json.jbuilder +0 -0
  92. data/app/views/incline/users/new.html.erb +0 -0
  93. data/app/views/incline/users/show.html.erb +0 -0
  94. data/app/views/incline/users/show.json.jbuilder +0 -0
  95. data/app/views/incline/welcome/home.html.erb +0 -0
  96. data/app/views/layouts/application.html.erb +0 -0
  97. data/app/views/layouts/incline/_account_menu.html.erb +0 -0
  98. data/app/views/layouts/incline/_app_menu_anon.html.erb +0 -0
  99. data/app/views/layouts/incline/_app_menu_authenticated.html.erb +0 -0
  100. data/app/views/layouts/incline/_footer.html.erb +0 -0
  101. data/app/views/layouts/incline/_header.html.erb +0 -0
  102. data/app/views/layouts/incline/_html_mailer.html.erb +0 -0
  103. data/app/views/layouts/incline/_incline_app.html.erb +0 -0
  104. data/app/views/layouts/incline/_messages.html.erb +0 -0
  105. data/app/views/layouts/incline/_shim.html.erb +0 -0
  106. data/app/views/layouts/incline/_text_mailer.text.erb +0 -0
  107. data/app/views/layouts/incline/application.html.erb +0 -0
  108. data/app/views/layouts/mailer.html.erb +0 -0
  109. data/app/views/layouts/mailer.text.erb +0 -0
  110. data/bin/rails +0 -0
  111. data/bin/test_scaffold.sh +0 -0
  112. data/config/routes.rb +0 -0
  113. data/db/migrate/20170511230126_create_incline_users.rb +0 -0
  114. data/db/migrate/20170515003052_create_incline_access_groups.rb +0 -0
  115. data/db/migrate/20170515003221_create_incline_user_login_histories.rb +0 -0
  116. data/db/migrate/20170515150908_create_incline_access_group_user_members.rb +0 -0
  117. data/db/migrate/20170515151058_create_incline_access_group_group_members.rb +0 -0
  118. data/db/migrate/20170517193432_add_comments_to_incline_user.rb +0 -0
  119. data/db/migrate/20170622132700_create_incline_action_securities.rb +0 -0
  120. data/db/migrate/20170622172712_create_incline_action_groups.rb +0 -0
  121. data/db/migrate/20170622195742_add_non_standard_to_action_security.rb +0 -0
  122. data/db/migrate/20170622230422_add_visible_to_action_security.rb +0 -0
  123. data/db/seeds.rb +0 -0
  124. data/exe/incline +0 -0
  125. data/exe/new_incline_app +0 -0
  126. data/lib/generators/incline/install_generator.rb +0 -0
  127. data/lib/generators/incline/templates/_app_menu_anon.html.erb +0 -0
  128. data/lib/generators/incline/templates/_app_menu_authenticated.html.erb +0 -0
  129. data/lib/generators/incline/templates/incline_application.css +0 -0
  130. data/lib/generators/incline/templates/incline_application.html.erb +0 -0
  131. data/lib/generators/incline/templates/incline_application.js +0 -0
  132. data/lib/generators/incline/templates/incline_database.yml +0 -0
  133. data/lib/generators/incline/templates/incline_email.yml +0 -0
  134. data/lib/generators/incline/templates/incline_mailer.html.erb +0 -0
  135. data/lib/generators/incline/templates/incline_mailer.text.erb +0 -0
  136. data/lib/generators/incline/templates/incline_users.yml +0 -0
  137. data/lib/generators/incline/templates/incline_version.rb +0 -0
  138. data/lib/incline.rb +0 -0
  139. data/lib/incline/auth_engine_base.rb +0 -0
  140. data/lib/incline/bit_enum.rb +4 -4
  141. data/lib/incline/cli.rb +0 -0
  142. data/lib/incline/cli/errors.rb +0 -0
  143. data/lib/incline/cli/helpers/yaml.rb +0 -0
  144. data/lib/incline/cli/prepare.rb +0 -0
  145. data/lib/incline/cli/prepare/add_deploy_user.rb +0 -0
  146. data/lib/incline/cli/prepare/config_passenger.rb +0 -0
  147. data/lib/incline/cli/prepare/config_ssh.rb +0 -0
  148. data/lib/incline/cli/prepare/create_nginx_utils.rb +0 -0
  149. data/lib/incline/cli/prepare/extend_shell.rb +0 -0
  150. data/lib/incline/cli/prepare/install_db.rb +0 -0
  151. data/lib/incline/cli/prepare/install_flytrap.rb +0 -0
  152. data/lib/incline/cli/prepare/install_passenger.rb +0 -0
  153. data/lib/incline/cli/prepare/install_prereqs.rb +0 -0
  154. data/lib/incline/cli/prepare/install_rails.rb +0 -0
  155. data/lib/incline/cli/prepare/install_rbenv.rb +0 -0
  156. data/lib/incline/cli/prepare/install_ruby.rb +0 -0
  157. data/lib/incline/cli/prepare/restart_nginx.rb +0 -0
  158. data/lib/incline/cli/prepare/ssh_copy_id.rb +0 -0
  159. data/lib/incline/cli/prepare/update_system.rb +0 -0
  160. data/lib/incline/cli/usage.rb +1 -1
  161. data/lib/incline/cli/version.rb +0 -0
  162. data/lib/incline/constant_enum.rb +0 -0
  163. data/lib/incline/data_tables_request.rb +10 -1
  164. data/lib/incline/date_time_formats.rb +0 -0
  165. data/lib/incline/engine.rb +0 -0
  166. data/lib/incline/errors.rb +0 -0
  167. data/lib/incline/extensions/action_controller_base.rb +0 -0
  168. data/lib/incline/extensions/action_mailer_base.rb +0 -0
  169. data/lib/incline/extensions/action_view_base.rb +0 -0
  170. data/lib/incline/extensions/active_record_base.rb +0 -0
  171. data/lib/incline/extensions/application.rb +7 -2
  172. data/lib/incline/extensions/application_configuration.rb +0 -0
  173. data/lib/incline/extensions/connection_adapter.rb +0 -0
  174. data/lib/incline/extensions/current_request.rb +0 -0
  175. data/lib/incline/extensions/date_time_value.rb +0 -0
  176. data/lib/incline/extensions/date_value.rb +0 -0
  177. data/lib/incline/extensions/decimal_value.rb +0 -0
  178. data/lib/incline/extensions/erb_scaffold_generator.rb +0 -0
  179. data/lib/incline/extensions/float_value.rb +0 -0
  180. data/lib/incline/extensions/form_builder.rb +0 -0
  181. data/lib/incline/extensions/integer_value.rb +0 -0
  182. data/lib/incline/extensions/jbuilder_generator.rb +0 -0
  183. data/lib/incline/extensions/jbuilder_template.rb +0 -0
  184. data/lib/incline/extensions/main_app.rb +0 -0
  185. data/lib/incline/extensions/numeric.rb +0 -0
  186. data/lib/incline/extensions/object.rb +0 -0
  187. data/lib/incline/extensions/param_propagation.rb +6 -10
  188. data/lib/incline/extensions/resource_route_generator.rb +0 -0
  189. data/lib/incline/extensions/session.rb +0 -0
  190. data/lib/incline/extensions/string.rb +0 -0
  191. data/lib/incline/extensions/test_case.rb +0 -0
  192. data/lib/incline/extensions/time_zone_converter.rb +0 -0
  193. data/lib/incline/global_status.rb +0 -0
  194. data/lib/incline/helpers/route_hash_formatter.rb +0 -0
  195. data/lib/incline/json_log_formatter.rb +0 -0
  196. data/lib/incline/json_logger.rb +0 -0
  197. data/lib/incline/log.rb +0 -0
  198. data/lib/incline/number_formats.rb +0 -0
  199. data/lib/incline/recaptcha.rb +0 -0
  200. data/lib/incline/user_manager.rb +0 -0
  201. data/lib/incline/validators/email_validator.rb +0 -0
  202. data/lib/incline/validators/ip_address_validator.rb +0 -0
  203. data/lib/incline/validators/recaptcha_validator.rb +0 -0
  204. data/lib/incline/validators/safe_name_validator.rb +0 -0
  205. data/lib/incline/version.rb +3 -3
  206. data/lib/incline/work_path.rb +2 -1
  207. data/lib/tasks/incline_tasks.rake +0 -0
  208. data/lib/templates/erb/scaffold/_form.html.erb +0 -0
  209. data/lib/templates/erb/scaffold/_list.html.erb +0 -0
  210. data/lib/templates/erb/scaffold/edit.html.erb +0 -0
  211. data/lib/templates/erb/scaffold/index.html.erb +0 -0
  212. data/lib/templates/erb/scaffold/new.html.erb +0 -0
  213. data/lib/templates/erb/scaffold/show.html.erb +0 -0
  214. data/lib/templates/jbuilder/scaffold/_details.json.jbuilder +0 -0
  215. data/lib/templates/jbuilder/scaffold/index.json.jbuilder +0 -0
  216. data/lib/templates/jbuilder/scaffold/show.json.jbuilder +0 -0
  217. data/lib/templates/rails/scaffold_controller/controller.rb +0 -0
  218. data/lib/templates/test_unit/scaffold/functional_test.rb +0 -0
  219. data/test/cli/yaml_contents_test.rb +0 -0
  220. data/test/controllers/incline/access_groups_controller_test.rb +0 -0
  221. data/test/controllers/incline/access_test_controller_test.rb +0 -0
  222. data/test/controllers/incline/contact_controller_test.rb +0 -0
  223. data/test/controllers/incline/security_controller_test.rb +0 -0
  224. data/test/controllers/incline/welcome_controller_test.rb +0 -0
  225. data/test/dummy/README.rdoc +0 -0
  226. data/test/dummy/Rakefile +0 -0
  227. data/test/dummy/app/assets/images/.keep +0 -0
  228. data/test/dummy/app/assets/javascripts/application.js +0 -0
  229. data/test/dummy/app/assets/stylesheets/application.css +0 -0
  230. data/test/dummy/app/controllers/application_controller.rb +0 -0
  231. data/test/dummy/app/controllers/concerns/.keep +0 -0
  232. data/test/dummy/app/controllers/dummy_controller.rb +0 -0
  233. data/test/dummy/app/helpers/application_helper.rb +0 -0
  234. data/test/dummy/app/mailers/.keep +0 -0
  235. data/test/dummy/app/models/.keep +0 -0
  236. data/test/dummy/app/models/concerns/.keep +0 -0
  237. data/test/dummy/app/views/dummy/hello.html.erb +0 -0
  238. data/test/dummy/app/views/layouts/application.html.erb +0 -0
  239. data/test/dummy/app/views/layouts/incline/_app_menu_anon.html.erb +0 -0
  240. data/test/dummy/app/views/layouts/incline/_app_menu_authenticated.html.erb +0 -0
  241. data/test/dummy/app/views/layouts/mailer.html.erb +0 -0
  242. data/test/dummy/app/views/layouts/mailer.text.erb +0 -0
  243. data/test/dummy/bin/bundle +0 -0
  244. data/test/dummy/bin/rails +0 -0
  245. data/test/dummy/bin/rake +0 -0
  246. data/test/dummy/bin/setup +0 -0
  247. data/test/dummy/config.ru +0 -0
  248. data/test/dummy/config/application.rb +0 -0
  249. data/test/dummy/config/boot.rb +0 -0
  250. data/test/dummy/config/database.yml +0 -0
  251. data/test/dummy/config/email.yml +0 -0
  252. data/test/dummy/config/environment.rb +0 -0
  253. data/test/dummy/config/environments/development.rb +0 -0
  254. data/test/dummy/config/environments/production.rb +0 -0
  255. data/test/dummy/config/environments/test.rb +0 -0
  256. data/test/dummy/config/initializers/assets.rb +0 -0
  257. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -0
  258. data/test/dummy/config/initializers/cookies_serializer.rb +0 -0
  259. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  260. data/test/dummy/config/initializers/inflections.rb +0 -0
  261. data/test/dummy/config/initializers/mime_types.rb +0 -0
  262. data/test/dummy/config/initializers/session_store.rb +0 -0
  263. data/test/dummy/config/initializers/to_time_preserves_timezone.rb +0 -0
  264. data/test/dummy/config/initializers/wrap_parameters.rb +0 -0
  265. data/test/dummy/config/locales/en.yml +0 -0
  266. data/test/dummy/config/routes.rb +0 -0
  267. data/test/dummy/db/schema.rb +108 -108
  268. data/test/dummy/lib/assets/.keep +0 -0
  269. data/test/dummy/log/.keep +0 -0
  270. data/test/dummy/public/404.html +0 -0
  271. data/test/dummy/public/422.html +0 -0
  272. data/test/dummy/public/500.html +0 -0
  273. data/test/dummy/public/favicon.ico +0 -0
  274. data/test/extensions/action_controller_base_extensions_test.rb +0 -0
  275. data/test/extensions/action_mailer_base_extensions_test.rb +0 -0
  276. data/test/extensions/action_view_base_extensions_test.rb +0 -0
  277. data/test/extensions/active_record_extensions_test.rb +0 -0
  278. data/test/extensions/application_configuration_extensions_test.rb +0 -0
  279. data/test/extensions/application_extensions_test.rb +0 -0
  280. data/test/extensions/connection_adapter_extensions_test.rb +0 -0
  281. data/test/extensions/date_time_value_extensions_test.rb +0 -0
  282. data/test/extensions/date_value_extensions_test.rb +0 -0
  283. data/test/extensions/decimal_value_extensions_test.rb +0 -0
  284. data/test/extensions/erb_scaffold_generator_extensions_test.rb +0 -0
  285. data/test/extensions/float_value_extensions_test.rb +0 -0
  286. data/test/extensions/form_builder_extensions_test.rb +0 -0
  287. data/test/extensions/integer_value_extensions_test.rb +0 -0
  288. data/test/extensions/jbuilder_generator_extensions_test.rb +0 -0
  289. data/test/extensions/jbuilder_template_extensions_test.rb +0 -0
  290. data/test/extensions/main_app_extensions_test.rb +0 -0
  291. data/test/extensions/numeric_extensions_test.rb +0 -0
  292. data/test/extensions/object_extensions_test.rb +0 -0
  293. data/test/extensions/session_extensions_test.rb +0 -0
  294. data/test/extensions/string_extensions_test.rb +0 -0
  295. data/test/extensions/test_case_extensions_test.rb +0 -0
  296. data/test/extensions/time_zone_converter_extensions_test.rb +0 -0
  297. data/test/fixtures/incline/access_group_group_members.yml +0 -0
  298. data/test/fixtures/incline/access_group_user_members.yml +0 -0
  299. data/test/fixtures/incline/access_groups.yml +0 -0
  300. data/test/fixtures/incline/action_groups.yml +0 -0
  301. data/test/fixtures/incline/action_securities.yml +0 -0
  302. data/test/fixtures/incline/user_login_histories.yml +0 -0
  303. data/test/fixtures/incline/users.yml +0 -0
  304. data/test/incline_test.rb +0 -0
  305. data/test/integration/incline/users_edit_test.rb +0 -0
  306. data/test/integration/incline/users_login_test.rb +0 -0
  307. data/test/integration/incline/users_signup_test.rb +0 -0
  308. data/test/integration/navigation_test.rb +0 -0
  309. data/test/lib/bit_enum_test.rb +0 -0
  310. data/test/lib/constant_enum_test.rb +0 -0
  311. data/test/lib/data_tables_request_test.rb +7 -7
  312. data/test/lib/date_time_formats_test.rb +0 -0
  313. data/test/lib/global_status_test.rb +0 -0
  314. data/test/lib/json_log_formatter_test.rb +0 -0
  315. data/test/lib/log_test.rb +0 -0
  316. data/test/lib/recaptcha_test.rb +0 -0
  317. data/test/lib/user_manager_test.rb +0 -0
  318. data/test/lib/work_path_test.rb +0 -0
  319. data/test/models/incline/access_group_group_member_test.rb +0 -0
  320. data/test/models/incline/access_group_test.rb +0 -0
  321. data/test/models/incline/access_group_user_member_test.rb +0 -0
  322. data/test/models/incline/action_group_test.rb +0 -0
  323. data/test/models/incline/action_security_test.rb +0 -0
  324. data/test/models/incline/contact_message_test.rb +0 -0
  325. data/test/models/incline/disable_info_test.rb +0 -0
  326. data/test/models/incline/password_reset_request_test.rb +0 -0
  327. data/test/models/incline/password_reset_test.rb +0 -0
  328. data/test/models/incline/user_login_history_test.rb +0 -0
  329. data/test/models/incline/user_test.rb +0 -0
  330. data/test/test_helper.rb +0 -0
  331. data/test/validators/email_validator_test.rb +0 -0
  332. data/test/validators/ip_address_validator_test.rb +0 -0
  333. data/test/validators/recaptcha_validator_test.rb +0 -0
  334. data/test/validators/safe_name_validator_test.rb +0 -0
  335. metadata +3 -3
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -51,7 +51,7 @@ module Incline
51
51
  msg += "\nInvalid Command: #{@command}\n"
52
52
  end
53
53
  msg += "\nValid Commands:\n"
54
- commands.each do |(name,klass,params)|
54
+ commands.each do |(name,_,params)|
55
55
  msg += " #{name}"
56
56
  pend = ''
57
57
  params.each do |t,p|
File without changes
File without changes
@@ -376,7 +376,16 @@ module Incline
376
376
 
377
377
  def local_sort(a, b, attribs, index = 0)
378
378
  if index >= attribs.count
379
- 0
379
+ if a.class == b.class && a.is_a?(::ActiveRecord::Base)
380
+ pk = a.class.primary_key
381
+ if a.respond_to?(pk)
382
+ a.send(pk) <=> b.send(pk)
383
+ else
384
+ 0
385
+ end
386
+ else
387
+ 0
388
+ end
380
389
  else
381
390
  attr, dir = attribs[index]
382
391
  val_a = get_value(a, attr)
File without changes
File without changes
File without changes
@@ -16,8 +16,13 @@ module Incline::Extensions
16
16
  pid = File.exist?(path) ? File.read(path).to_i : -1
17
17
  server_running = true
18
18
  begin
19
- Process.getpgid pid
20
- rescue Errno::ESRCH
19
+ if Gem.win_platform?
20
+ result = `tasklist /FO LIST /FI "PID eq #{pid}"`.strip
21
+ server_running = !!(result =~ /^PID:\s+#{pid}$/)
22
+ else
23
+ Process.getpgid pid
24
+ end
25
+ rescue Errno::ESRCH, NotImplementedError
21
26
  server_running = false
22
27
  end
23
28
  server_running
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -12,9 +12,12 @@ module ActionDispatch::Http::URL
12
12
  def self.propagated_params
13
13
  @propagated_params ||= []
14
14
  end
15
-
15
+
16
+ class << self
17
+ alias :incline_original_path_for :path_for
18
+ end
19
+
16
20
  def self.path_for(options)
17
-
18
21
  if (request = Incline::current_request)
19
22
  propagated_params.each do |k|
20
23
  if request.params.key? k
@@ -23,15 +26,8 @@ module ActionDispatch::Http::URL
23
26
  end
24
27
  end
25
28
  end
26
-
27
- path = options[:script_name].to_s.chomp("/")
28
- path << options[:path] if options.key?(:path)
29
-
30
- add_trailing_slash(path) if options[:trailing_slash]
31
- add_params(path, options[:params]) if options.key?(:params)
32
- add_anchor(path, options[:anchor]) if options.key?(:anchor)
33
29
 
34
- path
30
+ incline_original_path_for(options)
35
31
  end
36
32
 
37
33
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
- module Incline
2
- VERSION = "0.3.13"
3
- end
1
+ module Incline
2
+ VERSION = "0.3.14"
3
+ end
@@ -62,12 +62,13 @@ module Incline
62
62
  end
63
63
 
64
64
  def self.get_location
65
- %w(/run/shm /var/run/shm /dev/shm /tmp).each do |root|
65
+ (%w(/run/shm /var/run/shm /dev/shm /tmp) + [Dir.tmpdir]).each do |root|
66
66
  if Dir.exist?(root)
67
67
  loc = try_path(root)
68
68
  return loc unless loc.blank?
69
69
  end
70
70
  end
71
+
71
72
  nil
72
73
  end
73
74
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,108 +1,108 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20170622230422) do
15
-
16
- create_table "incline_access_group_group_members", force: :cascade do |t|
17
- t.integer "group_id", null: false
18
- t.integer "member_id", null: false
19
- t.datetime "created_at", null: false
20
- t.datetime "updated_at", null: false
21
- end
22
-
23
- add_index "incline_access_group_group_members", ["group_id", "member_id"], name: "ux_incline_access_group_group_members", unique: true
24
- add_index "incline_access_group_group_members", ["group_id"], name: "index_incline_access_group_group_members_on_group_id"
25
- add_index "incline_access_group_group_members", ["member_id"], name: "index_incline_access_group_group_members_on_member_id"
26
-
27
- create_table "incline_access_group_user_members", force: :cascade do |t|
28
- t.integer "group_id", null: false
29
- t.integer "member_id", null: false
30
- t.datetime "created_at", null: false
31
- t.datetime "updated_at", null: false
32
- end
33
-
34
- add_index "incline_access_group_user_members", ["group_id", "member_id"], name: "ux_incline_access_group_user_members", unique: true
35
- add_index "incline_access_group_user_members", ["group_id"], name: "index_incline_access_group_user_members_on_group_id"
36
- add_index "incline_access_group_user_members", ["member_id"], name: "index_incline_access_group_user_members_on_member_id"
37
-
38
- create_table "incline_access_groups", force: :cascade do |t|
39
- t.string "name", limit: 100, null: false
40
- t.datetime "created_at", null: false
41
- t.datetime "updated_at", null: false
42
- end
43
-
44
- add_index "incline_access_groups", ["name"], name: "ux_incline_access_groups_name", unique: true
45
-
46
- create_table "incline_action_groups", force: :cascade do |t|
47
- t.integer "action_security_id", null: false
48
- t.integer "access_group_id", null: false
49
- t.datetime "created_at", null: false
50
- t.datetime "updated_at", null: false
51
- end
52
-
53
- add_index "incline_action_groups", ["access_group_id"], name: "index_incline_action_groups_on_access_group_id"
54
- add_index "incline_action_groups", ["action_security_id", "access_group_id"], name: "ux_incline_action_groups", unique: true
55
- add_index "incline_action_groups", ["action_security_id"], name: "index_incline_action_groups_on_action_security_id"
56
-
57
- create_table "incline_action_securities", force: :cascade do |t|
58
- t.string "controller_name", limit: 200, null: false
59
- t.string "action_name", limit: 200, null: false
60
- t.text "path", null: false
61
- t.boolean "allow_anon"
62
- t.boolean "require_anon"
63
- t.boolean "require_admin"
64
- t.boolean "unknown_controller"
65
- t.datetime "created_at", null: false
66
- t.datetime "updated_at", null: false
67
- t.boolean "non_standard"
68
- t.boolean "visible"
69
- end
70
-
71
- add_index "incline_action_securities", ["controller_name", "action_name"], name: "ux_incline_action_securities", unique: true
72
-
73
- create_table "incline_user_login_histories", force: :cascade do |t|
74
- t.integer "user_id", null: false
75
- t.string "ip_address", limit: 64, null: false
76
- t.boolean "successful"
77
- t.string "message", limit: 200
78
- t.datetime "created_at", null: false
79
- t.datetime "updated_at", null: false
80
- end
81
-
82
- add_index "incline_user_login_histories", ["user_id"], name: "index_incline_user_login_histories_on_user_id"
83
-
84
- create_table "incline_users", force: :cascade do |t|
85
- t.string "name", limit: 100, null: false
86
- t.string "email", limit: 250, null: false
87
- t.boolean "activated", default: false, null: false
88
- t.boolean "enabled", default: true, null: false
89
- t.boolean "system_admin", default: false, null: false
90
- t.string "activation_digest", limit: 100
91
- t.string "password_digest", limit: 100
92
- t.string "remember_digest", limit: 100
93
- t.string "reset_digest", limit: 100
94
- t.datetime "activated_at"
95
- t.datetime "reset_sent_at"
96
- t.string "disabled_by", limit: 250
97
- t.datetime "disabled_at"
98
- t.string "disabled_reason", limit: 200
99
- t.datetime "last_login_at"
100
- t.string "last_login_ip", limit: 64
101
- t.datetime "created_at", null: false
102
- t.datetime "updated_at", null: false
103
- t.text "comments"
104
- end
105
-
106
- add_index "incline_users", ["email"], name: "ux_incline_users_email", unique: true
107
-
108
- end
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20170622230422) do
15
+
16
+ create_table "incline_access_group_group_members", force: :cascade do |t|
17
+ t.integer "group_id", null: false
18
+ t.integer "member_id", null: false
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
+ end
22
+
23
+ add_index "incline_access_group_group_members", ["group_id", "member_id"], name: "ux_incline_access_group_group_members", unique: true
24
+ add_index "incline_access_group_group_members", ["group_id"], name: "index_incline_access_group_group_members_on_group_id"
25
+ add_index "incline_access_group_group_members", ["member_id"], name: "index_incline_access_group_group_members_on_member_id"
26
+
27
+ create_table "incline_access_group_user_members", force: :cascade do |t|
28
+ t.integer "group_id", null: false
29
+ t.integer "member_id", null: false
30
+ t.datetime "created_at", null: false
31
+ t.datetime "updated_at", null: false
32
+ end
33
+
34
+ add_index "incline_access_group_user_members", ["group_id", "member_id"], name: "ux_incline_access_group_user_members", unique: true
35
+ add_index "incline_access_group_user_members", ["group_id"], name: "index_incline_access_group_user_members_on_group_id"
36
+ add_index "incline_access_group_user_members", ["member_id"], name: "index_incline_access_group_user_members_on_member_id"
37
+
38
+ create_table "incline_access_groups", force: :cascade do |t|
39
+ t.string "name", limit: 100, null: false
40
+ t.datetime "created_at", null: false
41
+ t.datetime "updated_at", null: false
42
+ end
43
+
44
+ add_index "incline_access_groups", ["name"], name: "ux_incline_access_groups_name", unique: true
45
+
46
+ create_table "incline_action_groups", force: :cascade do |t|
47
+ t.integer "action_security_id", null: false
48
+ t.integer "access_group_id", null: false
49
+ t.datetime "created_at", null: false
50
+ t.datetime "updated_at", null: false
51
+ end
52
+
53
+ add_index "incline_action_groups", ["access_group_id"], name: "index_incline_action_groups_on_access_group_id"
54
+ add_index "incline_action_groups", ["action_security_id", "access_group_id"], name: "ux_incline_action_groups", unique: true
55
+ add_index "incline_action_groups", ["action_security_id"], name: "index_incline_action_groups_on_action_security_id"
56
+
57
+ create_table "incline_action_securities", force: :cascade do |t|
58
+ t.string "controller_name", limit: 200, null: false
59
+ t.string "action_name", limit: 200, null: false
60
+ t.text "path", null: false
61
+ t.boolean "allow_anon"
62
+ t.boolean "require_anon"
63
+ t.boolean "require_admin"
64
+ t.boolean "unknown_controller"
65
+ t.datetime "created_at", null: false
66
+ t.datetime "updated_at", null: false
67
+ t.boolean "non_standard"
68
+ t.boolean "visible"
69
+ end
70
+
71
+ add_index "incline_action_securities", ["controller_name", "action_name"], name: "ux_incline_action_securities", unique: true
72
+
73
+ create_table "incline_user_login_histories", force: :cascade do |t|
74
+ t.integer "user_id", null: false
75
+ t.string "ip_address", limit: 64, null: false
76
+ t.boolean "successful"
77
+ t.string "message", limit: 200
78
+ t.datetime "created_at", null: false
79
+ t.datetime "updated_at", null: false
80
+ end
81
+
82
+ add_index "incline_user_login_histories", ["user_id"], name: "index_incline_user_login_histories_on_user_id"
83
+
84
+ create_table "incline_users", force: :cascade do |t|
85
+ t.string "name", limit: 100, null: false
86
+ t.string "email", limit: 250, null: false
87
+ t.boolean "activated", default: false, null: false
88
+ t.boolean "enabled", default: true, null: false
89
+ t.boolean "system_admin", default: false, null: false
90
+ t.string "activation_digest", limit: 100
91
+ t.string "password_digest", limit: 100
92
+ t.string "remember_digest", limit: 100
93
+ t.string "reset_digest", limit: 100
94
+ t.datetime "activated_at"
95
+ t.datetime "reset_sent_at"
96
+ t.string "disabled_by", limit: 250
97
+ t.datetime "disabled_at"
98
+ t.string "disabled_reason", limit: 200
99
+ t.datetime "last_login_at"
100
+ t.string "last_login_ip", limit: 64
101
+ t.datetime "created_at", null: false
102
+ t.datetime "updated_at", null: false
103
+ t.text "comments"
104
+ end
105
+
106
+ add_index "incline_users", ["email"], name: "ux_incline_users_email", unique: true
107
+
108
+ end