act_as_serializable 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/act_as_serializable.iml +19 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +346 -0
- data/Gemfile +4 -0
- data/LICENSE +0 -0
- data/LICENSE.txt +22 -0
- data/README.md +30 -0
- data/Rakefile +1 -0
- data/act_as_serializable.gemspec +23 -0
- data/lib/act_as_serializable.rb +40 -0
- data/lib/act_as_serializable/version.rb +3 -0
- metadata +110 -0
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
act_as_serializable
|
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 act_as_serializable-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install act_as_serializable-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push act_as_serializable-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
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
|
+
<orderEntry type="inheritedJdk" />
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.1.0, RVM: ruby-1.9.2-p320 [fastacash-website]) [gem]" level="application" />
|
17
|
+
</component>
|
18
|
+
</module>
|
19
|
+
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,9 @@
|
|
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/act_as_serializable.iml" filepath="$PROJECT_DIR$/.idea/act_as_serializable.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,346 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="840e9d16-e14d-4d4c-ac6f-f30ca2418d3b" name="Default" comment="">
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
9
|
+
</list>
|
10
|
+
<ignored path="act_as_serializable.iws" />
|
11
|
+
<ignored path=".idea/workspace.xml" />
|
12
|
+
<file path="/Dummy.txt" changelist="840e9d16-e14d-4d4c-ac6f-f30ca2418d3b" time="1388477368376" ignored="false" />
|
13
|
+
<file path="/act_as_serializable.gemspec" changelist="840e9d16-e14d-4d4c-ac6f-f30ca2418d3b" time="1388477559744" ignored="false" />
|
14
|
+
<option name="TRACKING_ENABLED" value="true" />
|
15
|
+
<option name="SHOW_DIALOG" value="false" />
|
16
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
17
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
18
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
19
|
+
</component>
|
20
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
21
|
+
<component name="CreatePatchCommitExecutor">
|
22
|
+
<option name="PATCH_PATH" value="" />
|
23
|
+
</component>
|
24
|
+
<component name="DaemonCodeAnalyzer">
|
25
|
+
<disable_hints />
|
26
|
+
</component>
|
27
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
28
|
+
<component name="FavoritesManager">
|
29
|
+
<favorites_list name="act_as_serializable" />
|
30
|
+
</component>
|
31
|
+
<component name="FileEditorManager">
|
32
|
+
<leaf>
|
33
|
+
<file leaf-file-name="act_as_serializable.gemspec" pinned="false" current="false" current-in-tab="false">
|
34
|
+
<entry file="file://$PROJECT_DIR$/act_as_serializable.gemspec">
|
35
|
+
<provider selected="true" editor-type-id="text-editor">
|
36
|
+
<state line="23" column="24" selection-start="1021" selection-end="1021" vertical-scroll-proportion="0.0">
|
37
|
+
<folding />
|
38
|
+
</state>
|
39
|
+
</provider>
|
40
|
+
</entry>
|
41
|
+
</file>
|
42
|
+
<file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
|
43
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
44
|
+
<provider selected="true" editor-type-id="text-editor">
|
45
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
46
|
+
<folding />
|
47
|
+
</state>
|
48
|
+
</provider>
|
49
|
+
</entry>
|
50
|
+
</file>
|
51
|
+
<file leaf-file-name=".gitignore" pinned="false" current="true" current-in-tab="true">
|
52
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
53
|
+
<provider selected="true" editor-type-id="text-editor">
|
54
|
+
<state line="17" column="23" selection-start="154" selection-end="154" vertical-scroll-proportion="0.34136546">
|
55
|
+
<folding />
|
56
|
+
</state>
|
57
|
+
</provider>
|
58
|
+
</entry>
|
59
|
+
</file>
|
60
|
+
<file leaf-file-name="act_as_serializable.rb" pinned="false" current="false" current-in-tab="false">
|
61
|
+
<entry file="file://$PROJECT_DIR$/lib/act_as_serializable.rb">
|
62
|
+
<provider selected="true" editor-type-id="text-editor">
|
63
|
+
<state line="14" column="61" selection-start="260" selection-end="260" vertical-scroll-proportion="0.0">
|
64
|
+
<folding />
|
65
|
+
</state>
|
66
|
+
</provider>
|
67
|
+
</entry>
|
68
|
+
</file>
|
69
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
70
|
+
<entry file="file://$PROJECT_DIR$/lib/act_as_serializable/version.rb">
|
71
|
+
<provider selected="true" editor-type-id="text-editor">
|
72
|
+
<state line="1" column="2" selection-start="27" selection-end="27" vertical-scroll-proportion="0.0">
|
73
|
+
<folding />
|
74
|
+
</state>
|
75
|
+
</provider>
|
76
|
+
</entry>
|
77
|
+
</file>
|
78
|
+
</leaf>
|
79
|
+
</component>
|
80
|
+
<component name="FindManager">
|
81
|
+
<FindUsagesManager>
|
82
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
83
|
+
</FindUsagesManager>
|
84
|
+
</component>
|
85
|
+
<component name="Git.Settings">
|
86
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
87
|
+
</component>
|
88
|
+
<component name="GitLogSettings">
|
89
|
+
<option name="myDateState">
|
90
|
+
<MyDateState />
|
91
|
+
</option>
|
92
|
+
</component>
|
93
|
+
<component name="IdeDocumentHistory">
|
94
|
+
<option name="changedFiles">
|
95
|
+
<list>
|
96
|
+
<option value="$PROJECT_DIR$/act_as_serializable.gemspec" />
|
97
|
+
<option value="$PROJECT_DIR$/lib/act_as_serializable.rb" />
|
98
|
+
<option value="$PROJECT_DIR$/README.md" />
|
99
|
+
<option value="$PROJECT_DIR$/.gitignore" />
|
100
|
+
</list>
|
101
|
+
</option>
|
102
|
+
</component>
|
103
|
+
<component name="ProjectFrameBounds">
|
104
|
+
<option name="x" value="-1" />
|
105
|
+
<option name="y" value="-4" />
|
106
|
+
<option name="width" value="1602" />
|
107
|
+
<option name="height" value="905" />
|
108
|
+
</component>
|
109
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
110
|
+
<OptionsSetting value="true" id="Add" />
|
111
|
+
<OptionsSetting value="true" id="Remove" />
|
112
|
+
<OptionsSetting value="true" id="Checkout" />
|
113
|
+
<OptionsSetting value="true" id="Update" />
|
114
|
+
<OptionsSetting value="true" id="Status" />
|
115
|
+
<OptionsSetting value="true" id="Edit" />
|
116
|
+
<ConfirmationsSetting value="0" id="Add" />
|
117
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
118
|
+
</component>
|
119
|
+
<component name="ProjectReloadState">
|
120
|
+
<option name="STATE" value="0" />
|
121
|
+
</component>
|
122
|
+
<component name="ProjectView">
|
123
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
124
|
+
<flattenPackages />
|
125
|
+
<showMembers />
|
126
|
+
<showModules />
|
127
|
+
<showLibraryContents />
|
128
|
+
<hideEmptyPackages />
|
129
|
+
<abbreviatePackageNames />
|
130
|
+
<autoscrollToSource />
|
131
|
+
<autoscrollFromSource />
|
132
|
+
<sortByType />
|
133
|
+
</navigator>
|
134
|
+
<panes>
|
135
|
+
<pane id="ProjectPane">
|
136
|
+
<subPane>
|
137
|
+
<PATH>
|
138
|
+
<PATH_ELEMENT>
|
139
|
+
<option name="myItemId" value="act_as_serializable" />
|
140
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
141
|
+
</PATH_ELEMENT>
|
142
|
+
</PATH>
|
143
|
+
<PATH>
|
144
|
+
<PATH_ELEMENT>
|
145
|
+
<option name="myItemId" value="act_as_serializable" />
|
146
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
147
|
+
</PATH_ELEMENT>
|
148
|
+
<PATH_ELEMENT>
|
149
|
+
<option name="myItemId" value="act_as_serializable" />
|
150
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
151
|
+
</PATH_ELEMENT>
|
152
|
+
</PATH>
|
153
|
+
<PATH>
|
154
|
+
<PATH_ELEMENT>
|
155
|
+
<option name="myItemId" value="act_as_serializable" />
|
156
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
157
|
+
</PATH_ELEMENT>
|
158
|
+
<PATH_ELEMENT>
|
159
|
+
<option name="myItemId" value="act_as_serializable" />
|
160
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
161
|
+
</PATH_ELEMENT>
|
162
|
+
<PATH_ELEMENT>
|
163
|
+
<option name="myItemId" value="lib" />
|
164
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
165
|
+
</PATH_ELEMENT>
|
166
|
+
</PATH>
|
167
|
+
<PATH>
|
168
|
+
<PATH_ELEMENT>
|
169
|
+
<option name="myItemId" value="act_as_serializable" />
|
170
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
171
|
+
</PATH_ELEMENT>
|
172
|
+
<PATH_ELEMENT>
|
173
|
+
<option name="myItemId" value="act_as_serializable" />
|
174
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
175
|
+
</PATH_ELEMENT>
|
176
|
+
<PATH_ELEMENT>
|
177
|
+
<option name="myItemId" value="lib" />
|
178
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
179
|
+
</PATH_ELEMENT>
|
180
|
+
<PATH_ELEMENT>
|
181
|
+
<option name="myItemId" value="act_as_serializable" />
|
182
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
183
|
+
</PATH_ELEMENT>
|
184
|
+
</PATH>
|
185
|
+
</subPane>
|
186
|
+
</pane>
|
187
|
+
<pane id="Scope" />
|
188
|
+
</panes>
|
189
|
+
</component>
|
190
|
+
<component name="PropertiesComponent">
|
191
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
192
|
+
</component>
|
193
|
+
<component name="RunManager">
|
194
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
195
|
+
<module name="" />
|
196
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
197
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
198
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
199
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
200
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
201
|
+
<envs />
|
202
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
203
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
204
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
205
|
+
<COVERAGE_PATTERN ENABLED="true">
|
206
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
207
|
+
</COVERAGE_PATTERN>
|
208
|
+
</EXTENSION>
|
209
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
210
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
211
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
212
|
+
<method />
|
213
|
+
</configuration>
|
214
|
+
<list size="0" />
|
215
|
+
</component>
|
216
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
217
|
+
<component name="TaskManager">
|
218
|
+
<task active="true" id="Default" summary="Default task">
|
219
|
+
<changelist id="840e9d16-e14d-4d4c-ac6f-f30ca2418d3b" name="Default" comment="" />
|
220
|
+
<created>1388477366940</created>
|
221
|
+
<updated>1388477366940</updated>
|
222
|
+
</task>
|
223
|
+
<servers />
|
224
|
+
</component>
|
225
|
+
<component name="ToolWindowManager">
|
226
|
+
<frame x="-1" y="-4" width="1602" height="905" extended-state="6" />
|
227
|
+
<editor active="true" />
|
228
|
+
<layout>
|
229
|
+
<window_info id="Changes" 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" />
|
230
|
+
<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" />
|
231
|
+
<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" />
|
232
|
+
<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" />
|
233
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24967742" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
234
|
+
<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" />
|
235
|
+
<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" />
|
236
|
+
<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" />
|
237
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
238
|
+
<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" />
|
239
|
+
<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" />
|
240
|
+
<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" />
|
241
|
+
<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" />
|
242
|
+
<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" />
|
243
|
+
<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" />
|
244
|
+
<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" />
|
245
|
+
<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" />
|
246
|
+
</layout>
|
247
|
+
</component>
|
248
|
+
<component name="VcsContentAnnotationSettings">
|
249
|
+
<option name="myLimit" value="2678400000" />
|
250
|
+
</component>
|
251
|
+
<component name="VcsManagerConfiguration">
|
252
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
253
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
254
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
255
|
+
<option name="myTodoPanelSettings">
|
256
|
+
<value>
|
257
|
+
<are-packages-shown value="false" />
|
258
|
+
<are-modules-shown value="false" />
|
259
|
+
<flatten-packages value="false" />
|
260
|
+
<is-autoscroll-to-source value="false" />
|
261
|
+
</value>
|
262
|
+
</option>
|
263
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
264
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
265
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
266
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
267
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
268
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
269
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
270
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
271
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
272
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
273
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
274
|
+
<option name="SHORT_DIFF_HORIZONTALLY" value="true" />
|
275
|
+
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
276
|
+
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
277
|
+
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
278
|
+
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
279
|
+
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
280
|
+
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
281
|
+
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
|
282
|
+
<option name="LIMIT_HISTORY" value="true" />
|
283
|
+
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
|
284
|
+
<option name="UPDATE_FILTER_SCOPE_NAME" />
|
285
|
+
<option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
|
286
|
+
<option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
|
287
|
+
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
|
288
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
289
|
+
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
290
|
+
<option name="LAST_COMMIT_MESSAGE" />
|
291
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
292
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
293
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
294
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
295
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
296
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
297
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
298
|
+
<option name="ACTIVE_VCS_NAME" />
|
299
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
300
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
301
|
+
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
|
302
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
303
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
304
|
+
</component>
|
305
|
+
<component name="XDebuggerManager">
|
306
|
+
<breakpoint-manager />
|
307
|
+
</component>
|
308
|
+
<component name="editorHistoryManager">
|
309
|
+
<entry file="file://$PROJECT_DIR$/lib/act_as_serializable.rb">
|
310
|
+
<provider selected="true" editor-type-id="text-editor">
|
311
|
+
<state line="14" column="61" selection-start="260" selection-end="260" vertical-scroll-proportion="0.0">
|
312
|
+
<folding />
|
313
|
+
</state>
|
314
|
+
</provider>
|
315
|
+
</entry>
|
316
|
+
<entry file="file://$PROJECT_DIR$/lib/act_as_serializable/version.rb">
|
317
|
+
<provider selected="true" editor-type-id="text-editor">
|
318
|
+
<state line="1" column="2" selection-start="27" selection-end="27" vertical-scroll-proportion="0.0">
|
319
|
+
<folding />
|
320
|
+
</state>
|
321
|
+
</provider>
|
322
|
+
</entry>
|
323
|
+
<entry file="file://$PROJECT_DIR$/act_as_serializable.gemspec">
|
324
|
+
<provider selected="true" editor-type-id="text-editor">
|
325
|
+
<state line="23" column="24" selection-start="1021" selection-end="1021" vertical-scroll-proportion="0.0">
|
326
|
+
<folding />
|
327
|
+
</state>
|
328
|
+
</provider>
|
329
|
+
</entry>
|
330
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
331
|
+
<provider selected="true" editor-type-id="text-editor">
|
332
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
333
|
+
<folding />
|
334
|
+
</state>
|
335
|
+
</provider>
|
336
|
+
</entry>
|
337
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
338
|
+
<provider selected="true" editor-type-id="text-editor">
|
339
|
+
<state line="17" column="23" selection-start="154" selection-end="154" vertical-scroll-proportion="0.34136546">
|
340
|
+
<folding />
|
341
|
+
</state>
|
342
|
+
</provider>
|
343
|
+
</entry>
|
344
|
+
</component>
|
345
|
+
</project>
|
346
|
+
|
data/Gemfile
ADDED
data/LICENSE
ADDED
File without changes
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Pavan Agrawal
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# ActAsSerializable
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'act_as_serializable'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install act_as_serializable
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it ( https://github.com/pavanagrawal/act_as_serializable/fork )
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
30
|
+
act_as_serializable
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'act_as_serializable/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "act_as_serializable"
|
8
|
+
spec.version = ActAsSerializable::VERSION
|
9
|
+
spec.authors = ["Pavan Agrawal"]
|
10
|
+
spec.email = ["pavan.agrawala@gmail.com"]
|
11
|
+
spec.summary = %q{Tool to serialize and update the array in all type of databases}
|
12
|
+
spec.description = %q{This tool is useful for managing the array in a text column in any database (mysql, sqlite and etc). This tool also does sensible update upon object save/create}
|
13
|
+
spec.homepage = "https://github.com/pavanagrawal/act_as_serializable"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "act_as_serializable/version"
|
2
|
+
|
3
|
+
module ActAsSerializable
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
module ClassMethods
|
7
|
+
|
8
|
+
def act_as_serializable fields
|
9
|
+
|
10
|
+
fields.each do |field|
|
11
|
+
self.serialize field
|
12
|
+
self.before_save :set_eval
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
define_method 'set_eval' do
|
17
|
+
fields.each do |field|
|
18
|
+
set_eval_when(field)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
define_method 'set_eval_when' do |field|
|
23
|
+
if !self[field].blank? && self[field].class==String
|
24
|
+
self[field] = eval self[field]
|
25
|
+
elsif self[field].blank?
|
26
|
+
self[field] = []
|
27
|
+
else
|
28
|
+
self[field]
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
module InstanceMethods
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
ActiveRecord::Base.send(:include, ActAsSerializable)
|
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: act_as_serializable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Pavan Agrawal
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2013-12-31 00:00:00 +05:30
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: bundler
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 5
|
30
|
+
version: "1.5"
|
31
|
+
type: :development
|
32
|
+
prerelease: false
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rake
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *id002
|
47
|
+
description: This tool is useful for managing the array in a text column in any database (mysql, sqlite and etc). This tool also does sensible update upon object save/create
|
48
|
+
email:
|
49
|
+
- pavan.agrawala@gmail.com
|
50
|
+
executables: []
|
51
|
+
|
52
|
+
extensions: []
|
53
|
+
|
54
|
+
extra_rdoc_files: []
|
55
|
+
|
56
|
+
files:
|
57
|
+
- .gitignore
|
58
|
+
- .idea/.name
|
59
|
+
- .idea/.rakeTasks
|
60
|
+
- .idea/act_as_serializable.iml
|
61
|
+
- .idea/encodings.xml
|
62
|
+
- .idea/misc.xml
|
63
|
+
- .idea/modules.xml
|
64
|
+
- .idea/scopes/scope_settings.xml
|
65
|
+
- .idea/vcs.xml
|
66
|
+
- .idea/workspace.xml
|
67
|
+
- Gemfile
|
68
|
+
- LICENSE
|
69
|
+
- LICENSE.txt
|
70
|
+
- README.md
|
71
|
+
- Rakefile
|
72
|
+
- act_as_serializable.gemspec
|
73
|
+
- lib/act_as_serializable.rb
|
74
|
+
- lib/act_as_serializable/version.rb
|
75
|
+
has_rdoc: true
|
76
|
+
homepage: https://github.com/pavanagrawal/act_as_serializable
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: -677918319
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
version: "0"
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
hash: -677918319
|
99
|
+
segments:
|
100
|
+
- 0
|
101
|
+
version: "0"
|
102
|
+
requirements: []
|
103
|
+
|
104
|
+
rubyforge_project:
|
105
|
+
rubygems_version: 1.3.7.1
|
106
|
+
signing_key:
|
107
|
+
specification_version: 3
|
108
|
+
summary: Tool to serialize and update the array in all type of databases
|
109
|
+
test_files: []
|
110
|
+
|