gom 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +111 -0
  3. data/Rakefile +48 -0
  4. data/lib/gom.rb +7 -0
  5. data/lib/gom/object.rb +23 -0
  6. data/lib/gom/object/id.rb +30 -0
  7. data/lib/gom/object/injector.rb +45 -0
  8. data/lib/gom/object/inspector.rb +55 -0
  9. data/lib/gom/object/mapping.rb +61 -0
  10. data/lib/gom/object/proxy.rb +44 -0
  11. data/lib/gom/spec.rb +4 -0
  12. data/lib/gom/spec/acceptance/adapter_with_stateful_storage.rb +111 -0
  13. data/lib/gom/spec/acceptance/read_only_adapter_with_stateless_storage.rb +50 -0
  14. data/lib/gom/storage.rb +35 -0
  15. data/lib/gom/storage/adapter.rb +51 -0
  16. data/lib/gom/storage/configuration.rb +65 -0
  17. data/lib/gom/storage/fetcher.rb +69 -0
  18. data/lib/gom/storage/remover.rb +47 -0
  19. data/lib/gom/storage/saver.rb +59 -0
  20. data/spec/acceptance/adapter_spec.rb +10 -0
  21. data/spec/acceptance/object_spec.rb +33 -0
  22. data/spec/fake_adapter.rb +37 -0
  23. data/spec/lib/gom/object/id_spec.rb +56 -0
  24. data/spec/lib/gom/object/injector_spec.rb +51 -0
  25. data/spec/lib/gom/object/inspector_spec.rb +30 -0
  26. data/spec/lib/gom/object/mapping_spec.rb +158 -0
  27. data/spec/lib/gom/object/proxy_spec.rb +91 -0
  28. data/spec/lib/gom/object_spec.rb +40 -0
  29. data/spec/lib/gom/storage/adapter_spec.rb +73 -0
  30. data/spec/lib/gom/storage/configuration_spec.rb +92 -0
  31. data/spec/lib/gom/storage/fetcher_spec.rb +89 -0
  32. data/spec/lib/gom/storage/remover_spec.rb +47 -0
  33. data/spec/lib/gom/storage/saver_spec.rb +86 -0
  34. data/spec/lib/gom/storage_spec.rb +106 -0
  35. data/spec/spec_helper.rb +7 -0
  36. data/spec/storage.configuration +4 -0
  37. metadata +138 -0
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ gem 'rspec', '>= 2'
3
+ require 'rspec'
4
+
5
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "gom"))
6
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "gom", "spec"))
7
+ require File.join(File.dirname(__FILE__), "fake_adapter")
@@ -0,0 +1,4 @@
1
+
2
+ test_storage:
3
+ adapter: fake_adapter
4
+ test: test value
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gom
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - "Philipp Br\xC3\xBCll"
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-12-08 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ version: "2"
31
+ type: :development
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: reek
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 2
44
+ version: "1.2"
45
+ type: :development
46
+ version_requirements: *id002
47
+ description: Core package of the General Object Mapper.
48
+ email: b.phifty@gmail.com
49
+ executables: []
50
+
51
+ extensions: []
52
+
53
+ extra_rdoc_files:
54
+ - README.rdoc
55
+ files:
56
+ - README.rdoc
57
+ - LICENSE
58
+ - Rakefile
59
+ - lib/gom.rb
60
+ - lib/gom/storage/adapter.rb
61
+ - lib/gom/storage/saver.rb
62
+ - lib/gom/storage/fetcher.rb
63
+ - lib/gom/storage/remover.rb
64
+ - lib/gom/storage/configuration.rb
65
+ - lib/gom/object.rb
66
+ - lib/gom/storage.rb
67
+ - lib/gom/spec/acceptance/adapter_with_stateful_storage.rb
68
+ - lib/gom/spec/acceptance/read_only_adapter_with_stateless_storage.rb
69
+ - lib/gom/spec.rb
70
+ - lib/gom/object/mapping.rb
71
+ - lib/gom/object/injector.rb
72
+ - lib/gom/object/inspector.rb
73
+ - lib/gom/object/id.rb
74
+ - lib/gom/object/proxy.rb
75
+ - spec/lib/gom/object_spec.rb
76
+ - spec/lib/gom/storage/fetcher_spec.rb
77
+ - spec/lib/gom/storage/configuration_spec.rb
78
+ - spec/lib/gom/storage/remover_spec.rb
79
+ - spec/lib/gom/storage/saver_spec.rb
80
+ - spec/lib/gom/storage/adapter_spec.rb
81
+ - spec/lib/gom/object/injector_spec.rb
82
+ - spec/lib/gom/object/mapping_spec.rb
83
+ - spec/lib/gom/object/proxy_spec.rb
84
+ - spec/lib/gom/object/inspector_spec.rb
85
+ - spec/lib/gom/object/id_spec.rb
86
+ - spec/lib/gom/storage_spec.rb
87
+ - spec/storage.configuration
88
+ - spec/spec_helper.rb
89
+ - spec/acceptance/object_spec.rb
90
+ - spec/acceptance/adapter_spec.rb
91
+ - spec/fake_adapter.rb
92
+ has_rdoc: true
93
+ homepage: http://github.com/phifty/gom
94
+ licenses: []
95
+
96
+ post_install_message:
97
+ rdoc_options: []
98
+
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ segments:
107
+ - 0
108
+ version: "0"
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ segments:
115
+ - 0
116
+ version: "0"
117
+ requirements: []
118
+
119
+ rubyforge_project: gom
120
+ rubygems_version: 1.3.7
121
+ signing_key:
122
+ specification_version: 3
123
+ summary: General Object Mapper - maps any ruby object to different kinds of storage engines and vice versa.
124
+ test_files:
125
+ - spec/lib/gom/object_spec.rb
126
+ - spec/lib/gom/storage/fetcher_spec.rb
127
+ - spec/lib/gom/storage/configuration_spec.rb
128
+ - spec/lib/gom/storage/remover_spec.rb
129
+ - spec/lib/gom/storage/saver_spec.rb
130
+ - spec/lib/gom/storage/adapter_spec.rb
131
+ - spec/lib/gom/object/injector_spec.rb
132
+ - spec/lib/gom/object/mapping_spec.rb
133
+ - spec/lib/gom/object/proxy_spec.rb
134
+ - spec/lib/gom/object/inspector_spec.rb
135
+ - spec/lib/gom/object/id_spec.rb
136
+ - spec/lib/gom/storage_spec.rb
137
+ - spec/acceptance/object_spec.rb
138
+ - spec/acceptance/adapter_spec.rb