rails_core_extensions 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails5.gemfile +1 -1
- data/lib/rails_core_extensions/sortable.rb +1 -1
- data/lib/rails_core_extensions/version.rb +1 -1
- data/spec/action_controller_sortable_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e350102d147909780d1a0cda311d00efad4d810d9d0c4c65fcc2fb50407ac30
|
4
|
+
data.tar.gz: 1480421b9f8759d15921eebf9686561e2a606c09f4506d0f48e29e0f4ad1ce71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb72133b0667c523995e50acc4c086ff9d356570900507dd2d41b98bd3da57569024ebec1e5bd41dcc6c26e9848d3da2631842c1d64a70a5d94da490b1915730
|
7
|
+
data.tar.gz: 9b44c7559c1a0d6594f7458672f0c7cb7aa63f55caa889ef7d2b80d79fceacacb41253d0c32dd026193bde537ede9d2446eefc83932e236ff64e479a0cccfbb1
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.1
|
data/.travis.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
3
|
- 2.6
|
4
|
+
- 2.7
|
4
5
|
|
5
6
|
script: "bundle exec rake spec"
|
6
7
|
gemfile:
|
@@ -8,7 +9,6 @@ gemfile:
|
|
8
9
|
- gemfiles/rails6.gemfile
|
9
10
|
sudo: false
|
10
11
|
cache: bundler
|
11
|
-
# Due to this issue, stil not resolved: travis-ci/travis-ci#8969
|
12
12
|
before_install:
|
13
13
|
- gem update --system
|
14
14
|
- gem install bundler
|
data/CHANGELOG.md
CHANGED
data/gemfiles/rails5.gemfile
CHANGED
@@ -8,7 +8,7 @@ module RailsCoreExtensions
|
|
8
8
|
# category_id (or whatever the name of scope is)
|
9
9
|
# model_1_body (or whatever id of scope id)
|
10
10
|
def initialize(params, controller_name)
|
11
|
-
@params = params.symbolize_keys
|
11
|
+
@params = params.permit!.to_h.symbolize_keys
|
12
12
|
@controller_name = controller_name
|
13
13
|
@klass = controller_name.classify.constantize
|
14
14
|
end
|
@@ -26,7 +26,7 @@ describe RailsCoreExtensions::Sortable do
|
|
26
26
|
models.each(&:destroy)
|
27
27
|
end
|
28
28
|
|
29
|
-
subject { RailsCoreExtensions::Sortable.new(params, 'models') }
|
29
|
+
subject { RailsCoreExtensions::Sortable.new(ActionController::Parameters.new(params), 'models') }
|
30
30
|
|
31
31
|
RSpec.shared_examples 'unscoped' do
|
32
32
|
let(:scope) { Model.reorder(:position) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_core_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
- !ruby/object:Gem::Version
|
253
253
|
version: '0'
|
254
254
|
requirements: []
|
255
|
-
rubygems_version: 3.
|
255
|
+
rubygems_version: 3.1.2
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: Set of extensions to core rails libraries.
|