HornsAndHooves-flat_map 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +34 -0
  3. data/.metrics +17 -0
  4. data/.rspec +4 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +9 -0
  8. data/Gemfile +20 -0
  9. data/HornsAndHooves-flat_map.gemspec +29 -0
  10. data/LICENSE +21 -0
  11. data/README.markdown +214 -0
  12. data/Rakefile +15 -0
  13. data/lib/flat_map.rb +14 -0
  14. data/lib/flat_map/errors.rb +57 -0
  15. data/lib/flat_map/mapping.rb +124 -0
  16. data/lib/flat_map/mapping/factory.rb +21 -0
  17. data/lib/flat_map/mapping/reader.rb +12 -0
  18. data/lib/flat_map/mapping/reader/basic.rb +28 -0
  19. data/lib/flat_map/mapping/reader/formatted.rb +45 -0
  20. data/lib/flat_map/mapping/reader/formatted/formats.rb +28 -0
  21. data/lib/flat_map/mapping/reader/method.rb +25 -0
  22. data/lib/flat_map/mapping/reader/proc.rb +15 -0
  23. data/lib/flat_map/mapping/writer.rb +11 -0
  24. data/lib/flat_map/mapping/writer/basic.rb +25 -0
  25. data/lib/flat_map/mapping/writer/method.rb +28 -0
  26. data/lib/flat_map/mapping/writer/proc.rb +18 -0
  27. data/lib/flat_map/model_mapper.rb +195 -0
  28. data/lib/flat_map/model_mapper/persistence.rb +108 -0
  29. data/lib/flat_map/model_mapper/skipping.rb +45 -0
  30. data/lib/flat_map/open_mapper.rb +113 -0
  31. data/lib/flat_map/open_mapper/attribute_methods.rb +55 -0
  32. data/lib/flat_map/open_mapper/factory.rb +244 -0
  33. data/lib/flat_map/open_mapper/mapping.rb +123 -0
  34. data/lib/flat_map/open_mapper/mounting.rb +168 -0
  35. data/lib/flat_map/open_mapper/persistence.rb +178 -0
  36. data/lib/flat_map/open_mapper/skipping.rb +66 -0
  37. data/lib/flat_map/open_mapper/traits.rb +95 -0
  38. data/lib/flat_map/version.rb +3 -0
  39. data/spec/flat_map/errors_spec.rb +23 -0
  40. data/spec/flat_map/mapper/attribute_methods_spec.rb +36 -0
  41. data/spec/flat_map/mapper/callbacks_spec.rb +76 -0
  42. data/spec/flat_map/mapper/factory_spec.rb +285 -0
  43. data/spec/flat_map/mapper/mapping_spec.rb +98 -0
  44. data/spec/flat_map/mapper/mounting_spec.rb +142 -0
  45. data/spec/flat_map/mapper/persistence_spec.rb +152 -0
  46. data/spec/flat_map/mapper/skipping_spec.rb +91 -0
  47. data/spec/flat_map/mapper/targeting_spec.rb +156 -0
  48. data/spec/flat_map/mapper/traits_spec.rb +172 -0
  49. data/spec/flat_map/mapper/validations_spec.rb +72 -0
  50. data/spec/flat_map/mapper_spec.rb +9 -0
  51. data/spec/flat_map/mapping/factory_spec.rb +12 -0
  52. data/spec/flat_map/mapping/reader/basic_spec.rb +15 -0
  53. data/spec/flat_map/mapping/reader/formatted_spec.rb +62 -0
  54. data/spec/flat_map/mapping/reader/method_spec.rb +13 -0
  55. data/spec/flat_map/mapping/reader/proc_spec.rb +13 -0
  56. data/spec/flat_map/mapping/writer/basic_spec.rb +15 -0
  57. data/spec/flat_map/mapping/writer/method_spec.rb +13 -0
  58. data/spec/flat_map/mapping/writer/proc_spec.rb +13 -0
  59. data/spec/flat_map/mapping_spec.rb +123 -0
  60. data/spec/flat_map/open_mapper_spec.rb +19 -0
  61. data/spec/spec_helper.rb +7 -0
  62. data/tmp/metric_fu/_data/20131218.yml +6902 -0
  63. data/tmp/metric_fu/_data/20131219.yml +6726 -0
  64. metadata +220 -0
