easy_admin 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/app/controllers/admin/jobs_controller.rb +1 -2
  4. data/lib/easy_admin/version.rb +1 -1
  5. data/test/dummy/Rakefile +1 -1
  6. data/test/dummy/config/application.rb +1 -8
  7. data/test/dummy/config/boot.rb +1 -1
  8. data/test/dummy/config/environment.rb +1 -1
  9. data/test/dummy/config/environments/development.rb +10 -2
  10. data/test/dummy/config/environments/production.rb +6 -3
  11. data/test/dummy/config/environments/test.rb +5 -2
  12. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  13. data/test/dummy/config/initializers/mime_types.rb +0 -1
  14. data/test/dummy/config/initializers/session_store.rb +1 -1
  15. data/test/dummy/config/routes.rb +1 -2
  16. data/test/dummy/config/secrets.yml +22 -0
  17. data/test/dummy/config.ru +1 -1
  18. data/test/dummy/db/schema.rb +11 -11
  19. data/test/dummy/db/test.sqlite3 +0 -0
  20. data/test/dummy/log/test.log +72 -3116
  21. metadata +16 -32
  22. data/test/dummy/config/initializers/secret_token.rb +0 -13
  23. data/test/dummy/db/development.sqlite3 +0 -0
  24. data/test/dummy/log/development.log +0 -91
  25. data/test/dummy/tmp/cache/assets/BA7/4B0/sprockets%2Fb0b071503162261117712776b6400d95 +0 -0
  26. data/test/dummy/tmp/cache/assets/CBF/BE0/sprockets%2Fe4539515f496c9a47334a4d72952bd8c +0 -0
  27. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  28. data/test/dummy/tmp/cache/assets/D14/400/sprockets%2Fc7cf76c8a8b35297247a1d102ec9d670 +0 -0
  29. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  30. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  31. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  32. data/test/dummy/tmp/cache/assets/D95/340/sprockets%2F4db69ac4ad31b1834affc0f168807fc0 +0 -0
  33. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  34. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19c82ddfab251796d3263586838f329acd56ceca
4
- data.tar.gz: 34797c1d8ed704fc111773ff50756f71bf0ed85e
3
+ metadata.gz: 7f365005db0d7330b6548d9646f24dd794322dc3
4
+ data.tar.gz: f41bd0f5ff05619b81ec1ed59553d4c483590d8d
5
5
  SHA512:
6
- metadata.gz: 0d368dab87bb7b138ad9467ea239d7d89527495060235bfb46ed9a43054fba272b08a166e4dc68d1a52731f290f271cc2b2fd9d2443157618965373b98ab681a
7
- data.tar.gz: 9367f68def8ef7887cb1096150b3b785f8c4fd76c6e4d1b5526f7c3aae57f0be818ca4ffc55692fc91a2307434b7d92c99dff886907113170405f185e04887a0
6
+ metadata.gz: cb8e56a8cecd7c0c44a6b7ef14d36ab2e0b8a5ebf23c4c1dddd55a04648c5aba9a8374e894c20207b47d64406dc0539b730e51da806739432cda8b6036a05ebe
7
+ data.tar.gz: c39edc88de27110e511d17541575c7554d312dc4c8663f0b16db237c417acdab47fbd7ace03afae05db4709cdc2822a4b8f0b1852ff35c3d965f801cfbc13bf6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog for easy-admin
2
2
 
3
+ ## 0.4.0 (2013-12-11)
4
+
5
+ Upgrade for Rails 4.0
6
+
3
7
  ## 0.3.1 (2013-08-12)
4
8
 
5
9
  Bugfixes
@@ -18,8 +18,7 @@ class Admin::JobsController < Admin::BaseController
18
18
 
19
19
  def retry
20
20
  if @job = Delayed::Job.find_by_id(params[:id])
21
- @job.update_column(:attempts, 0)
22
- @job.update_attributes(run_at: Time.now, failed_at: nil)
21
+ @job.update_columns(attempts: 0, run_at: Time.now, failed_at: nil)
23
22
  end
24
23
  redirect_to admin_jobs_path, :notice => "Job will be retried"
25
24
  end
@@ -1,3 +1,3 @@
1
1
  module EasyAdmin
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/test/dummy/Rakefile CHANGED
@@ -4,4 +4,4 @@
4
4
 
5
5
  require File.expand_path('../config/application', __FILE__)
6
6
 
7
- Dummy::Application.load_tasks
7
+ Rails.application.load_tasks
@@ -2,10 +2,9 @@ require File.expand_path('../boot', __FILE__)
2
2
 
3
3
  require 'rails/all'
4
4
 
5
- require "easy_admin"
6
5
  # Require the gems listed in Gemfile, including any gems
7
6
  # you've limited to :test, :development, or :production.
8
- Bundler.require(:default, Rails.env)
7
+ Bundler.require(*Rails.groups)
9
8
 
10
9
  module Dummy
11
10
  class Application < Rails::Application
@@ -20,12 +19,6 @@ module Dummy
20
19
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
21
20
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
22
21
  # config.i18n.default_locale = :de
23
-
24
- # Configure the default encoding used in templates for Ruby 1.9.
25
- config.encoding = "utf-8"
26
- # Enable escaping HTML in JSON.
27
- config.active_support.escape_html_entities_in_json = true
28
-
29
22
  end
30
23
  end
31
24
 
@@ -1,4 +1,4 @@
1
1
  # Set up gems listed in the Gemfile.
