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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f44cf808ba11ebf812b532bdaa5dbb304bc9ec2caaf803809a29e95215bbeb7d
4
- data.tar.gz: 14842819792762d71b771831c3822c2a71fed63c1a7f3e7225a9aaa34630d1b9
3
+ metadata.gz: 0e350102d147909780d1a0cda311d00efad4d810d9d0c4c65fcc2fb50407ac30
4
+ data.tar.gz: 1480421b9f8759d15921eebf9686561e2a606c09f4506d0f48e29e0f4ad1ce71
5
5
  SHA512:
6
- metadata.gz: 940dce7b6dd812b79e80d697758fdeb8f22fc0fe08434260aacf9b94b3be69de95f5fa029f743d247fec7e77081633807a4c25ffcc5ac6dfecc9a0640cb0e441
7
- data.tar.gz: 072f4fc03850e7f8aa2268fbe85d49812f0d98a5964ab3fadf4fc7bcbf6d780ae61d17abb1c3ef1778173e5efece1d8d785bb5c7deb498754d57fd4ea0409b0c
6
+ metadata.gz: cb72133b0667c523995e50acc4c086ff9d356570900507dd2d41b98bd3da57569024ebec1e5bd41dcc6c26e9848d3da2631842c1d64a70a5d94da490b1915730
7
+ data.tar.gz: 9b44c7559c1a0d6594f7458672f0c7cb7aa63f55caa889ef7d2b80d79fceacacb41253d0c32dd026193bde537ede9d2446eefc83932e236ff64e479a0cccfbb1
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.7.1
@@ -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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0
4
+
5
+ * [TT-6727] Fix usage of symbolize_keys in sortable
6
+
3
7
  ## 0.8.0
4
8
 
5
9
  * [TT-6539] Remove cache_all_attributes and other unused methods
@@ -2,5 +2,5 @@ source :rubygems
2
2
  gemspec :path => '../'
3
3
 
4
4
  group :development, :test do
5
- gem 'activerecord', '~> 5.0'
5
+ gem 'activerecord', '~> 5.2'
6
6
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsCoreExtensions
2
- VERSION = '0.8.0'
2
+ VERSION = '0.9.0'
3
3
  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.8.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: 2019-12-11 00:00:00.000000000 Z
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.0.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.