activeadmin 1.4.3 → 2.0.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 +4 -4
- data/CHANGELOG.md +92 -11
- data/CONTRIBUTING.md +12 -11
- data/README.md +34 -8
- data/app/assets/javascripts/active_admin/base.es6 +23 -0
- data/app/assets/javascripts/active_admin/ext/jquery-ui.es6 +7 -0
- data/app/assets/javascripts/active_admin/ext/jquery.es6 +9 -0
- data/app/assets/javascripts/active_admin/initializers/datepicker.es6 +16 -0
- data/app/assets/javascripts/active_admin/initializers/filters.es6 +45 -0
- data/app/assets/javascripts/active_admin/initializers/tabs.es6 +6 -0
- data/app/assets/javascripts/active_admin/lib/active_admin.es6 +41 -0
- data/app/assets/javascripts/active_admin/lib/batch_actions.es6 +55 -0
- data/app/assets/javascripts/active_admin/lib/checkbox-toggler.es6 +49 -0
- data/app/assets/javascripts/active_admin/lib/dropdown-menu.es6 +123 -0
- data/app/assets/javascripts/active_admin/lib/has_many.es6 +95 -0
- data/app/assets/javascripts/active_admin/lib/modal_dialog.es6 +61 -0
- data/app/assets/javascripts/active_admin/lib/per_page.es6 +47 -0
- data/app/assets/javascripts/active_admin/lib/table-checkbox-toggler.es6 +36 -0
- data/app/assets/stylesheets/active_admin/_forms.scss +2 -14
- data/app/assets/stylesheets/active_admin/components/_status_tags.scss +0 -5
- data/app/assets/stylesheets/active_admin/components/_tabs.scss +1 -1
- data/app/assets/stylesheets/active_admin/mixins/_gradients.scss +1 -1
- data/app/views/active_admin/devise/confirmations/new.html.erb +1 -1
- data/app/views/active_admin/devise/passwords/edit.html.erb +1 -1
- data/app/views/active_admin/devise/passwords/new.html.erb +1 -1
- data/app/views/active_admin/devise/registrations/new.html.erb +1 -2
- data/app/views/active_admin/devise/shared/_error_messages.html.erb +15 -0
- data/app/views/active_admin/devise/unlocks/new.html.erb +1 -1
- data/app/views/layouts/active_admin_logged_out.html.erb +1 -1
- data/config/locales/bg.yml +0 -1
- data/config/locales/he.yml +0 -1
- data/config/locales/hu.yml +4 -0
- data/config/locales/lt.yml +2 -2
- data/config/locales/uk.yml +2 -0
- data/docs/0-installation.md +2 -2
- data/docs/13-authorization-adapter.md +4 -4
- data/docs/CNAME +1 -1
- data/docs/index.html +2 -2
- data/lib/active_admin/application.rb +8 -14
- data/lib/active_admin/application_settings.rb +3 -0
- data/lib/active_admin/asset_registration.rb +0 -8
- data/lib/active_admin/base_controller/authorization.rb +2 -4
- data/lib/active_admin/base_controller.rb +6 -6
- data/lib/active_admin/batch_actions/controller.rb +1 -1
- data/lib/active_admin/batch_actions/resource_extension.rb +4 -4
- data/lib/active_admin/callbacks.rb +1 -1
- data/lib/active_admin/csv_builder.rb +1 -1
- data/lib/active_admin/dependency.rb +7 -75
- data/lib/active_admin/dsl.rb +1 -8
- data/lib/active_admin/error.rb +1 -1
- data/lib/active_admin/filters/active_filter.rb +3 -1
- data/lib/active_admin/filters/active_sidebar.rb +5 -1
- data/lib/active_admin/filters/forms.rb +2 -2
- data/lib/active_admin/filters/formtastic_addons.rb +1 -1
- data/lib/active_admin/filters/resource_extension.rb +3 -3
- data/lib/active_admin/form_builder.rb +3 -3
- data/lib/active_admin/generators/boilerplate.rb +1 -1
- data/lib/active_admin/helpers/scope_chain.rb +1 -0
- data/lib/active_admin/inputs/datepicker_input.rb +1 -1
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +2 -2
- data/lib/active_admin/menu_item.rb +1 -1
- data/lib/active_admin/namespace.rb +2 -2
- data/lib/active_admin/namespace_settings.rb +7 -4
- data/lib/active_admin/orm/active_record/comments/comment.rb +2 -2
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +10 -5
- data/lib/active_admin/orm/active_record/comments.rb +4 -4
- data/lib/active_admin/page_dsl.rb +1 -1
- data/lib/active_admin/pundit_adapter.rb +13 -4
- data/lib/active_admin/resource/action_items.rb +1 -1
- data/lib/active_admin/resource/attributes.rb +7 -4
- data/lib/active_admin/resource/menu.rb +3 -3
- data/lib/active_admin/resource/naming.rb +3 -3
- data/lib/active_admin/resource/routes.rb +9 -4
- data/lib/active_admin/resource/scopes.rb +3 -3
- data/lib/active_admin/resource/sidebars.rb +1 -1
- data/lib/active_admin/resource.rb +2 -2
- data/lib/active_admin/resource_collection.rb +2 -2
- data/lib/active_admin/resource_controller/action_builder.rb +10 -0
- data/lib/active_admin/resource_controller/resource_class_methods.rb +2 -0
- data/lib/active_admin/resource_dsl.rb +5 -3
- data/lib/active_admin/router.rb +1 -1
- data/lib/active_admin/scope.rb +4 -4
- data/lib/active_admin/settings_node.rb +1 -1
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_helpers/display_helper.rb +10 -2
- data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -0
- data/lib/active_admin/view_helpers/method_or_proc_helper.rb +2 -0
- data/lib/active_admin/view_helpers.rb +1 -1
- data/lib/active_admin/views/components/active_admin_form.rb +7 -1
- data/lib/active_admin/views/components/attributes_table.rb +3 -3
- data/lib/active_admin/views/components/paginated_collection.rb +1 -1
- data/lib/active_admin/views/components/sidebar_section.rb +0 -3
- data/lib/active_admin/views/components/status_tag.rb +1 -18
- data/lib/active_admin/views/components/table_for.rb +2 -2
- data/lib/active_admin/views/components/tabs.rb +11 -2
- data/lib/active_admin/views/footer.rb +1 -1
- data/lib/active_admin/views/index_as_table.rb +5 -4
- data/lib/active_admin/views/pages/base.rb +3 -0
- data/lib/active_admin/views.rb +1 -1
- data/lib/active_admin.rb +9 -4
- data/lib/generators/active_admin/assets/assets_generator.rb +2 -2
- data/lib/generators/active_admin/assets/templates/active_admin.js +1 -0
- data/lib/generators/active_admin/install/install_generator.rb +6 -2
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +20 -1
- data/lib/generators/active_admin/install/templates/dashboard.rb +2 -3
- data/lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb +1 -15
- data/lib/generators/active_admin/page/page_generator.rb +1 -1
- data/lib/generators/active_admin/resource/resource_generator.rb +1 -1
- data/lib/ransack_ext.rb +3 -3
- data/vendor/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
- data/vendor/assets/javascripts/jquery-ui/form.js +22 -0
- data/vendor/assets/javascripts/jquery-ui/labels.js +65 -0
- data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +274 -283
- metadata +106 -95
- data/.circleci/config.yml +0 -572
- data/.github/ISSUE_TEMPLATE.md +0 -20
- data/.gitignore +0 -16
- data/.mdlrc +0 -1
- data/.rspec +0 -1
- data/.rspec_parallel +0 -2
- data/.rubocop.yml +0 -99
- data/.simplecov +0 -9
- data/.yardopts +0 -7
- data/Gemfile +0 -30
- data/Gemfile.common +0 -26
- data/Gemfile.lock +0 -433
- data/Rakefile +0 -24
- data/activeadmin.gemspec +0 -32
- data/app/assets/javascripts/active_admin/base.js.coffee +0 -13
- data/app/assets/javascripts/active_admin/ext/jquery-ui.js.coffee +0 -6
- data/app/assets/javascripts/active_admin/ext/jquery.js.coffee +0 -7
- data/app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee +0 -11
- data/app/assets/javascripts/active_admin/initializers/datepicker.js.coffee +0 -14
- data/app/assets/javascripts/active_admin/initializers/filters.js.coffee +0 -26
- data/app/assets/javascripts/active_admin/initializers/tabs.js.coffee +0 -7
- data/app/assets/javascripts/active_admin/lib/batch_actions.js.coffee +0 -42
- data/app/assets/javascripts/active_admin/lib/checkbox-toggler.js.coffee +0 -46
- data/app/assets/javascripts/active_admin/lib/dropdown-menu.js.coffee +0 -104
- data/app/assets/javascripts/active_admin/lib/flash.js.coffee +0 -19
- data/app/assets/javascripts/active_admin/lib/has_many.js.coffee +0 -79
- data/app/assets/javascripts/active_admin/lib/modal_dialog.js.coffee +0 -45
- data/app/assets/javascripts/active_admin/lib/per_page.js.coffee +0 -46
- data/app/assets/javascripts/active_admin/lib/table-checkbox-toggler.js.coffee +0 -22
- data/bin/install_chromedriver.sh +0 -17
- data/config/i18n-tasks.yml +0 -26
- data/config/mdl_style.rb +0 -11
- data/cucumber.yml +0 -7
- data/gemfiles/rails_42.gemfile +0 -10
- data/gemfiles/rails_42.gemfile.lock +0 -339
- data/gemfiles/rails_50.gemfile +0 -10
- data/gemfiles/rails_50.gemfile.lock +0 -353
- data/gemfiles/rails_51.gemfile +0 -10
- data/gemfiles/rails_51.gemfile.lock +0 -353
- data/lib/active_admin/event.rb +0 -24
- data/lib/active_admin/helpers/output_safety_helper.rb +0 -35
- data/lib/bug_report_templates/active_admin_master.rb +0 -111
- data/lib/generators/active_admin/assets/templates/active_admin.js.coffee +0 -1
- data/tasks/application_generator.rb +0 -50
- data/tasks/docs.rake +0 -64
- data/tasks/gemfiles.rake +0 -8
- data/tasks/lint.rake +0 -110
- data/tasks/local.rake +0 -27
- data/tasks/release.rake +0 -6
- data/tasks/test.rake +0 -42
data/.yardopts
DELETED
data/Gemfile
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
|
|
3
|
-
eval_gemfile(File.expand_path("Gemfile.common", __dir__))
|
|
4
|
-
|
|
5
|
-
group :release do
|
|
6
|
-
gem 'chandler', git: 'https://github.com/deivid-rodriguez/chandler', branch: 'submit_link_references' # Github releases from changelog
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
group :lint do
|
|
10
|
-
# Code style
|
|
11
|
-
gem 'rubocop', '0.59.2'
|
|
12
|
-
gem 'rubocop-rspec', '~> 1.30'
|
|
13
|
-
gem 'mdl', '0.5.0'
|
|
14
|
-
|
|
15
|
-
# Translations
|
|
16
|
-
gem 'i18n-tasks'
|
|
17
|
-
gem 'i18n-spec'
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
group :docs do
|
|
21
|
-
gem 'yard' # Documentation generator
|
|
22
|
-
gem 'kramdown' # Markdown implementation (for yard)
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
gem "rails", "~> 5.2.1"
|
|
26
|
-
gem "devise", "~> 4.4"
|
|
27
|
-
gem "draper", "~> 3.0"
|
|
28
|
-
gem "activerecord-jdbcsqlite3-adapter", ">= 52.0", platforms: :jruby
|
|
29
|
-
|
|
30
|
-
gemspec path: "."
|
data/Gemfile.common
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Utility gems used in both development & test environments
|
|
2
|
-
gem 'rake'
|
|
3
|
-
gem 'pry' # Easily debug from your console with `binding.pry`
|
|
4
|
-
gem 'pry-byebug', platforms: :mri # Step-by-step debugging
|
|
5
|
-
|
|
6
|
-
group :test do
|
|
7
|
-
gem 'capybara', '~> 3.10'
|
|
8
|
-
|
|
9
|
-
# Optional dependencies
|
|
10
|
-
gem 'cancan'
|
|
11
|
-
gem 'pundit'
|
|
12
|
-
gem 'jruby-openssl', '~> 0.10.1', platforms: :jruby
|
|
13
|
-
|
|
14
|
-
gem 'simplecov', require: false # Test coverage generator. Go to /coverage/ after running tests
|
|
15
|
-
gem 'cucumber-rails', '~> 1.5', require: false
|
|
16
|
-
gem 'cucumber'
|
|
17
|
-
gem 'database_cleaner'
|
|
18
|
-
gem 'jasmine'
|
|
19
|
-
gem 'jasmine-core', '2.9.1' # last release with Ruby 2.2 support.
|
|
20
|
-
gem 'launchy'
|
|
21
|
-
gem 'parallel_tests', '~> 2.26'
|
|
22
|
-
gem 'rails-i18n' # Provides default i18n for many languages
|
|
23
|
-
gem 'rspec-rails'
|
|
24
|
-
gem 'sqlite3', platforms: :mri
|
|
25
|
-
gem 'selenium-webdriver'
|
|
26
|
-
end
|
data/Gemfile.lock
DELETED
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/deivid-rodriguez/chandler
|
|
3
|
-
revision: 71ca85925b54a1b1e6ba785efa450a012364efe6
|
|
4
|
-
branch: submit_link_references
|
|
5
|
-
specs:
|
|
6
|
-
chandler (0.7.0)
|
|
7
|
-
netrc
|
|
8
|
-
octokit (>= 2.2.0)
|
|
9
|
-
|
|
10
|
-
PATH
|
|
11
|
-
remote: .
|
|
12
|
-
specs:
|
|
13
|
-
activeadmin (1.4.3)
|
|
14
|
-
arbre (>= 1.1.1)
|
|
15
|
-
coffee-rails
|
|
16
|
-
formtastic (~> 3.1)
|
|
17
|
-
formtastic_i18n
|
|
18
|
-
inherited_resources (>= 1.9.0)
|
|
19
|
-
jquery-rails (>= 4.2.0)
|
|
20
|
-
kaminari (>= 0.15)
|
|
21
|
-
railties (>= 4.2, < 5.3)
|
|
22
|
-
ransack (>= 1.8.7)
|
|
23
|
-
sass (~> 3.1)
|
|
24
|
-
sprockets (< 4.1)
|
|
25
|
-
|
|
26
|
-
GEM
|
|
27
|
-
remote: https://rubygems.org/
|
|
28
|
-
specs:
|
|
29
|
-
actioncable (5.2.1.1)
|
|
30
|
-
actionpack (= 5.2.1.1)
|
|
31
|
-
nio4r (~> 2.0)
|
|
32
|
-
websocket-driver (>= 0.6.1)
|
|
33
|
-
actionmailer (5.2.1.1)
|
|
34
|
-
actionpack (= 5.2.1.1)
|
|
35
|
-
actionview (= 5.2.1.1)
|
|
36
|
-
activejob (= 5.2.1.1)
|
|
37
|
-
mail (~> 2.5, >= 2.5.4)
|
|
38
|
-
rails-dom-testing (~> 2.0)
|
|
39
|
-
actionpack (5.2.1.1)
|
|
40
|
-
actionview (= 5.2.1.1)
|
|
41
|
-
activesupport (= 5.2.1.1)
|
|
42
|
-
rack (~> 2.0)
|
|
43
|
-
rack-test (>= 0.6.3)
|
|
44
|
-
rails-dom-testing (~> 2.0)
|
|
45
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
46
|
-
actionview (5.2.1.1)
|
|
47
|
-
activesupport (= 5.2.1.1)
|
|
48
|
-
builder (~> 3.1)
|
|
49
|
-
erubi (~> 1.4)
|
|
50
|
-
rails-dom-testing (~> 2.0)
|
|
51
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
52
|
-
activejob (5.2.1.1)
|
|
53
|
-
activesupport (= 5.2.1.1)
|
|
54
|
-
globalid (>= 0.3.6)
|
|
55
|
-
activemodel (5.2.1.1)
|
|
56
|
-
activesupport (= 5.2.1.1)
|
|
57
|
-
activemodel-serializers-xml (1.0.2)
|
|
58
|
-
activemodel (> 5.x)
|
|
59
|
-
activesupport (> 5.x)
|
|
60
|
-
builder (~> 3.1)
|
|
61
|
-
activerecord (5.2.1.1)
|
|
62
|
-
activemodel (= 5.2.1.1)
|
|
63
|
-
activesupport (= 5.2.1.1)
|
|
64
|
-
arel (>= 9.0)
|
|
65
|
-
activerecord-jdbc-adapter (52.1-java)
|
|
66
|
-
activerecord (~> 5.2.0)
|
|
67
|
-
activerecord-jdbcsqlite3-adapter (52.1-java)
|
|
68
|
-
activerecord-jdbc-adapter (= 52.1)
|
|
69
|
-
jdbc-sqlite3 (~> 3.8, < 3.30)
|
|
70
|
-
activestorage (5.2.1.1)
|
|
71
|
-
actionpack (= 5.2.1.1)
|
|
72
|
-
activerecord (= 5.2.1.1)
|
|
73
|
-
marcel (~> 0.3.1)
|
|
74
|
-
activesupport (5.2.1.1)
|
|
75
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
76
|
-
i18n (>= 0.7, < 2)
|
|
77
|
-
minitest (~> 5.1)
|
|
78
|
-
tzinfo (~> 1.1)
|
|
79
|
-
addressable (2.5.2)
|
|
80
|
-
public_suffix (>= 2.0.2, < 4.0)
|
|
81
|
-
arbre (1.1.1)
|
|
82
|
-
activesupport (>= 3.0.0)
|
|
83
|
-
arel (9.0.0)
|
|
84
|
-
ast (2.4.0)
|
|
85
|
-
backports (3.11.4)
|
|
86
|
-
bcrypt (3.1.12)
|
|
87
|
-
bcrypt (3.1.12-java)
|
|
88
|
-
builder (3.2.3)
|
|
89
|
-
byebug (10.0.2)
|
|
90
|
-
cancan (1.6.10)
|
|
91
|
-
capybara (3.12.0)
|
|
92
|
-
addressable
|
|
93
|
-
mini_mime (>= 0.1.3)
|
|
94
|
-
nokogiri (~> 1.8)
|
|
95
|
-
rack (>= 1.6.0)
|
|
96
|
-
rack-test (>= 0.6.3)
|
|
97
|
-
regexp_parser (~> 1.2)
|
|
98
|
-
xpath (~> 3.2)
|
|
99
|
-
childprocess (0.9.0)
|
|
100
|
-
ffi (~> 1.0, >= 1.0.11)
|
|
101
|
-
coderay (1.1.2)
|
|
102
|
-
coffee-rails (4.2.2)
|
|
103
|
-
coffee-script (>= 2.2.0)
|
|
104
|
-
railties (>= 4.0.0)
|
|
105
|
-
coffee-script (2.4.1)
|
|
106
|
-
coffee-script-source
|
|
107
|
-
execjs
|
|
108
|
-
coffee-script-source (1.12.2)
|
|
109
|
-
concurrent-ruby (1.1.3)
|
|
110
|
-
crass (1.0.4)
|
|
111
|
-
cucumber (3.1.2)
|
|
112
|
-
builder (>= 2.1.2)
|
|
113
|
-
cucumber-core (~> 3.2.0)
|
|
114
|
-
cucumber-expressions (~> 6.0.1)
|
|
115
|
-
cucumber-wire (~> 0.0.1)
|
|
116
|
-
diff-lcs (~> 1.3)
|
|
117
|
-
gherkin (~> 5.1.0)
|
|
118
|
-
multi_json (>= 1.7.5, < 2.0)
|
|
119
|
-
multi_test (>= 0.1.2)
|
|
120
|
-
cucumber-core (3.2.1)
|
|
121
|
-
backports (>= 3.8.0)
|
|
122
|
-
cucumber-tag_expressions (~> 1.1.0)
|
|
123
|
-
gherkin (~> 5.0)
|
|
124
|
-
cucumber-expressions (6.0.1)
|
|
125
|
-
cucumber-rails (1.6.0)
|
|
126
|
-
capybara (>= 1.1.2, < 4)
|
|
127
|
-
cucumber (>= 3.0.2, < 4)
|
|
128
|
-
mime-types (>= 1.17, < 4)
|
|
129
|
-
nokogiri (~> 1.8)
|
|
130
|
-
railties (>= 4, < 6)
|
|
131
|
-
cucumber-tag_expressions (1.1.1)
|
|
132
|
-
cucumber-wire (0.0.1)
|
|
133
|
-
database_cleaner (1.7.0)
|
|
134
|
-
devise (4.5.0)
|
|
135
|
-
bcrypt (~> 3.0)
|
|
136
|
-
orm_adapter (~> 0.1)
|
|
137
|
-
railties (>= 4.1.0, < 6.0)
|
|
138
|
-
responders
|
|
139
|
-
warden (~> 1.2.3)
|
|
140
|
-
diff-lcs (1.3)
|
|
141
|
-
docile (1.3.1)
|
|
142
|
-
draper (3.0.1)
|
|
143
|
-
actionpack (~> 5.0)
|
|
144
|
-
activemodel (~> 5.0)
|
|
145
|
-
activemodel-serializers-xml (~> 1.0)
|
|
146
|
-
activesupport (~> 5.0)
|
|
147
|
-
request_store (~> 1.0)
|
|
148
|
-
erubi (1.7.1)
|
|
149
|
-
execjs (2.7.0)
|
|
150
|
-
faraday (0.15.4)
|
|
151
|
-
multipart-post (>= 1.2, < 3)
|
|
152
|
-
ffi (1.9.25)
|
|
153
|
-
ffi (1.9.25-java)
|
|
154
|
-
formtastic (3.1.5)
|
|
155
|
-
actionpack (>= 3.2.13)
|
|
156
|
-
formtastic_i18n (0.6.0)
|
|
157
|
-
gherkin (5.1.0)
|
|
158
|
-
globalid (0.4.1)
|
|
159
|
-
activesupport (>= 4.2.0)
|
|
160
|
-
has_scope (0.7.2)
|
|
161
|
-
actionpack (>= 4.1)
|
|
162
|
-
activesupport (>= 4.1)
|
|
163
|
-
highline (2.0.0)
|
|
164
|
-
i18n (1.1.1)
|
|
165
|
-
concurrent-ruby (~> 1.0)
|
|
166
|
-
i18n-spec (0.6.0)
|
|
167
|
-
iso
|
|
168
|
-
i18n-tasks (0.9.25)
|
|
169
|
-
activesupport (>= 4.0.2)
|
|
170
|
-
ast (>= 2.1.0)
|
|
171
|
-
erubi
|
|
172
|
-
highline (>= 2.0.0)
|
|
173
|
-
i18n
|
|
174
|
-
parser (>= 2.2.3.0)
|
|
175
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
176
|
-
terminal-table (>= 1.5.1)
|
|
177
|
-
inherited_resources (1.9.0)
|
|
178
|
-
actionpack (>= 4.2, < 5.3)
|
|
179
|
-
has_scope (~> 0.6)
|
|
180
|
-
railties (>= 4.2, < 5.3)
|
|
181
|
-
responders
|
|
182
|
-
iso (0.2.2)
|
|
183
|
-
i18n
|
|
184
|
-
jaro_winkler (1.5.1)
|
|
185
|
-
jaro_winkler (1.5.1-java)
|
|
186
|
-
jasmine (2.9.0)
|
|
187
|
-
jasmine-core (>= 2.9.0, < 3.0.0)
|
|
188
|
-
phantomjs
|
|
189
|
-
rack (>= 1.2.1)
|
|
190
|
-
rake
|
|
191
|
-
jasmine-core (2.9.1)
|
|
192
|
-
jdbc-sqlite3 (3.20.1)
|
|
193
|
-
jquery-rails (4.3.3)
|
|
194
|
-
rails-dom-testing (>= 1, < 3)
|
|
195
|
-
railties (>= 4.2.0)
|
|
196
|
-
thor (>= 0.14, < 2.0)
|
|
197
|
-
jruby-openssl (0.10.1-java)
|
|
198
|
-
json (2.1.0)
|
|
199
|
-
json (2.1.0-java)
|
|
200
|
-
kaminari (1.1.1)
|
|
201
|
-
activesupport (>= 4.1.0)
|
|
202
|
-
kaminari-actionview (= 1.1.1)
|
|
203
|
-
kaminari-activerecord (= 1.1.1)
|
|
204
|
-
kaminari-core (= 1.1.1)
|
|
205
|
-
kaminari-actionview (1.1.1)
|
|
206
|
-
actionview
|
|
207
|
-
kaminari-core (= 1.1.1)
|
|
208
|
-
kaminari-activerecord (1.1.1)
|
|
209
|
-
activerecord
|
|
210
|
-
kaminari-core (= 1.1.1)
|
|
211
|
-
kaminari-core (1.1.1)
|
|
212
|
-
kramdown (1.17.0)
|
|
213
|
-
launchy (2.4.3)
|
|
214
|
-
addressable (~> 2.3)
|
|
215
|
-
launchy (2.4.3-java)
|
|
216
|
-
addressable (~> 2.3)
|
|
217
|
-
spoon (~> 0.0.1)
|
|
218
|
-
loofah (2.2.3)
|
|
219
|
-
crass (~> 1.0.2)
|
|
220
|
-
nokogiri (>= 1.5.9)
|
|
221
|
-
mail (2.7.1)
|
|
222
|
-
mini_mime (>= 0.1.1)
|
|
223
|
-
marcel (0.3.3)
|
|
224
|
-
mimemagic (~> 0.3.2)
|
|
225
|
-
mdl (0.5.0)
|
|
226
|
-
kramdown (~> 1.12, >= 1.12.0)
|
|
227
|
-
mixlib-cli (~> 1.7, >= 1.7.0)
|
|
228
|
-
mixlib-config (~> 2.2, >= 2.2.1)
|
|
229
|
-
method_source (0.9.2)
|
|
230
|
-
mime-types (3.2.2)
|
|
231
|
-
mime-types-data (~> 3.2015)
|
|
232
|
-
mime-types-data (3.2018.0812)
|
|
233
|
-
mimemagic (0.3.2)
|
|
234
|
-
mini_mime (1.0.1)
|
|
235
|
-
mini_portile2 (2.3.0)
|
|
236
|
-
minitest (5.11.3)
|
|
237
|
-
mixlib-cli (1.7.0)
|
|
238
|
-
mixlib-config (2.2.13)
|
|
239
|
-
tomlrb
|
|
240
|
-
multi_json (1.13.1)
|
|
241
|
-
multi_test (0.1.2)
|
|
242
|
-
multipart-post (2.0.0)
|
|
243
|
-
netrc (0.11.0)
|
|
244
|
-
nio4r (2.3.1)
|
|
245
|
-
nio4r (2.3.1-java)
|
|
246
|
-
nokogiri (1.8.5)
|
|
247
|
-
mini_portile2 (~> 2.3.0)
|
|
248
|
-
nokogiri (1.8.5-java)
|
|
249
|
-
octokit (4.13.0)
|
|
250
|
-
sawyer (~> 0.8.0, >= 0.5.3)
|
|
251
|
-
orm_adapter (0.5.0)
|
|
252
|
-
parallel (1.12.1)
|
|
253
|
-
parallel_tests (2.26.0)
|
|
254
|
-
parallel
|
|
255
|
-
parser (2.5.1.2)
|
|
256
|
-
ast (~> 2.4.0)
|
|
257
|
-
phantomjs (2.1.1.0)
|
|
258
|
-
powerpack (0.1.2)
|
|
259
|
-
pry (0.11.3)
|
|
260
|
-
coderay (~> 1.1.0)
|
|
261
|
-
method_source (~> 0.9.0)
|
|
262
|
-
pry (0.11.3-java)
|
|
263
|
-
coderay (~> 1.1.0)
|
|
264
|
-
method_source (~> 0.9.0)
|
|
265
|
-
spoon (~> 0.0)
|
|
266
|
-
pry-byebug (3.6.0)
|
|
267
|
-
byebug (~> 10.0)
|
|
268
|
-
pry (~> 0.10)
|
|
269
|
-
public_suffix (3.0.3)
|
|
270
|
-
pundit (2.0.0)
|
|
271
|
-
activesupport (>= 3.0.0)
|
|
272
|
-
rack (2.0.6)
|
|
273
|
-
rack-test (1.1.0)
|
|
274
|
-
rack (>= 1.0, < 3)
|
|
275
|
-
rails (5.2.1.1)
|
|
276
|
-
actioncable (= 5.2.1.1)
|
|
277
|
-
actionmailer (= 5.2.1.1)
|
|
278
|
-
actionpack (= 5.2.1.1)
|
|
279
|
-
actionview (= 5.2.1.1)
|
|
280
|
-
activejob (= 5.2.1.1)
|
|
281
|
-
activemodel (= 5.2.1.1)
|
|
282
|
-
activerecord (= 5.2.1.1)
|
|
283
|
-
activestorage (= 5.2.1.1)
|
|
284
|
-
activesupport (= 5.2.1.1)
|
|
285
|
-
bundler (>= 1.3.0)
|
|
286
|
-
railties (= 5.2.1.1)
|
|
287
|
-
sprockets-rails (>= 2.0.0)
|
|
288
|
-
rails-dom-testing (2.0.3)
|
|
289
|
-
activesupport (>= 4.2.0)
|
|
290
|
-
nokogiri (>= 1.6)
|
|
291
|
-
rails-html-sanitizer (1.0.4)
|
|
292
|
-
loofah (~> 2.2, >= 2.2.2)
|
|
293
|
-
rails-i18n (5.1.1)
|
|
294
|
-
i18n (>= 0.7, < 2)
|
|
295
|
-
railties (>= 5.0, < 6)
|
|
296
|
-
railties (5.2.1.1)
|
|
297
|
-
actionpack (= 5.2.1.1)
|
|
298
|
-
activesupport (= 5.2.1.1)
|
|
299
|
-
method_source
|
|
300
|
-
rake (>= 0.8.7)
|
|
301
|
-
thor (>= 0.19.0, < 2.0)
|
|
302
|
-
rainbow (2.2.2)
|
|
303
|
-
rake
|
|
304
|
-
rake (12.3.1)
|
|
305
|
-
ransack (2.1.0)
|
|
306
|
-
actionpack (>= 5.0)
|
|
307
|
-
activerecord (>= 5.0)
|
|
308
|
-
activesupport (>= 5.0)
|
|
309
|
-
i18n
|
|
310
|
-
rb-fsevent (0.10.3)
|
|
311
|
-
rb-inotify (0.9.10)
|
|
312
|
-
ffi (>= 0.5.0, < 2)
|
|
313
|
-
regexp_parser (1.3.0)
|
|
314
|
-
request_store (1.4.1)
|
|
315
|
-
rack (>= 1.4)
|
|
316
|
-
responders (2.4.0)
|
|
317
|
-
actionpack (>= 4.2.0, < 5.3)
|
|
318
|
-
railties (>= 4.2.0, < 5.3)
|
|
319
|
-
rspec-core (3.8.0)
|
|
320
|
-
rspec-support (~> 3.8.0)
|
|
321
|
-
rspec-expectations (3.8.2)
|
|
322
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
323
|
-
rspec-support (~> 3.8.0)
|
|
324
|
-
rspec-mocks (3.8.0)
|
|
325
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
326
|
-
rspec-support (~> 3.8.0)
|
|
327
|
-
rspec-rails (3.8.0)
|
|
328
|
-
actionpack (>= 3.0)
|
|
329
|
-
activesupport (>= 3.0)
|
|
330
|
-
railties (>= 3.0)
|
|
331
|
-
rspec-core (~> 3.8.0)
|
|
332
|
-
rspec-expectations (~> 3.8.0)
|
|
333
|
-
rspec-mocks (~> 3.8.0)
|
|
334
|
-
rspec-support (~> 3.8.0)
|
|
335
|
-
rspec-support (3.8.0)
|
|
336
|
-
rubocop (0.59.2)
|
|
337
|
-
jaro_winkler (~> 1.5.1)
|
|
338
|
-
parallel (~> 1.10)
|
|
339
|
-
parser (>= 2.5, != 2.5.1.1)
|
|
340
|
-
powerpack (~> 0.1)
|
|
341
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
342
|
-
ruby-progressbar (~> 1.7)
|
|
343
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
344
|
-
rubocop-rspec (1.30.0)
|
|
345
|
-
rubocop (>= 0.58.0)
|
|
346
|
-
ruby-progressbar (1.10.0)
|
|
347
|
-
rubyzip (1.2.2)
|
|
348
|
-
sass (3.7.2)
|
|
349
|
-
sass-listen (~> 4.0.0)
|
|
350
|
-
sass-listen (4.0.0)
|
|
351
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
352
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
|
353
|
-
sawyer (0.8.1)
|
|
354
|
-
addressable (>= 2.3.5, < 2.6)
|
|
355
|
-
faraday (~> 0.8, < 1.0)
|
|
356
|
-
selenium-webdriver (3.141.0)
|
|
357
|
-
childprocess (~> 0.5)
|
|
358
|
-
rubyzip (~> 1.2, >= 1.2.2)
|
|
359
|
-
simplecov (0.16.1)
|
|
360
|
-
docile (~> 1.1)
|
|
361
|
-
json (>= 1.8, < 3)
|
|
362
|
-
simplecov-html (~> 0.10.0)
|
|
363
|
-
simplecov-html (0.10.2)
|
|
364
|
-
spoon (0.0.6)
|
|
365
|
-
ffi
|
|
366
|
-
sprockets (3.7.2)
|
|
367
|
-
concurrent-ruby (~> 1.0)
|
|
368
|
-
rack (> 1, < 3)
|
|
369
|
-
sprockets-rails (3.2.1)
|
|
370
|
-
actionpack (>= 4.0)
|
|
371
|
-
activesupport (>= 4.0)
|
|
372
|
-
sprockets (>= 3.0.0)
|
|
373
|
-
sqlite3 (1.3.13)
|
|
374
|
-
terminal-table (1.8.0)
|
|
375
|
-
unicode-display_width (~> 1.1, >= 1.1.1)
|
|
376
|
-
thor (0.20.3)
|
|
377
|
-
thread_safe (0.3.6)
|
|
378
|
-
thread_safe (0.3.6-java)
|
|
379
|
-
tomlrb (1.2.7)
|
|
380
|
-
tzinfo (1.2.5)
|
|
381
|
-
thread_safe (~> 0.1)
|
|
382
|
-
unicode-display_width (1.4.0)
|
|
383
|
-
warden (1.2.7)
|
|
384
|
-
rack (>= 1.0)
|
|
385
|
-
websocket-driver (0.7.0)
|
|
386
|
-
websocket-extensions (>= 0.1.0)
|
|
387
|
-
websocket-driver (0.7.0-java)
|
|
388
|
-
websocket-extensions (>= 0.1.0)
|
|
389
|
-
websocket-extensions (0.1.3)
|
|
390
|
-
xpath (3.2.0)
|
|
391
|
-
nokogiri (~> 1.8)
|
|
392
|
-
yard (0.9.16)
|
|
393
|
-
|
|
394
|
-
PLATFORMS
|
|
395
|
-
java
|
|
396
|
-
ruby
|
|
397
|
-
|
|
398
|
-
DEPENDENCIES
|
|
399
|
-
activeadmin!
|
|
400
|
-
activerecord-jdbcsqlite3-adapter (>= 52.0)
|
|
401
|
-
cancan
|
|
402
|
-
capybara (~> 3.10)
|
|
403
|
-
chandler!
|
|
404
|
-
cucumber
|
|
405
|
-
cucumber-rails (~> 1.5)
|
|
406
|
-
database_cleaner
|
|
407
|
-
devise (~> 4.4)
|
|
408
|
-
draper (~> 3.0)
|
|
409
|
-
i18n-spec
|
|
410
|
-
i18n-tasks
|
|
411
|
-
jasmine
|
|
412
|
-
jasmine-core (= 2.9.1)
|
|
413
|
-
jruby-openssl (~> 0.10.1)
|
|
414
|
-
kramdown
|
|
415
|
-
launchy
|
|
416
|
-
mdl (= 0.5.0)
|
|
417
|
-
parallel_tests (~> 2.26)
|
|
418
|
-
pry
|
|
419
|
-
pry-byebug
|
|
420
|
-
pundit
|
|
421
|
-
rails (~> 5.2.1)
|
|
422
|
-
rails-i18n
|
|
423
|
-
rake
|
|
424
|
-
rspec-rails
|
|
425
|
-
rubocop (= 0.59.2)
|
|
426
|
-
rubocop-rspec (~> 1.30)
|
|
427
|
-
selenium-webdriver
|
|
428
|
-
simplecov
|
|
429
|
-
sqlite3
|
|
430
|
-
yard
|
|
431
|
-
|
|
432
|
-
BUNDLED WITH
|
|
433
|
-
1.17.1
|
data/Rakefile
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
require 'bundler/gem_tasks'
|
|
2
|
-
|
|
3
|
-
import 'tasks/gemfiles.rake'
|
|
4
|
-
import 'tasks/local.rake'
|
|
5
|
-
import 'tasks/test.rake'
|
|
6
|
-
|
|
7
|
-
if ENV['BUNDLE_GEMFILE'] == File.expand_path('Gemfile')
|
|
8
|
-
import 'tasks/docs.rake'
|
|
9
|
-
import 'tasks/lint.rake'
|
|
10
|
-
import 'tasks/release.rake'
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
task default: :test
|
|
14
|
-
|
|
15
|
-
require 'jasmine'
|
|
16
|
-
load 'jasmine/tasks/jasmine.rake'
|
|
17
|
-
|
|
18
|
-
task :console do
|
|
19
|
-
require 'irb'
|
|
20
|
-
require 'irb/completion'
|
|
21
|
-
|
|
22
|
-
ARGV.clear
|
|
23
|
-
IRB.start
|
|
24
|
-
end
|
data/activeadmin.gemspec
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
require File.join(File.dirname(__FILE__), "lib", "active_admin", "version")
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |s|
|
|
4
|
-
s.name = 'activeadmin'
|
|
5
|
-
s.license = 'MIT'
|
|
6
|
-
s.version = ActiveAdmin::VERSION
|
|
7
|
-
s.homepage = 'http://activeadmin.info'
|
|
8
|
-
s.authors = ['Greg Bell']
|
|
9
|
-
s.email = ['gregdbell@gmail.com']
|
|
10
|
-
s.description = 'The administration framework for Ruby on Rails.'
|
|
11
|
-
s.summary = 'The administration framework for Ruby on Rails.'
|
|
12
|
-
|
|
13
|
-
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
14
|
-
f.match(%r{^(spec|features)/})
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
|
|
18
|
-
|
|
19
|
-
s.required_ruby_version = '>= 2.3'
|
|
20
|
-
|
|
21
|
-
s.add_dependency 'arbre', '>= 1.1.1'
|
|
22
|
-
s.add_dependency 'coffee-rails'
|
|
23
|
-
s.add_dependency 'formtastic', '~> 3.1'
|
|
24
|
-
s.add_dependency 'formtastic_i18n'
|
|
25
|
-
s.add_dependency 'inherited_resources', '>= 1.9.0'
|
|
26
|
-
s.add_dependency 'jquery-rails', '>= 4.2.0'
|
|
27
|
-
s.add_dependency 'kaminari', '>= 0.15'
|
|
28
|
-
s.add_dependency 'railties', '>= 4.2', '< 5.3'
|
|
29
|
-
s.add_dependency 'ransack', '>= 1.8.7'
|
|
30
|
-
s.add_dependency 'sass', '~> 3.1'
|
|
31
|
-
s.add_dependency 'sprockets', '< 4.1'
|
|
32
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#= require jquery3
|
|
2
|
-
#= require jquery-ui/widgets/datepicker
|
|
3
|
-
#= require jquery-ui/widgets/dialog
|
|
4
|
-
#= require jquery-ui/widgets/sortable
|
|
5
|
-
#= require jquery-ui/widgets/tabs
|
|
6
|
-
#= require jquery-ui/widget
|
|
7
|
-
#= require jquery_ujs
|
|
8
|
-
#= require_self
|
|
9
|
-
#= require_tree ./lib
|
|
10
|
-
#= require_tree ./ext
|
|
11
|
-
#= require_tree ./initializers
|
|
12
|
-
|
|
13
|
-
window.ActiveAdmin = {}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# Short-circuits `_focusTabbable` to focus on the modal itself instead of
|
|
2
|
-
# elements inside the modal. Without this, if a datepicker is the first input,
|
|
3
|
-
# it'll immediately pop up when the modal opens.
|
|
4
|
-
# See this ticket for more info: http://bugs.jqueryui.com/ticket/4731
|
|
5
|
-
$.ui.dialog.prototype._focusTabbable = ->
|
|
6
|
-
@uiDialog.focus()
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
onDOMReady = ->
|
|
2
|
-
# In order for index scopes to overflow properly onto the next line, we have
|
|
3
|
-
# to manually set its width based on the width of the batch action button.
|
|
4
|
-
if (batch_actions_selector = $('.table_tools .batch_actions_selector')).length
|
|
5
|
-
batch_actions_selector.next().css
|
|
6
|
-
width: "calc(100% - 10px - #{batch_actions_selector.outerWidth()}px)"
|
|
7
|
-
'float': 'right'
|
|
8
|
-
|
|
9
|
-
$(document).
|
|
10
|
-
ready(onDOMReady).
|
|
11
|
-
on 'page:load turbolinks:load', onDOMReady
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
onDOMReady = ->
|
|
2
|
-
$(document).on 'focus', 'input.datepicker:not(.hasDatepicker)', ->
|
|
3
|
-
input = $(@)
|
|
4
|
-
|
|
5
|
-
# Only create datepickers in compatible browsers
|
|
6
|
-
return if input[0].type is 'date'
|
|
7
|
-
|
|
8
|
-
defaults = dateFormat: 'yy-mm-dd'
|
|
9
|
-
options = input.data 'datepicker-options'
|
|
10
|
-
input.datepicker $.extend(defaults, options)
|
|
11
|
-
|
|
12
|
-
$(document).
|
|
13
|
-
ready(onDOMReady).
|
|
14
|
-
on 'page:load turbolinks:load', onDOMReady
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
onDOMReady = ->
|
|
2
|
-
# Clear Filters button
|
|
3
|
-
$('.clear_filters_btn').click (e) ->
|
|
4
|
-
params = window.location.search.slice(1).split('&')
|
|
5
|
-
regex = /^(q\[|q%5B|q%5b|page|commit)/
|
|
6
|
-
if typeof Turbolinks != 'undefined'
|
|
7
|
-
Turbolinks.visit(window.location.href.split('?')[0] + '?' + (param for param in params when not param.match(regex)).join('&'))
|
|
8
|
-
e.preventDefault()
|
|
9
|
-
else
|
|
10
|
-
window.location.search = (param for param in params when not param.match(regex)).join('&')
|
|
11
|
-
|
|
12
|
-
# Filter form: don't send any inputs that are empty
|
|
13
|
-
$('.filter_form').submit (e) ->
|
|
14
|
-
$(@).find(':input').filter(-> @value is '').prop 'disabled', true
|
|
15
|
-
if typeof Turbolinks != 'undefined'
|
|
16
|
-
Turbolinks.visit(window.location.href.split('?')[0] + '?' + $( this ).serialize())
|
|
17
|
-
e.preventDefault()
|
|
18
|
-
|
|
19
|
-
# Filter form: for filters that let you choose the query method from
|
|
20
|
-
# a dropdown, apply that choice to the filter input field.
|
|
21
|
-
$('.filter_form_field.select_and_search select').change ->
|
|
22
|
-
$(@).siblings('input').prop name: "q[#{@value}]"
|
|
23
|
-
|
|
24
|
-
$(document).
|
|
25
|
-
ready(onDOMReady).
|
|
26
|
-
on 'page:load turbolinks:load', onDOMReady
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
onDOMReady = ->
|
|
2
|
-
#
|
|
3
|
-
# Use ActiveAdmin.modal_dialog to prompt user if confirmation is required for current Batch Action
|
|
4
|
-
#
|
|
5
|
-
$('.batch_actions_selector li a').click (e)->
|
|
6
|
-
e.stopPropagation() # prevent Rails UJS click event
|
|
7
|
-
e.preventDefault()
|
|
8
|
-
if message = $(@).data 'confirm'
|
|
9
|
-
ActiveAdmin.modal_dialog message, $(@).data('inputs'), (inputs)=>
|
|
10
|
-
$(@).trigger 'confirm:complete', inputs
|
|
11
|
-
else
|
|
12
|
-
$(@).trigger 'confirm:complete'
|
|
13
|
-
|
|
14
|
-
$('.batch_actions_selector li a').on 'confirm:complete', (e, inputs)->
|
|
15
|
-
if val = JSON.stringify inputs
|
|
16
|
-
$('#batch_action_inputs').removeAttr('disabled').val val
|
|
17
|
-
else
|
|
18
|
-
$('#batch_action_inputs').attr 'disabled', 'disabled'
|
|
19
|
-
|
|
20
|
-
$('#batch_action').val $(@).data 'action'
|
|
21
|
-
$('#collection_selection').submit()
|
|
22
|
-
|
|
23
|
-
#
|
|
24
|
-
# Add checkbox selection to resource tables and lists if batch actions are enabled
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
if $(".batch_actions_selector").length && $(":checkbox.toggle_all").length
|
|
28
|
-
|
|
29
|
-
if $(".paginated_collection table.index_table").length
|
|
30
|
-
$(".paginated_collection table.index_table").tableCheckboxToggler()
|
|
31
|
-
else
|
|
32
|
-
$(".paginated_collection").checkboxToggler()
|
|
33
|
-
|
|
34
|
-
$(document).on 'change', '.paginated_collection :checkbox', ->
|
|
35
|
-
if $(".paginated_collection :checkbox:checked").length
|
|
36
|
-
$(".batch_actions_selector").each -> $(@).aaDropdownMenu("enable")
|
|
37
|
-
else
|
|
38
|
-
$(".batch_actions_selector").each -> $(@).aaDropdownMenu("disable")
|
|
39
|
-
|
|
40
|
-
$(document).
|
|
41
|
-
ready(onDOMReady).
|
|
42
|
-
on 'page:load turbolinks:load', onDOMReady
|