2
2
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
3
 
4
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
@@ -2,4 +2,4 @@
2
2
  require File.expand_path('../application', __FILE__)
3
3
 
4
4
  # Initialize the Rails application.
5
- Dummy::Application.initialize!
5
+ Rails.application.initialize!
@@ -1,4 +1,4 @@
1
- Dummy::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # In the development environment your application's code is reloaded on
@@ -19,11 +19,19 @@ Dummy::Application.configure do
19
19
  # Print deprecation notices to the Rails logger.
20
20
  config.active_support.deprecation = :log
21
21
 
22
- # Raise an error on page load if there are pending migrations
22
+ # Raise an error on page load if there are pending migrations.
23
23
  config.active_record.migration_error = :page_load
24
24
 
25
25
  # Debug mode disables concatenation and preprocessing of assets.
26
26
  # This option may cause significant delays in view rendering with a large
27
27
  # number of complex assets.
28
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
29
37
  end
@@ -1,11 +1,11 @@
1
- Dummy::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
7
  # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both thread web servers
8
+ # your application in memory, allowing both threaded web servers
9
9
  # and those relying on copy on write to perform better.
10
10
  # Rake tasks automatically ignore this option for performance.
11
11
  config.eager_load = true
@@ -66,7 +66,7 @@ Dummy::Application.configure do
66
66
  # config.action_mailer.raise_delivery_errors = false
67
67
 
68
68
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation can not be found).
69
+ # the I18n.default_locale when a translation cannot be found).
70
70
  config.i18n.fallbacks = true
71
71
 
72
72
  # Send deprecation notices to registered listeners.
@@ -77,4 +77,7 @@ Dummy::Application.configure do
77
77
 
78
78
  # Use default logging formatter so that PID and timestamp are not suppressed.
79
79
  config.log_formatter = ::Logger::Formatter.new
80
+
81
+ # Do not dump schema after migrations.
82
+ config.active_record.dump_schema_after_migration = false
80
83
  end
@@ -1,4 +1,4 @@
1
- Dummy::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
@@ -14,7 +14,7 @@ Dummy::Application.configure do
14
14
 
15
15
  # Configure static asset server for tests with Cache-Control for performance.
16
16
  config.serve_static_assets = true
17
- config.static_cache_control = "public, max-age=3600"
17
+ config.static_cache_control = 'public, max-age=3600'
18
18
 
19
19
  # Show full error reports and disable caching.
20
20
  config.consider_all_requests_local = true
@@ -33,4 +33,7 @@ Dummy::Application.configure do
33
33
 
34
34
  # Print deprecation notices to the stderr.
35
35
  config.active_support.deprecation = :stderr
36
+
37
+ # Raises error for missing translations
38
+ # config.action_view.raise_on_missing_translations = true
36
39
  end
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -2,4 +2,3 @@
2
2
 
3
3
  # Add new mime types for use in respond_to blocks:
4
4
  # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,5 +1,4 @@
1
- Dummy::Application.routes.draw do
2
-
1
+ Rails.application.routes.draw do
3
2
  namespace :admin do
4
3
  get 'welcome' => 'welcome#index'
5
4
  end
@@ -0,0 +1,22 @@
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: d03174d2652dc40312e2cfe812d4c36fdacffe7a182c95bbdcf90b3ecb20941e15a9c688b0b2e7a77e549f8cbb4a1985b661c04728bdb938fbe9bb60dcb458b8
15
+
16
+ test:
17
+ secret_key_base: f33205116ddd188199f53bdd392f1209cd38b5773dc543f27a4d7f94f2a89e7c23d20a8df78c20146115bae7ee248a2c92df82e58d857f88d5f0cffebc80d465
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"] %>
data/test/dummy/config.ru CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
3
  require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
4
+ run Rails.application
@@ -9,13 +9,13 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20121220022003) do
14
+ ActiveRecord::Schema.define(version: 20121220022003) do
15
15
 
16
- create_table "delayed_jobs", :force => true do |t|
17
- t.integer "priority", :default => 0
18
- t.integer "attempts", :default => 0
16
+ create_table "delayed_jobs", force: true do |t|
17
+ t.integer "priority", default: 0
18
+ t.integer "attempts", default: 0
19
19
  t.text "handler"
20
20
  t.text "last_error"
21
21
  t.datetime "run_at"
@@ -23,13 +23,13 @@ ActiveRecord::Schema.define(:version => 20121220022003) do
23
23
  t.datetime "failed_at"
24
24
  t.string "locked_by"
25
25
  t.string "queue"
26
- t.datetime "created_at", :null => false
27
- t.datetime "updated_at", :null => false
26
+ t.datetime "created_at"
27
+ t.datetime "updated_at"
28
28
  end
29
29
 
30
- add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
30
+ add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority"
31
31
 
32
- create_table "outbound_requests", :force => true do |t|
32
+ create_table "outbound_requests", force: true do |t|
33
33
  t.string "service"
34
34
  t.string "action"
35
35
  t.string "identifier"
@@ -37,8 +37,8 @@ ActiveRecord::Schema.define(:version => 20121220022003) do
37
37
  t.string "response_code"
38
38
  t.text "response_body"
39
39
  t.text "error"
40
- t.datetime "created_at", :null => false
41
- t.datetime "updated_at", :null => false
40
+ t.datetime "created_at"
41
+ t.datetime "updated_at"
42
42
  end
43
43
 
44
44
  end
Binary file