joiner 0.3.2 → 0.3.3

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: 256fbb3db777b728bebad717cdfcc4d643b45de5
4
- data.tar.gz: 0eec70b59d2e8a2dcbec8850c53b3e11e0c413c8
3
+ metadata.gz: 01b97b89bc7c04f7a25d72b8436841e8f7fbfe24
4
+ data.tar.gz: bab0b551d64f5c25b48f0202e2e0e5149e96d8fc
5
5
  SHA512:
6
- metadata.gz: 28d9edcab61349a208ee56e3fdb4506ed31a28367a73c2d6f6c11d542a84906e15f393f3a161fcfb9ece27f4527092bda9f742071efb231bf1095226892c297f
7
- data.tar.gz: b1ff2fc62dfaad859067c6fde324d598f40ad2793910d1d17a8969dbacb1fc31fd6d7e8ffc64096ead5caca2c985bf3eb9252a81c130304c493bdf56445f61d1
6
+ metadata.gz: 8a70f902aab2443b347718b8f3d71dff01bad841df1655cd4a4aaae048464468528bcf0f442a182cb00045caf0d2ef5dbea11b6c63d60ca96517ff4f304e22d3
7
+ data.tar.gz: 5c9b0c43094294bd7e4b6bb788525742994828018c741b3ed663a0ae95384232c38d485f49429816ea1516f3e4baa8bf858fb137a8229b82792b7f788ad8115d
data/README.md CHANGED
@@ -9,7 +9,7 @@ If this gem is used by anyone other than myself/Thinking Sphinx, I'll be surpris
9
9
  It's a gem - so you can either install it yourself, or add it to the appropriate Gemfile or gemspec.
10
10
 
11
11
  ```term
12
- gem install joiner --version 0.3.2
12
+ gem install joiner --version 0.3.3
13
13
  ```
14
14
 
15
15
  ## Usage
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'joiner'
4
- spec.version = '0.3.2'
4
+ spec.version = '0.3.3'
5
5
  spec.authors = ['Pat Allan']
6
6
  spec.email = ['pat@freelancing-gods.com']
7
7
  spec.summary = %q{Builds ActiveRecord joins from association paths}
@@ -30,7 +30,9 @@ class Joiner::Joins
30
30
  private
31
31
 
32
32
  def build_join(path)
33
- return join if join = find_join(path)
33
+ if join = find_join(path)
34
+ return join
35
+ end
34
36
 
35
37
  base_node, short_path = relative_path(path)
36
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joiner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-13 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord