activeadmin 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/.travis.yml +7 -5
- data/CHANGELOG.md +8 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +2 -2
- data/activeadmin.gemspec +3 -3
- data/gemfiles/rails_52.gemfile +11 -0
- data/lib/active_admin/order_clause.rb +1 -1
- data/lib/active_admin/version.rb +1 -1
- data/spec/unit/authorization/controller_authorization_spec.rb +2 -2
- metadata +10 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5ca5fd70f2979d7363d85cfd1312f56c334b6ee9a7c36ef61c7ec211cf7ed193
|
4
|
+
data.tar.gz: a93debc41630a1cfac29b878e60b06c1d997f6208e9009dc38557717eb5d69b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc85aab7f53bc85d5203f4f25dc807fddad5913319aaad847784f0379de9686bd6ebe75487fa8da5a931f313807524bfdbc88c16d31929de3431e9e13f694889
|
7
|
+
data.tar.gz: 653914dd03260168fb059d3591d0411e750b2266b171e85dfcb1753cf6805d05b51c2a37c5401bc13ddc42a6fa28650c095dac6cedb45a559aa9527f65204f64
|
data/.travis.yml
CHANGED
@@ -21,7 +21,7 @@ script:
|
|
21
21
|
- bundle exec rake docs:build
|
22
22
|
|
23
23
|
rvm:
|
24
|
-
- jruby-9.1.
|
24
|
+
- jruby-9.1.15.0
|
25
25
|
- 2.2.8
|
26
26
|
- 2.3.5
|
27
27
|
- 2.4.2
|
@@ -30,20 +30,22 @@ gemfile:
|
|
30
30
|
- gemfiles/rails_42.gemfile
|
31
31
|
- gemfiles/rails_50.gemfile
|
32
32
|
- gemfiles/rails_51.gemfile
|
33
|
+
- gemfiles/rails_52.gemfile
|
33
34
|
|
34
35
|
env:
|
35
36
|
global:
|
36
37
|
- JRUBY_OPTS="-J-Xmx1024m --dev --debug"
|
37
|
-
- JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
|
38
38
|
- COVERAGE=true
|
39
39
|
|
40
40
|
matrix:
|
41
41
|
fast_finish: true
|
42
42
|
|
43
43
|
allow_failures:
|
44
|
-
- rvm: jruby-9.1.
|
44
|
+
- rvm: jruby-9.1.15.0
|
45
45
|
gemfile: gemfiles/rails_42.gemfile
|
46
|
-
- rvm: jruby-9.1.
|
46
|
+
- rvm: jruby-9.1.15.0
|
47
47
|
gemfile: gemfiles/rails_50.gemfile
|
48
|
-
- rvm: jruby-9.1.
|
48
|
+
- rvm: jruby-9.1.15.0
|
49
49
|
gemfile: gemfiles/rails_51.gemfile
|
50
|
+
- rvm: jruby-9.1.15.0
|
51
|
+
gemfile: gemfiles/rails_52.gemfile
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.3.0 [☰](https://github.com/activeadmin/activeadmin/compare/v1.2.1...v1.3.0)
|
4
|
+
|
5
|
+
### Enhancements
|
6
|
+
|
7
|
+
#### Major
|
8
|
+
|
9
|
+
* Rails 5.2 support [#5343][] by [@varyonic][], [#5399][], [#5401][] by [@zorab47][].
|
10
|
+
|
3
11
|
## 1.2.1 [☰](https://github.com/activeadmin/activeadmin/compare/v1.2.0...v1.2.1)
|
4
12
|
|
5
13
|
### Bug Fixes
|
data/CONTRIBUTING.md
CHANGED
@@ -32,7 +32,7 @@ least version `1.14.3`.
|
|
32
32
|
Select the Gemfile for your preferred Rails version, preferably the latest:
|
33
33
|
|
34
34
|
```sh
|
35
|
-
export BUNDLE_GEMFILE=gemfiles/
|
35
|
+
export BUNDLE_GEMFILE=gemfiles/rails_52.gemfile
|
36
36
|
```
|
37
37
|
|
38
38
|
Now install the development dependencies:
|
data/Gemfile
CHANGED
@@ -41,10 +41,10 @@ group :development do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
group :test do
|
44
|
-
gem 'capybara'
|
44
|
+
gem 'capybara', '< 3.0'
|
45
45
|
gem 'simplecov', require: false # Test coverage generator. Go to /coverage/ after running tests
|
46
46
|
gem 'codecov', require: false # Test coverage website. Go to https://codecov.io
|
47
|
-
gem 'cucumber-rails', require: false
|
47
|
+
gem 'cucumber-rails', '~> 1.5', require: false
|
48
48
|
gem 'cucumber'
|
49
49
|
gem 'database_cleaner'
|
50
50
|
gem 'jasmine'
|
data/activeadmin.gemspec
CHANGED
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency 'coffee-rails'
|
23
23
|
s.add_dependency 'formtastic', '~> 3.1'
|
24
24
|
s.add_dependency 'formtastic_i18n'
|
25
|
-
s.add_dependency 'inherited_resources', '
|
25
|
+
s.add_dependency 'inherited_resources', '>= 1.7.0'
|
26
26
|
s.add_dependency 'jquery-rails', '>= 4.2.0'
|
27
|
-
s.add_dependency 'kaminari', '>= 0.15'
|
28
|
-
s.add_dependency 'railties', '>= 4.2', '< 5.
|
27
|
+
s.add_dependency 'kaminari', '>= 0.15'
|
28
|
+
s.add_dependency 'railties', '>= 4.2', '< 5.3'
|
29
29
|
s.add_dependency 'ransack', '~> 1.3'
|
30
30
|
s.add_dependency 'sass', '~> 3.1'
|
31
31
|
s.add_dependency 'sprockets', '< 4.1'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
eval_gemfile(File.expand_path(File.join("..", "Gemfile"), __dir__))
|
4
|
+
|
5
|
+
gem "rails", "~> 5.2.x"
|
6
|
+
gem "bootsnap"
|
7
|
+
gem "devise", "~> 4.4"
|
8
|
+
gem "draper", "~> 3.0"
|
9
|
+
gem "activerecord-jdbcsqlite3-adapter", "~> 51.0", platforms: :jruby
|
10
|
+
|
11
|
+
gemspec path: "../"
|
data/lib/active_admin/version.rb
CHANGED
@@ -13,13 +13,13 @@ RSpec.describe "Controller Authorization", type: :controller do
|
|
13
13
|
it "should authorize the index action" do
|
14
14
|
expect(authorization).to receive(:authorized?).with(auth::READ, Post).and_return true
|
15
15
|
get :index
|
16
|
-
expect(response).to
|
16
|
+
expect(response).to be_successful
|
17
17
|
end
|
18
18
|
|
19
19
|
it "should authorize the new action" do
|
20
20
|
expect(authorization).to receive(:authorized?).with(auth::CREATE, an_instance_of(Post)).and_return true
|
21
21
|
get :new
|
22
|
-
expect(response).to
|
22
|
+
expect(response).to be_successful
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should authorize the create action with the new resource" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Bell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arbre
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: inherited_resources
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.7.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.7.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: jquery-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,9 +101,6 @@ dependencies:
|
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0.15'
|
104
|
-
- - "<"
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: '2.0'
|
107
104
|
type: :runtime
|
108
105
|
prerelease: false
|
109
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -111,9 +108,6 @@ dependencies:
|
|
111
108
|
- - ">="
|
112
109
|
- !ruby/object:Gem::Version
|
113
110
|
version: '0.15'
|
114
|
-
- - "<"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '2.0'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: railties
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,7 +117,7 @@ dependencies:
|
|
123
117
|
version: '4.2'
|
124
118
|
- - "<"
|
125
119
|
- !ruby/object:Gem::Version
|
126
|
-
version: '5.
|
120
|
+
version: '5.3'
|
127
121
|
type: :runtime
|
128
122
|
prerelease: false
|
129
123
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -133,7 +127,7 @@ dependencies:
|
|
133
127
|
version: '4.2'
|
134
128
|
- - "<"
|
135
129
|
- !ruby/object:Gem::Version
|
136
|
-
version: '5.
|
130
|
+
version: '5.3'
|
137
131
|
- !ruby/object:Gem::Dependency
|
138
132
|
name: ransack
|
139
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -455,6 +449,7 @@ files:
|
|
455
449
|
- gemfiles/rails_42.gemfile
|
456
450
|
- gemfiles/rails_50.gemfile
|
457
451
|
- gemfiles/rails_51.gemfile
|
452
|
+
- gemfiles/rails_52.gemfile
|
458
453
|
- lib/active_admin.rb
|
459
454
|
- lib/active_admin/abstract_view_factory.rb
|
460
455
|
- lib/active_admin/application.rb
|
@@ -801,7 +796,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
801
796
|
version: '0'
|
802
797
|
requirements: []
|
803
798
|
rubyforge_project:
|
804
|
-
rubygems_version: 2.
|
799
|
+
rubygems_version: 2.7.6
|
805
800
|
signing_key:
|
806
801
|
specification_version: 4
|
807
802
|
summary: The administration framework for Ruby on Rails.
|