rails_core_extensions 0.9.0 → 0.10.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: 0e350102d147909780d1a0cda311d00efad4d810d9d0c4c65fcc2fb50407ac30
4
- data.tar.gz: 1480421b9f8759d15921eebf9686561e2a606c09f4506d0f48e29e0f4ad1ce71
3
+ metadata.gz: 9acf16057025897f45e4db536b9f9917be25e9546b4f0edfa6d6d28e3e0d12f5
4
+ data.tar.gz: 40bedbbd7708d6259e3f0cd13f27d4376bdb115d22522189826613c93be017ca
5
5
  SHA512:
6
- metadata.gz: cb72133b0667c523995e50acc4c086ff9d356570900507dd2d41b98bd3da57569024ebec1e5bd41dcc6c26e9848d3da2631842c1d64a70a5d94da490b1915730
7
- data.tar.gz: 9b44c7559c1a0d6594f7458672f0c7cb7aa63f55caa889ef7d2b80d79fceacacb41253d0c32dd026193bde537ede9d2446eefc83932e236ff64e479a0cccfbb1
6
+ metadata.gz: 108f173b65617d5b77e2ececec934c4b661f8231f3f54f5edd0cd6a3c0b7aba18211710208eb8250f3e866b98c3ca95f7f2b6893cae36379464ca310dcfaec64
7
+ data.tar.gz: 7c5a916595cedd2b934c3df22041faeb198e12a8cc33e8356799e48ecd910ad3cebd81747ad4830ec33941da7694862491a10a6e16259efd21aa6d17c5949f4a
@@ -1 +1 @@
1
- 2.7.1
1
+ 2.7.2
@@ -5,7 +5,6 @@ rvm:
5
5
 
6
6
  script: "bundle exec rake spec"
7
7
  gemfile:
8
- - gemfiles/rails5.gemfile
9
8
  - gemfiles/rails6.gemfile
10
9
  sudo: false
11
10
  cache: bundler
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.0
4
+
5
+ * [TT-8507] Sortable will now fire callbacks to ensure we audit these changes
6
+
3
7
  ## 0.9.0
4
8
 
5
9
  * [TT-6727] Fix usage of symbolize_keys in sortable
@@ -43,7 +43,7 @@ module RailsCoreExtensions
43
43
  end
44
44
 
45
45
  def update(object, new_position)
46
- @klass.where(id: object.id).limit(1).update_all(position: new_position)
46
+ @klass.find(object.id).update(position: new_position)
47
47
  end
48
48
  end
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module RailsCoreExtensions
2
- VERSION = '0.9.0'
2
+ VERSION = '0.10.0'
3
3
  end
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'activerecord', ['>= 5.0.0']
23
- spec.add_dependency 'actionpack', ['>= 5.0.0']
22
+ spec.add_dependency 'activerecord', ['>= 6.0.0']
23
+ spec.add_dependency 'actionpack', ['>= 6.0.0']
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 2.0'
26
26
  spec.add_development_dependency 'rake'
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.9.0
4
+ version: 0.10.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: 2020-06-26 00:00:00.000000000 Z
12
+ date: 2020-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 5.0.0
20
+ version: 6.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 5.0.0
27
+ version: 6.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: actionpack
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 5.0.0
34
+ version: 6.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 5.0.0
41
+ version: 6.0.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +197,6 @@ files:
197
197
  - LICENSE.txt
198
198
  - README.md
199
199
  - Rakefile
200
- - gemfiles/rails5.gemfile
201
200
  - gemfiles/rails6.gemfile
202
201
  - lib/rails_core_extensions.rb
203
202
  - lib/rails_core_extensions/action_controller_sortable.rb
@@ -252,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
251
  - !ruby/object:Gem::Version
253
252
  version: '0'
254
253
  requirements: []
255
- rubygems_version: 3.1.2
254
+ rubygems_version: 3.1.4
256
255
  signing_key:
257
256
  specification_version: 4
258
257
  summary: Set of extensions to core rails libraries.
@@ -1,6 +0,0 @@
1
- source :rubygems
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'activerecord', '~> 5.2'
6
- end