activerecord-belongs_to_if 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 0c100e5820d6d986f1bea904dbc452f4dc602fbc
4
- data.tar.gz: 28795b4cb4a6b388d9113f11c4d42cda205605a1
3
+ metadata.gz: 59c3d8bcfc5a456e22705abcef8a21d4d2d96376
4
+ data.tar.gz: d26b0bc9504c818b8995456ac0f62b9bd917c92d
5
5
  SHA512:
6
- metadata.gz: b6bf464927a7eda1b695a27582b2131463fc996a596c27c917a4c805e39ba0c0e8a45ee07cd35f399fc14b52015765b0fe6661042d6d37d13a337751c9319ed2
7
- data.tar.gz: 62ef313a398acee6978f39b3c9fa50adcde928a998187ae792e95b739fa67864bce37efda33a1d940707c8dc4e2460092f924beb4c852e2d4776401e899612a9
6
+ metadata.gz: 54086d5dc65d8d094ac7021d61e1572823bed0a772bd38f6e740964080a72f3851fef3c8c42580b243503d7b15a31c52461fe390dc618ed345a40e3db5d0f3ae
7
+ data.tar.gz: 0bd611311622224b037b720dcdfe0eb39bdfda2aeaca37247ffd6dbc485ab5f9affd25b24e233bea544f5babc7f39356f4a4f3f36dafb8417810d91a650470aa
@@ -0,0 +1,5 @@
1
+ ## 0.0.2
2
+ - Accepts zero-arity block as :if option
3
+
4
+ ## 0.0.1
5
+ - 1st release
@@ -6,7 +6,7 @@ module ActiveRecord
6
6
  super.select do |owner|
7
7
  case if_condition
8
8
  when Proc
9
- owner.instance_eval(&if_condition)
9
+ owner.instance_exec(&if_condition)
10
10
  when String, Symbol
11
11
  owner.send(if_condition)
12
12
  else
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module BelongsToIf
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-belongs_to_if
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-01 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - CHANGELOG.md
77
78
  - Gemfile
78
79
  - LICENSE.txt
79
80
  - README.md