honkster-friendly 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -0,0 +1,241 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{honkster-friendly}
8
+ s.version = "0.5.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["James Golick"]
12
+ s.date = %q{2010-04-14}
13
+ s.description = %q{}
14
+ s.email = %q{jamesgolick@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "APACHE-LICENSE",
23
+ "CHANGELOG.md",
24
+ "CONTRIBUTORS.md",
25
+ "LICENSE",
26
+ "README.md",
27
+ "Rakefile",
28
+ "TODO.md",
29
+ "VERSION",
30
+ "examples/friendly.yml",
31
+ "friendly.gemspec",
32
+ "honkster-friendly.gemspec",
33
+ "lib/friendly.rb",
34
+ "lib/friendly/associations.rb",
35
+ "lib/friendly/associations/association.rb",
36
+ "lib/friendly/associations/set.rb",
37
+ "lib/friendly/attribute.rb",
38
+ "lib/friendly/boolean.rb",
39
+ "lib/friendly/cache.rb",
40
+ "lib/friendly/cache/by_id.rb",
41
+ "lib/friendly/data_store.rb",
42
+ "lib/friendly/document.rb",
43
+ "lib/friendly/document/associations.rb",
44
+ "lib/friendly/document/attributes.rb",
45
+ "lib/friendly/document/convenience.rb",
46
+ "lib/friendly/document/mixin.rb",
47
+ "lib/friendly/document/scoping.rb",
48
+ "lib/friendly/document/storage.rb",
49
+ "lib/friendly/document_table.rb",
50
+ "lib/friendly/index.rb",
51
+ "lib/friendly/indexer.rb",
52
+ "lib/friendly/memcached.rb",
53
+ "lib/friendly/newrelic.rb",
54
+ "lib/friendly/query.rb",
55
+ "lib/friendly/scope.rb",
56
+ "lib/friendly/scope_proxy.rb",
57
+ "lib/friendly/sequel_monkey_patches.rb",
58
+ "lib/friendly/storage.rb",
59
+ "lib/friendly/storage_factory.rb",
60
+ "lib/friendly/storage_proxy.rb",
61
+ "lib/friendly/table.rb",
62
+ "lib/friendly/table_creator.rb",
63
+ "lib/friendly/time.rb",
64
+ "lib/friendly/translator.rb",
65
+ "lib/friendly/uuid.rb",
66
+ "lib/tasks/friendly.rake",
67
+ "rails/init.rb",
68
+ "spec/config.yml.example",
69
+ "spec/fakes/data_store_fake.rb",
70
+ "spec/fakes/database_fake.rb",
71
+ "spec/fakes/dataset_fake.rb",
72
+ "spec/fakes/document.rb",
73
+ "spec/fakes/serializer_fake.rb",
74
+ "spec/fakes/time_fake.rb",
75
+ "spec/integration/ad_hoc_scopes_spec.rb",
76
+ "spec/integration/basic_object_lifecycle_spec.rb",
77
+ "spec/integration/batch_insertion_spec.rb",
78
+ "spec/integration/convenience_api_spec.rb",
79
+ "spec/integration/count_spec.rb",
80
+ "spec/integration/default_value_spec.rb",
81
+ "spec/integration/dirty_tracking_spec.rb",
82
+ "spec/integration/find_via_cache_spec.rb",
83
+ "spec/integration/finder_spec.rb",
84
+ "spec/integration/has_many_spec.rb",
85
+ "spec/integration/index_spec.rb",
86
+ "spec/integration/named_scope_spec.rb",
87
+ "spec/integration/offline_indexing_spec.rb",
88
+ "spec/integration/pagination_spec.rb",
89
+ "spec/integration/scope_chaining_spec.rb",
90
+ "spec/integration/table_creator_spec.rb",
91
+ "spec/integration/write_through_cache_spec.rb",
92
+ "spec/spec.opts",
93
+ "spec/spec_helper.rb",
94
+ "spec/unit/associations/association_spec.rb",
95
+ "spec/unit/associations/set_spec.rb",
96
+ "spec/unit/attribute_spec.rb",
97
+ "spec/unit/cache_by_id_spec.rb",
98
+ "spec/unit/cache_spec.rb",
99
+ "spec/unit/data_store_spec.rb",
100
+ "spec/unit/document/attributes_spec.rb",
101
+ "spec/unit/document_spec.rb",
102
+ "spec/unit/document_table_spec.rb",
103
+ "spec/unit/friendly_spec.rb",
104
+ "spec/unit/index_spec.rb",
105
+ "spec/unit/memcached_spec.rb",
106
+ "spec/unit/query_spec.rb",
107
+ "spec/unit/scope_proxy_spec.rb",
108
+ "spec/unit/scope_spec.rb",
109
+ "spec/unit/storage_factory_spec.rb",
110
+ "spec/unit/storage_proxy_spec.rb",
111
+ "spec/unit/translator_spec.rb",
112
+ "website/index.html",
113
+ "website/scripts/clipboard.swf",
114
+ "website/scripts/shBrushAS3.js",
115
+ "website/scripts/shBrushBash.js",
116
+ "website/scripts/shBrushCSharp.js",
117
+ "website/scripts/shBrushColdFusion.js",
118
+ "website/scripts/shBrushCpp.js",
119
+ "website/scripts/shBrushCss.js",
120
+ "website/scripts/shBrushDelphi.js",
121
+ "website/scripts/shBrushDiff.js",
122
+ "website/scripts/shBrushErlang.js",
123
+ "website/scripts/shBrushGroovy.js",
124
+ "website/scripts/shBrushJScript.js",
125
+ "website/scripts/shBrushJava.js",
126
+ "website/scripts/shBrushJavaFX.js",
127
+ "website/scripts/shBrushPerl.js",
128
+ "website/scripts/shBrushPhp.js",
129
+ "website/scripts/shBrushPlain.js",
130
+ "website/scripts/shBrushPowerShell.js",
131
+ "website/scripts/shBrushPython.js",
132
+ "website/scripts/shBrushRuby.js",
133
+ "website/scripts/shBrushScala.js",
134
+ "website/scripts/shBrushSql.js",
135
+ "website/scripts/shBrushVb.js",
136
+ "website/scripts/shBrushXml.js",
137
+ "website/scripts/shCore.js",
138
+ "website/scripts/shLegacy.js",
139
+ "website/styles/friendly.css",
140
+ "website/styles/help.png",
141
+ "website/styles/ie.css",
142
+ "website/styles/magnifier.png",
143
+ "website/styles/page_white_code.png",
144
+ "website/styles/page_white_copy.png",
145
+ "website/styles/print.css",
146
+ "website/styles/printer.png",
147
+ "website/styles/screen.css",
148
+ "website/styles/shCore.css",
149
+ "website/styles/shThemeDefault.css",
150
+ "website/styles/shThemeDjango.css",
151
+ "website/styles/shThemeEclipse.css",
152
+ "website/styles/shThemeEmacs.css",
153
+ "website/styles/shThemeFadeToGrey.css",
154
+ "website/styles/shThemeMidnight.css",
155
+ "website/styles/shThemeRDark.css"
156
+ ]
157
+ s.homepage = %q{http://friendlyorm.com}
158
+ s.rdoc_options = ["--charset=UTF-8"]
159
+ s.require_paths = ["lib"]
160
+ s.rubygems_version = %q{1.3.6}
161
+ s.summary = %q{NoSQL with MySQL in Ruby}
162
+ s.test_files = [
163
+ "spec/spec_helper.rb",
164
+ "spec/unit/document_table_spec.rb",
165
+ "spec/unit/attribute_spec.rb",
166
+ "spec/unit/index_spec.rb",
167
+ "spec/unit/cache_by_id_spec.rb",
168
+ "spec/unit/document/attributes_spec.rb",
169
+ "spec/unit/memcached_spec.rb",
170
+ "spec/unit/query_spec.rb",
171
+ "spec/unit/data_store_spec.rb",
172
+ "spec/unit/scope_spec.rb",
173
+ "spec/unit/storage_proxy_spec.rb",
174
+ "spec/unit/friendly_spec.rb",
175
+ "spec/unit/associations/association_spec.rb",
176
+ "spec/unit/associations/set_spec.rb",
177
+ "spec/unit/translator_spec.rb",
178
+ "spec/unit/storage_factory_spec.rb",
179
+ "spec/unit/cache_spec.rb",
180
+ "spec/unit/document_spec.rb",
181
+ "spec/unit/scope_proxy_spec.rb",
182
+ "spec/integration/offline_indexing_spec.rb",
183
+ "spec/integration/table_creator_spec.rb",
184
+ "spec/integration/index_spec.rb",
185
+ "spec/integration/find_via_cache_spec.rb",
186
+ "spec/integration/count_spec.rb",
187
+ "spec/integration/batch_insertion_spec.rb",
188
+ "spec/integration/has_many_spec.rb",
189
+ "spec/integration/write_through_cache_spec.rb",
190
+ "spec/integration/scope_chaining_spec.rb",
191
+ "spec/integration/basic_object_lifecycle_spec.rb",
192
+ "spec/integration/convenience_api_spec.rb",
193
+ "spec/integration/named_scope_spec.rb",
194
+ "spec/integration/ad_hoc_scopes_spec.rb",
195
+ "spec/integration/pagination_spec.rb",
196
+ "spec/integration/dirty_tracking_spec.rb",
197
+ "spec/integration/finder_spec.rb",
198
+ "spec/integration/default_value_spec.rb",
199
+ "spec/fakes/serializer_fake.rb",
200
+ "spec/fakes/dataset_fake.rb",
201
+ "spec/fakes/time_fake.rb",
202
+ "spec/fakes/data_store_fake.rb",
203
+ "spec/fakes/database_fake.rb",
204
+ "spec/fakes/document.rb"
205
+ ]
206
+
207
+ if s.respond_to? :specification_version then
208
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
209
+ s.specification_version = 3
210
+
211
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
212
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
213
+ s.add_development_dependency(%q<cucumber>, [">= 0"])
214
+ s.add_development_dependency(%q<jferris-mocha>, [">= 0"])
215
+ s.add_development_dependency(%q<memcached>, [">= 0"])
216
+ s.add_runtime_dependency(%q<sequel>, [">= 3.7.0"])
217
+ s.add_runtime_dependency(%q<json_pure>, [">= 0"])
218
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
219
+ s.add_runtime_dependency(%q<will_paginate>, [">= 0"])
220
+ else
221
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
222
+ s.add_dependency(%q<cucumber>, [">= 0"])
223
+ s.add_dependency(%q<jferris-mocha>, [">= 0"])
224
+ s.add_dependency(%q<memcached>, [">= 0"])
225
+ s.add_dependency(%q<sequel>, [">= 3.7.0"])
226
+ s.add_dependency(%q<json_pure>, [">= 0"])
227
+ s.add_dependency(%q<activesupport>, [">= 0"])
228
+ s.add_dependency(%q<will_paginate>, [">= 0"])
229
+ end
230
+ else
231
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
232
+ s.add_dependency(%q<cucumber>, [">= 0"])
233
+ s.add_dependency(%q<jferris-mocha>, [">= 0"])
234
+ s.add_dependency(%q<memcached>, [">= 0"])
235
+ s.add_dependency(%q<sequel>, [">= 3.7.0"])
236
+ s.add_dependency(%q<json_pure>, [">= 0"])
237
+ s.add_dependency(%q<activesupport>, [">= 0"])
238
+ s.add_dependency(%q<will_paginate>, [">= 0"])
239
+ end
240
+ end
241
+
@@ -33,7 +33,10 @@ module Friendly
33
33
  end
34
34
 
35
35
  def to_hash
36
- Hash[*self.class.attributes.keys.map { |n| [n, send(n)] }.flatten]
36
+ self.class.attributes.keys.inject({}) do |memo, key|
37
+ memo[key] = send(key)
38
+ memo
39
+ end
37
40
  end
38
41
 
39
42
  def assign_default_values
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - James Golick
@@ -139,6 +139,7 @@ files:
139
139
  - VERSION
140
140
  - examples/friendly.yml
141
141
  - friendly.gemspec
142
+ - honkster-friendly.gemspec
142
143
  - lib/friendly.rb
143
144
  - lib/friendly/associations.rb
144
145
  - lib/friendly/associations/association.rb