incline 0.3.13 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/Gemfile +3 -2
- data/Gemfile.lock +25 -12
- data/MIT-LICENSE +0 -0
- data/README.rdoc +0 -0
- data/Rakefile +0 -0
- data/app/assets/fonts/incline/.keep +0 -0
- data/app/assets/images/incline/.keep +0 -0
- data/app/assets/images/incline/barcode-B.svg +0 -0
- data/app/assets/javascripts/incline/activate_classed_items.js +0 -0
- data/app/assets/javascripts/incline/application.js +0 -0
- data/app/assets/javascripts/incline/bootstrap-datepicker.js +0 -0
- data/app/assets/javascripts/incline/datatables.js +0 -0
- data/app/assets/javascripts/incline/escapeHtml.js +0 -0
- data/app/assets/javascripts/incline/inline_actions.js +0 -0
- data/app/assets/javascripts/incline/jquery.doubleScroll.js +0 -0
- data/app/assets/javascripts/incline/jquery.number.js +0 -0
- data/app/assets/javascripts/incline/regexMask.js +0 -0
- data/app/assets/javascripts/incline/select2/i18n/en.js +0 -0
- data/app/assets/javascripts/incline/select2/select2.full.js +0 -0
- data/app/assets/stylesheets/incline/application.css +0 -0
- data/app/assets/stylesheets/incline/bootstrap-theme.min.css +0 -0
- data/app/assets/stylesheets/incline/custom.scss +0 -0
- data/app/assets/stylesheets/incline/datatables.css +0 -0
- data/app/assets/stylesheets/incline/datepicker3.css +0 -0
- data/app/assets/stylesheets/incline/select2.css +0 -0
- data/app/controllers/incline/access_groups_controller.rb +0 -0
- data/app/controllers/incline/access_test_controller.rb +0 -0
- data/app/controllers/incline/account_activations_controller.rb +0 -0
- data/app/controllers/incline/application_controller.rb +0 -0
- data/app/controllers/incline/contact_controller.rb +0 -0
- data/app/controllers/incline/password_resets_controller.rb +0 -0
- data/app/controllers/incline/security_controller.rb +0 -0
- data/app/controllers/incline/sessions_controller.rb +0 -0
- data/app/controllers/incline/users_controller.rb +0 -0
- data/app/controllers/incline/welcome_controller.rb +0 -0
- data/app/helpers/incline/.keep +0 -0
- data/app/mailers/incline/application_mailer_base.rb +0 -0
- data/app/mailers/incline/contact_form.rb +0 -0
- data/app/mailers/incline/user_mailer.rb +0 -0
- data/app/models/incline/access_group.rb +0 -0
- data/app/models/incline/access_group_group_member.rb +0 -0
- data/app/models/incline/access_group_user_member.rb +0 -0
- data/app/models/incline/action_group.rb +0 -0
- data/app/models/incline/action_security.rb +0 -0
- data/app/models/incline/contact_message.rb +0 -0
- data/app/models/incline/disable_info.rb +0 -0
- data/app/models/incline/password_reset.rb +0 -0
- data/app/models/incline/password_reset_request.rb +0 -0
- data/app/models/incline/user.rb +0 -0
- data/app/models/incline/user_login_history.rb +0 -0
- data/app/views/incline/access_groups/_details.json.jbuilder +0 -0
- data/app/views/incline/access_groups/_form.html.erb +0 -0
- data/app/views/incline/access_groups/_list.html.erb +0 -0
- data/app/views/incline/access_groups/_messages.json.jbuilder +0 -0
- data/app/views/incline/access_groups/edit.html.erb +0 -0
- data/app/views/incline/access_groups/index.html.erb +0 -0
- data/app/views/incline/access_groups/index.json.jbuilder +0 -0
- data/app/views/incline/access_groups/new.html.erb +0 -0
- data/app/views/incline/access_groups/show.html.erb +0 -0
- data/app/views/incline/access_groups/show.json.jbuilder +0 -0
- data/app/views/incline/contact/new.html.erb +0 -0
- data/app/views/incline/contact_form/contact.html.erb +0 -0
- data/app/views/incline/contact_form/contact.text.erb +0 -0
- data/app/views/incline/password_resets/edit.html.erb +0 -0
- data/app/views/incline/password_resets/new.html.erb +0 -0
- data/app/views/incline/security/_details.json.jbuilder +0 -0
- data/app/views/incline/security/_form.html.erb +0 -0
- data/app/views/incline/security/_list.html.erb +0 -0
- data/app/views/incline/security/_messages.json.jbuilder +0 -0
- data/app/views/incline/security/edit.html.erb +0 -0
- data/app/views/incline/security/index.html.erb +0 -0
- data/app/views/incline/security/index.json.jbuilder +0 -0
- data/app/views/incline/security/show.html.erb +0 -0
- data/app/views/incline/security/show.json.jbuilder +0 -0
- data/app/views/incline/sessions/new.html.erb +0 -0
- data/app/views/incline/user_mailer/account_activation.html.erb +0 -0
- data/app/views/incline/user_mailer/account_activation.text.erb +0 -0
- data/app/views/incline/user_mailer/invalid_password_reset.html.erb +0 -0
- data/app/views/incline/user_mailer/invalid_password_reset.text.erb +0 -0
- data/app/views/incline/user_mailer/password_reset.html.erb +0 -0
- data/app/views/incline/user_mailer/password_reset.text.erb +0 -0
- data/app/views/incline/users/_details.json.jbuilder +0 -0
- data/app/views/incline/users/_form.html.erb +0 -0
- data/app/views/incline/users/_list.html.erb +0 -0
- data/app/views/incline/users/_messages.json.jbuilder +0 -0
- data/app/views/incline/users/disable_confirm.html.erb +0 -0
- data/app/views/incline/users/edit.html.erb +0 -0
- data/app/views/incline/users/index.html.erb +0 -0
- data/app/views/incline/users/index.json.jbuilder +0 -0
- data/app/views/incline/users/new.html.erb +0 -0
- data/app/views/incline/users/show.html.erb +0 -0
- data/app/views/incline/users/show.json.jbuilder +0 -0
- data/app/views/incline/welcome/home.html.erb +0 -0
- data/app/views/layouts/application.html.erb +0 -0
- data/app/views/layouts/incline/_account_menu.html.erb +0 -0
- data/app/views/layouts/incline/_app_menu_anon.html.erb +0 -0
- data/app/views/layouts/incline/_app_menu_authenticated.html.erb +0 -0
- data/app/views/layouts/incline/_footer.html.erb +0 -0
- data/app/views/layouts/incline/_header.html.erb +0 -0
- data/app/views/layouts/incline/_html_mailer.html.erb +0 -0
- data/app/views/layouts/incline/_incline_app.html.erb +0 -0
- data/app/views/layouts/incline/_messages.html.erb +0 -0
- data/app/views/layouts/incline/_shim.html.erb +0 -0
- data/app/views/layouts/incline/_text_mailer.text.erb +0 -0
- data/app/views/layouts/incline/application.html.erb +0 -0
- data/app/views/layouts/mailer.html.erb +0 -0
- data/app/views/layouts/mailer.text.erb +0 -0
- data/bin/rails +0 -0
- data/bin/test_scaffold.sh +0 -0
- data/config/routes.rb +0 -0
- data/db/migrate/20170511230126_create_incline_users.rb +0 -0
- data/db/migrate/20170515003052_create_incline_access_groups.rb +0 -0
- data/db/migrate/20170515003221_create_incline_user_login_histories.rb +0 -0
- data/db/migrate/20170515150908_create_incline_access_group_user_members.rb +0 -0
- data/db/migrate/20170515151058_create_incline_access_group_group_members.rb +0 -0
- data/db/migrate/20170517193432_add_comments_to_incline_user.rb +0 -0
- data/db/migrate/20170622132700_create_incline_action_securities.rb +0 -0
- data/db/migrate/20170622172712_create_incline_action_groups.rb +0 -0
- data/db/migrate/20170622195742_add_non_standard_to_action_security.rb +0 -0
- data/db/migrate/20170622230422_add_visible_to_action_security.rb +0 -0
- data/db/seeds.rb +0 -0
- data/exe/incline +0 -0
- data/exe/new_incline_app +0 -0
- data/lib/generators/incline/install_generator.rb +0 -0
- data/lib/generators/incline/templates/_app_menu_anon.html.erb +0 -0
- data/lib/generators/incline/templates/_app_menu_authenticated.html.erb +0 -0
- data/lib/generators/incline/templates/incline_application.css +0 -0
- data/lib/generators/incline/templates/incline_application.html.erb +0 -0
- data/lib/generators/incline/templates/incline_application.js +0 -0
- data/lib/generators/incline/templates/incline_database.yml +0 -0
- data/lib/generators/incline/templates/incline_email.yml +0 -0
- data/lib/generators/incline/templates/incline_mailer.html.erb +0 -0
- data/lib/generators/incline/templates/incline_mailer.text.erb +0 -0
- data/lib/generators/incline/templates/incline_users.yml +0 -0
- data/lib/generators/incline/templates/incline_version.rb +0 -0
- data/lib/incline.rb +0 -0
- data/lib/incline/auth_engine_base.rb +0 -0
- data/lib/incline/bit_enum.rb +4 -4
- data/lib/incline/cli.rb +0 -0
- data/lib/incline/cli/errors.rb +0 -0
- data/lib/incline/cli/helpers/yaml.rb +0 -0
- data/lib/incline/cli/prepare.rb +0 -0
- data/lib/incline/cli/prepare/add_deploy_user.rb +0 -0
- data/lib/incline/cli/prepare/config_passenger.rb +0 -0
- data/lib/incline/cli/prepare/config_ssh.rb +0 -0
- data/lib/incline/cli/prepare/create_nginx_utils.rb +0 -0
- data/lib/incline/cli/prepare/extend_shell.rb +0 -0
- data/lib/incline/cli/prepare/install_db.rb +0 -0
- data/lib/incline/cli/prepare/install_flytrap.rb +0 -0
- data/lib/incline/cli/prepare/install_passenger.rb +0 -0
- data/lib/incline/cli/prepare/install_prereqs.rb +0 -0
- data/lib/incline/cli/prepare/install_rails.rb +0 -0
- data/lib/incline/cli/prepare/install_rbenv.rb +0 -0
- data/lib/incline/cli/prepare/install_ruby.rb +0 -0
- data/lib/incline/cli/prepare/restart_nginx.rb +0 -0
- data/lib/incline/cli/prepare/ssh_copy_id.rb +0 -0
- data/lib/incline/cli/prepare/update_system.rb +0 -0
- data/lib/incline/cli/usage.rb +1 -1
- data/lib/incline/cli/version.rb +0 -0
- data/lib/incline/constant_enum.rb +0 -0
- data/lib/incline/data_tables_request.rb +10 -1
- data/lib/incline/date_time_formats.rb +0 -0
- data/lib/incline/engine.rb +0 -0
- data/lib/incline/errors.rb +0 -0
- data/lib/incline/extensions/action_controller_base.rb +0 -0
- data/lib/incline/extensions/action_mailer_base.rb +0 -0
- data/lib/incline/extensions/action_view_base.rb +0 -0
- data/lib/incline/extensions/active_record_base.rb +0 -0
- data/lib/incline/extensions/application.rb +7 -2
- data/lib/incline/extensions/application_configuration.rb +0 -0
- data/lib/incline/extensions/connection_adapter.rb +0 -0
- data/lib/incline/extensions/current_request.rb +0 -0
- data/lib/incline/extensions/date_time_value.rb +0 -0
- data/lib/incline/extensions/date_value.rb +0 -0
- data/lib/incline/extensions/decimal_value.rb +0 -0
- data/lib/incline/extensions/erb_scaffold_generator.rb +0 -0
- data/lib/incline/extensions/float_value.rb +0 -0
- data/lib/incline/extensions/form_builder.rb +0 -0
- data/lib/incline/extensions/integer_value.rb +0 -0
- data/lib/incline/extensions/jbuilder_generator.rb +0 -0
- data/lib/incline/extensions/jbuilder_template.rb +0 -0
- data/lib/incline/extensions/main_app.rb +0 -0
- data/lib/incline/extensions/numeric.rb +0 -0
- data/lib/incline/extensions/object.rb +0 -0
- data/lib/incline/extensions/param_propagation.rb +6 -10
- data/lib/incline/extensions/resource_route_generator.rb +0 -0
- data/lib/incline/extensions/session.rb +0 -0
- data/lib/incline/extensions/string.rb +0 -0
- data/lib/incline/extensions/test_case.rb +0 -0
- data/lib/incline/extensions/time_zone_converter.rb +0 -0
- data/lib/incline/global_status.rb +0 -0
- data/lib/incline/helpers/route_hash_formatter.rb +0 -0
- data/lib/incline/json_log_formatter.rb +0 -0
- data/lib/incline/json_logger.rb +0 -0
- data/lib/incline/log.rb +0 -0
- data/lib/incline/number_formats.rb +0 -0
- data/lib/incline/recaptcha.rb +0 -0
- data/lib/incline/user_manager.rb +0 -0
- data/lib/incline/validators/email_validator.rb +0 -0
- data/lib/incline/validators/ip_address_validator.rb +0 -0
- data/lib/incline/validators/recaptcha_validator.rb +0 -0
- data/lib/incline/validators/safe_name_validator.rb +0 -0
- data/lib/incline/version.rb +3 -3
- data/lib/incline/work_path.rb +2 -1
- data/lib/tasks/incline_tasks.rake +0 -0
- data/lib/templates/erb/scaffold/_form.html.erb +0 -0
- data/lib/templates/erb/scaffold/_list.html.erb +0 -0
- data/lib/templates/erb/scaffold/edit.html.erb +0 -0
- data/lib/templates/erb/scaffold/index.html.erb +0 -0
- data/lib/templates/erb/scaffold/new.html.erb +0 -0
- data/lib/templates/erb/scaffold/show.html.erb +0 -0
- data/lib/templates/jbuilder/scaffold/_details.json.jbuilder +0 -0
- data/lib/templates/jbuilder/scaffold/index.json.jbuilder +0 -0
- data/lib/templates/jbuilder/scaffold/show.json.jbuilder +0 -0
- data/lib/templates/rails/scaffold_controller/controller.rb +0 -0
- data/lib/templates/test_unit/scaffold/functional_test.rb +0 -0
- data/test/cli/yaml_contents_test.rb +0 -0
- data/test/controllers/incline/access_groups_controller_test.rb +0 -0
- data/test/controllers/incline/access_test_controller_test.rb +0 -0
- data/test/controllers/incline/contact_controller_test.rb +0 -0
- data/test/controllers/incline/security_controller_test.rb +0 -0
- data/test/controllers/incline/welcome_controller_test.rb +0 -0
- data/test/dummy/README.rdoc +0 -0
- data/test/dummy/Rakefile +0 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +0 -0
- data/test/dummy/app/controllers/application_controller.rb +0 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/controllers/dummy_controller.rb +0 -0
- data/test/dummy/app/helpers/application_helper.rb +0 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/dummy/hello.html.erb +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +0 -0
- data/test/dummy/app/views/layouts/incline/_app_menu_anon.html.erb +0 -0
- data/test/dummy/app/views/layouts/incline/_app_menu_authenticated.html.erb +0 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +0 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +0 -0
- data/test/dummy/bin/bundle +0 -0
- data/test/dummy/bin/rails +0 -0
- data/test/dummy/bin/rake +0 -0
- data/test/dummy/bin/setup +0 -0
- data/test/dummy/config.ru +0 -0
- data/test/dummy/config/application.rb +0 -0
- data/test/dummy/config/boot.rb +0 -0
- data/test/dummy/config/database.yml +0 -0
- data/test/dummy/config/email.yml +0 -0
- data/test/dummy/config/environment.rb +0 -0
- data/test/dummy/config/environments/development.rb +0 -0
- data/test/dummy/config/environments/production.rb +0 -0
- data/test/dummy/config/environments/test.rb +0 -0
- data/test/dummy/config/initializers/assets.rb +0 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/test/dummy/config/initializers/inflections.rb +0 -0
- data/test/dummy/config/initializers/mime_types.rb +0 -0
- data/test/dummy/config/initializers/session_store.rb +0 -0
- data/test/dummy/config/initializers/to_time_preserves_timezone.rb +0 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/test/dummy/config/locales/en.yml +0 -0
- data/test/dummy/config/routes.rb +0 -0
- data/test/dummy/db/schema.rb +108 -108
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +0 -0
- data/test/dummy/public/422.html +0 -0
- data/test/dummy/public/500.html +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/extensions/action_controller_base_extensions_test.rb +0 -0
- data/test/extensions/action_mailer_base_extensions_test.rb +0 -0
- data/test/extensions/action_view_base_extensions_test.rb +0 -0
- data/test/extensions/active_record_extensions_test.rb +0 -0
- data/test/extensions/application_configuration_extensions_test.rb +0 -0
- data/test/extensions/application_extensions_test.rb +0 -0
- data/test/extensions/connection_adapter_extensions_test.rb +0 -0
- data/test/extensions/date_time_value_extensions_test.rb +0 -0
- data/test/extensions/date_value_extensions_test.rb +0 -0
- data/test/extensions/decimal_value_extensions_test.rb +0 -0
- data/test/extensions/erb_scaffold_generator_extensions_test.rb +0 -0
- data/test/extensions/float_value_extensions_test.rb +0 -0
- data/test/extensions/form_builder_extensions_test.rb +0 -0
- data/test/extensions/integer_value_extensions_test.rb +0 -0
- data/test/extensions/jbuilder_generator_extensions_test.rb +0 -0
- data/test/extensions/jbuilder_template_extensions_test.rb +0 -0
- data/test/extensions/main_app_extensions_test.rb +0 -0
- data/test/extensions/numeric_extensions_test.rb +0 -0
- data/test/extensions/object_extensions_test.rb +0 -0
- data/test/extensions/session_extensions_test.rb +0 -0
- data/test/extensions/string_extensions_test.rb +0 -0
- data/test/extensions/test_case_extensions_test.rb +0 -0
- data/test/extensions/time_zone_converter_extensions_test.rb +0 -0
- data/test/fixtures/incline/access_group_group_members.yml +0 -0
- data/test/fixtures/incline/access_group_user_members.yml +0 -0
- data/test/fixtures/incline/access_groups.yml +0 -0
- data/test/fixtures/incline/action_groups.yml +0 -0
- data/test/fixtures/incline/action_securities.yml +0 -0
- data/test/fixtures/incline/user_login_histories.yml +0 -0
- data/test/fixtures/incline/users.yml +0 -0
- data/test/incline_test.rb +0 -0
- data/test/integration/incline/users_edit_test.rb +0 -0
- data/test/integration/incline/users_login_test.rb +0 -0
- data/test/integration/incline/users_signup_test.rb +0 -0
- data/test/integration/navigation_test.rb +0 -0
- data/test/lib/bit_enum_test.rb +0 -0
- data/test/lib/constant_enum_test.rb +0 -0
- data/test/lib/data_tables_request_test.rb +7 -7
- data/test/lib/date_time_formats_test.rb +0 -0
- data/test/lib/global_status_test.rb +0 -0
- data/test/lib/json_log_formatter_test.rb +0 -0
- data/test/lib/log_test.rb +0 -0
- data/test/lib/recaptcha_test.rb +0 -0
- data/test/lib/user_manager_test.rb +0 -0
- data/test/lib/work_path_test.rb +0 -0
- data/test/models/incline/access_group_group_member_test.rb +0 -0
- data/test/models/incline/access_group_test.rb +0 -0
- data/test/models/incline/access_group_user_member_test.rb +0 -0
- data/test/models/incline/action_group_test.rb +0 -0
- data/test/models/incline/action_security_test.rb +0 -0
- data/test/models/incline/contact_message_test.rb +0 -0
- data/test/models/incline/disable_info_test.rb +0 -0
- data/test/models/incline/password_reset_request_test.rb +0 -0
- data/test/models/incline/password_reset_test.rb +0 -0
- data/test/models/incline/user_login_history_test.rb +0 -0
- data/test/models/incline/user_test.rb +0 -0
- data/test/test_helper.rb +0 -0
- data/test/validators/email_validator_test.rb +0 -0
- data/test/validators/ip_address_validator_test.rb +0 -0
- data/test/validators/recaptcha_validator_test.rb +0 -0
- data/test/validators/safe_name_validator_test.rb +0 -0
- metadata +3 -3
data/lib/incline/cli.rb
CHANGED
File without changes
|
data/lib/incline/cli/errors.rb
CHANGED
File without changes
|
File without changes
|
data/lib/incline/cli/prepare.rb
CHANGED
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
|
data/lib/incline/cli/usage.rb
CHANGED
data/lib/incline/cli/version.rb
CHANGED
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
|
-
|
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
|
data/lib/incline/engine.rb
CHANGED
File without changes
|
data/lib/incline/errors.rb
CHANGED
File without changes
|
File without changes
|
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
|
-
|
20
|
-
|
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
|
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
|
-
|
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
|
data/lib/incline/json_logger.rb
CHANGED
File without changes
|
data/lib/incline/log.rb
CHANGED
File without changes
|
File without changes
|
data/lib/incline/recaptcha.rb
CHANGED
File without changes
|
data/lib/incline/user_manager.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/incline/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Incline
|
2
|
-
VERSION = "0.3.
|
3
|
-
end
|
1
|
+
module Incline
|
2
|
+
VERSION = "0.3.14"
|
3
|
+
end
|
data/lib/incline/work_path.rb
CHANGED
@@ -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
|
data/test/dummy/README.rdoc
CHANGED
File without changes
|
data/test/dummy/Rakefile
CHANGED
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
|
data/test/dummy/app/models/.keep
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/dummy/bin/bundle
CHANGED
File without changes
|
data/test/dummy/bin/rails
CHANGED
File without changes
|
data/test/dummy/bin/rake
CHANGED
File without changes
|
data/test/dummy/bin/setup
CHANGED
File without changes
|
data/test/dummy/config.ru
CHANGED
File without changes
|
File without changes
|
data/test/dummy/config/boot.rb
CHANGED
File without changes
|
File without changes
|
data/test/dummy/config/email.yml
CHANGED
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
|
data/test/dummy/config/routes.rb
CHANGED
File without changes
|
data/test/dummy/db/schema.rb
CHANGED
@@ -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
|