| @@ -0,0 +1,8 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <Settings><!--This file was automatically generated by Ruby plugin. | |||||
| You are allowed to: | |||||
| 1. Reorder generators | |||||
| 2. Remove generators | |||||
| 3. Add installed generators | |||||
| To add new installed generators automatically delete this file and reload the project. | |||||
| --><GeneratorsGroup><Generator name="active_record:migration" /><Generator name="active_record:model" /><Generator name="active_record:observer" /><Generator name="active_record:session_migration" /><Generator name="controller" /><Generator name="erb:controller" /><Generator name="erb:mailer" /><Generator name="erb:scaffold" /><Generator name="generator" /><Generator name="helper" /><Generator name="integration_test" /><Generator name="mailer" /><Generator name="metal" /><Generator name="migration" /><Generator name="model" /><Generator name="model_subclass" /><Generator name="observer" /><Generator name="performance_test" /><Generator name="plugin" /><Generator name="resource" /><Generator name="scaffold" /><Generator name="scaffold_controller" /><Generator name="session_migration" /><Generator name="stylesheets" /><Generator name="test_unit:controller" /><Generator name="test_unit:helper" /><Generator name="test_unit:integration" /><Generator name="test_unit:mailer" /><Generator name="test_unit:model" /><Generator name="test_unit:observer" /><Generator name="test_unit:performance" /><Generator name="test_unit:plugin" /><Generator name="test_unit:scaffold" /></GeneratorsGroup></Settings> | |||||
| @@ -0,0 +1,196 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <module type="RUBY_MODULE" version="4"> | |||||
| <component name="FacetManager"> | |||||
| <facet type="RailsFacetType" name="Ruby on Rails"> | |||||
| <configuration> | |||||
| <RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_SUPPORT_REMOVED" VALUE="false" /> | |||||
| <RAILS_FACET_CONFIG_ID NAME="RAILS_TESTS_SOURCES_PATCHED" VALUE="true" /> | |||||
| <RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_APPLICATION_ROOT" VALUE="$MODULE_DIR$" /> | |||||
| </configuration> | |||||
| </facet> | |||||
| </component> | |||||
| <component name="ModuleRunConfigurationManager"> | |||||
| <configuration default="false" name="test: DocStore" type="RakeRunConfigurationType" factoryName="Rake"> | |||||
| <module name="DocStore" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs> | |||||
| <env name="RAILS_ENV" value="test" /> | |||||
| </envs> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="test" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE=":test_unit " /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="false" name="spec: DocStore" type="RakeRunConfigurationType" factoryName="Rake"> | |||||
| <module name="DocStore" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="spec" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE=":rspec " /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="false" name="Production: DocStore" type="RailsRunConfigurationType" factoryName="Rails"> | |||||
| <predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" /> | |||||
| <module name="DocStore" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="0.0.0.0" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="production" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="false" name="Development: DocStore" type="RailsRunConfigurationType" factoryName="Rails"> | |||||
| <predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" /> | |||||
| <module name="DocStore" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="0.0.0.0" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="development" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| </component> | |||||
| <component name="NewModuleRootManager"> | |||||
| <content url="file://$MODULE_DIR$"> | |||||
| <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> | |||||
| <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" /> | |||||
| <excludeFolder url="file://$MODULE_DIR$/.bundle" /> | |||||
| <excludeFolder url="file://$MODULE_DIR$/components" /> | |||||
| <excludeFolder url="file://$MODULE_DIR$/public/system" /> | |||||
| <excludeFolder url="file://$MODULE_DIR$/tmp" /> | |||||
| <excludeFolder url="file://$MODULE_DIR$/vendor/bundle" /> | |||||
| </content> | |||||
| <orderEntry type="inheritedJdk" /> | |||||
| <orderEntry type="sourceFolder" forTests="false" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="actioncable (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="actionmailer (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="actionpack (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="actionview (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="activejob (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="activemodel (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="activerecord (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="activesupport (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="arel (v7.1.4, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="bcrypt (v3.1.11, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="bundler (v1.13.6, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="byebug (v9.0.6, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="climate_control (v0.0.3, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="cocaine (v0.5.8, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="coffee-rails (v4.2.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="coffee-script (v2.4.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="coffee-script-source (v1.10.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.0.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="debug_inspector (v0.0.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="execjs (v2.7.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.14, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="globalid (v0.3.7, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="i18n (v0.7.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="jbuilder (v2.6.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="jquery-rails (v4.2.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="listen (v3.0.8, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="loofah (v2.0.3, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="mail (v2.6.4, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="method_source (v0.8.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2016.0521, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="mimemagic (v0.3.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="mini_portile2 (v2.1.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="minitest (v5.9.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.12.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="nio4r (v1.2.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.8.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="paperclip (v5.0.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="puma (v3.6.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rack (v2.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.3, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rails (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rails-dom-testing (v2.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rails-html-sanitizer (v1.0.3, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="railties (v5.0.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rake (v11.3.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.9.8, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.9.7, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="sass (v3.4.22, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="sass-rails (v5.0.6, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="spring (v2.0.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="spring-watcher-listen (v2.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="sprockets (v3.7.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="sprockets-rails (v3.2.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="sqlite3 (v1.3.12, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="thor (v0.19.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.5, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="tilt (v2.0.5, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="turbolinks (v5.0.1, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="turbolinks-source (v5.0.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="uglifier (v3.0.3, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="web-console (v3.4.0, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.6.4, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| <orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.2, RVM: ruby-2.3.1) [gem]" level="application" /> | |||||
| </component> | |||||
| <component name="RModuleSettingsStorage"> | |||||
| <LOAD_PATH number="0" /> | |||||
| <I18N_FOLDERS number="1" string0="$MODULE_DIR$/config/locales" /> | |||||
| </component> | |||||
| </module> | |||||
| @@ -0,0 +1,14 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <project version="4"> | |||||
| <component name="ProjectLevelVcsManager" settingsEditedManually="false"> | |||||
| <OptionsSetting value="true" id="Add" /> | |||||
| <OptionsSetting value="true" id="Remove" /> | |||||
| <OptionsSetting value="true" id="Checkout" /> | |||||
| <OptionsSetting value="true" id="Update" /> | |||||
| <OptionsSetting value="true" id="Status" /> | |||||
| <OptionsSetting value="true" id="Edit" /> | |||||
| <ConfirmationsSetting value="0" id="Add" /> | |||||
| <ConfirmationsSetting value="0" id="Remove" /> | |||||
| </component> | |||||
| <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.3.1" project-jdk-type="RUBY_SDK" /> | |||||
| </project> | |||||
| @@ -0,0 +1,8 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <project version="4"> | |||||
| <component name="ProjectModuleManager"> | |||||
| <modules> | |||||
| <module fileurl="file://$PROJECT_DIR$/.idea/DocStore.iml" filepath="$PROJECT_DIR$/.idea/DocStore.iml" /> | |||||
| </modules> | |||||
| </component> | |||||
| </project> | |||||
| @@ -0,0 +1,27 @@ | |||||
| <component name="ProjectRunConfigurationManager"> | |||||
| <configuration default="false" name="Development: DocStore" type="RailsRunConfigurationType" factoryName="Rails"> | |||||
| <predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" /> | |||||
| <module name="DocStore" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="0.0.0.0" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="development" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| </component> | |||||
| @@ -0,0 +1,27 @@ | |||||
| <component name="ProjectRunConfigurationManager"> | |||||
| <configuration default="false" name="Production: DocStore" type="RailsRunConfigurationType" factoryName="Rails"> | |||||
| <predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" /> | |||||
| <module name="DocStore" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="0.0.0.0" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="production" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| </component> | |||||
| @@ -0,0 +1,25 @@ | |||||
| <component name="ProjectRunConfigurationManager"> | |||||
| <configuration default="false" name="spec: DocStore" type="RakeRunConfigurationType" factoryName="Rake"> | |||||
| <module name="DocStore" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="spec" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE=":rspec " /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| </component> | |||||
| @@ -0,0 +1,27 @@ | |||||
| <component name="ProjectRunConfigurationManager"> | |||||
| <configuration default="false" name="test: DocStore" type="RakeRunConfigurationType" factoryName="Rake"> | |||||
| <module name="DocStore" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs> | |||||
| <env name="RAILS_ENV" value="test" /> | |||||
| </envs> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="test" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE=":test_unit " /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| </component> | |||||
| @@ -0,0 +1,6 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <project version="4"> | |||||
| <component name="VcsDirectoryMappings"> | |||||
| <mapping directory="$PROJECT_DIR$" vcs="Git" /> | |||||
| </component> | |||||
| </project> | |||||
| @@ -0,0 +1,394 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <project version="4"> | |||||
| <component name="ChangeListManager"> | |||||
| <list default="true" id="0a65e99e-ee67-4983-9453-e7428bf4ac85" name="Default" comment=""> | |||||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/assets/stylesheets/application.scss" afterPath="$PROJECT_DIR$/app/assets/stylesheets/application.scss" /> | |||||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/models/user.rb" afterPath="$PROJECT_DIR$/app/models/user.rb" /> | |||||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/views/layouts/application.html.erb" afterPath="$PROJECT_DIR$/app/views/layouts/application.html.erb" /> | |||||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/config/routes.rb" afterPath="$PROJECT_DIR$/config/routes.rb" /> | |||||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/db/schema.rb" afterPath="$PROJECT_DIR$/db/schema.rb" /> | |||||
| </list> | |||||
| <ignored path="DocStore.iws" /> | |||||
| <ignored path=".idea/workspace.xml" /> | |||||
| <ignored path="$PROJECT_DIR$/.bundle/" /> | |||||
| <ignored path="$PROJECT_DIR$/components/" /> | |||||
| <ignored path="$PROJECT_DIR$/public/system/" /> | |||||
| <ignored path="$PROJECT_DIR$/tmp/" /> | |||||
| <ignored path="$PROJECT_DIR$/vendor/bundle/" /> | |||||
| <ignored path=".idea/dataSources.local.xml" /> | |||||
| <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | |||||
| <option name="TRACKING_ENABLED" value="true" /> | |||||
| <option name="SHOW_DIALOG" value="false" /> | |||||
| <option name="HIGHLIGHT_CONFLICTS" value="true" /> | |||||
| <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | |||||
| <option name="LAST_RESOLUTION" value="IGNORE" /> | |||||
| </component> | |||||
| <component name="CoverageDataManager"> | |||||
| <SUITE FILE_PATH="coverage/DocStore@Development__DocStore.coverage" NAME="Development: DocStore Coverage Results" MODIFIED="1480016942997" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="DocStore" /> | |||||
| </component> | |||||
| <component name="CreatePatchCommitExecutor"> | |||||
| <option name="PATCH_PATH" value="" /> | |||||
| </component> | |||||
| <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" /> | |||||
| <component name="FavoritesManager"> | |||||
| <favorites_list name="DocStore" /> | |||||
| </component> | |||||
| <component name="FileEditorManager"> | |||||
| <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | |||||
| <file leaf-file-name="categories_controller.rb" pinned="false" current-in-tab="true"> | |||||
| <entry file="file://$PROJECT_DIR$/app/controllers/categories_controller.rb"> | |||||
| <provider selected="true" editor-type-id="text-editor"> | |||||
| <state relative-caret-position="76"> | |||||
| <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" /> | |||||
| <folding /> | |||||
| </state> | |||||
| </provider> | |||||
| </entry> | |||||
| </file> | |||||
| </leaf> | |||||
| </component> | |||||
| <component name="Git.Settings"> | |||||
| <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> | |||||
| </component> | |||||
| <component name="IdeDocumentHistory"> | |||||
| <option name="CHANGED_PATHS"> | |||||
| <list> | |||||
| <option value="$PROJECT_DIR$/app/controllers/categories_controller.rb" /> | |||||
| </list> | |||||
| </option> | |||||
| </component> | |||||
| <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" /> | |||||
| <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" /> | |||||
| <component name="JsGulpfileManager"> | |||||
| <detection-done>true</detection-done> | |||||
| <sorting>DEFINITION_ORDER</sorting> | |||||
| </component> | |||||
| <component name="LogFilters"> | |||||
| <option name="FILTER_ERRORS" value="false" /> | |||||
| <option name="FILTER_WARNINGS" value="false" /> | |||||
| <option name="FILTER_INFO" value="true" /> | |||||
| <option name="FILTER_DEBUG" value="true" /> | |||||
| <option name="CUSTOM_FILTER" /> | |||||
| </component> | |||||
| <component name="ProjectFrameBounds"> | |||||
| <option name="x" value="-1" /> | |||||
| <option name="y" value="25" /> | |||||
| <option name="width" value="1602" /> | |||||
| <option name="height" value="876" /> | |||||
| </component> | |||||
| <component name="ProjectLevelVcsManager" settingsEditedManually="false"> | |||||
| <OptionsSetting value="true" id="Add" /> | |||||
| <OptionsSetting value="true" id="Remove" /> | |||||
| <OptionsSetting value="true" id="Checkout" /> | |||||
| <OptionsSetting value="true" id="Update" /> | |||||
| <OptionsSetting value="true" id="Status" /> | |||||
| <OptionsSetting value="true" id="Edit" /> | |||||
| <ConfirmationsSetting value="0" id="Add" /> | |||||
| <ConfirmationsSetting value="0" id="Remove" /> | |||||
| </component> | |||||
| <component name="ProjectView"> | |||||
| <navigator currentView="ProjectPane" proportions="" version="1"> | |||||
| <flattenPackages /> | |||||
| <showMembers /> | |||||
| <showModules /> | |||||
| <showLibraryContents /> | |||||
| <hideEmptyPackages /> | |||||
| <abbreviatePackageNames /> | |||||
| <autoscrollToSource /> | |||||
| <autoscrollFromSource /> | |||||
| <sortByType /> | |||||
| <manualOrder /> | |||||
| <foldersAlwaysOnTop value="true" /> | |||||
| </navigator> | |||||
| <panes> | |||||
| <pane id="RailsProjectView" /> | |||||
| <pane id="Scratches" /> | |||||
| <pane id="Scope" /> | |||||
| <pane id="ProjectPane"> | |||||
| <subPane> | |||||
| <PATH> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="DocStore" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |||||
| </PATH_ELEMENT> | |||||
| </PATH> | |||||
| <PATH> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="DocStore" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |||||
| </PATH_ELEMENT> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="DocStore" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | |||||
| </PATH_ELEMENT> | |||||
| </PATH> | |||||
| <PATH> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="DocStore" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |||||
| </PATH_ELEMENT> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="DocStore" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | |||||
| </PATH_ELEMENT> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="app" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | |||||
| </PATH_ELEMENT> | |||||
| </PATH> | |||||
| <PATH> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="DocStore" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |||||
| </PATH_ELEMENT> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="DocStore" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | |||||
| </PATH_ELEMENT> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="app" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | |||||
| </PATH_ELEMENT> | |||||
| <PATH_ELEMENT> | |||||
| <option name="myItemId" value="controllers" /> | |||||
| <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> | |||||
| </PATH_ELEMENT> | |||||
| </PATH> | |||||
| </subPane> | |||||
| </pane> | |||||
| </panes> | |||||
| </component> | |||||
| <component name="PropertiesComponent"> | |||||
| <property name="last_opened_file_path" value="$PROJECT_DIR$" /> | |||||
| <property name="WebServerToolWindowFactoryState" value="false" /> | |||||
| </component> | |||||
| <component name="RunManager" selected="Rails.Development: DocStore"> | |||||
| <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber"> | |||||
| <predefined_log_file id="RUBY_CUCUMBER" enabled="true" /> | |||||
| <module name="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" /> | |||||
| <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="true" type="RailsRunConfigurationType" factoryName="Rails"> | |||||
| <predefined_log_file id="RUBY_RAILS_SERVER" enabled="true" /> | |||||
| <module name="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_ARGS" VALUE="" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="PORT" VALUE="3000" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="IP" VALUE="0.0.0.0" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="DUMMY_APP" VALUE="test/dummy" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="RAILS_SERVER_TYPE" VALUE="Default" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="ENVIRONMENT_TYPE" VALUE="development" /> | |||||
| <RAILS_SERVER_CONFIG_SETTINGS_ID NAME="LAUNCH_JS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="true" type="RakeRunConfigurationType" factoryName="Rake"> | |||||
| <module name="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" /> | |||||
| <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby"> | |||||
| <module name="" /> | |||||
| <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" /> | |||||
| <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" /> | |||||
| <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest"> | |||||
| <predefined_log_file id="RUBY_TESTUNIT" enabled="true" /> | |||||
| <module name="" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> | |||||
| <envs /> | |||||
| <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> | |||||
| <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> | |||||
| <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov"> | |||||
| <COVERAGE_PATTERN ENABLED="true"> | |||||
| <PATTERN REGEXPS="/.rvm/" INCLUDED="false" /> | |||||
| </COVERAGE_PATTERN> | |||||
| </EXTENSION> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" /> | |||||
| <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> | |||||
| <node-interpreter>project</node-interpreter> | |||||
| <node-options /> | |||||
| <gulpfile /> | |||||
| <tasks /> | |||||
| <arguments /> | |||||
| <envs /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <configuration default="true" type="js.build_tools.npm" factoryName="npm"> | |||||
| <command value="run-script" /> | |||||
| <scripts /> | |||||
| <node-interpreter value="project" /> | |||||
| <envs /> | |||||
| <method /> | |||||
| </configuration> | |||||
| <list size="4"> | |||||
| <item index="0" class="java.lang.String" itemvalue="Rake.test: DocStore" /> | |||||
| <item index="1" class="java.lang.String" itemvalue="Rake.spec: DocStore" /> | |||||
| <item index="2" class="java.lang.String" itemvalue="Rails.Production: DocStore" /> | |||||
| <item index="3" class="java.lang.String" itemvalue="Rails.Development: DocStore" /> | |||||
| </list> | |||||
| </component> | |||||
| <component name="ShelveChangesManager" show_recycled="false"> | |||||
| <option name="remove_strategy" value="false" /> | |||||
| </component> | |||||
| <component name="TaskManager"> | |||||
| <task active="true" id="Default" summary="Default task"> | |||||
| <changelist id="0a65e99e-ee67-4983-9453-e7428bf4ac85" name="Default" comment="" /> | |||||
| <created>1480016844651</created> | |||||
| <option name="number" value="Default" /> | |||||
| <option name="presentableId" value="Default" /> | |||||
| <updated>1480016844651</updated> | |||||
| <workItem from="1480016847364" duration="806000" /> | |||||
| <workItem from="1480024251762" duration="731000" /> | |||||
| </task> | |||||
| <servers /> | |||||
| </component> | |||||
| <component name="TimeTrackingManager"> | |||||
| <option name="totallyTimeSpent" value="1537000" /> | |||||
| </component> | |||||
| <component name="ToolWindowManager"> | |||||
| <frame x="-1" y="25" width="1602" height="876" extended-state="6" /> | |||||
| <editor active="false" /> | |||||
| <layout> | |||||
| <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="1.0" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | |||||
| <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> | |||||
| <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | |||||
| <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | |||||
| <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |||||
| <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | |||||
| </layout> | |||||
| </component> | |||||
| <component name="Vcs.Log.UiProperties"> | |||||
| <option name="RECENTLY_FILTERED_USER_GROUPS"> | |||||
| <collection /> | |||||
| </option> | |||||
| <option name="RECENTLY_FILTERED_BRANCH_GROUPS"> | |||||
| <collection /> | |||||
| </option> | |||||
| </component> | |||||
| <component name="VcsContentAnnotationSettings"> | |||||
| <option name="myLimit" value="2678400000" /> | |||||
| </component> | |||||
| <component name="XDebuggerManager"> | |||||
| <breakpoint-manager> | |||||
| <breakpoints> | |||||
| <line-breakpoint enabled="true" type="ruby-line"> | |||||
| <url>file://$PROJECT_DIR$/app/controllers/categories_controller.rb</url> | |||||
| <line>27</line> | |||||
| </line-breakpoint> | |||||
| </breakpoints> | |||||
| <option name="time" value="2" /> | |||||
| </breakpoint-manager> | |||||
| <watches-manager /> | |||||
| </component> | |||||
| <component name="editorHistoryManager"> | |||||
| <entry file="file://$PROJECT_DIR$/app/controllers/categories_controller.rb"> | |||||
| <provider selected="true" editor-type-id="text-editor"> | |||||
| <state relative-caret-position="76"> | |||||
| <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" /> | |||||
| <folding /> | |||||
| </state> | |||||
| </provider> | |||||
| </entry> | |||||
| </component> | |||||
| </project> | |||||
| @@ -0,0 +1,3 @@ | |||||
| # Place all the behaviors and hooks related to the matching controller here. | |||||
| # All this logic will automatically be available in application.js. | |||||
| # You can use CoffeeScript in this file: http://coffeescript.org/ | |||||
| @@ -14,6 +14,8 @@ | |||||
| *= require_self | *= require_self | ||||
| */ | */ | ||||
| body, body > p, body > ol, body > ul, body > td { margin: 8px !important } | |||||
| #columns { | #columns { | ||||
| display: flex; | display: flex; | ||||
| @@ -24,6 +26,18 @@ | |||||
| #side { | #side { | ||||
| padding: 1em 2em; | padding: 1em 2em; | ||||
| ul { | |||||
| padding: 0; | |||||
| li { | |||||
| list-style: none; | |||||
| a { | |||||
| font-size: small; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -0,0 +1,3 @@ | |||||
| // Place all the styles related to the Categories controller here. | |||||
| // They will automatically be included in application.css. | |||||
| // You can use Sass (SCSS) here: http://sass-lang.com/ | |||||
| @@ -0,0 +1,76 @@ | |||||
| class CategoriesController < ApplicationController | |||||
| before_action :set_category, only: [:show, :edit, :update, :destroy] | |||||
| # GET /categories | |||||
| # GET /categories.json | |||||
| def index | |||||
| @categories = Category.all | |||||
| end | |||||
| # GET /categories/1 | |||||
| # GET /categories/1.json | |||||
| def show | |||||
| end | |||||
| # GET /categories/new | |||||
| def new | |||||
| @category = Category.new | |||||
| @category.user = User.find(session[:user_id]) # TODO: fuer das setzen der moeglichen subcategories | |||||
| end | |||||
| # GET /categories/1/edit | |||||
| def edit | |||||
| end | |||||
| # POST /categories | |||||
| # POST /categories.json | |||||
| def create | |||||
| @category = Category.new(category_params) | |||||
| @category.user = User.find(session[:user_id]) # TODO: wird ja beim setzen der subcategories nicht in das form geschrieben! | |||||
| respond_to do |format| | |||||
| if @category.save | |||||
| format.html { redirect_to @category, notice: 'Category was successfully created.' } | |||||
| format.json { render :show, status: :created, location: @category } | |||||
| else | |||||
| format.html { render :new } | |||||
| format.json { render json: @category.errors, status: :unprocessable_entity } | |||||
| end | |||||
| end | |||||
| end | |||||
| # PATCH/PUT /categories/1 | |||||
| # PATCH/PUT /categories/1.json | |||||
| def update | |||||
| respond_to do |format| | |||||
| if @category.update(category_params) | |||||
| format.html { redirect_to @category, notice: 'Category was successfully updated.' } | |||||
| format.json { render :show, status: :ok, location: @category } | |||||
| else | |||||
| format.html { render :edit } | |||||
| format.json { render json: @category.errors, status: :unprocessable_entity } | |||||
| end | |||||
| end | |||||
| end | |||||
| # DELETE /categories/1 | |||||
| # DELETE /categories/1.json | |||||
| def destroy | |||||
| @category.destroy | |||||
| respond_to do |format| | |||||
| format.html { redirect_to categories_url, notice: 'Category was successfully destroyed.' } | |||||
| format.json { head :no_content } | |||||
| end | |||||
| end | |||||
| private | |||||
| # Use callbacks to share common setup or constraints between actions. | |||||
| def set_category | |||||
| @category = Category.find(params[:id]) | |||||
| end | |||||
| # Never trust parameters from the scary internet, only allow the white list through. | |||||
| def category_params | |||||
| params.require(:category).permit(:name, :parent_id) | |||||
| end | |||||
| end | |||||
| @@ -75,6 +75,6 @@ class DocumentsController < ApplicationController | |||||
| # Never trust parameters from the scary internet, only allow the white list through. | # Never trust parameters from the scary internet, only allow the white list through. | ||||
| def document_params | def document_params | ||||
| params.require(:document).permit(:doc) | |||||
| params.require(:document).permit(:doc, :category_id) | |||||
| end | end | ||||
| end | end | ||||
| @@ -0,0 +1,20 @@ | |||||
| module CategoriesHelper | |||||
| def category_collection_select | |||||
| cats = [] | |||||
| Category.where(user_id: @category.user_id).each do |cat| | |||||
| s = cat.name | |||||
| cat_parent = Category.find_by(id: cat.parent_id) | |||||
| while cat_parent != nil do | |||||
| s = cat_parent.name + "/" + s | |||||
| cat_parent = Category.find_by(id: cat_parent.parent_id) | |||||
| end | |||||
| cat.name = s | |||||
| cats.push cat | |||||
| end | |||||
| collection_select(:category, :parent_id, cats.sort_by(&:name), :id, :name, include_blank: true) | |||||
| end | |||||
| end | |||||
| @@ -0,0 +1,28 @@ | |||||
| class Category < ApplicationRecord | |||||
| has_many :documents | |||||
| has_many :subcategories, class_name: 'Category', foreign_key: 'parent_id', dependent: :destroy | |||||
| belongs_to :parent, class_name: 'Category', optional: true | |||||
| belongs_to :user | |||||
| before_destroy :check_for_subcategories | |||||
| def get_fqcn | |||||
| fqcn = name | |||||
| cat_parent = parent | |||||
| while cat_parent != nil do | |||||
| fqcn = cat_parent.name + "/" + fqcn | |||||
| cat_parent = cat_parent.parent | |||||
| end | |||||
| fqcn | |||||
| end | |||||
| private | |||||
| def check_for_subcategories | |||||
| unless subcategories.empty? | |||||
| errors.add(:base, 'Subcategories present') | |||||
| throw :abort | |||||
| end | |||||
| end | |||||
| end | |||||
| @@ -1,5 +1,6 @@ | |||||
| class Document < ApplicationRecord | class Document < ApplicationRecord | ||||
| belongs_to :user | belongs_to :user | ||||
| belongs_to :category | |||||
| has_and_belongs_to_many :tags | has_and_belongs_to_many :tags | ||||
| has_attached_file :doc, | has_attached_file :doc, | ||||
| @@ -2,4 +2,5 @@ class User < ApplicationRecord | |||||
| has_secure_password | has_secure_password | ||||
| has_many :documents, dependent: :destroy | has_many :documents, dependent: :destroy | ||||
| has_many :categories, dependent: :destroy | |||||
| end | end | ||||
| @@ -0,0 +1,2 @@ | |||||
| json.extract! category, :id, :name, :created_at, :updated_at | |||||
| json.url category_url(category, format: :json) | |||||
| @@ -0,0 +1,27 @@ | |||||
| <%= form_for(category) do |f| %> | |||||
| <% if category.errors.any? %> | |||||
| <div id="error_explanation"> | |||||
| <h2><%= pluralize(category.errors.count, "error") %> prohibited this category from being saved:</h2> | |||||
| <ul> | |||||
| <% category.errors.full_messages.each do |message| %> | |||||
| <li><%= message %></li> | |||||
| <% end %> | |||||
| </ul> | |||||
| </div> | |||||
| <% end %> | |||||
| <div class="field"> | |||||
| <%= f.label :name %> | |||||
| <%= f.text_field :name %> | |||||
| </div> | |||||
| <div class="field"> | |||||
| <%= f.label :category %> | |||||
| <%= category_collection_select %> | |||||
| </div> | |||||
| <div class="actions"> | |||||
| <%= f.submit %> | |||||
| </div> | |||||
| <% end %> | |||||
| @@ -0,0 +1,6 @@ | |||||
| <h1>Editing Category</h1> | |||||
| <%= render 'form', category: @category %> | |||||
| <%= link_to 'Show', @category %> | | |||||
| <%= link_to 'Back', categories_path %> | |||||
| @@ -0,0 +1,27 @@ | |||||
| <p id="notice"><%= notice %></p> | |||||
| <h1>Categories</h1> | |||||
| <table> | |||||
| <thead> | |||||
| <tr> | |||||
| <th>Name</th> | |||||
| <th colspan="3"></th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <% @categories.order(:name).each do |category| %> | |||||
| <tr> | |||||
| <td><%= category.get_fqcn %></td> | |||||
| <td><%= link_to 'Show', category %></td> | |||||
| <td><%= link_to 'Edit', edit_category_path(category) %></td> | |||||
| <td><%= link_to 'Destroy', category, method: :delete, data: { confirm: 'Are you sure?' } %></td> | |||||
| </tr> | |||||
| <% end %> | |||||
| </tbody> | |||||
| </table> | |||||
| <br> | |||||
| <%= link_to 'New Category', new_category_path %> | |||||
| @@ -0,0 +1 @@ | |||||
| json.array! @categories, partial: 'categories/category', as: :category | |||||
| @@ -0,0 +1,5 @@ | |||||
| <h1>New Category</h1> | |||||
| <%= render 'form', category: @category %> | |||||
| <%= link_to 'Back', categories_path %> | |||||
| @@ -0,0 +1,14 @@ | |||||
| <p id="notice"><%= notice %></p> | |||||
| <p> | |||||
| <strong>Name:</strong> | |||||
| <%= @category.name %> | |||||
| </p> | |||||
| <p> | |||||
| <strong>Full qualified category name:</strong> | |||||
| <%= @category.get_fqcn %> | |||||
| </p> | |||||
| <%= link_to 'Edit', edit_category_path(@category) %> | | |||||
| <%= link_to 'Back', categories_path %> | |||||
| @@ -0,0 +1 @@ | |||||
| json.partial! "categories/category", category: @category | |||||
| @@ -16,6 +16,11 @@ | |||||
| <%= f.file_field :doc %> | <%= f.file_field :doc %> | ||||
| </div> | </div> | ||||
| <div class="field"> | |||||
| <%= f.label :category %> | |||||
| <%= f.collection_select(:category_id, Category.where(user_id: session[:user_id]).sort_by(&:get_fqcn), :id, :get_fqcn) %> | |||||
| </div> | |||||
| <div class="actions"> | <div class="actions"> | ||||
| <%= f.submit %> | <%= f.submit %> | ||||
| </div> | </div> | ||||
| @@ -6,6 +6,11 @@ | |||||
| </p> | </p> | ||||
| <p> | <p> | ||||
| <strong>Category:</strong> | |||||
| <%= @document.category.get_fqcn %> | |||||
| </p> | |||||
| <p> | |||||
| <%= link_to @document.doc_file_name, @document.doc.url %> | <%= link_to @document.doc_file_name, @document.doc.url %> | ||||
| </p> | </p> | ||||
| @@ -11,7 +11,25 @@ | |||||
| <body class="<%= controller.controller_name %>"> | <body class="<%= controller.controller_name %>"> | ||||
| <div id="columns"> | <div id="columns"> | ||||
| <div id="side"> | <div id="side"> | ||||
| <ul> | |||||
| <li> | |||||
| <a href="/">Home</a> | |||||
| </li> | |||||
| </ul> | |||||
| <% if session[:user_id] %> | <% if session[:user_id] %> | ||||
| <ul> | |||||
| <li> | |||||
| <a href="/documents">Documents</a> | |||||
| </li> | |||||
| <li> | |||||
| <a href="/categories">Categories</a> | |||||
| </li> | |||||
| </ul> | |||||
| <ul> | |||||
| <li> | |||||
| <a href="documents/new">New</a> | |||||
| </li> | |||||
| </ul> | |||||
| <%= button_to 'Logout', logout_path, method: :delete %> | <%= button_to 'Logout', logout_path, method: :delete %> | ||||
| <% end %> | <% end %> | ||||
| </div> | </div> | ||||
| @@ -1,14 +1,13 @@ | |||||
| Rails.application.routes.draw do | Rails.application.routes.draw do | ||||
| resources :documents | |||||
| root 'documents#index', as: 'documents_index' | |||||
| root 'users#index', as: 'users_index' | |||||
| resources :categories | |||||
| resources :documents | |||||
| resources :users | |||||
| controller :sessions do | controller :sessions do | ||||
| get 'login' => :new | get 'login' => :new | ||||
| post 'login' => :create | post 'login' => :create | ||||
| delete 'logout' => :destroy | delete 'logout' => :destroy | ||||
| end | end | ||||
| resources :users | |||||
| # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html | |||||
| end | end | ||||
| @@ -0,0 +1,10 @@ | |||||
| class CreateCategories < ActiveRecord::Migration[5.0] | |||||
| def change | |||||
| create_table :categories do |t| | |||||
| t.string :name | |||||
| t.references :parent | |||||
| t.timestamps | |||||
| end | |||||
| end | |||||
| end | |||||
| @@ -0,0 +1,5 @@ | |||||
| class AddUserToCategory < ActiveRecord::Migration[5.0] | |||||
| def change | |||||
| add_reference :categories, :user, index: true | |||||
| end | |||||
| end | |||||
| @@ -0,0 +1,5 @@ | |||||
| class AddCategoryToDocument < ActiveRecord::Migration[5.0] | |||||
| def change | |||||
| add_reference :documents, :category, index: true | |||||
| end | |||||
| end | |||||
| @@ -10,7 +10,17 @@ | |||||
| # | # | ||||
| # It's strongly recommended that you check this file into your version control system. | # It's strongly recommended that you check this file into your version control system. | ||||
| ActiveRecord::Schema.define(version: 20161124174721) do | |||||
| ActiveRecord::Schema.define(version: 20161124223446) do | |||||
| create_table "categories", force: :cascade do |t| | |||||
| t.string "name" | |||||
| t.integer "parent_id" | |||||
| t.datetime "created_at", null: false | |||||
| t.datetime "updated_at", null: false | |||||
| t.integer "user_id" | |||||
| t.index ["parent_id"], name: "index_categories_on_parent_id" | |||||
| t.index ["user_id"], name: "index_categories_on_user_id" | |||||
| end | |||||
| create_table "documents", force: :cascade do |t| | create_table "documents", force: :cascade do |t| | ||||
| t.string "name" | t.string "name" | ||||
| @@ -22,6 +32,8 @@ ActiveRecord::Schema.define(version: 20161124174721) do | |||||
| t.datetime "doc_updated_at" | t.datetime "doc_updated_at" | ||||
| t.string "doc_fingerprint" | t.string "doc_fingerprint" | ||||
| t.integer "user_id" | t.integer "user_id" | ||||
| t.integer "category_id" | |||||
| t.index ["category_id"], name: "index_documents_on_category_id" | |||||
| t.index ["doc_fingerprint"], name: "index_documents_on_doc_fingerprint" | t.index ["doc_fingerprint"], name: "index_documents_on_doc_fingerprint" | ||||
| t.index ["user_id"], name: "index_documents_on_user_id" | t.index ["user_id"], name: "index_documents_on_user_id" | ||||
| end | end | ||||
| @@ -0,0 +1,48 @@ | |||||
| require 'test_helper' | |||||
| class CategoriesControllerTest < ActionDispatch::IntegrationTest | |||||
| setup do | |||||
| @category = categories(:one) | |||||
| end | |||||
| test "should get index" do | |||||
| get categories_url | |||||
| assert_response :success | |||||
| end | |||||
| test "should get new" do | |||||
| get new_category_url | |||||
| assert_response :success | |||||
| end | |||||
| test "should create category" do | |||||
| assert_difference('Category.count') do | |||||
| post categories_url, params: { category: { name: @category.name } } | |||||
| end | |||||
| assert_redirected_to category_url(Category.last) | |||||
| end | |||||
| test "should show category" do | |||||
| get category_url(@category) | |||||
| assert_response :success | |||||
| end | |||||
| test "should get edit" do | |||||
| get edit_category_url(@category) | |||||
| assert_response :success | |||||
| end | |||||
| test "should update category" do | |||||
| patch category_url(@category), params: { category: { name: @category.name } } | |||||
| assert_redirected_to category_url(@category) | |||||
| end | |||||
| test "should destroy category" do | |||||
| assert_difference('Category.count', -1) do | |||||
| delete category_url(@category) | |||||
| end | |||||
| assert_redirected_to categories_url | |||||
| end | |||||
| end | |||||
| @@ -0,0 +1,7 @@ | |||||
| # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | |||||
| one: | |||||
| name: MyString | |||||
| two: | |||||
| name: MyString | |||||
| @@ -0,0 +1,7 @@ | |||||
| require 'test_helper' | |||||
| class CategoryTest < ActiveSupport::TestCase | |||||
| # test "the truth" do | |||||
| # assert true | |||||
| # end | |||||
| end | |||||