fixed_activeadmin_sortable_table 1.3.0
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 +7 -0
- data/.gitignore +22 -0
- data/.rspec +2 -0
- data/.rubocop.yml +15 -0
- data/.travis.yml +29 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +22 -0
- data/README.md +109 -0
- data/Rakefile +27 -0
- data/activeadmin_sortable_table.gemspec +30 -0
- data/app/assets/javascripts/activeadmin_sortable_table.js +48 -0
- data/app/assets/stylesheets/activeadmin_sortable_table.css +13 -0
- data/lib/active_admin/sortable_table.rb +43 -0
- data/lib/active_admin/sortable_table/engine.rb +9 -0
- data/lib/active_admin/sortable_table/handle_column.rb +66 -0
- data/lib/active_admin/sortable_table/version.rb +6 -0
- data/lib/activeadmin_sortable_table.rb +1 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/admin/categories.rb +13 -0
- data/spec/dummy/app/admin/dashboard.rb +32 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/active_admin.js +3 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/jquery.simulate.drag-sortable.js +235 -0
- data/spec/dummy/app/assets/stylesheets/active_admin.scss +17 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/category.rb +3 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +30 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/active_admin.rb +262 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150910072150_create_active_admin_comments.rb +19 -0
- data/spec/dummy/db/migrate/20150910072505_create_categories.rb +7 -0
- data/spec/dummy/db/schema.rb +36 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/features/drag_and_drop_spec.rb +158 -0
- data/spec/features/move_to_top_spec.rb +55 -0
- data/spec/rails_helper.rb +62 -0
- data/spec/spec_helper.rb +92 -0
- data/spec/support/wait_for_ajax.rb +20 -0
- metadata +305 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
RSpec.describe ActiveAdmin::SortableTable, 'Move to top', type: :feature, js: true do
|
|
2
|
+
before do
|
|
3
|
+
Category.create!
|
|
4
|
+
Category.create!
|
|
5
|
+
Category.create!
|
|
6
|
+
Category.create!
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def ordered_ids
|
|
10
|
+
Category.order(:number).pluck(:id)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
before do
|
|
14
|
+
expect(ordered_ids).to eq([1, 2, 3, 4])
|
|
15
|
+
|
|
16
|
+
# Initially only one element on the second page
|
|
17
|
+
visit admin_categories_path(page: 2)
|
|
18
|
+
|
|
19
|
+
expect(visible_ids).to contain_exactly(4)
|
|
20
|
+
expect(visible_numbers).to contain_exactly(4)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
it 'push element to top by clicking "move to top"' do
|
|
24
|
+
# When I push "move to top" button
|
|
25
|
+
move_to_top(4)
|
|
26
|
+
|
|
27
|
+
# The last element from the previous page should be shown
|
|
28
|
+
# save_and_open_page
|
|
29
|
+
expect(visible_ids).to contain_exactly(3)
|
|
30
|
+
|
|
31
|
+
# And when I visit previous page
|
|
32
|
+
visit admin_categories_path(page: 1)
|
|
33
|
+
|
|
34
|
+
# I should see pushed elenent on the top
|
|
35
|
+
expect(visible_ids).to eq([4, 1, 2])
|
|
36
|
+
expect(visible_numbers).to eq([1, 2, 3])
|
|
37
|
+
expect(ordered_ids).to eq([4, 1, 2, 3])
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
private
|
|
41
|
+
|
|
42
|
+
def visible_ids
|
|
43
|
+
all('.ui-sortable .col-id').map(&:text).map(&:to_i)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def visible_numbers
|
|
47
|
+
all('.ui-sortable .col-number').map(&:text).map(&:to_i)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def move_to_top(element_id)
|
|
51
|
+
within "#category_#{element_id}" do
|
|
52
|
+
first('.move_to_top').click
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
2
|
+
ENV['RAILS_ENV'] ||= 'test'
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
require File.expand_path('../dummy/config/environment', __FILE__)
|
|
6
|
+
|
|
7
|
+
require 'rspec/rails'
|
|
8
|
+
require 'capybara/rails'
|
|
9
|
+
require 'phantomjs/poltergeist'
|
|
10
|
+
require 'database_cleaner'
|
|
11
|
+
|
|
12
|
+
Capybara.javascript_driver = :poltergeist
|
|
13
|
+
|
|
14
|
+
def reload_menus!
|
|
15
|
+
ActiveAdmin.application.namespaces.each(&:reset_menu!)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def reload_routes!
|
|
19
|
+
Rails.application.reload_routes!
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Setup ActiveAdmin
|
|
23
|
+
ActiveAdmin.application.load_paths = [File.expand_path('../dummy/app/admin', __FILE__)]
|
|
24
|
+
ActiveAdmin.unload!
|
|
25
|
+
ActiveAdmin.load!
|
|
26
|
+
reload_menus!
|
|
27
|
+
reload_routes!
|
|
28
|
+
|
|
29
|
+
# Disabling authentication in specs so that we don't have to worry about
|
|
30
|
+
# it allover the place
|
|
31
|
+
ActiveAdmin.application.authentication_method = false
|
|
32
|
+
ActiveAdmin.application.current_user_method = false
|
|
33
|
+
|
|
34
|
+
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
|
|
35
|
+
|
|
36
|
+
RSpec.configure do |config|
|
|
37
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
38
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
39
|
+
|
|
40
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
|
41
|
+
# examples within a transaction, remove the following line or assign false
|
|
42
|
+
# instead of true.
|
|
43
|
+
config.use_transactional_fixtures = false
|
|
44
|
+
|
|
45
|
+
config.before(:each) do
|
|
46
|
+
DatabaseCleaner.strategy = :transaction
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
config.before(:each, js: true) do
|
|
50
|
+
DatabaseCleaner.strategy = :truncation
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
config.before(:each) do
|
|
54
|
+
DatabaseCleaner.start
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
config.after(:each) do
|
|
58
|
+
DatabaseCleaner.clean
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
config.include WaitForAjax, type: :feature
|
|
62
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
|
5
|
+
# files.
|
|
6
|
+
#
|
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
|
13
|
+
# it.
|
|
14
|
+
#
|
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
|
16
|
+
# users commonly want.
|
|
17
|
+
#
|
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
|
19
|
+
RSpec.configure do |config|
|
|
20
|
+
# rspec-expectations config goes here. You can use an alternate
|
|
21
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
|
22
|
+
# assertions if you prefer.
|
|
23
|
+
config.expect_with :rspec do |expectations|
|
|
24
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
|
25
|
+
# and `failure_message` of custom matchers include text for helper methods
|
|
26
|
+
# defined using `chain`, e.g.:
|
|
27
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
|
28
|
+
# # => "be bigger than 2 and smaller than 4"
|
|
29
|
+
# ...rather than:
|
|
30
|
+
# # => "be bigger than 2"
|
|
31
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
|
35
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
|
36
|
+
config.mock_with :rspec do |mocks|
|
|
37
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
|
38
|
+
# a real object. This is generally recommended, and will default to
|
|
39
|
+
# `true` in RSpec 4.
|
|
40
|
+
mocks.verify_partial_doubles = true
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# These two settings work together to allow you to limit a spec run
|
|
44
|
+
# to individual examples or groups you care about by tagging them with
|
|
45
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
|
46
|
+
# get run.
|
|
47
|
+
config.filter_run :focus
|
|
48
|
+
config.run_all_when_everything_filtered = true
|
|
49
|
+
|
|
50
|
+
# Allows RSpec to persist some state between runs in order to support
|
|
51
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
|
52
|
+
# you configure your source control system to ignore this file.
|
|
53
|
+
# config.example_status_persistence_file_path = "spec/examples.txt"
|
|
54
|
+
|
|
55
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
|
56
|
+
# recommended. For more details, see:
|
|
57
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
|
58
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
|
59
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
|
60
|
+
config.disable_monkey_patching!
|
|
61
|
+
|
|
62
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
|
63
|
+
# be too noisy due to issues in dependencies.
|
|
64
|
+
config.warnings = false
|
|
65
|
+
|
|
66
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
|
67
|
+
# file, and it's useful to allow more verbose output when running an
|
|
68
|
+
# individual spec file.
|
|
69
|
+
if config.files_to_run.one?
|
|
70
|
+
# Use the documentation formatter for detailed output,
|
|
71
|
+
# unless a formatter has already been configured
|
|
72
|
+
# (e.g. via a command-line flag).
|
|
73
|
+
config.default_formatter = 'doc'
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Print the 10 slowest examples and example groups at the
|
|
77
|
+
# end of the spec run, to help surface which specs are running
|
|
78
|
+
# particularly slow.
|
|
79
|
+
# config.profile_examples = 10
|
|
80
|
+
|
|
81
|
+
# Run specs in random order to surface order dependencies. If you find an
|
|
82
|
+
# order dependency and want to debug it, you can fix the order by providing
|
|
83
|
+
# the seed, which is printed after each run.
|
|
84
|
+
# --seed 1234
|
|
85
|
+
config.order = :random
|
|
86
|
+
|
|
87
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
|
88
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
|
89
|
+
# test failures related to randomization by passing the same `--seed` value
|
|
90
|
+
# as the one that triggered the failure.
|
|
91
|
+
Kernel.srand config.seed
|
|
92
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Enables ajax helpers in capybara tests
|
|
2
|
+
module WaitForAjax
|
|
3
|
+
def wait_for_ajax(count = 1)
|
|
4
|
+
page.execute_script 'window._ajaxCalls = 0, window._ajaxCompleteCounter = function() { window._ajaxCalls += 1; }'
|
|
5
|
+
page.execute_script '$(document).on("ajaxComplete", window._ajaxCompleteCounter)'
|
|
6
|
+
|
|
7
|
+
yield
|
|
8
|
+
|
|
9
|
+
Timeout.timeout(Capybara.default_max_wait_time) do
|
|
10
|
+
loop until finished_all_ajax_requests?(count)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
page.execute_script '$(document).off("ajaxComplete", window._ajaxCompleteCounter)'
|
|
14
|
+
page.execute_script 'delete window._ajaxCompleteCounter, window._ajaxCalls'
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def finished_all_ajax_requests?(count)
|
|
18
|
+
page.evaluate_script('window._ajaxCalls') == count
|
|
19
|
+
end
|
|
20
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: fixed_activeadmin_sortable_table
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.3.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Adam McCrea
|
|
8
|
+
- Jonathan Gertig
|
|
9
|
+
- Artyom Bolshakov
|
|
10
|
+
autorequire:
|
|
11
|
+
bindir: bin
|
|
12
|
+
cert_chain: []
|
|
13
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: activeadmin
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
requirements:
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 1.0.0.pre1
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 1.0.0.pre1
|
|
29
|
+
- !ruby/object:Gem::Dependency
|
|
30
|
+
name: uber
|
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - '='
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 0.0.15
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - '='
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 0.0.15
|
|
43
|
+
- !ruby/object:Gem::Dependency
|
|
44
|
+
name: rails
|
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - "~>"
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '4.2'
|
|
50
|
+
type: :development
|
|
51
|
+
prerelease: false
|
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
53
|
+
requirements:
|
|
54
|
+
- - "~>"
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '4.2'
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: capybara
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0'
|
|
64
|
+
type: :development
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - ">="
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '0'
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
72
|
+
name: rspec-rails
|
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - "~>"
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '3.3'
|
|
78
|
+
type: :development
|
|
79
|
+
prerelease: false
|
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - "~>"
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '3.3'
|
|
85
|
+
- !ruby/object:Gem::Dependency
|
|
86
|
+
name: phantomjs
|
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '0'
|
|
92
|
+
type: :development
|
|
93
|
+
prerelease: false
|
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
- - ">="
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '0'
|
|
99
|
+
- !ruby/object:Gem::Dependency
|
|
100
|
+
name: poltergeist
|
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - ">="
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: '0'
|
|
106
|
+
type: :development
|
|
107
|
+
prerelease: false
|
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
109
|
+
requirements:
|
|
110
|
+
- - ">="
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: '0'
|
|
113
|
+
- !ruby/object:Gem::Dependency
|
|
114
|
+
name: database_cleaner
|
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
|
116
|
+
requirements:
|
|
117
|
+
- - ">="
|
|
118
|
+
- !ruby/object:Gem::Version
|
|
119
|
+
version: '0'
|
|
120
|
+
type: :development
|
|
121
|
+
prerelease: false
|
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
123
|
+
requirements:
|
|
124
|
+
- - ">="
|
|
125
|
+
- !ruby/object:Gem::Version
|
|
126
|
+
version: '0'
|
|
127
|
+
- !ruby/object:Gem::Dependency
|
|
128
|
+
name: launchy
|
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
|
130
|
+
requirements:
|
|
131
|
+
- - ">="
|
|
132
|
+
- !ruby/object:Gem::Version
|
|
133
|
+
version: '0'
|
|
134
|
+
type: :development
|
|
135
|
+
prerelease: false
|
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
137
|
+
requirements:
|
|
138
|
+
- - ">="
|
|
139
|
+
- !ruby/object:Gem::Version
|
|
140
|
+
version: '0'
|
|
141
|
+
description: Drag and drop reordering interface for ActiveAdmin tables
|
|
142
|
+
email:
|
|
143
|
+
- adam@adamlogic.com
|
|
144
|
+
- jcgertig@gmail.com
|
|
145
|
+
- abolshakov@spbtv.com
|
|
146
|
+
executables: []
|
|
147
|
+
extensions: []
|
|
148
|
+
extra_rdoc_files: []
|
|
149
|
+
files:
|
|
150
|
+
- ".gitignore"
|
|
151
|
+
- ".rspec"
|
|
152
|
+
- ".rubocop.yml"
|
|
153
|
+
- ".travis.yml"
|
|
154
|
+
- CHANGELOG.md
|
|
155
|
+
- Gemfile
|
|
156
|
+
- LICENSE.txt
|
|
157
|
+
- README.md
|
|
158
|
+
- Rakefile
|
|
159
|
+
- activeadmin_sortable_table.gemspec
|
|
160
|
+
- app/assets/javascripts/activeadmin_sortable_table.js
|
|
161
|
+
- app/assets/stylesheets/activeadmin_sortable_table.css
|
|
162
|
+
- lib/active_admin/sortable_table.rb
|
|
163
|
+
- lib/active_admin/sortable_table/engine.rb
|
|
164
|
+
- lib/active_admin/sortable_table/handle_column.rb
|
|
165
|
+
- lib/active_admin/sortable_table/version.rb
|
|
166
|
+
- lib/activeadmin_sortable_table.rb
|
|
167
|
+
- spec/dummy/README.rdoc
|
|
168
|
+
- spec/dummy/Rakefile
|
|
169
|
+
- spec/dummy/app/admin/categories.rb
|
|
170
|
+
- spec/dummy/app/admin/dashboard.rb
|
|
171
|
+
- spec/dummy/app/assets/images/.keep
|
|
172
|
+
- spec/dummy/app/assets/javascripts/active_admin.js
|
|
173
|
+
- spec/dummy/app/assets/javascripts/application.js
|
|
174
|
+
- spec/dummy/app/assets/javascripts/jquery.simulate.drag-sortable.js
|
|
175
|
+
- spec/dummy/app/assets/stylesheets/active_admin.scss
|
|
176
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
|
177
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
178
|
+
- spec/dummy/app/controllers/concerns/.keep
|
|
179
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
180
|
+
- spec/dummy/app/mailers/.keep
|
|
181
|
+
- spec/dummy/app/models/.keep
|
|
182
|
+
- spec/dummy/app/models/category.rb
|
|
183
|
+
- spec/dummy/app/models/concerns/.keep
|
|
184
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
185
|
+
- spec/dummy/bin/bundle
|
|
186
|
+
- spec/dummy/bin/rails
|
|
187
|
+
- spec/dummy/bin/rake
|
|
188
|
+
- spec/dummy/bin/setup
|
|
189
|
+
- spec/dummy/config.ru
|
|
190
|
+
- spec/dummy/config/application.rb
|
|
191
|
+
- spec/dummy/config/boot.rb
|
|
192
|
+
- spec/dummy/config/database.yml
|
|
193
|
+
- spec/dummy/config/environment.rb
|
|
194
|
+
- spec/dummy/config/environments/development.rb
|
|
195
|
+
- spec/dummy/config/environments/production.rb
|
|
196
|
+
- spec/dummy/config/environments/test.rb
|
|
197
|
+
- spec/dummy/config/initializers/active_admin.rb
|
|
198
|
+
- spec/dummy/config/initializers/assets.rb
|
|
199
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
200
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
|
201
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
|
202
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
203
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
204
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
205
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
206
|
+
- spec/dummy/config/locales/en.yml
|
|
207
|
+
- spec/dummy/config/routes.rb
|
|
208
|
+
- spec/dummy/config/secrets.yml
|
|
209
|
+
- spec/dummy/db/development.sqlite3
|
|
210
|
+
- spec/dummy/db/migrate/20150910072150_create_active_admin_comments.rb
|
|
211
|
+
- spec/dummy/db/migrate/20150910072505_create_categories.rb
|
|
212
|
+
- spec/dummy/db/schema.rb
|
|
213
|
+
- spec/dummy/lib/assets/.keep
|
|
214
|
+
- spec/dummy/log/.keep
|
|
215
|
+
- spec/dummy/public/404.html
|
|
216
|
+
- spec/dummy/public/422.html
|
|
217
|
+
- spec/dummy/public/500.html
|
|
218
|
+
- spec/dummy/public/favicon.ico
|
|
219
|
+
- spec/features/drag_and_drop_spec.rb
|
|
220
|
+
- spec/features/move_to_top_spec.rb
|
|
221
|
+
- spec/rails_helper.rb
|
|
222
|
+
- spec/spec_helper.rb
|
|
223
|
+
- spec/support/wait_for_ajax.rb
|
|
224
|
+
homepage: https://github.com/bolshakov/activeadmin_sortable_table
|
|
225
|
+
licenses:
|
|
226
|
+
- MIT
|
|
227
|
+
metadata: {}
|
|
228
|
+
post_install_message:
|
|
229
|
+
rdoc_options: []
|
|
230
|
+
require_paths:
|
|
231
|
+
- lib
|
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
|
+
requirements:
|
|
234
|
+
- - ">="
|
|
235
|
+
- !ruby/object:Gem::Version
|
|
236
|
+
version: '0'
|
|
237
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
|
+
requirements:
|
|
239
|
+
- - ">="
|
|
240
|
+
- !ruby/object:Gem::Version
|
|
241
|
+
version: '0'
|
|
242
|
+
requirements: []
|
|
243
|
+
rubyforge_project:
|
|
244
|
+
rubygems_version: 2.7.6
|
|
245
|
+
signing_key:
|
|
246
|
+
specification_version: 4
|
|
247
|
+
summary: Drag and drop reordering interface for ActiveAdmin tables
|
|
248
|
+
test_files:
|
|
249
|
+
- spec/dummy/README.rdoc
|
|
250
|
+
- spec/dummy/Rakefile
|
|
251
|
+
- spec/dummy/app/admin/categories.rb
|
|
252
|
+
- spec/dummy/app/admin/dashboard.rb
|
|
253
|
+
- spec/dummy/app/assets/images/.keep
|
|
254
|
+
- spec/dummy/app/assets/javascripts/active_admin.js
|
|
255
|
+
- spec/dummy/app/assets/javascripts/application.js
|
|
256
|
+
- spec/dummy/app/assets/javascripts/jquery.simulate.drag-sortable.js
|
|
257
|
+
- spec/dummy/app/assets/stylesheets/active_admin.scss
|
|
258
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
|
259
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
260
|
+
- spec/dummy/app/controllers/concerns/.keep
|
|
261
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
262
|
+
- spec/dummy/app/mailers/.keep
|
|
263
|
+
- spec/dummy/app/models/.keep
|
|
264
|
+
- spec/dummy/app/models/category.rb
|
|
265
|
+
- spec/dummy/app/models/concerns/.keep
|
|
266
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
267
|
+
- spec/dummy/bin/bundle
|
|
268
|
+
- spec/dummy/bin/rails
|
|
269
|
+
- spec/dummy/bin/rake
|
|
270
|
+
- spec/dummy/bin/setup
|
|
271
|
+
- spec/dummy/config.ru
|
|
272
|
+
- spec/dummy/config/application.rb
|
|
273
|
+
- spec/dummy/config/boot.rb
|
|
274
|
+
- spec/dummy/config/database.yml
|
|
275
|
+
- spec/dummy/config/environment.rb
|
|
276
|
+
- spec/dummy/config/environments/development.rb
|
|
277
|
+
- spec/dummy/config/environments/production.rb
|
|
278
|
+
- spec/dummy/config/environments/test.rb
|
|
279
|
+
- spec/dummy/config/initializers/active_admin.rb
|
|
280
|
+
- spec/dummy/config/initializers/assets.rb
|
|
281
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
282
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
|
283
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
|
284
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
285
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
286
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
287
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
288
|
+
- spec/dummy/config/locales/en.yml
|
|
289
|
+
- spec/dummy/config/routes.rb
|
|
290
|
+
- spec/dummy/config/secrets.yml
|
|
291
|
+
- spec/dummy/db/development.sqlite3
|
|
292
|
+
- spec/dummy/db/migrate/20150910072150_create_active_admin_comments.rb
|
|
293
|
+
- spec/dummy/db/migrate/20150910072505_create_categories.rb
|
|
294
|
+
- spec/dummy/db/schema.rb
|
|
295
|
+
- spec/dummy/lib/assets/.keep
|
|
296
|
+
- spec/dummy/log/.keep
|
|
297
|
+
- spec/dummy/public/404.html
|
|
298
|
+
- spec/dummy/public/422.html
|
|
299
|
+
- spec/dummy/public/500.html
|
|
300
|
+
- spec/dummy/public/favicon.ico
|
|
301
|
+
- spec/features/drag_and_drop_spec.rb
|
|
302
|
+
- spec/features/move_to_top_spec.rb
|
|
303
|
+
- spec/rails_helper.rb
|
|
304
|
+
- spec/spec_helper.rb
|
|
305
|
+
- spec/support/wait_for_ajax.rb
|