administrate-base_controller 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +12 -12
- data/.idea/.rakeTasks +5 -5
- data/.idea/inspectionProfiles/Project_Default.xml +5 -5
- data/.travis.yml +17 -17
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +74 -74
- data/Gemfile +4 -4
- data/Gemfile.lock +92 -96
- data/LICENSE.txt +21 -21
- data/Rakefile +10 -10
- data/administrate-base_controller.gemspec +42 -42
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/administrate/base_controller.rb +1 -1
- data/lib/administrate/base_controller/version.rb +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 703aebd1a4a8e71301ccdd0a60dad73e53c799595f5aa046f531e84925e1494d
|
4
|
+
data.tar.gz: 66e599b5cef42e46d491464177fee7cceeed6016fc2042d386afb1744bca877b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 384e49e056e78baa05735bb413791c1f392e4b48c3614e0ba618ae18252bf5fda66f14b451993f45152bd9c843e198f906f35f91cc4e6ab72b46f1ef9328618e
|
7
|
+
data.tar.gz: 6206f5d7fe1becb25ba3fa1b40d8a91492e6e7daa2d7f48c2be4ba69f6ab25e64fdb9a020e60d5c24a78b0d7f7d2a76628ebb0f92ba014b5daccd36662dcbf88
|
data/.gitignore
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/_yardoc/
|
4
|
-
/coverage/
|
5
|
-
/doc/
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/tmp/
|
9
|
-
|
10
|
-
.idea/workspace.xml
|
11
|
-
.idea/usage.statistics.xml
|
12
|
-
.idea/tasks.xml
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/_yardoc/
|
4
|
+
/coverage/
|
5
|
+
/doc/
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/tmp/
|
9
|
+
|
10
|
+
.idea/workspace.xml
|
11
|
+
.idea/usage.statistics.xml
|
12
|
+
.idea/tasks.xml
|
data/.idea/.rakeTasks
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
-
You are allowed to:
|
4
|
-
1. Remove rake task
|
5
|
-
2. Add existing rake tasks
|
6
|
-
To add existing rake tasks automatically delete this file and reload the project.
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
7
|
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build authorized_transaction-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install authorized_transaction-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install authorized_transaction-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push authorized_transaction-0.1.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
2
|
-
<profile version="1.0">
|
3
|
-
<option name="myName" value="Project Default" />
|
4
|
-
<inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
|
5
|
-
</profile>
|
1
|
+
<component name="InspectionProjectProfileManager">
|
2
|
+
<profile version="1.0">
|
3
|
+
<option name="myName" value="Project Default" />
|
4
|
+
<inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
|
5
|
+
</profile>
|
6
6
|
</component>
|
data/.travis.yml
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
---
|
2
|
-
sudo: false
|
3
|
-
language: ruby
|
4
|
-
cache: bundler
|
5
|
-
rvm:
|
6
|
-
- 2.5
|
7
|
-
- 2.6
|
8
|
-
- ruby-head
|
9
|
-
before_install:
|
10
|
-
- gem install bundler -v 2.0.1
|
11
|
-
- gem update --system
|
12
|
-
- gem --version
|
13
|
-
matrix:
|
14
|
-
allow_failures:
|
15
|
-
- rvm: ruby-head
|
16
|
-
install:
|
17
|
-
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
1
|
+
---
|
2
|
+
sudo: false
|
3
|
+
language: ruby
|
4
|
+
cache: bundler
|
5
|
+
rvm:
|
6
|
+
- 2.5
|
7
|
+
- 2.6
|
8
|
+
- ruby-head
|
9
|
+
before_install:
|
10
|
+
- gem install bundler -v 2.0.1
|
11
|
+
- gem update --system
|
12
|
+
- gem --version
|
13
|
+
matrix:
|
14
|
+
allow_failures:
|
15
|
+
- rvm: ruby-head
|
16
|
+
install:
|
17
|
+
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,74 +1,74 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at derk-jan+github@karrenbeld.info. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at derk-jan+github@karrenbeld.info. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in authorized_transaction.gemspec
|
4
|
-
gemspec
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in authorized_transaction.gemspec
|
4
|
+
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,184 +1,180 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
administrate-base_controller (0.
|
4
|
+
administrate-base_controller (0.5.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actioncable (5.2.
|
10
|
-
actionpack (= 5.2.
|
9
|
+
actioncable (5.2.4.2)
|
10
|
+
actionpack (= 5.2.4.2)
|
11
11
|
nio4r (~> 2.0)
|
12
12
|
websocket-driver (>= 0.6.1)
|
13
|
-
actionmailer (5.2.
|
14
|
-
actionpack (= 5.2.
|
15
|
-
actionview (= 5.2.
|
16
|
-
activejob (= 5.2.
|
13
|
+
actionmailer (5.2.4.2)
|
14
|
+
actionpack (= 5.2.4.2)
|
15
|
+
actionview (= 5.2.4.2)
|
16
|
+
activejob (= 5.2.4.2)
|
17
17
|
mail (~> 2.5, >= 2.5.4)
|
18
18
|
rails-dom-testing (~> 2.0)
|
19
|
-
actionpack (5.2.
|
20
|
-
actionview (= 5.2.
|
21
|
-
activesupport (= 5.2.
|
22
|
-
rack (~> 2.0)
|
19
|
+
actionpack (5.2.4.2)
|
20
|
+
actionview (= 5.2.4.2)
|
21
|
+
activesupport (= 5.2.4.2)
|
22
|
+
rack (~> 2.0, >= 2.0.8)
|
23
23
|
rack-test (>= 0.6.3)
|
24
24
|
rails-dom-testing (~> 2.0)
|
25
25
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
26
|
-
actionview (5.2.
|
27
|
-
activesupport (= 5.2.
|
26
|
+
actionview (5.2.4.2)
|
27
|
+
activesupport (= 5.2.4.2)
|
28
28
|
builder (~> 3.1)
|
29
29
|
erubi (~> 1.4)
|
30
30
|
rails-dom-testing (~> 2.0)
|
31
31
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
32
|
-
activejob (5.2.
|
33
|
-
activesupport (= 5.2.
|
32
|
+
activejob (5.2.4.2)
|
33
|
+
activesupport (= 5.2.4.2)
|
34
34
|
globalid (>= 0.3.6)
|
35
|
-
activemodel (5.2.
|
36
|
-
activesupport (= 5.2.
|
37
|
-
activerecord (5.2.
|
38
|
-
activemodel (= 5.2.
|
39
|
-
activesupport (= 5.2.
|
35
|
+
activemodel (5.2.4.2)
|
36
|
+
activesupport (= 5.2.4.2)
|
37
|
+
activerecord (5.2.4.2)
|
38
|
+
activemodel (= 5.2.4.2)
|
39
|
+
activesupport (= 5.2.4.2)
|
40
40
|
arel (>= 9.0)
|
41
|
-
activestorage (5.2.
|
42
|
-
actionpack (= 5.2.
|
43
|
-
activerecord (= 5.2.
|
41
|
+
activestorage (5.2.4.2)
|
42
|
+
actionpack (= 5.2.4.2)
|
43
|
+
activerecord (= 5.2.4.2)
|
44
44
|
marcel (~> 0.3.1)
|
45
|
-
activesupport (5.2.
|
45
|
+
activesupport (5.2.4.2)
|
46
46
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
47
47
|
i18n (>= 0.7, < 2)
|
48
48
|
minitest (~> 5.1)
|
49
49
|
tzinfo (~> 1.1)
|
50
|
-
administrate (0.
|
51
|
-
actionpack (>= 4.2
|
52
|
-
actionview (>= 4.2
|
53
|
-
activerecord (>= 4.2
|
50
|
+
administrate (0.13.0)
|
51
|
+
actionpack (>= 4.2)
|
52
|
+
actionview (>= 4.2)
|
53
|
+
activerecord (>= 4.2)
|
54
54
|
autoprefixer-rails (>= 6.0)
|
55
55
|
datetime_picker_rails (~> 0.0.7)
|
56
56
|
jquery-rails (>= 4.0)
|
57
57
|
kaminari (>= 1.0)
|
58
58
|
momentjs-rails (~> 2.8)
|
59
|
-
|
59
|
+
sassc-rails (~> 2.1)
|
60
60
|
selectize-rails (~> 0.6)
|
61
61
|
arel (9.0.0)
|
62
|
-
autoprefixer-rails (9.
|
62
|
+
autoprefixer-rails (9.7.5)
|
63
63
|
execjs
|
64
|
-
builder (3.2.
|
65
|
-
concurrent-ruby (1.1.
|
66
|
-
crass (1.0.
|
64
|
+
builder (3.2.4)
|
65
|
+
concurrent-ruby (1.1.6)
|
66
|
+
crass (1.0.6)
|
67
67
|
datetime_picker_rails (0.0.7)
|
68
68
|
momentjs-rails (>= 2.8.1)
|
69
|
-
erubi (1.
|
69
|
+
erubi (1.9.0)
|
70
70
|
execjs (2.7.0)
|
71
|
-
ffi (1.
|
72
|
-
ffi (1.
|
71
|
+
ffi (1.12.2)
|
72
|
+
ffi (1.12.2-x64-mingw32)
|
73
73
|
globalid (0.4.2)
|
74
74
|
activesupport (>= 4.2.0)
|
75
|
-
i18n (1.
|
75
|
+
i18n (1.8.2)
|
76
76
|
concurrent-ruby (~> 1.0)
|
77
|
-
jquery-rails (4.3.
|
77
|
+
jquery-rails (4.3.5)
|
78
78
|
rails-dom-testing (>= 1, < 3)
|
79
79
|
railties (>= 4.2.0)
|
80
80
|
thor (>= 0.14, < 2.0)
|
81
|
-
kaminari (1.
|
81
|
+
kaminari (1.2.0)
|
82
82
|
activesupport (>= 4.1.0)
|
83
|
-
kaminari-actionview (= 1.
|
84
|
-
kaminari-activerecord (= 1.
|
85
|
-
kaminari-core (= 1.
|
86
|
-
kaminari-actionview (1.
|
83
|
+
kaminari-actionview (= 1.2.0)
|
84
|
+
kaminari-activerecord (= 1.2.0)
|
85
|
+
kaminari-core (= 1.2.0)
|
86
|
+
kaminari-actionview (1.2.0)
|
87
87
|
actionview
|
88
|
-
kaminari-core (= 1.
|
89
|
-
kaminari-activerecord (1.
|
88
|
+
kaminari-core (= 1.2.0)
|
89
|
+
kaminari-activerecord (1.2.0)
|
90
90
|
activerecord
|
91
|
-
kaminari-core (= 1.
|
92
|
-
kaminari-core (1.
|
93
|
-
loofah (2.
|
91
|
+
kaminari-core (= 1.2.0)
|
92
|
+
kaminari-core (1.2.0)
|
93
|
+
loofah (2.4.0)
|
94
94
|
crass (~> 1.0.2)
|
95
95
|
nokogiri (>= 1.5.9)
|
96
96
|
mail (2.7.1)
|
97
97
|
mini_mime (>= 0.1.1)
|
98
98
|
marcel (0.3.3)
|
99
99
|
mimemagic (~> 0.3.2)
|
100
|
-
method_source (0.
|
101
|
-
mimemagic (0.3.
|
102
|
-
mini_mime (1.0.
|
100
|
+
method_source (1.0.0)
|
101
|
+
mimemagic (0.3.4)
|
102
|
+
mini_mime (1.0.2)
|
103
103
|
mini_portile2 (2.4.0)
|
104
|
-
minitest (5.
|
104
|
+
minitest (5.14.0)
|
105
105
|
momentjs-rails (2.20.1)
|
106
106
|
railties (>= 3.1)
|
107
|
-
nio4r (2.
|
108
|
-
nokogiri (1.10.
|
107
|
+
nio4r (2.5.2)
|
108
|
+
nokogiri (1.10.9)
|
109
109
|
mini_portile2 (~> 2.4.0)
|
110
|
-
nokogiri (1.10.
|
110
|
+
nokogiri (1.10.9-x64-mingw32)
|
111
111
|
mini_portile2 (~> 2.4.0)
|
112
|
-
rack (2.
|
112
|
+
rack (2.2.2)
|
113
113
|
rack-test (1.1.0)
|
114
114
|
rack (>= 1.0, < 3)
|
115
|
-
rails (5.2.
|
116
|
-
actioncable (= 5.2.
|
117
|
-
actionmailer (= 5.2.
|
118
|
-
actionpack (= 5.2.
|
119
|
-
actionview (= 5.2.
|
120
|
-
activejob (= 5.2.
|
121
|
-
activemodel (= 5.2.
|
122
|
-
activerecord (= 5.2.
|
123
|
-
activestorage (= 5.2.
|
124
|
-
activesupport (= 5.2.
|
115
|
+
rails (5.2.4.2)
|
116
|
+
actioncable (= 5.2.4.2)
|
117
|
+
actionmailer (= 5.2.4.2)
|
118
|
+
actionpack (= 5.2.4.2)
|
119
|
+
actionview (= 5.2.4.2)
|
120
|
+
activejob (= 5.2.4.2)
|
121
|
+
activemodel (= 5.2.4.2)
|
122
|
+
activerecord (= 5.2.4.2)
|
123
|
+
activestorage (= 5.2.4.2)
|
124
|
+
activesupport (= 5.2.4.2)
|
125
125
|
bundler (>= 1.3.0)
|
126
|
-
railties (= 5.2.
|
126
|
+
railties (= 5.2.4.2)
|
127
127
|
sprockets-rails (>= 2.0.0)
|
128
128
|
rails-dom-testing (2.0.3)
|
129
129
|
activesupport (>= 4.2.0)
|
130
130
|
nokogiri (>= 1.6)
|
131
|
-
rails-html-sanitizer (1.0
|
132
|
-
loofah (~> 2.
|
133
|
-
railties (5.2.
|
134
|
-
actionpack (= 5.2.
|
135
|
-
activesupport (= 5.2.
|
131
|
+
rails-html-sanitizer (1.3.0)
|
132
|
+
loofah (~> 2.3)
|
133
|
+
railties (5.2.4.2)
|
134
|
+
actionpack (= 5.2.4.2)
|
135
|
+
activesupport (= 5.2.4.2)
|
136
136
|
method_source
|
137
137
|
rake (>= 0.8.7)
|
138
138
|
thor (>= 0.19.0, < 2.0)
|
139
|
-
rake (
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
sass (~> 3.1)
|
151
|
-
sprockets (>= 2.8, < 4.0)
|
152
|
-
sprockets-rails (>= 2.0, < 4.0)
|
153
|
-
tilt (>= 1.1, < 3)
|
139
|
+
rake (13.0.1)
|
140
|
+
sassc (2.2.1)
|
141
|
+
ffi (~> 1.9)
|
142
|
+
sassc (2.2.1-x64-mingw32)
|
143
|
+
ffi (~> 1.9)
|
144
|
+
sassc-rails (2.1.2)
|
145
|
+
railties (>= 4.0.0)
|
146
|
+
sassc (>= 2.0)
|
147
|
+
sprockets (> 3.0)
|
148
|
+
sprockets-rails
|
149
|
+
tilt
|
154
150
|
selectize-rails (0.12.6)
|
155
|
-
sprockets (
|
151
|
+
sprockets (4.0.0)
|
156
152
|
concurrent-ruby (~> 1.0)
|
157
153
|
rack (> 1, < 3)
|
158
154
|
sprockets-rails (3.2.1)
|
159
155
|
actionpack (>= 4.0)
|
160
156
|
activesupport (>= 4.0)
|
161
157
|
sprockets (>= 3.0.0)
|
162
|
-
thor (0.
|
158
|
+
thor (1.0.1)
|
163
159
|
thread_safe (0.3.6)
|
164
|
-
tilt (2.0.
|
165
|
-
tzinfo (1.2.
|
160
|
+
tilt (2.0.10)
|
161
|
+
tzinfo (1.2.6)
|
166
162
|
thread_safe (~> 0.1)
|
167
|
-
websocket-driver (0.7.
|
163
|
+
websocket-driver (0.7.1)
|
168
164
|
websocket-extensions (>= 0.1.0)
|
169
|
-
websocket-extensions (0.1.
|
165
|
+
websocket-extensions (0.1.4)
|
170
166
|
|
171
167
|
PLATFORMS
|
172
168
|
ruby
|
173
169
|
x64-mingw32
|
174
170
|
|
175
171
|
DEPENDENCIES
|
176
|
-
administrate (~> 0.
|
172
|
+
administrate (~> 0.13.0)
|
177
173
|
administrate-base_controller!
|
178
174
|
bundler (~> 2.0)
|
179
175
|
minitest (~> 5.0)
|
180
176
|
rails
|
181
|
-
rake (~>
|
177
|
+
rake (~> 13.0)
|
182
178
|
|
183
179
|
BUNDLED WITH
|
184
|
-
2.
|
180
|
+
2.1.4
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2019 Derk-Jan Karrenbeld
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Derk-Jan Karrenbeld
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require "rake/testtask"
|
3
|
-
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs << "test"
|
6
|
-
t.libs << "lib"
|
7
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
8
|
-
end
|
9
|
-
|
10
|
-
task :default => :test
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
|
+
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
5
|
+
t.libs << "test"
|
6
|
+
t.libs << "lib"
|
7
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
8
|
+
end
|
9
|
+
|
10
|
+
task :default => :test
|
@@ -1,42 +1,42 @@
|
|
1
|
-
lib = File.expand_path('../lib', __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'administrate/base_controller/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'administrate-base_controller'
|
7
|
-
spec.version = Administrate::BaseController::VERSION
|
8
|
-
spec.authors = ['Derk-Jan Karrenbeld']
|
9
|
-
spec.email = ['derk-jan@xpbytes.com']
|
10
|
-
|
11
|
-
spec.summary = 'Extends the ApplicationController in Administrate'
|
12
|
-
spec.homepage = 'https://github.com/XPBytes/administrate-base_controller'
|
13
|
-
spec.license = 'MIT'
|
14
|
-
|
15
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
16
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
17
|
-
if spec.respond_to?(:metadata)
|
18
|
-
# spec.metadata['allowed_push_host'] = 'TODO: Set to 'http://mygemserver.com''
|
19
|
-
|
20
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
21
|
-
spec.metadata['source_code_uri'] = spec.homepage
|
22
|
-
spec.metadata['changelog_uri'] = spec.homepage + '/CHANGELOG.md'
|
23
|
-
else
|
24
|
-
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
25
|
-
'public gem pushes.'
|
26
|
-
end
|
27
|
-
|
28
|
-
# Specify which files should be added to the gem when it is released.
|
29
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
30
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
31
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
32
|
-
end
|
33
|
-
spec.bindir = 'exe'
|
34
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
|
-
spec.require_paths = ['lib']
|
36
|
-
|
37
|
-
spec.add_development_dependency 'administrate', '~> 0.
|
38
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
39
|
-
spec.add_development_dependency 'minitest', '~> 5.0'
|
40
|
-
spec.add_development_dependency 'rake', '~>
|
41
|
-
spec.add_development_dependency 'rails'
|
42
|
-
end
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'administrate/base_controller/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'administrate-base_controller'
|
7
|
+
spec.version = Administrate::BaseController::VERSION
|
8
|
+
spec.authors = ['Derk-Jan Karrenbeld']
|
9
|
+
spec.email = ['derk-jan@xpbytes.com']
|
10
|
+
|
11
|
+
spec.summary = 'Extends the ApplicationController in Administrate'
|
12
|
+
spec.homepage = 'https://github.com/XPBytes/administrate-base_controller'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
16
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
17
|
+
if spec.respond_to?(:metadata)
|
18
|
+
# spec.metadata['allowed_push_host'] = 'TODO: Set to 'http://mygemserver.com''
|
19
|
+
|
20
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
21
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
22
|
+
spec.metadata['changelog_uri'] = spec.homepage + '/CHANGELOG.md'
|
23
|
+
else
|
24
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
25
|
+
'public gem pushes.'
|
26
|
+
end
|
27
|
+
|
28
|
+
# Specify which files should be added to the gem when it is released.
|
29
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
30
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
31
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
32
|
+
end
|
33
|
+
spec.bindir = 'exe'
|
34
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
|
+
spec.require_paths = ['lib']
|
36
|
+
|
37
|
+
spec.add_development_dependency 'administrate', '~> 0.13.0'
|
38
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
39
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
41
|
+
spec.add_development_dependency 'rails'
|
42
|
+
end
|
data/bin/console
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "administrate/default_order"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "administrate/default_order"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -euo pipefail
|
3
|
-
IFS=$'\n\t'
|
4
|
-
set -vx
|
5
|
-
|
6
|
-
bundle install
|
7
|
-
|
8
|
-
# Do any other automated setup that you need to do here
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -euo pipefail
|
3
|
+
IFS=$'\n\t'
|
4
|
+
set -vx
|
5
|
+
|
6
|
+
bundle install
|
7
|
+
|
8
|
+
# Do any other automated setup that you need to do here
|
@@ -4,7 +4,7 @@ module Administrate
|
|
4
4
|
module BaseController
|
5
5
|
def index
|
6
6
|
resources = index_resources
|
7
|
-
resources =
|
7
|
+
resources = apply_collection_includes(resources)
|
8
8
|
resources = order.apply(resources)
|
9
9
|
resources = resources.page(params[:page]).per(records_per_page)
|
10
10
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module Administrate
|
2
|
-
module BaseController
|
3
|
-
VERSION = '0.
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Administrate
|
2
|
+
module BaseController
|
3
|
+
VERSION = '0.5.0'
|
4
|
+
end
|
5
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-base_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derk-Jan Karrenbeld
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.13.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.13.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|