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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/controllers/admin/jobs_controller.rb +1 -2
- data/lib/easy_admin/version.rb +1 -1
- data/test/dummy/Rakefile +1 -1
- data/test/dummy/config/application.rb +1 -8
- data/test/dummy/config/boot.rb +1 -1
- data/test/dummy/config/environment.rb +1 -1
- data/test/dummy/config/environments/development.rb +10 -2
- data/test/dummy/config/environments/production.rb +6 -3
- data/test/dummy/config/environments/test.rb +5 -2
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/mime_types.rb +0 -1
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/dummy/config/routes.rb +1 -2
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +1 -1
- data/test/dummy/db/schema.rb +11 -11
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +72 -3116
- metadata +16 -32
- data/test/dummy/config/initializers/secret_token.rb +0 -13
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -91
- data/test/dummy/tmp/cache/assets/BA7/4B0/sprockets%2Fb0b071503162261117712776b6400d95 +0 -0
- data/test/dummy/tmp/cache/assets/CBF/BE0/sprockets%2Fe4539515f496c9a47334a4d72952bd8c +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/D14/400/sprockets%2Fc7cf76c8a8b35297247a1d102ec9d670 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D95/340/sprockets%2F4db69ac4ad31b1834affc0f168807fc0 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f365005db0d7330b6548d9646f24dd794322dc3
|
4
|
+
data.tar.gz: f41bd0f5ff05619b81ec1ed59553d4c483590d8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb8e56a8cecd7c0c44a6b7ef14d36ab2e0b8a5ebf23c4c1dddd55a04648c5aba9a8374e894c20207b47d64406dc0539b730e51da806739432cda8b6036a05ebe
|
7
|
+
data.tar.gz: c39edc88de27110e511d17541575c7554d312dc4c8663f0b16db237c417acdab47fbd7ace03afae05db4709cdc2822a4b8f0b1852ff35c3d965f801cfbc13bf6
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
data/lib/easy_admin/version.rb
CHANGED
data/test/dummy/Rakefile
CHANGED
@@ -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(
|
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
|
|
data/test/dummy/config/boot.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
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
|
-
|
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
|
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
|
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
|
-
|
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 =
|
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
|
data/test/dummy/config/routes.rb
CHANGED
@@ -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
data/test/dummy/db/schema.rb
CHANGED
@@ -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
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20121220022003) do
|
15
15
|
|
16
|
-
create_table "delayed_jobs", :
|
17
|
-
t.integer "priority", :
|
18
|
-
t.integer "attempts", :
|
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"
|
27
|
-
t.datetime "updated_at"
|
26
|
+
t.datetime "created_at"
|
27
|
+
t.datetime "updated_at"
|
28
28
|
end
|
29
29
|
|
30
|
-
add_index "delayed_jobs", ["priority", "run_at"], :
|
30
|
+
add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority"
|
31
31
|
|
32
|
-
create_table "outbound_requests", :
|
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"
|
41
|
-
t.datetime "updated_at"
|
40
|
+
t.datetime "created_at"
|
41
|
+
t.datetime "updated_at"
|
42
42
|
end
|
43
43
|
|
44
44
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|