rearmed_rails 1.0.2 → 1.0.3

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
  SHA1:
3
- metadata.gz: aa8a3fa5d2fae481deba16f2f21e754c19fb7290
4
- data.tar.gz: d271b7c8b00b2145e54256a4fdf1767dde1a8e83
3
+ metadata.gz: 29358a836471b9e0ae391b261b041fa1f2bcb9df
4
+ data.tar.gz: c0c1306eca83b965edfeedc27e1f59fdd4dcd8f6
5
5
  SHA512:
6
- metadata.gz: 6d39e2f1584cb770f7795e6bb831558f1db17418d49872e5e284a2e9037bda041bb905717d9a011aeaf381c6d7651ae6ba5a3706dd946631a003628e8b26edb4
7
- data.tar.gz: 58cef8028c03568d404aadd4c07d706a5d409657391a42b1247c090cdfd2410c154e5a784e22cbeb77bf7be8d9c367e2370b28efc80b23fa0e979fc180cba46b
6
+ metadata.gz: 0c6e6c1a33a8a280e52bb107a0744ff6f3a77db8788420105f2bb136ed08f8aa37e117e3eb513e7fdacb0f531a5b7ef77dec13675362c37feae2588805146ea3
7
+ data.tar.gz: 2d6cfdcad766d50b871542c4b914efeed9bd35fef0aced93133b8f318d6763f01044a7f08f522f7e7e8e02e320a9eff0da6e7d68b3a5b15a0ae9ce2b6fea6ca3
data/CHANGELOG.md CHANGED
@@ -1,9 +1,10 @@
1
1
  CHANGELOG
2
2
  ---------
3
3
 
4
+ - **1.0.3 - May 3, 2017**
5
+ - Fix error in `or` method
4
6
  - **1.0.2 - April 13, 2017**
5
7
  - Fix ActiveRecord::Relation::QueryMethods error
6
- - Add titleize(true) to capitalize first letters of each word only
7
8
  - **1.0.1 - March 1, 2017**
8
9
  - Fix bug in minitest patches
9
10
  - **1.0.0 - Feb 28, 2017**
@@ -6,6 +6,7 @@ if defined?(ActiveRecord)
6
6
  if enabled || RearmedRails.dig(RearmedRails.enabled_patches, :rails, :active_record, :or)
7
7
 
8
8
  if Rails::VERSION::MAJOR > 4
9
+
9
10
  unless defined?(ActiveRecord::Relation::QueryMethods)
10
11
  module ActiveRecord
11
12
  class Relation
@@ -25,7 +26,7 @@ if defined?(ActiveRecord)
25
26
  other = @scope.klass.unscoped do
26
27
  @scope.klass.send(method, *args, &block)
27
28
  end
28
- return @scope.smart_or(other)
29
+ return @scope.or(other)
29
30
  end
30
31
  end
31
32
  end
@@ -45,7 +46,7 @@ if defined?(ActiveRecord)
45
46
  end
46
47
  end
47
48
 
48
- else # rails 4
49
+ else # end of Rails 5+ section, Rails 4 below
49
50
 
50
51
  module ActiveRecord
51
52
  module Querying
@@ -102,7 +103,7 @@ if defined?(ActiveRecord)
102
103
  end
103
104
  end
104
105
 
105
- end
106
+ end # end of Rails 4 section
106
107
 
107
108
  end
108
109
 
@@ -1,3 +1,3 @@
1
1
  module RearmedRails
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rearmed_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-14 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake