has_metadata 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -47,7 +47,7 @@ GEM
47
47
  mime-types (~> 1.16)
48
48
  treetop (~> 1.4.8)
49
49
  mime-types (1.16)
50
- polyglot (0.3.1)
50
+ polyglot (0.3.2)
51
51
  rack (1.2.3)
52
52
  rack-mount (0.6.14)
53
53
  rack (>= 1.0.0)
@@ -68,7 +68,7 @@ GEM
68
68
  rdoc (~> 3.4)
69
69
  thor (~> 0.14.4)
70
70
  rake (0.9.2)
71
- rdoc (3.8)
71
+ rdoc (3.9.1)
72
72
  rspec (2.6.0)
73
73
  rspec-core (~> 2.6.0)
74
74
  rspec-expectations (~> 2.6.0)
@@ -77,9 +77,10 @@ GEM
77
77
  rspec-expectations (2.6.0)
78
78
  diff-lcs (~> 1.1.2)
79
79
  rspec-mocks (2.6.0)
80
- sqlite3 (1.3.3)
80
+ sqlite3 (1.3.4)
81
81
  thor (0.14.6)
82
- treetop (1.4.9)
82
+ treetop (1.4.10)
83
+ polyglot
83
84
  polyglot (>= 0.3.1)
84
85
  tzinfo (0.3.29)
85
86
  yard (0.7.2)
data/README.textile CHANGED
@@ -1,7 +1,7 @@
1
1
  h1. has_metadata -- Keep your tables narrow
2
2
 
3
3
  | *Author* | Tim Morgan |
4
- | *Version* | 1.2.1 (Jul 16, 2011) |
4
+ | *Version* | 1.2.2 (Aug 10, 2011) |
5
5
  | *License* | Released under the MIT License. |
6
6
 
7
7
  h2. Important note for those upgrading from 1.0 to 1.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
data/has_metadata.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{has_metadata}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Tim Morgan"]
12
- s.date = %q{2011-07-16}
11
+ s.authors = [%q{Tim Morgan}]
12
+ s.date = %q{2011-08-11}
13
13
  s.description = %q{has_metadata lets you move non-indexed and weighty columns off of your big tables by creating a separate metadata table to store all this extra information. Works with Ruby 1.9. and Rails 3.0.}
14
14
  s.email = %q{git@timothymorgan.info}
15
15
  s.extra_rdoc_files = [
@@ -36,9 +36,9 @@ Gem::Specification.new do |s|
36
36
  "templates/metadata.rb"
37
37
  ]
38
38
  s.homepage = %q{http://github.com/riscfuture/has_metadata}
39
- s.require_paths = ["lib"]
39
+ s.require_paths = [%q{lib}]
40
40
  s.required_ruby_version = Gem::Requirement.new(">= 1.9")
41
- s.rubygems_version = %q{1.6.2}
41
+ s.rubygems_version = %q{1.8.7}
42
42
  s.summary = %q{Reduce your table width by moving non-indexed columns to a separate metadata table}
43
43
 
44
44
  if s.respond_to? :specification_version then
data/lib/has_metadata.rb CHANGED
@@ -129,9 +129,7 @@ module HasMetadata
129
129
  if instance_variables.include?(:@metadata) then
130
130
  metadata.set_fields self.class.metadata_fields
131
131
  else
132
- Metadata.transaction do
133
- (metadata || create_metadata).set_fields self.class.metadata_fields
134
- end
132
+ (metadata || Metadata.transaction { metadata || create_metadata }).set_fields self.class.metadata_fields
135
133
  end
136
134
  end
137
135
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-16 00:00:00.000000000 -07:00
13
- default_executable:
12
+ date: 2011-08-11 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rails
17
- requirement: &2152152740 !ruby/object:Gem::Requirement
16
+ requirement: &2173306580 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: '3.0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2152152740
24
+ version_requirements: *2173306580
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: boolean
28
- requirement: &2152152160 !ruby/object:Gem::Requirement
27
+ requirement: &2173305900 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ! '>='
@@ -33,10 +32,10 @@ dependencies:
33
32
  version: '0'
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *2152152160
35
+ version_requirements: *2173305900
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: jeweler
39
- requirement: &2152151560 !ruby/object:Gem::Requirement
38
+ requirement: &2173305240 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ! '>='
@@ -44,10 +43,10 @@ dependencies:
44
43
  version: '0'
45
44
  type: :development
46
45
  prerelease: false
47
- version_requirements: *2152151560
46
+ version_requirements: *2173305240
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: yard
50
- requirement: &2152150960 !ruby/object:Gem::Requirement
49
+ requirement: &2173304580 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
53
52
  - - ! '>='
@@ -55,10 +54,10 @@ dependencies:
55
54
  version: '0'
56
55
  type: :development
57
56
  prerelease: false
58
- version_requirements: *2152150960
57
+ version_requirements: *2173304580
59
58
  - !ruby/object:Gem::Dependency
60
59
  name: RedCloth
61
- requirement: &2152150440 !ruby/object:Gem::Requirement
60
+ requirement: &2173304000 !ruby/object:Gem::Requirement
62
61
  none: false
63
62
  requirements:
64
63
  - - ! '>='
@@ -66,10 +65,10 @@ dependencies:
66
65
  version: '0'
67
66
  type: :development
68
67
  prerelease: false
69
- version_requirements: *2152150440
68
+ version_requirements: *2173304000
70
69
  - !ruby/object:Gem::Dependency
71
70
  name: sqlite3
72
- requirement: &2152149900 !ruby/object:Gem::Requirement
71
+ requirement: &2173303460 !ruby/object:Gem::Requirement
73
72
  none: false
74
73
  requirements:
75
74
  - - ! '>='
@@ -77,10 +76,10 @@ dependencies:
77
76
  version: '0'
78
77
  type: :development
79
78
  prerelease: false
80
- version_requirements: *2152149900
79
+ version_requirements: *2173303460
81
80
  - !ruby/object:Gem::Dependency
82
81
  name: rspec
83
- requirement: &2152149420 !ruby/object:Gem::Requirement
82
+ requirement: &2173302840 !ruby/object:Gem::Requirement
84
83
  none: false
85
84
  requirements:
86
85
  - - ! '>='
@@ -88,7 +87,7 @@ dependencies:
88
87
  version: '0'
89
88
  type: :development
90
89
  prerelease: false
91
- version_requirements: *2152149420
90
+ version_requirements: *2173302840
92
91
  description: has_metadata lets you move non-indexed and weighty columns off of your
93
92
  big tables by creating a separate metadata table to store all this extra information.
94
93
  Works with Ruby 1.9. and Rails 3.0.
@@ -116,7 +115,6 @@ files:
116
115
  - spec/spec_helper.rb
117
116
  - templates/create_metadata.rb
118
117
  - templates/metadata.rb
119
- has_rdoc: true
120
118
  homepage: http://github.com/riscfuture/has_metadata
121
119
  licenses: []
122
120
  post_install_message:
@@ -137,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
135
  version: '0'
138
136
  requirements: []
139
137
  rubyforge_project:
140
- rubygems_version: 1.6.2
138
+ rubygems_version: 1.8.7
141
139
  signing_key:
142
140
  specification_version: 3
143
141
  summary: Reduce your table width by moving non-indexed columns to a separate metadata