denormalize-field 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source "http://rubygems.org"
2
- gem "activerecord", "~> 3.2.0"
2
+ gem "activerecord", "> 3.2.0"
3
3
 
4
4
  group :development, :test do
5
5
  gem 'em-synchrony'
data/Gemfile.lock CHANGED
@@ -1,26 +1,31 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.2.8)
5
- activesupport (= 3.2.8)
6
- builder (~> 3.0.0)
7
- activerecord (3.2.8)
8
- activemodel (= 3.2.8)
9
- activesupport (= 3.2.8)
10
- arel (~> 3.0.2)
11
- tzinfo (~> 0.3.29)
12
- activesupport (3.2.8)
13
- i18n (~> 0.6)
14
- multi_json (~> 1.0)
15
- arel (3.0.2)
16
- builder (3.0.3)
4
+ activemodel (4.0.3)
5
+ activesupport (= 4.0.3)
6
+ builder (~> 3.1.0)
7
+ activerecord (4.0.3)
8
+ activemodel (= 4.0.3)
9
+ activerecord-deprecated_finders (~> 1.0.2)
10
+ activesupport (= 4.0.3)
11
+ arel (~> 4.0.0)
12
+ activerecord-deprecated_finders (1.0.3)
13
+ activesupport (4.0.3)
14
+ i18n (~> 0.6, >= 0.6.4)
15
+ minitest (~> 4.2)
16
+ multi_json (~> 1.3)
17
+ thread_safe (~> 0.1)
18
+ tzinfo (~> 0.3.37)
19
+ arel (4.0.2)
20
+ atomic (1.1.15)
21
+ builder (3.1.4)
17
22
  coderay (1.0.7)
18
23
  diff-lcs (1.1.3)
19
24
  em-synchrony (1.0.3)
20
25
  eventmachine (>= 1.0.0.beta.1)
21
26
  eventmachine (1.0.3)
22
27
  git (1.2.5)
23
- i18n (0.6.1)
28
+ i18n (0.6.9)
24
29
  jeweler (1.8.4)
25
30
  bundler (~> 1.0)
26
31
  git (>= 1.2.5)
@@ -29,9 +34,10 @@ GEM
29
34
  json (1.7.5)
30
35
  metaclass (0.0.1)
31
36
  method_source (0.8)
37
+ minitest (4.7.5)
32
38
  mocha (0.10.4)
33
39
  metaclass (~> 0.0.1)
34
- multi_json (1.3.6)
40
+ multi_json (1.8.4)
35
41
  pg (0.14.1)
36
42
  pry (0.9.10)
37
43
  coderay (~> 1.0.5)
@@ -49,13 +55,15 @@ GEM
49
55
  diff-lcs (~> 1.1.2)
50
56
  rspec-mocks (2.8.0)
51
57
  slop (3.3.3)
52
- tzinfo (0.3.33)
58
+ thread_safe (0.2.0)
59
+ atomic (>= 1.1.7, < 2)
60
+ tzinfo (0.3.38)
53
61
 
54
62
  PLATFORMS
55
63
  ruby
56
64
 
57
65
  DEPENDENCIES
58
- activerecord (~> 3.2.0)
66
+ activerecord (> 3.2.0)
59
67
  em-synchrony
60
68
  jeweler (~> 1.8.4)
61
69
  mocha
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "denormalize-field"
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Len Smith"]
12
- s.date = "2014-01-18"
12
+ s.date = "2014-03-14"
13
13
  s.description = "Denormalize ActiveRecord fields for performance reasons"
14
14
  s.email = "len@barrison.com"
15
15
  s.extra_rdoc_files = [
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
45
45
  s.specification_version = 3
46
46
 
47
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
- s.add_runtime_dependency(%q<activerecord>, ["~> 3.2.0"])
48
+ s.add_runtime_dependency(%q<activerecord>, ["> 3.2.0"])
49
49
  s.add_development_dependency(%q<em-synchrony>, [">= 0"])
50
50
  s.add_development_dependency(%q<pry>, [">= 0"])
51
51
  s.add_development_dependency(%q<pg>, [">= 0"])
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
54
54
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
55
55
  s.add_development_dependency(%q<mocha>, [">= 0"])
56
56
  else
57
- s.add_dependency(%q<activerecord>, ["~> 3.2.0"])
57
+ s.add_dependency(%q<activerecord>, ["> 3.2.0"])
58
58
  s.add_dependency(%q<em-synchrony>, [">= 0"])
59
59
  s.add_dependency(%q<pry>, [">= 0"])
60
60
  s.add_dependency(%q<pg>, [">= 0"])
@@ -64,7 +64,7 @@ Gem::Specification.new do |s|
64
64
  s.add_dependency(%q<mocha>, [">= 0"])
65
65
  end
66
66
  else
67
- s.add_dependency(%q<activerecord>, ["~> 3.2.0"])
67
+ s.add_dependency(%q<activerecord>, ["> 3.2.0"])
68
68
  s.add_dependency(%q<em-synchrony>, [">= 0"])
69
69
  s.add_dependency(%q<pry>, [">= 0"])
70
70
  s.add_dependency(%q<pg>, [">= 0"])
@@ -33,7 +33,7 @@ module DenormalizeFields
33
33
  if self.send "#{_field_name}_changed?"
34
34
  quoted_value = ActiveRecord::Base.connection.quote self.send(_field_name)
35
35
  update_sql = "UPDATE #{_original_klass.table_name} SET #{_denormalized_field_name} = #{quoted_value} where #{key}_id = #{self.id}"
36
- self.connection.execute update_sql
36
+ self.class.connection.execute update_sql
37
37
  end
38
38
  end
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: denormalize-field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,14 +9,14 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-18 00:00:00.000000000 Z
12
+ date: 2014-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>'
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.2.0
22
22
  type: :runtime
@@ -24,7 +24,7 @@ dependencies:
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ! '>'
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.2.0
30
30
  - !ruby/object:Gem::Dependency
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: -416803536568193147
182
+ hash: -759587295505829006
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements: