RDObjectMapping 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3709e21510bd14b6eb1c5f397729e8d969ddf2e0
4
+ data.tar.gz: a08308b02d66f6c68c375a023d0f11c4703bdbb2
5
+ SHA512:
6
+ metadata.gz: af3665ca3da4a6cc1fce12411a73449a3660e8df58da1a2ce5a5d8f43b9d45186ff22b1c67ea32af3ca63d568f9dabdb892c47c2cf460b86396b68c3dcd4c886
7
+ data.tar.gz: 8f078a52643d4a754fbfa08292a28d4d03cb09c5cf952ba6794c745c786921bc9f7c908195f63c796d711746bcfbc4963dc77c913a8728c7d7236e55c17b213b
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ RDObjectMapping
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build RDObjectMapping-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install RDObjectMapping-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install RDObjectMapping-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push RDObjectMapping-0.1.0.gem to Rubygems" fullCmd="release" taksId="release" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Ruby Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/test" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$">
14
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
15
+ </content>
16
+ <orderEntry type="inheritedJdk" />
17
+ <orderEntry type="sourceFolder" forTests="false" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.6, RVM: ruby-2.2.1) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.2.1) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.3, RVM: ruby-2.2.1) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.2.1) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.3.0, RVM: ruby-2.2.1) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.3.2, RVM: ruby-2.2.1) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.3.1, RVM: ruby-2.2.1) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.3.2, RVM: ruby-2.2.1) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.3.0, RVM: ruby-2.2.1) [gem]" level="application" />
27
+ </component>
28
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
4
+ <OptionsSetting value="true" id="Add" />
5
+ <OptionsSetting value="true" id="Remove" />
6
+ <OptionsSetting value="true" id="Checkout" />
7
+ <OptionsSetting value="true" id="Update" />
8
+ <OptionsSetting value="true" id="Status" />
9
+ <OptionsSetting value="true" id="Edit" />
10
+ <ConfirmationsSetting value="0" id="Add" />
11
+ <ConfirmationsSetting value="0" id="Remove" />
12
+ </component>
13
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.2.1" project-jdk-type="RUBY_SDK" />
14
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/RDObjectMapping.iml" filepath="$PROJECT_DIR$/.idea/RDObjectMapping.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,337 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="4b03a78f-1b47-47e3-943e-bf60a87ca4a2" name="Default" comment="" />
5
+ <ignored path="RDObjectMapping.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <ignored path=".idea/dataSources.local.xml" />
8
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
+ <component name="CreatePatchCommitExecutor">
17
+ <option name="PATCH_PATH" value="" />
18
+ </component>
19
+ <component name="FavoritesManager">
20
+ <favorites_list name="RDObjectMapping" />
21
+ </component>
22
+ <component name="FileEditorManager">
23
+ <leaf>
24
+ <file leaf-file-name="RDObjectMapping.rb" pinned="false" current-in-tab="false">
25
+ <entry file="file://$PROJECT_DIR$/lib/RDObjectMapping.rb">
26
+ <provider selected="true" editor-type-id="text-editor">
27
+ <state vertical-scroll-proportion="0.0">
28
+ <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
29
+ <folding />
30
+ </state>
31
+ </provider>
32
+ </entry>
33
+ </file>
34
+ <file leaf-file-name="CODE_OF_CONDUCT.md" pinned="false" current-in-tab="false">
35
+ <entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
36
+ <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
37
+ <state />
38
+ </provider>
39
+ <provider selected="true" editor-type-id="text-editor">
40
+ <state vertical-scroll-proportion="-0.0">
41
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
42
+ <folding />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="RDMappingObject.rb" pinned="false" current-in-tab="true">
48
+ <entry file="file://$PROJECT_DIR$/lib/RDMappingObject.rb">
49
+ <provider selected="true" editor-type-id="text-editor">
50
+ <state vertical-scroll-proportion="0.29411766">
51
+ <caret line="11" column="19" selection-start-line="11" selection-start-column="19" selection-end-line="11" selection-end-column="19" />
52
+ <folding />
53
+ </state>
54
+ </provider>
55
+ </entry>
56
+ </file>
57
+ <file leaf-file-name="RDMappingProperty.rb" pinned="false" current-in-tab="false">
58
+ <entry file="file://$PROJECT_DIR$/lib/RDMappingProperty.rb">
59
+ <provider selected="true" editor-type-id="text-editor">
60
+ <state vertical-scroll-proportion="0.0">
61
+ <caret line="24" column="27" selection-start-line="24" selection-start-column="27" selection-end-line="24" selection-end-column="27" />
62
+ <folding />
63
+ </state>
64
+ </provider>
65
+ </entry>
66
+ </file>
67
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
68
+ <entry file="file://$PROJECT_DIR$/Gemfile">
69
+ <provider selected="true" editor-type-id="text-editor">
70
+ <state vertical-scroll-proportion="0.0">
71
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
72
+ <folding />
73
+ </state>
74
+ </provider>
75
+ </entry>
76
+ </file>
77
+ <file leaf-file-name="Gemfile.lock" pinned="false" current-in-tab="false">
78
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
79
+ <provider selected="true" editor-type-id="text-editor">
80
+ <state vertical-scroll-proportion="0.0">
81
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
82
+ <folding />
83
+ </state>
84
+ </provider>
85
+ </entry>
86
+ </file>
87
+ <file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
88
+ <entry file="file://$PROJECT_DIR$/Rakefile">
89
+ <provider selected="true" editor-type-id="text-editor">
90
+ <state vertical-scroll-proportion="0.0">
91
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
92
+ <folding />
93
+ </state>
94
+ </provider>
95
+ </entry>
96
+ </file>
97
+ <file leaf-file-name="RDObjectMapping.gemspec" pinned="false" current-in-tab="false">
98
+ <entry file="file://$PROJECT_DIR$/RDObjectMapping.gemspec">
99
+ <provider selected="true" editor-type-id="text-editor">
100
+ <state vertical-scroll-proportion="0.0">
101
+ <caret line="18" column="45" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
102
+ <folding />
103
+ </state>
104
+ </provider>
105
+ </entry>
106
+ </file>
107
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
108
+ <entry file="file://$PROJECT_DIR$/lib/RDObjectMapping/version.rb">
109
+ <provider selected="true" editor-type-id="text-editor">
110
+ <state vertical-scroll-proportion="0.0">
111
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
112
+ <folding />
113
+ </state>
114
+ </provider>
115
+ </entry>
116
+ </file>
117
+ </leaf>
118
+ </component>
119
+ <component name="FileTemplateManagerImpl">
120
+ <option name="RECENT_TEMPLATES">
121
+ <list>
122
+ <option value="Ruby Class Template" />
123
+ </list>
124
+ </option>
125
+ </component>
126
+ <component name="IdeDocumentHistory">
127
+ <option name="CHANGED_PATHS">
128
+ <list>
129
+ <option value="$PROJECT_DIR$/lib/RDMappingObject.rb" />
130
+ <option value="$PROJECT_DIR$/lib/RDMappingProperty.rb" />
131
+ <option value="$PROJECT_DIR$/RDObjectMapping.gemspec" />
132
+ <option value="$PROJECT_DIR$/lib/RDObjectMapping/version.rb" />
133
+ <option value="$PROJECT_DIR$/lib/RDObjectMapping.rb" />
134
+ </list>
135
+ </option>
136
+ </component>
137
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
138
+ <component name="JsGulpfileManager">
139
+ <detection-done>true</detection-done>
140
+ </component>
141
+ <component name="NamedScopeManager">
142
+ <order />
143
+ </component>
144
+ <component name="ProjectFrameBounds">
145
+ <option name="width" value="1440" />
146
+ <option name="height" value="900" />
147
+ </component>
148
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
149
+ <OptionsSetting value="true" id="Add" />
150
+ <OptionsSetting value="true" id="Remove" />
151
+ <OptionsSetting value="true" id="Checkout" />
152
+ <OptionsSetting value="true" id="Update" />
153
+ <OptionsSetting value="true" id="Status" />
154
+ <OptionsSetting value="true" id="Edit" />
155
+ <ConfirmationsSetting value="0" id="Add" />
156
+ <ConfirmationsSetting value="0" id="Remove" />
157
+ </component>
158
+ <component name="ProjectView">
159
+ <navigator currentView="ProjectPane" proportions="" version="1">
160
+ <flattenPackages />
161
+ <showMembers />
162
+ <showModules />
163
+ <showLibraryContents />
164
+ <hideEmptyPackages />
165
+ <abbreviatePackageNames />
166
+ <autoscrollToSource />
167
+ <autoscrollFromSource />
168
+ <sortByType />
169
+ </navigator>
170
+ <panes>
171
+ <pane id="Scratches" />
172
+ <pane id="Scope" />
173
+ <pane id="ProjectPane">
174
+ <subPane>
175
+ <PATH>
176
+ <PATH_ELEMENT>
177
+ <option name="myItemId" value="RDObjectMapping" />
178
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
179
+ </PATH_ELEMENT>
180
+ </PATH>
181
+ <PATH>
182
+ <PATH_ELEMENT>
183
+ <option name="myItemId" value="RDObjectMapping" />
184
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
185
+ </PATH_ELEMENT>
186
+ <PATH_ELEMENT>
187
+ <option name="myItemId" value="RDObjectMapping" />
188
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
189
+ </PATH_ELEMENT>
190
+ </PATH>
191
+ <PATH>
192
+ <PATH_ELEMENT>
193
+ <option name="myItemId" value="RDObjectMapping" />
194
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
195
+ </PATH_ELEMENT>
196
+ <PATH_ELEMENT>
197
+ <option name="myItemId" value="RDObjectMapping" />
198
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
199
+ </PATH_ELEMENT>
200
+ <PATH_ELEMENT>
201
+ <option name="myItemId" value="lib" />
202
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
203
+ </PATH_ELEMENT>
204
+ </PATH>
205
+ </subPane>
206
+ </pane>
207
+ </panes>
208
+ </component>
209
+ <component name="PropertiesComponent">
210
+ <property name="WebServerToolWindowFactoryState" value="false" />
211
+ <property name="FullScreen" value="true" />
212
+ </component>
213
+ <component name="RecentsManager">
214
+ <key name="MoveFile.RECENT_KEYS">
215
+ <recent name="$PROJECT_DIR$/lib" />
216
+ <recent name="$PROJECT_DIR$/lib/RDObjectMapping" />
217
+ </key>
218
+ </component>
219
+ <component name="ShelveChangesManager" show_recycled="false" />
220
+ <component name="TaskManager">
221
+ <task active="true" id="Default" summary="Default task">
222
+ <changelist id="4b03a78f-1b47-47e3-943e-bf60a87ca4a2" name="Default" comment="" />
223
+ <created>1443644277775</created>
224
+ <option name="number" value="Default" />
225
+ <updated>1443644277775</updated>
226
+ </task>
227
+ <servers />
228
+ </component>
229
+ <component name="ToolWindowManager">
230
+ <frame x="0" y="0" width="1440" height="900" extended-state="6" />
231
+ <editor active="true" />
232
+ <layout>
233
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
234
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
235
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
236
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
237
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
238
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
239
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
240
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
241
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
242
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32992035" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
243
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
244
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
245
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
246
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
247
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
248
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
249
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
250
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
251
+ </layout>
252
+ </component>
253
+ <component name="VcsContentAnnotationSettings">
254
+ <option name="myLimit" value="2678400000" />
255
+ </component>
256
+ <component name="XDebuggerManager">
257
+ <breakpoint-manager />
258
+ <watches-manager />
259
+ </component>
260
+ <component name="editorHistoryManager">
261
+ <entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
262
+ <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
263
+ <state />
264
+ </provider>
265
+ <provider selected="true" editor-type-id="text-editor">
266
+ <state vertical-scroll-proportion="0.0">
267
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
268
+ <folding />
269
+ </state>
270
+ </provider>
271
+ </entry>
272
+ <entry file="file://$PROJECT_DIR$/Gemfile">
273
+ <provider selected="true" editor-type-id="text-editor">
274
+ <state vertical-scroll-proportion="0.0">
275
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
276
+ <folding />
277
+ </state>
278
+ </provider>
279
+ </entry>
280
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
281
+ <provider selected="true" editor-type-id="text-editor">
282
+ <state vertical-scroll-proportion="0.0">
283
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
284
+ <folding />
285
+ </state>
286
+ </provider>
287
+ </entry>
288
+ <entry file="file://$PROJECT_DIR$/Rakefile">
289
+ <provider selected="true" editor-type-id="text-editor">
290
+ <state vertical-scroll-proportion="0.0">
291
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
292
+ <folding />
293
+ </state>
294
+ </provider>
295
+ </entry>
296
+ <entry file="file://$PROJECT_DIR$/RDObjectMapping.gemspec">
297
+ <provider selected="true" editor-type-id="text-editor">
298
+ <state vertical-scroll-proportion="0.0">
299
+ <caret line="18" column="45" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
300
+ <folding />
301
+ </state>
302
+ </provider>
303
+ </entry>
304
+ <entry file="file://$PROJECT_DIR$/lib/RDMappingProperty.rb">
305
+ <provider selected="true" editor-type-id="text-editor">
306
+ <state vertical-scroll-proportion="0.0">
307
+ <caret line="24" column="27" selection-start-line="24" selection-start-column="27" selection-end-line="24" selection-end-column="27" />
308
+ <folding />
309
+ </state>
310
+ </provider>
311
+ </entry>
312
+ <entry file="file://$PROJECT_DIR$/lib/RDObjectMapping/version.rb">
313
+ <provider selected="true" editor-type-id="text-editor">
314
+ <state vertical-scroll-proportion="0.0">
315
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
316
+ <folding />
317
+ </state>
318
+ </provider>
319
+ </entry>
320
+ <entry file="file://$PROJECT_DIR$/lib/RDObjectMapping.rb">
321
+ <provider selected="true" editor-type-id="text-editor">
322
+ <state vertical-scroll-proportion="0.0">
323
+ <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
324
+ <folding />
325
+ </state>
326
+ </provider>
327
+ </entry>
328
+ <entry file="file://$PROJECT_DIR$/lib/RDMappingObject.rb">
329
+ <provider selected="true" editor-type-id="text-editor">
330
+ <state vertical-scroll-proportion="0.29411766">
331
+ <caret line="11" column="19" selection-start-line="11" selection-start-column="19" selection-end-line="11" selection-end-column="19" />
332
+ <folding />
333
+ </state>
334
+ </provider>
335
+ </entry>
336
+ </component>
337
+ </project>
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in RDObjectMapping.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 simplydesigner
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'RDObjectMapping/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "RDObjectMapping"
8
+ spec.version = RDObjectMapping::VERSION
9
+ spec.authors = ["simplydesigner"]
10
+ spec.email = ["simplydesigner@jd.ru"]
11
+
12
+ spec.summary = "Mapping object"
13
+ spec.description = "Mapping object from and to json "
14
+ spec.homepage = "https://github.com/justdevelopers/RDObjectMapping"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.10"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec", "~> 3.3"
25
+ spec.add_development_dependency "json", "~> 1.8"
26
+ end
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # RDObjectMapping
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/RDObjectMapping`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'RDObjectMapping'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install RDObjectMapping
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/RDObjectMapping. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "RDObjectMapping"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,19 @@
1
+ module RDObjectMapping
2
+ class RDMappingObject
3
+ attr_accessor :properties
4
+
5
+ def initialize(properties)
6
+ @properties = properties
7
+ end
8
+
9
+ def to_json(*a)
10
+ {
11
+ properties: @properties
12
+ }.to_json(*a)
13
+ end
14
+
15
+ def self.json_create(o)
16
+ new(o[:properties])
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,28 @@
1
+ module RDObjectMapping
2
+ class RDMappingProperty
3
+
4
+ enum type: [ :string, :number ]
5
+
6
+ attr_accessor :key, :type, :value, :description
7
+
8
+ def initialize(key, type, value, description)
9
+ @key = key
10
+ @type = type
11
+ @value = value
12
+ @description = description
13
+ end
14
+
15
+ def to_json(*a)
16
+ {
17
+ key: @key,
18
+ type: @type,
19
+ value: @value,
20
+ description: @description
21
+ }.to_json(*a)
22
+ end
23
+
24
+ def self.json_create(o)
25
+ new(o[:key], o[:type], o[:value], o[:description])
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,3 @@
1
+ module RDObjectMapping
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,6 @@
1
+ require "RDObjectMapping/version"
2
+
3
+ module RDObjectMapping
4
+ require 'RDObjectMapping/RDMappingObject'
5
+ require 'RDObjectMapping/RDMappingProperty'
6
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: RDObjectMapping
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - simplydesigner
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: json
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.8'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.8'
69
+ description: 'Mapping object from and to json '
70
+ email:
71
+ - simplydesigner@jd.ru
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - .gitignore
77
+ - .idea/.name
78
+ - .idea/.rakeTasks
79
+ - .idea/RDObjectMapping.iml
80
+ - .idea/misc.xml
81
+ - .idea/modules.xml
82
+ - .idea/vcs.xml
83
+ - .idea/workspace.xml
84
+ - .rspec
85
+ - .travis.yml
86
+ - CODE_OF_CONDUCT.md
87
+ - Gemfile
88
+ - LICENSE.txt
89
+ - RDObjectMapping.gemspec
90
+ - README.md
91
+ - Rakefile
92
+ - bin/console
93
+ - bin/setup
94
+ - lib/RDMappingObject.rb
95
+ - lib/RDMappingProperty.rb
96
+ - lib/RDObjectMapping.rb
97
+ - lib/RDObjectMapping/version.rb
98
+ homepage: https://github.com/justdevelopers/RDObjectMapping
99
+ licenses:
100
+ - MIT
101
+ metadata: {}
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubyforge_project:
118
+ rubygems_version: 2.4.6
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: Mapping object
122
+ test_files: []