metadata ADDED
@@ -0,0 +1,220 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: HornsAndHooves-flat_map
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Artem Kuzko
8
+ - Zachary Belzer
9
+ - Sergey Potapov
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2014-09-29 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activesupport
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: 4.0.5
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: 4.0.5
29
+ - !ruby/object:Gem::Dependency
30
+ name: activerecord
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: 4.0.5
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: 4.0.5
43
+ - !ruby/object:Gem::Dependency
44
+ name: yard
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: rspec
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '3.0'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '3.0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec-its
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: rake
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ description: |-
100
+ This library allows to map accessors and properties of deeply
101
+ nested object graph to a plain mapper object with flexible behavior
102
+ email:
103
+ - a.kuzko@gmail.com
104
+ - zbelzer@gmail.com
105
+ - blake131313@gmail.com
106
+ executables: []
107
+ extensions: []
108
+ extra_rdoc_files: []
109
+ files:
110
+ - ".gitignore"
111
+ - ".metrics"
112
+ - ".rspec"
113
+ - ".ruby-gemset"
114
+ - ".ruby-version"
115
+ - ".travis.yml"
116
+ - Gemfile
117
+ - HornsAndHooves-flat_map.gemspec
118
+ - LICENSE
119
+ - README.markdown
120
+ - Rakefile
121
+ - lib/flat_map.rb
122
+ - lib/flat_map/errors.rb
123
+ - lib/flat_map/mapping.rb
124
+ - lib/flat_map/mapping/factory.rb
125
+ - lib/flat_map/mapping/reader.rb
126
+ - lib/flat_map/mapping/reader/basic.rb
127
+ - lib/flat_map/mapping/reader/formatted.rb
128
+ - lib/flat_map/mapping/reader/formatted/formats.rb
129
+ - lib/flat_map/mapping/reader/method.rb
130
+ - lib/flat_map/mapping/reader/proc.rb
131
+ - lib/flat_map/mapping/writer.rb
132
+ - lib/flat_map/mapping/writer/basic.rb
133
+ - lib/flat_map/mapping/writer/method.rb
134
+ - lib/flat_map/mapping/writer/proc.rb
135
+ - lib/flat_map/model_mapper.rb
136
+ - lib/flat_map/model_mapper/persistence.rb
137
+ - lib/flat_map/model_mapper/skipping.rb
138
+ - lib/flat_map/open_mapper.rb
139
+ - lib/flat_map/open_mapper/attribute_methods.rb
140
+ - lib/flat_map/open_mapper/factory.rb
141
+ - lib/flat_map/open_mapper/mapping.rb
142
+ - lib/flat_map/open_mapper/mounting.rb
143
+ - lib/flat_map/open_mapper/persistence.rb
144
+ - lib/flat_map/open_mapper/skipping.rb
145
+ - lib/flat_map/open_mapper/traits.rb
146
+ - lib/flat_map/version.rb
147
+ - spec/flat_map/errors_spec.rb
148
+ - spec/flat_map/mapper/attribute_methods_spec.rb
149
+ - spec/flat_map/mapper/callbacks_spec.rb
150
+ - spec/flat_map/mapper/factory_spec.rb
151
+ - spec/flat_map/mapper/mapping_spec.rb
152
+ - spec/flat_map/mapper/mounting_spec.rb
153
+ - spec/flat_map/mapper/persistence_spec.rb
154
+ - spec/flat_map/mapper/skipping_spec.rb
155
+ - spec/flat_map/mapper/targeting_spec.rb
156
+ - spec/flat_map/mapper/traits_spec.rb
157
+ - spec/flat_map/mapper/validations_spec.rb
158
+ - spec/flat_map/mapper_spec.rb
159
+ - spec/flat_map/mapping/factory_spec.rb
160
+ - spec/flat_map/mapping/reader/basic_spec.rb
161
+ - spec/flat_map/mapping/reader/formatted_spec.rb
162
+ - spec/flat_map/mapping/reader/method_spec.rb
163
+ - spec/flat_map/mapping/reader/proc_spec.rb
164
+ - spec/flat_map/mapping/writer/basic_spec.rb
165
+ - spec/flat_map/mapping/writer/method_spec.rb
166
+ - spec/flat_map/mapping/writer/proc_spec.rb
167
+ - spec/flat_map/mapping_spec.rb
168
+ - spec/flat_map/open_mapper_spec.rb
169
+ - spec/spec_helper.rb
170
+ - tmp/metric_fu/_data/20131218.yml
171
+ - tmp/metric_fu/_data/20131219.yml
172
+ homepage: https://github.com/HornsAndHooves/flat_map
173
+ licenses:
174
+ - LICENSE
175
+ metadata: {}
176
+ post_install_message:
177
+ rdoc_options: []
178
+ require_paths:
179
+ - lib
180
+ required_ruby_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ requirements: []
191
+ rubyforge_project:
192
+ rubygems_version: 2.2.2
193
+ signing_key:
194
+ specification_version: 4
195
+ summary: Deep object graph to a plain properties mapper
196
+ test_files:
197
+ - spec/flat_map/errors_spec.rb
198
+ - spec/flat_map/mapper/attribute_methods_spec.rb
199
+ - spec/flat_map/mapper/callbacks_spec.rb
200
+ - spec/flat_map/mapper/factory_spec.rb
201
+ - spec/flat_map/mapper/mapping_spec.rb
202
+ - spec/flat_map/mapper/mounting_spec.rb
203
+ - spec/flat_map/mapper/persistence_spec.rb
204
+ - spec/flat_map/mapper/skipping_spec.rb
205
+ - spec/flat_map/mapper/targeting_spec.rb
206
+ - spec/flat_map/mapper/traits_spec.rb
207
+ - spec/flat_map/mapper/validations_spec.rb
208
+ - spec/flat_map/mapper_spec.rb
209
+ - spec/flat_map/mapping/factory_spec.rb
210
+ - spec/flat_map/mapping/reader/basic_spec.rb
211
+ - spec/flat_map/mapping/reader/formatted_spec.rb
212
+ - spec/flat_map/mapping/reader/method_spec.rb
213
+ - spec/flat_map/mapping/reader/proc_spec.rb
214
+ - spec/flat_map/mapping/writer/basic_spec.rb
215
+ - spec/flat_map/mapping/writer/method_spec.rb
216
+ - spec/flat_map/mapping/writer/proc_spec.rb
217
+ - spec/flat_map/mapping_spec.rb
218
+ - spec/flat_map/open_mapper_spec.rb
219
+ - spec/spec_helper.rb
220
+ has_rdoc: