consul 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of consul might be problematic. Click here for more details.

Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/consul.gemspec +1 -1
  4. data/lib/consul/version.rb +1 -1
  5. metadata +2 -126
  6. data/spec/rails-2.3/Gemfile +0 -13
  7. data/spec/rails-2.3/Gemfile.lock +0 -65
  8. data/spec/rails-2.3/Rakefile +0 -11
  9. data/spec/rails-2.3/app_root/app +0 -1
  10. data/spec/rails-2.3/app_root/config/boot.rb +0 -128
  11. data/spec/rails-2.3/app_root/config/database.yml +0 -21
  12. data/spec/rails-2.3/app_root/config/environment.rb +0 -14
  13. data/spec/rails-2.3/app_root/config/environments/in_memory.rb +0 -0
  14. data/spec/rails-2.3/app_root/config/environments/mysql.rb +0 -0
  15. data/spec/rails-2.3/app_root/config/environments/postgresql.rb +0 -0
  16. data/spec/rails-2.3/app_root/config/environments/sqlite.rb +0 -0
  17. data/spec/rails-2.3/app_root/config/environments/sqlite3.rb +0 -0
  18. data/spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb +0 -1
  19. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
  20. data/spec/rails-2.3/app_root/config/routes.rb +0 -21
  21. data/spec/rails-2.3/app_root/db +0 -1
  22. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  23. data/spec/rails-2.3/rcov.opts +0 -2
  24. data/spec/rails-2.3/spec.opts +0 -4
  25. data/spec/rails-2.3/spec/spec_helper.rb +0 -36
  26. data/spec/rails-3.0/.rspec +0 -2
  27. data/spec/rails-3.0/Gemfile +0 -11
  28. data/spec/rails-3.0/Gemfile.lock +0 -126
  29. data/spec/rails-3.0/Rakefile +0 -11
  30. data/spec/rails-3.0/app_root/.gitignore +0 -4
  31. data/spec/rails-3.0/app_root/app +0 -1
  32. data/spec/rails-3.0/app_root/config/application.rb +0 -31
  33. data/spec/rails-3.0/app_root/config/boot.rb +0 -13
  34. data/spec/rails-3.0/app_root/config/database.yml +0 -4
  35. data/spec/rails-3.0/app_root/config/environment.rb +0 -5
  36. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
  37. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
  38. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
  39. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
  40. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
  41. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
  42. data/spec/rails-3.0/app_root/config/routes.rb +0 -3
  43. data/spec/rails-3.0/app_root/db +0 -1
  44. data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
  45. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  46. data/spec/rails-3.0/app_root/script/rails +0 -6
  47. data/spec/rails-3.0/rcov.opts +0 -2
  48. data/spec/rails-3.0/spec/spec_helper.rb +0 -23
  49. data/spec/rails-3.2/.rspec +0 -2
  50. data/spec/rails-3.2/Gemfile +0 -11
  51. data/spec/rails-3.2/Gemfile.lock +0 -135
  52. data/spec/rails-3.2/Rakefile +0 -11
  53. data/spec/rails-3.2/app_root/.gitignore +0 -4
  54. data/spec/rails-3.2/app_root/app +0 -1
  55. data/spec/rails-3.2/app_root/config/application.rb +0 -31
  56. data/spec/rails-3.2/app_root/config/boot.rb +0 -13
  57. data/spec/rails-3.2/app_root/config/database.yml +0 -4
  58. data/spec/rails-3.2/app_root/config/environment.rb +0 -5
  59. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
  60. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
  61. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
  62. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
  63. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
  64. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
  65. data/spec/rails-3.2/app_root/config/routes.rb +0 -3
  66. data/spec/rails-3.2/app_root/db +0 -1
  67. data/spec/rails-3.2/app_root/log/.gitignore +0 -1
  68. data/spec/rails-3.2/rcov.opts +0 -2
  69. data/spec/rails-3.2/spec/spec_helper.rb +0 -27
  70. data/spec/rails-4.1/.rspec +0 -2
  71. data/spec/rails-4.1/Gemfile +0 -12
  72. data/spec/rails-4.1/Gemfile.lock +0 -134
  73. data/spec/rails-4.1/Rakefile +0 -12
  74. data/spec/rails-4.1/app_root/.gitignore +0 -16
  75. data/spec/rails-4.1/app_root/app +0 -1
  76. data/spec/rails-4.1/app_root/bin/bundle +0 -3
  77. data/spec/rails-4.1/app_root/bin/rails +0 -8
  78. data/spec/rails-4.1/app_root/bin/rake +0 -8
  79. data/spec/rails-4.1/app_root/bin/spring +0 -18
  80. data/spec/rails-4.1/app_root/config/application.rb +0 -28
  81. data/spec/rails-4.1/app_root/config/boot.rb +0 -4
  82. data/spec/rails-4.1/app_root/config/database.yml +0 -4
  83. data/spec/rails-4.1/app_root/config/environment.rb +0 -5
  84. data/spec/rails-4.1/app_root/config/environments/development.rb +0 -37
  85. data/spec/rails-4.1/app_root/config/environments/production.rb +0 -83
  86. data/spec/rails-4.1/app_root/config/environments/test.rb +0 -39
  87. data/spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb +0 -7
  88. data/spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb +0 -3
  89. data/spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb +0 -4
  90. data/spec/rails-4.1/app_root/config/initializers/inflections.rb +0 -16
  91. data/spec/rails-4.1/app_root/config/initializers/mime_types.rb +0 -4
  92. data/spec/rails-4.1/app_root/config/initializers/session_store.rb +0 -3
  93. data/spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb +0 -14
  94. data/spec/rails-4.1/app_root/config/locales/en.yml +0 -23
  95. data/spec/rails-4.1/app_root/config/routes.rb +0 -3
  96. data/spec/rails-4.1/app_root/config/secrets.yml +0 -22
  97. data/spec/rails-4.1/app_root/db +0 -1
  98. data/spec/rails-4.1/log/test.log +0 -0
  99. data/spec/rails-4.1/rcov.opts +0 -2
  100. data/spec/rails-4.1/spec/spec_helper.rb +0 -30
  101. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -16
  102. data/spec/shared/app_root/app/controllers/cakes_controller.rb +0 -55
  103. data/spec/shared/app_root/app/controllers/client_notes_controller.rb +0 -13
  104. data/spec/shared/app_root/app/controllers/colors_controller.rb +0 -10
  105. data/spec/shared/app_root/app/controllers/dashboards_controller.rb +0 -20
  106. data/spec/shared/app_root/app/controllers/risks_controller.rb +0 -7
  107. data/spec/shared/app_root/app/controllers/songs_controller.rb +0 -14
  108. data/spec/shared/app_root/app/controllers/users_controller.rb +0 -13
  109. data/spec/shared/app_root/app/models/client.rb +0 -9
  110. data/spec/shared/app_root/app/models/deal.rb +0 -3
  111. data/spec/shared/app_root/app/models/deal/item.rb +0 -3
  112. data/spec/shared/app_root/app/models/note.rb +0 -7
  113. data/spec/shared/app_root/app/models/power.rb +0 -133
  114. data/spec/shared/app_root/app/models/song.rb +0 -6
  115. data/spec/shared/app_root/app/models/user.rb +0 -8
  116. data/spec/shared/app_root/db/migrate/001_create_users.rb +0 -13
  117. data/spec/shared/app_root/db/migrate/002_create_clients.rb +0 -13
  118. data/spec/shared/app_root/db/migrate/003_create_notes.rb +0 -13
  119. data/spec/shared/app_root/db/migrate/004_create_songs.rb +0 -14
  120. data/spec/shared/consul/active_record_spec.rb +0 -37
  121. data/spec/shared/consul/controllers/cakes_controller_spec.rb +0 -61
  122. data/spec/shared/consul/controllers/client_notes_controller_spec.rb +0 -25
  123. data/spec/shared/consul/controllers/colors_controller_spec.rb +0 -29
  124. data/spec/shared/consul/controllers/dashboards_controller_spec.rb +0 -26
  125. data/spec/shared/consul/controllers/risks_controller_spec.rb +0 -9
  126. data/spec/shared/consul/controllers/songs_controller_spec.rb +0 -13
  127. data/spec/shared/consul/controllers/users_controller_spec.rb +0 -25
  128. data/spec/shared/consul/power_spec.rb +0 -688
  129. data/spec/shared/consul/util_spec.rb +0 -17
@@ -1,12 +0,0 @@
1
- require 'rake'
2
- require 'rspec/core/rake_task'
3
-
4
- desc 'Default: Run all specs for a specific rails version.'
5
- task :default => :spec
6
-
7
- desc "Run all specs for a specific rails version"
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- t.pattern = defined?(SPEC) ? SPEC : ['**/*_spec.rb', '../shared/**/*_spec.rb']
10
- t.verbose = false
11
- t.rspec_opts = "-b"
12
- end
@@ -1,16 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*.log
16
- /tmp
@@ -1 +0,0 @@
1
- ../../shared/app_root/app
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
- APP_PATH = File.expand_path('../../config/application', __FILE__)
7
- require_relative '../config/boot'
8
- require 'rails/commands'
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
- require_relative '../config/boot'
7
- require 'rake'
8
- Rake.application.run
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file loads spring without using Bundler, in order to be fast
4
- # It gets overwritten when you run the `spring binstub` command
5
-
6
- unless defined?(Spring)
7
- require "rubygems"
8
- require "bundler"
9
-
10
- if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
11
- ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
12
- ENV["GEM_HOME"] = ""
13
- Gem.paths = ENV
14
-
15
- gem "spring", match[1]
16
- require "spring/binstub"
17
- end
18
- end
@@ -1,28 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # Require the gems listed in Gemfile, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(*Rails.groups)
8
-
9
- module SpecApp
10
- class Application < Rails::Application
11
- config.encoding = "utf-8"
12
-
13
- config.cache_classes = true
14
- config.whiny_nils = true
15
-
16
- config.consider_all_requests_local = true
17
- config.action_controller.perform_caching = false
18
- config.action_controller.allow_forgery_protection = false
19
-
20
- config.action_dispatch.show_exceptions = false
21
-
22
- config.action_mailer.delivery_method = :test
23
-
24
- config.active_support.deprecation = :stderr
25
-
26
- config.root = File.expand_path('../..', __FILE__)
27
- end
28
- end
@@ -1,4 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
@@ -1,4 +0,0 @@
1
- test:
2
- adapter: sqlite3
3
- database: db/consul_test.db
4
- verbosity: quiet
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,37 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations.
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = true
29
-
30
- # Adds additional error checking when serving assets at runtime.
31
- # Checks for improperly declared sprockets dependencies.
32
- # Raises helpful error messages.
33
- config.assets.raise_runtime_errors = true
34
-
35
- # Raises error for missing translations
36
- # config.action_view.raise_on_missing_translations = true
37
- end
@@ -1,83 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
24
-
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
28
-
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
31
-
32
- # Generate digests for assets URLs.
33
- config.assets.digest = true
34
-
35
- # Version of your assets, change this if you want to expire all your assets.
36
- config.assets.version = '1.0'
37
-
38
- # Specifies the header that your server uses for sending files.
39
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
-
42
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
- # config.force_ssl = true
44
-
45
- # Set to :debug to see everything in the log.
46
- config.log_level = :info
47
-
48
- # Prepend all log lines with the following tags.
49
- # config.log_tags = [ :subdomain, :uuid ]
50
-
51
- # Use a different logger for distributed setups.
52
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
-
54
- # Use a different cache store in production.
55
- # config.cache_store = :mem_cache_store
56
-
57
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
- # config.action_controller.asset_host = "http://assets.example.com"
59
-
60
- # Precompile additional assets.
61
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
- # config.assets.precompile += %w( search.js )
63
-
64
- # Ignore bad email addresses and do not raise email delivery errors.
65
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
- # config.action_mailer.raise_delivery_errors = false
67
-
68
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation cannot be found).
70
- config.i18n.fallbacks = true
71
-
72
- # Send deprecation notices to registered listeners.
73
- config.active_support.deprecation = :notify
74
-
75
- # Disable automatic flushing of the log to improve performance.
76
- # config.autoflush_log = false
77
-
78
- # Use default logging formatter so that PID and timestamp are not suppressed.
79
- config.log_formatter = ::Logger::Formatter.new
80
-
81
- # Do not dump schema after migrations.
82
- config.active_record.dump_schema_after_migration = false
83
- end
@@ -1,39 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
17
- config.static_cache_control = 'public, max-age=3600'
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Print deprecation notices to the stderr.
35
- config.active_support.deprecation = :stderr
36
-
37
- # Raises error for missing translations
38
- # config.action_view.raise_on_missing_translations = true
39
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_spec_app_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- get ':controller(/:action(/:id(.:format)))'
3
- end
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 7aa3418aec81500e8e336d984b9d438f602911ae48df0725543b9c72699a9fa84ce099b327d7db2b10f2655963f19139c9c4c86304b9342ccb9c7e389fc65b6e
15
-
16
- test:
17
- secret_key_base: 9eb558edf0b5fda539c566df1e3a5b699e7e16267167c797ce838d120a0d52c7c5672bada24457f0ed7b59786e360e2c27e9b9e021cbe98358dc72382cfcd50f
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1 +0,0 @@
1
- ../../shared/app_root/db
File without changes
@@ -1,2 +0,0 @@
1
- --exclude "spec/*,gems/*"
2
- --rails
@@ -1,30 +0,0 @@
1
- $: << File.join(File.dirname(__FILE__), "/../../lib" )
2
-
3
- ENV['RAILS_ENV'] ||= 'test'
4
- ENV['RAILS_ROOT'] = 'app_root'
5
-
6
- FileUtils.rm(Dir.glob("app_root/db/*.db"), :force => true)
7
-
8
- # Load the Rails environment and testing framework
9
- require "#{File.dirname(__FILE__)}/../app_root/config/environment"
10
- require 'rspec/rails'
11
-
12
- # DatabaseCleaner.strategy = :truncation
13
-
14
- require 'rspec_candy/helpers'
15
-
16
- # Run the migrations
17
- print "\033[30m" # dark gray text
18
- ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
19
- print "\033[0m"
20
-
21
- RSpec.configure do |config|
22
- config.use_transactional_fixtures = true
23
- config.use_instantiated_fixtures = false
24
- config.expect_with :rspec do |c|
25
- c.syntax = [:should, :expect]
26
- end
27
- config.mock_with :rspec do |c|
28
- c.syntax = [:should, :expect]
29
- end
30
- end