authlogic 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01513a841f9c0e5be7c9c2f641d0beaa30aef05b76ba736938343901bad249da
4
- data.tar.gz: f4e55611a93e2f3d3957bfaf200602217949d857f01a99d05443d94ba1bf6d40
3
+ metadata.gz: 2f8b47d1c4c842aff31f1d7b9851725d60773e2eea798f9adafe1e479476c5cb
4
+ data.tar.gz: b46bc3d9c1e08d9680ca434795d832379a3bef437b755f978c3e4d3defd47330
5
5
  SHA512:
6
- metadata.gz: 84ab5533d3b8e87cffc450b5de009b16537bb52119fd3049df865a39c4fb0e06c82ed0d7678f956569d51f3181fd5d9a7fbd3190dacfa66c2d010e1b2cdcdf19
7
- data.tar.gz: a11379da2cf5d69792a7cacc8fe8efdb75e8e42fca2c690941bd9e8410f8fcb1cae9ff2c99affc721151aaa01e5a02802594d487e323063f54de45f80e593933
6
+ metadata.gz: d4852862fc120c4c7d0f7333ee43aac4d12658db42db9ac6bb570dfae45bb3f250ebe38e8459ebae4042d6a1d0fdcad4be86f48d685dfd2635c0d90a92c899a6
7
+ data.tar.gz: 1371934081cd37bde0ac6e5c8ef8e3b932c050aafbfa50b022d75d48549397e303c4a5cc42a4da767b864d963a89f5f8ab370beb30a6f76f28b6ff025bf91082
@@ -9,6 +9,16 @@
9
9
  * Fixed
10
10
  * None
11
11
 
12
+ ## 4.0.1 (2018-03-20)
13
+
14
+ * Breaking Changes
15
+ * None
16
+ * Added
17
+ * None
18
+ * Fixed
19
+ * [#590](https://github.com/binarylogic/authlogic/pull/590) -
20
+ Fix "cannot modify frozen gem" re: ActiveRecord.gem_version
21
+
12
22
  ## 4.0.0 (2018-03-18)
13
23
 
14
24
  * Breaking Changes, Major
@@ -61,8 +61,9 @@ BUNDLE_GEMFILE=test/gemfiles/Gemfile.rails-3.2.x bundle exec rake test
61
61
 
62
62
  ### Release
63
63
 
64
- 1. Update version number in gemspec
64
+ 1. Update version number in lib/authlogic/version.rb
65
65
  1. Add release date to changelog entry
66
+ 1. Add a new "Unreleased" section at top of changelog
66
67
  1. Commit with message like "Release 3.6.0"
67
68
  1. git tag -a -m "v3.6.0" "v3.6.0" # or whatever number
68
69
  1. git push --tags origin 3-stable # or whatever branch
@@ -6,7 +6,10 @@ module Authlogic
6
6
  # The query used by public-API method `find_by_smart_case_login_field`.
7
7
  # @api private
8
8
  class FindWithCase
9
- AR_GEM_VERSION = ActiveRecord.gem_version.freeze
9
+ # Dup ActiveRecord.gem_version before freezing, in case someone
10
+ # else wants to modify it. Freezing modifies an object in place.
11
+ # https://github.com/binarylogic/authlogic/pull/590
12
+ AR_GEM_VERSION = ActiveRecord.gem_version.dup.freeze
10
13
 
11
14
  # @api private
12
15
  def initialize(model_class, field, value, sensitive)
@@ -9,8 +9,12 @@ module Authlogic
9
9
  # than a `VERSION` string, because `::Gem::Version` is easier to use in a
10
10
  # comparison.
11
11
  #
12
+ # Perhaps surprisingly, we cannot return a frozen `Version`, because eg.
13
+ # rubygems (currently) needs to be able to modify it.
14
+ # https://github.com/binarylogic/authlogic/pull/590
15
+ #
12
16
  # @api public
13
17
  def self.gem_version
14
- ::Gem::Version.new('4.0.0')
18
+ ::Gem::Version.new('4.0.1')
15
19
  end
16
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-03-18 00:00:00.000000000 Z
13
+ date: 2018-03-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord