custom_redis 0.1.0

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: 570a28106ddc947af77d5b396607b1bd2211eeda
4
+ data.tar.gz: b744af094d4e36db595348dbd7eae6bc9f94e186
5
+ SHA512:
6
+ metadata.gz: 1863937cc9c44ee8d33718803edbe7adf9ff602f3c24aaebe481910506dee2d4e59e7ff3e88048a3a4627619eb1b0243208d120d9d9c2fbd5b4fd4c340ecbf5a
7
+ data.tar.gz: 4b2379c32a61087bbad95e05d496f397ce4272e158ea056d4c4eac56f2b813261fff0a819bb0a045702d50c1012a68a0150b3e7118f4c1706f8c34164a23eddb
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
+ custom_redis
@@ -0,0 +1,41 @@
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="jdk" jdkName="RVM: ruby-2.0.0-p643" jdkType="RUBY_SDK" />
17
+ <orderEntry type="sourceFolder" forTests="false" />
18
+ <orderEntry type="library" scope="PROVIDED" name="actionpack (v4.1.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="actionview (v4.1.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v4.1.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.0.0-p643) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, RVM: ruby-2.0.0-p643) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.7.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.3, RVM: ruby-2.0.0-p643) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, RVM: ruby-2.0.0-p643) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="rack (v1.5.5, RVM: ruby-2.0.0-p643) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rack-cache (v1.5.1, RVM: ruby-2.0.0-p643) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.3, RVM: ruby-2.0.0-p643) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.0.0-p643) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="redis (v3.2.2, RVM: ruby-2.0.0-p643) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="redis-actionpack (v4.0.1, RVM: ruby-2.0.0-p643) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="redis-activesupport (v4.1.5, RVM: ruby-2.0.0-p643) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="redis-rack (v1.5.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="redis-rack-cache (v1.2.3, RVM: ruby-2.0.0-p643) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="redis-rails (v4.0.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="redis-store (v1.1.7, RVM: ruby-2.0.0-p643) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.5, RVM: ruby-2.0.0-p643) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.2, RVM: ruby-2.0.0-p643) [gem]" level="application" />
40
+ </component>
41
+ </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-1.9.3-p429 [global]" 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/custom_redis.iml" filepath="$PROJECT_DIR$/.idea/custom_redis.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="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,387 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="78ee9ade-a8c5-47bb-b3b1-b29782923738" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ </list>
7
+ <ignored path="custom_redis.iws" />
8
+ <ignored path=".idea/workspace.xml" />
9
+ <ignored path=".idea/dataSources.local.xml" />
10
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
+ <option name="TRACKING_ENABLED" value="true" />
12
+ <option name="SHOW_DIALOG" value="false" />
13
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+ <option name="LAST_RESOLUTION" value="IGNORE" />
16
+ </component>
17
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
18
+ <component name="CreatePatchCommitExecutor">
19
+ <option name="PATCH_PATH" value="" />
20
+ </component>
21
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
22
+ <component name="FavoritesManager">
23
+ <favorites_list name="custom_redis" />
24
+ </component>
25
+ <component name="FileEditorManager">
26
+ <leaf>
27
+ <file leaf-file-name="custom_redis.rb" pinned="false" current-in-tab="true">
28
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
29
+ <provider selected="true" editor-type-id="text-editor">
30
+ <state vertical-scroll-proportion="0.1">
31
+ <caret line="3" column="6" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="6" />
32
+ <folding />
33
+ </state>
34
+ </provider>
35
+ </entry>
36
+ </file>
37
+ <file leaf-file-name="custom_redis.gemspec" pinned="false" current-in-tab="false">
38
+ <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
39
+ <provider selected="true" editor-type-id="text-editor">
40
+ <state vertical-scroll-proportion="0.0">
41
+ <caret line="3" column="30" selection-start-line="3" selection-start-column="30" selection-end-line="3" selection-end-column="30" />
42
+ <folding />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/README.md">
49
+ <provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
50
+ <state split_layout="FIRST">
51
+ <first_editor vertical-scroll-proportion="0.6835443">
52
+ <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="35" />
53
+ <folding />
54
+ </first_editor>
55
+ <second_editor />
56
+ </state>
57
+ </provider>
58
+ <provider editor-type-id="MultiMarkdownFxPreviewEditor">
59
+ <state />
60
+ </provider>
61
+ </entry>
62
+ </file>
63
+ </leaf>
64
+ </component>
65
+ <component name="Git.Settings">
66
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
67
+ </component>
68
+ <component name="IdeDocumentHistory">
69
+ <option name="CHANGED_PATHS">
70
+ <list>
71
+ <option value="$PROJECT_DIR$/Gemfile" />
72
+ <option value="$PROJECT_DIR$/README.md" />
73
+ <option value="$PROJECT_DIR$/custom_redis.gemspec" />
74
+ <option value="$PROJECT_DIR$/lib/custom_redis.rb" />
75
+ </list>
76
+ </option>
77
+ </component>
78
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
79
+ <component name="JsGulpfileManager">
80
+ <detection-done>true</detection-done>
81
+ </component>
82
+ <component name="NamedScopeManager">
83
+ <order />
84
+ </component>
85
+ <component name="ProjectFrameBounds">
86
+ <option name="y" value="23" />
87
+ <option name="width" value="1440" />
88
+ <option name="height" value="831" />
89
+ </component>
90
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true">
91
+ <OptionsSetting value="true" id="Add" />
92
+ <OptionsSetting value="true" id="Remove" />
93
+ <OptionsSetting value="true" id="Checkout" />
94
+ <OptionsSetting value="true" id="Update" />
95
+ <OptionsSetting value="true" id="Status" />
96
+ <OptionsSetting value="true" id="Edit" />
97
+ <ConfirmationsSetting value="0" id="Add" />
98
+ <ConfirmationsSetting value="0" id="Remove" />
99
+ </component>
100
+ <component name="ProjectView">
101
+ <navigator currentView="ProjectPane" proportions="" version="1">
102
+ <flattenPackages />
103
+ <showMembers />
104
+ <showModules />
105
+ <showLibraryContents />
106
+ <hideEmptyPackages />
107
+ <abbreviatePackageNames />
108
+ <autoscrollToSource />
109
+ <autoscrollFromSource />
110
+ <sortByType />
111
+ </navigator>
112
+ <panes>
113
+ <pane id="Scratches" />
114
+ <pane id="ProjectPane">
115
+ <subPane>
116
+ <PATH>
117
+ <PATH_ELEMENT>
118
+ <option name="myItemId" value="custom_redis" />
119
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
120
+ </PATH_ELEMENT>
121
+ </PATH>
122
+ <PATH>
123
+ <PATH_ELEMENT>
124
+ <option name="myItemId" value="custom_redis" />
125
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
126
+ </PATH_ELEMENT>
127
+ <PATH_ELEMENT>
128
+ <option name="myItemId" value="custom_redis" />
129
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
130
+ </PATH_ELEMENT>
131
+ </PATH>
132
+ <PATH>
133
+ <PATH_ELEMENT>
134
+ <option name="myItemId" value="custom_redis" />
135
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
136
+ </PATH_ELEMENT>
137
+ <PATH_ELEMENT>
138
+ <option name="myItemId" value="custom_redis" />
139
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
140
+ </PATH_ELEMENT>
141
+ <PATH_ELEMENT>
142
+ <option name="myItemId" value="lib" />
143
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
144
+ </PATH_ELEMENT>
145
+ </PATH>
146
+ <PATH>
147
+ <PATH_ELEMENT>
148
+ <option name="myItemId" value="custom_redis" />
149
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
150
+ </PATH_ELEMENT>
151
+ <PATH_ELEMENT>
152
+ <option name="myItemId" value="custom_redis" />
153
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
154
+ </PATH_ELEMENT>
155
+ <PATH_ELEMENT>
156
+ <option name="myItemId" value="lib" />
157
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
158
+ </PATH_ELEMENT>
159
+ <PATH_ELEMENT>
160
+ <option name="myItemId" value="custom_redis" />
161
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
162
+ </PATH_ELEMENT>
163
+ </PATH>
164
+ <PATH>
165
+ <PATH_ELEMENT>
166
+ <option name="myItemId" value="custom_redis" />
167
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
168
+ </PATH_ELEMENT>
169
+ <PATH_ELEMENT>
170
+ <option name="myItemId" value="custom_redis" />
171
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
172
+ </PATH_ELEMENT>
173
+ <PATH_ELEMENT>
174
+ <option name="myItemId" value="bin" />
175
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
176
+ </PATH_ELEMENT>
177
+ </PATH>
178
+ </subPane>
179
+ </pane>
180
+ <pane id="Scope" />
181
+ </panes>
182
+ </component>
183
+ <component name="PropertiesComponent">
184
+ <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
185
+ <property name="settings.editor.splitter.proportion" value="0.2" />
186
+ <property name="WebServerToolWindowFactoryState" value="false" />
187
+ <property name="FullScreen" value="false" />
188
+ </component>
189
+ <component name="ShelveChangesManager" show_recycled="false" />
190
+ <component name="SvnConfiguration">
191
+ <configuration />
192
+ </component>
193
+ <component name="TaskManager">
194
+ <task active="true" id="Default" summary="Default task">
195
+ <changelist id="78ee9ade-a8c5-47bb-b3b1-b29782923738" name="Default" comment="" />
196
+ <created>1454528458809</created>
197
+ <option name="number" value="Default" />
198
+ <updated>1454528458809</updated>
199
+ </task>
200
+ <task id="LOCAL-00001" summary="Readme and english translation">
201
+ <created>1454535013181</created>
202
+ <option name="number" value="00001" />
203
+ <option name="project" value="LOCAL" />
204
+ <updated>1454535013182</updated>
205
+ </task>
206
+ <task id="LOCAL-00002" summary="Fixed error when definition of redis server var">
207
+ <created>1454539070360</created>
208
+ <option name="number" value="00002" />
209
+ <option name="project" value="LOCAL" />
210
+ <updated>1454539070360</updated>
211
+ </task>
212
+ <option name="localTasksCounter" value="3" />
213
+ <servers />
214
+ </component>
215
+ <component name="TodoView">
216
+ <todo-panel id="selected-file">
217
+ <is-autoscroll-to-source value="true" />
218
+ </todo-panel>
219
+ <todo-panel id="all">
220
+ <are-packages-shown value="true" />
221
+ <is-autoscroll-to-source value="true" />
222
+ </todo-panel>
223
+ </component>
224
+ <component name="ToolWindowManager">
225
+ <frame x="0" y="23" width="1440" height="831" extended-state="6" />
226
+ <editor active="true" />
227
+ <layout>
228
+ <window_info id="Messages" 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" />
229
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32959327" sideWeight="0.49427754" order="7" 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.32959327" sideWeight="0.49713877" order="6" side_tool="false" content_ui="tabs" />
231
+ <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" />
232
+ <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="3" side_tool="false" content_ui="tabs" />
233
+ <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" />
234
+ <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="7" side_tool="false" content_ui="tabs" />
235
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2532189" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
236
+ <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="2" side_tool="true" content_ui="tabs" />
237
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32959327" sideWeight="0.50572246" order="7" side_tool="true" 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.32959327" sideWeight="0.49713877" order="7" 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="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" />
242
+ <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" />
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="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32959327" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
245
+ <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" />
246
+ <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" />
247
+ </layout>
248
+ </component>
249
+ <component name="Vcs.Log.UiProperties">
250
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
251
+ <collection />
252
+ </option>
253
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
254
+ <collection />
255
+ </option>
256
+ </component>
257
+ <component name="VcsContentAnnotationSettings">
258
+ <option name="myLimit" value="2678400000" />
259
+ </component>
260
+ <component name="VcsManagerConfiguration">
261
+ <MESSAGE value="Readme and english translation" />
262
+ <MESSAGE value="Fixed error when definition of redis server var" />
263
+ <option name="LAST_COMMIT_MESSAGE" value="Fixed error when definition of redis server var" />
264
+ </component>
265
+ <component name="XDebuggerManager">
266
+ <breakpoint-manager>
267
+ <option name="time" value="1" />
268
+ </breakpoint-manager>
269
+ <watches-manager />
270
+ </component>
271
+ <component name="editorHistoryManager">
272
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
273
+ <provider selected="true" editor-type-id="text-editor">
274
+ <state vertical-scroll-proportion="0.0">
275
+ <caret line="7" column="20" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="20" />
276
+ <folding />
277
+ </state>
278
+ </provider>
279
+ </entry>
280
+ <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
281
+ <provider selected="true" editor-type-id="text-editor">
282
+ <state vertical-scroll-proportion="0.0">
283
+ <caret line="13" column="16" selection-start-line="13" selection-start-column="16" selection-end-line="13" selection-end-column="16" />
284
+ <folding />
285
+ </state>
286
+ </provider>
287
+ </entry>
288
+ <entry file="file://$PROJECT_DIR$/README.md">
289
+ <provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
290
+ <state split_layout="FIRST">
291
+ <first_editor vertical-scroll-proportion="0.0">
292
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
293
+ <folding />
294
+ </first_editor>
295
+ <second_editor />
296
+ </state>
297
+ </provider>
298
+ <provider editor-type-id="MultiMarkdownFxPreviewEditor">
299
+ <state />
300
+ </provider>
301
+ </entry>
302
+ <entry file="file://$PROJECT_DIR$/Gemfile">
303
+ <provider selected="true" editor-type-id="text-editor">
304
+ <state vertical-scroll-proportion="0.0">
305
+ <caret line="6" column="7" selection-start-line="6" selection-start-column="7" selection-end-line="6" selection-end-column="7" />
306
+ <folding />
307
+ </state>
308
+ </provider>
309
+ </entry>
310
+ <entry file="file://$APPLICATION_HOME_DIR$/rubystubs20/module.rb">
311
+ <provider selected="true" editor-type-id="text-editor">
312
+ <state vertical-scroll-proportion="0.33333334">
313
+ <caret line="448" column="8" selection-start-line="448" selection-start-column="8" selection-end-line="448" selection-end-column="8" />
314
+ <folding />
315
+ </state>
316
+ </provider>
317
+ </entry>
318
+ <entry file="file://$PROJECT_DIR$/Gemfile">
319
+ <provider selected="true" editor-type-id="text-editor">
320
+ <state vertical-scroll-proportion="0.2">
321
+ <caret line="6" column="7" selection-start-line="6" selection-start-column="7" selection-end-line="6" selection-end-column="7" />
322
+ <folding />
323
+ </state>
324
+ </provider>
325
+ </entry>
326
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis/version.rb">
327
+ <provider selected="true" editor-type-id="text-editor">
328
+ <state vertical-scroll-proportion="0.033333335">
329
+ <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
330
+ <folding />
331
+ </state>
332
+ </provider>
333
+ </entry>
334
+ <entry file="file://$PROJECT_DIR$/bin/setup">
335
+ <provider selected="true" editor-type-id="text-editor">
336
+ <state vertical-scroll-proportion="0.0">
337
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
338
+ <folding />
339
+ </state>
340
+ </provider>
341
+ </entry>
342
+ <entry file="file://$PROJECT_DIR$/bin/console">
343
+ <provider selected="true" editor-type-id="text-editor">
344
+ <state vertical-scroll-proportion="0.0">
345
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
346
+ <folding />
347
+ </state>
348
+ </provider>
349
+ </entry>
350
+ <entry file="file://$PROJECT_DIR$/README.md">
351
+ <provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
352
+ <state split_layout="FIRST">
353
+ <first_editor vertical-scroll-proportion="0.6835443">
354
+ <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="35" />
355
+ <folding />
356
+ </first_editor>
357
+ <second_editor />
358
+ </state>
359
+ </provider>
360
+ <provider editor-type-id="MultiMarkdownFxPreviewEditor">
361
+ <state />
362
+ </provider>
363
+ <provider editor-type-id="text-editor">
364
+ <state vertical-scroll-proportion="0.06666667">
365
+ <caret line="2" column="255" selection-start-line="2" selection-start-column="255" selection-end-line="2" selection-end-column="255" />
366
+ <folding />
367
+ </state>
368
+ </provider>
369
+ </entry>
370
+ <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
371
+ <provider selected="true" editor-type-id="text-editor">
372
+ <state vertical-scroll-proportion="0.0">
373
+ <caret line="3" column="30" selection-start-line="3" selection-start-column="30" selection-end-line="3" selection-end-column="30" />
374
+ <folding />
375
+ </state>
376
+ </provider>
377
+ </entry>
378
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
379
+ <provider selected="true" editor-type-id="text-editor">
380
+ <state vertical-scroll-proportion="0.1">
381
+ <caret line="3" column="6" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="6" />
382
+ <folding />
383
+ </state>
384
+ </provider>
385
+ </entry>
386
+ </component>
387
+ </project>
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at luis.bautista@dmsti.es. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+ gem 'redis'
3
+ gem 'redis-rails'
4
+ gem 'redis-rack-cache'
5
+
6
+ # Specify your gem's dependencies in custom_redis.gemspec
7
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 lbautista
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.
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # CustomRedis
2
+
3
+ CustomRedis is based on Redis-backend library for creating easily a simple custom cache stores . It allows you to improve your application caching several kind of elements you'll use with the front-end as counters, hashes created from Active Record relations.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'custom_redis'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install custom_redis
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ 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).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/custom_redis. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
+
35
+
36
+ ## License
37
+
38
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
39
+
40
+ # custom_redis
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "custom_redis"
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'custom_redis/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "custom_redis"
8
+ spec.version = CustomRedis::VERSION
9
+ spec.authors = ["lbautista"]
10
+ spec.email = ["lmiguelbautista@gmail.com"]
11
+
12
+ spec.summary = %q{A custom session store for Rails you'll be able to use easily Redis with Active Record to speed up your application}
13
+ spec.description = %q{CustomRedis is based on Redis-backend library for creating easily a simple custom cache stores . It allows you to improve your application caching several kind of elements you'll use with the front-end as counters, hashes created from Active Record relations.}
14
+ spec.homepage = "https://github.com/lmbautista/custom_redis"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.11"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ end
@@ -0,0 +1,3 @@
1
+ module CustomRedis
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,67 @@
1
+ require "custom_redis/version"
2
+ require "redis"
3
+
4
+ module CustomRedis
5
+
6
+ attr_accessor :host
7
+ attr_accessor :port
8
+ attr_reader :redis
9
+
10
+ def self.new(host = 'localhost', port = 6379)
11
+ @host = host
12
+ @port = port
13
+
14
+ $custom_redis = Redis.new(:host => @host, :port => @port)
15
+ end
16
+
17
+ # It delete in Redis a key-value as { :"model:id:method1_method2_method3" => value }
18
+ def delete(object, custom_key)
19
+ $custom_redis.del(my_redis_key(object.class.to_s, object.id.to_s, custom_key.to_s))
20
+ end
21
+
22
+ # It delete all Redis key-values which
23
+ def flush(pattern)
24
+ list = $custom_redis.keys(pattern)
25
+ list.each do |element|
26
+ $custom_redis.del(element)
27
+ end
28
+ end
29
+
30
+ # It evals if a key-value exists in Redis Server, being inserted if It doesn't exist
31
+ # It returns { "key" => "value" }
32
+ def eval(object, methods)
33
+ key = methods.join('_')
34
+
35
+ if value = get(object, key)
36
+ { key => value }.deep_symbolize_keys
37
+ elsif methods.present?
38
+ value = object.public_send(methods[0])
39
+ for i in 1..methods.size-1
40
+ value = value.public_send(methods[i])
41
+ end
42
+ set( self, { key => value})
43
+ end
44
+ end
45
+
46
+ private
47
+
48
+ # It returns a string like model:id:method1_method2_method3
49
+ def my_redis_key(model, id, string)
50
+ "#{model.downcase}:#{id}:#{string}"
51
+ end
52
+
53
+ # It set in Redis a key-value as { :"model:id:method1_method2_method3" => value }
54
+ def set(object, custom_key)
55
+ key = custom_key.keys.try(:first)
56
+ value = custom_key.try(:[],key)
57
+ $custom_redis.set(my_redis_key(object.class.to_s, object.id.to_s, key), value)
58
+
59
+ { key => value }.deep_symbolize_keys
60
+ end
61
+
62
+ # It get in Redis a key-value as { :"model:id:method1_method2_method3" => value }
63
+ def get(object,custom_key)
64
+ $custom_redis.get(my_redis_key(object.class.to_s, object.id.to_s, custom_key.to_s))
65
+ end
66
+
67
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: custom_redis
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - lbautista
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-02-04 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.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
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
+ description: CustomRedis is based on Redis-backend library for creating easily a simple
42
+ custom cache stores . It allows you to improve your application caching several
43
+ kind of elements you'll use with the front-end as counters, hashes created from
44
+ Active Record relations.
45
+ email:
46
+ - lmiguelbautista@gmail.com
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files: []
50
+ files:
51
+ - .gitignore
52
+ - .idea/.name
53
+ - .idea/custom_redis.iml
54
+ - .idea/misc.xml
55
+ - .idea/modules.xml
56
+ - .idea/vcs.xml
57
+ - .idea/workspace.xml
58
+ - CODE_OF_CONDUCT.md
59
+ - Gemfile
60
+ - LICENSE.txt
61
+ - README.md
62
+ - Rakefile
63
+ - bin/console
64
+ - bin/setup
65
+ - custom_redis.gemspec
66
+ - lib/custom_redis.rb
67
+ - lib/custom_redis/version.rb
68
+ homepage: https://github.com/lmbautista/custom_redis
69
+ licenses:
70
+ - MIT
71
+ metadata:
72
+ allowed_push_host: https://rubygems.org
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.4.6
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: A custom session store for Rails you'll be able to use easily Redis with
93
+ Active Record to speed up your application
94
+ test_files: []