join_cache 0.1.1 → 0.1.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.
data/README.markdown CHANGED
@@ -47,15 +47,26 @@ class Employee < ActiveRecord::Base
47
47
  end
48
48
  ```
49
49
 
50
+ ## TODO
51
+
52
+ * [Support has_many :through](https://github.com/KevinBongart/join_cache/issues/1)
53
+ * [Support callbacks: after_add and after_remove](https://github.com/KevinBongart/join_cache/issues/2)
54
+
55
+ [View the full list](https://github.com/KevinBongart/join_cache/issues)
56
+
50
57
  ## Contributing to join_cache
51
58
 
52
59
  * Fork the project.
53
60
  * Start a feature/bugfix branch.
54
61
  * Commit and push until you are happy with your contribution.
55
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
62
+
63
+ ## I came here looking for Johnny Cash
64
+
65
+ Here you go:
66
+
67
+ ![Johnny Cash](http://i.imgur.com/jmt2geX.gif)
56
68
 
57
69
  ## Copyright
58
70
 
59
71
  Copyright (c) 2013 Kevin Bongart. See LICENSE.txt for
60
72
  further details.
61
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/join_cache.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "join_cache"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kevin Bongart"]
12
- s.date = "2013-10-16"
12
+ s.date = "2013-10-17"
13
13
  s.email = "contact@kevinbongart.net"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
data/lib/join_cache.rb CHANGED
@@ -22,8 +22,8 @@ module JoinCache
22
22
  plural_name = association.plural_name # teams
23
23
  cached_name = "cached_#{plural_name}" # cached_teams
24
24
  cached_ids_name = "cached_#{singular_name}_ids" # cached_team_ids
25
- primary_key = association.class_name.foreign_key # employee_id
26
- foreign_key = association.foreign_key # team_id
25
+ primary_key = association.foreign_key # employee_id
26
+ foreign_key = association.association_foreign_key # team_id
27
27
  join_table = association.join_table # employees_teams
28
28
  join_model = join_table.classify.pluralize.constantize # EmployeesTeams
29
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: join_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-16 00:00:00.000000000 Z
12
+ date: 2013-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -109,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  segments:
111
111
  - 0
112
- hash: 3755351500618496333
112
+ hash: -785509289355240113
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  none: false
115
115
  requirements: