natural_born_slugger 0.2.5 → 0.2.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a99cb7ed1ade9fca52412d4eeab883b445246d1
|
4
|
+
data.tar.gz: 67ca1e0caaa35375ac69e62ce53da0a15aedbbc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9335f5efd6b0c7cd207d578ed00b29e9bb44892231daa9d608f527285e2bf0b6694a350b59feb5b41de9b495293a7d9fc48fe4aad18bd6a71b1253afa869d3
|
7
|
+
data.tar.gz: 6eb45a73640ca09d73a0d24401cf7e55d3a6bbf145487528eaf283c754228a101e9a905e5c3b584928b342d789f8ff1874839c7124e0fb14b6031b08e4eb7e6b
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'active_support/core_ext/class'
|
2
|
+
|
1
3
|
module NaturalBornSlugger
|
2
4
|
class AttributeComposer
|
3
5
|
|
@@ -82,8 +84,8 @@ module NaturalBornSlugger
|
|
82
84
|
# or throws an error, depending on configuration
|
83
85
|
def add_to(klass)
|
84
86
|
|
85
|
-
|
86
|
-
|
87
|
+
unless klass.respond_to? :composite_attributes
|
88
|
+
klass.class_attribute(:composite_attributes)
|
87
89
|
end
|
88
90
|
klass.composite_attributes ||= {}
|
89
91
|
klass.composite_attributes[@name] = self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: natural_born_slugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Keele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.0.
|
160
|
+
rubygems_version: 2.0.3
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Easily define automatically-updated composed attributes. Includes ORM helpers
|
@@ -170,4 +170,3 @@ test_files:
|
|
170
170
|
- spec/natural_born_slugger_spec.rb
|
171
171
|
- spec/spec_helper.rb
|
172
172
|
- spec/support/example.rb
|
173
|
-
has_rdoc:
|