magerecord 0.1.3 → 0.1.4

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/Gemfile.lock CHANGED
@@ -1,25 +1,22 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (4.0.4)
5
- activesupport (= 4.0.4)
6
- builder (~> 3.1.0)
7
- activerecord (4.0.4)
8
- activemodel (= 4.0.4)
9
- activerecord-deprecated_finders (~> 1.0.2)
10
- activesupport (= 4.0.4)
11
- arel (~> 4.0.0)
12
- activerecord-deprecated_finders (1.0.3)
13
- activesupport (4.0.4)
4
+ activemodel (4.1.1)
5
+ activesupport (= 4.1.1)
6
+ builder (~> 3.1)
7
+ activerecord (4.1.1)
8
+ activemodel (= 4.1.1)
9
+ activesupport (= 4.1.1)
10
+ arel (~> 5.0.0)
11
+ activesupport (4.1.1)
14
12
  i18n (~> 0.6, >= 0.6.9)
15
- minitest (~> 4.2)
16
- multi_json (~> 1.3)
13
+ json (~> 1.7, >= 1.7.7)
14
+ minitest (~> 5.1)
17
15
  thread_safe (~> 0.1)
18
- tzinfo (~> 0.3.37)
16
+ tzinfo (~> 1.1)
19
17
  addressable (2.3.6)
20
- arel (4.0.2)
21
- atomic (1.1.16)
22
- builder (3.1.4)
18
+ arel (5.0.1.20140414130214)
19
+ builder (3.2.2)
23
20
  descendants_tracker (0.0.4)
24
21
  thread_safe (~> 0.3, >= 0.3.1)
25
22
  docile (1.1.3)
@@ -34,7 +31,7 @@ GEM
34
31
  multi_json (>= 1.7.5, < 2.0)
35
32
  nokogiri (~> 1.6.0)
36
33
  oauth2
37
- hashie (2.0.5)
34
+ hashie (2.1.1)
38
35
  highline (1.6.21)
39
36
  i18n (0.6.9)
40
37
  jeweler (2.0.1)
@@ -47,11 +44,11 @@ GEM
47
44
  rake
48
45
  rdoc
49
46
  json (1.8.1)
50
- jwt (0.1.11)
47
+ jwt (0.1.13)
51
48
  multi_json (>= 1.5)
52
49
  mini_portile (0.5.3)
53
- minitest (4.7.5)
54
- multi_json (1.9.2)
50
+ minitest (5.3.3)
51
+ multi_json (1.10.0)
55
52
  multi_xml (0.5.5)
56
53
  multipart-post (2.0.0)
57
54
  mysql2 (0.3.15)
@@ -64,23 +61,23 @@ GEM
64
61
  multi_xml (~> 0.5)
65
62
  rack (~> 1.2)
66
63
  rack (1.5.2)
67
- rake (10.2.2)
64
+ rake (10.3.1)
68
65
  rdoc (3.12.2)
69
66
  json (~> 1.4)
70
67
  shoulda (3.5.0)
71
68
  shoulda-context (~> 1.0, >= 1.0.1)
72
69
  shoulda-matchers (>= 1.4.1, < 3.0)
73
- shoulda-context (1.2.0)
74
- shoulda-matchers (2.5.0)
70
+ shoulda-context (1.2.1)
71
+ shoulda-matchers (2.6.1)
75
72
  activesupport (>= 3.0.0)
76
73
  simplecov (0.8.2)
77
74
  docile (~> 1.1.0)
78
75
  multi_json
79
76
  simplecov-html (~> 0.8.0)
80
77
  simplecov-html (0.8.0)
81
- thread_safe (0.3.1)
82
- atomic (>= 1.1.7, < 2)
83
- tzinfo (0.3.39)
78
+ thread_safe (0.3.3)
79
+ tzinfo (1.1.0)
80
+ thread_safe (~> 0.1)
84
81
 
85
82
  PLATFORMS
86
83
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -37,6 +37,11 @@ module MageRecord
37
37
  end
38
38
 
39
39
 
40
+ def respond_to?(meth, include_private = false)
41
+ (get_eav_records(meth).count > 0) || super
42
+ end
43
+
44
+
40
45
 
41
46
 
42
47
  private
@@ -15,7 +15,13 @@ module MageRecord
15
15
 
16
16
  # call associated product's method
17
17
  def method_missing(meth, *args, &block)
18
- super || (product && product.send(meth))
18
+ if product && product.respond_to?(meth)
19
+ product.send(meth)
20
+ else
21
+ # call superclass's method_missing method
22
+ # or risk breaking Ruby's method lookup
23
+ super
24
+ end
19
25
  end
20
26
 
21
27
 
data/magerecord.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "magerecord"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marc"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -170,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: -2096501154630265700
173
+ hash: 453617207663803982
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  none: false
176
176
  requirements: