custom_redis 0.1.0 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 570a28106ddc947af77d5b396607b1bd2211eeda
4
- data.tar.gz: b744af094d4e36db595348dbd7eae6bc9f94e186
3
+ metadata.gz: a2004c979ec3dfa9691409d1062bd9db23481e03
4
+ data.tar.gz: 60fe4cc2dfadf2c1dfb6a1bcc1452209bcd27811
5
5
  SHA512:
6
- metadata.gz: 1863937cc9c44ee8d33718803edbe7adf9ff602f3c24aaebe481910506dee2d4e59e7ff3e88048a3a4627619eb1b0243208d120d9d9c2fbd5b4fd4c340ecbf5a
7
- data.tar.gz: 4b2379c32a61087bbad95e05d496f397ce4272e158ea056d4c4eac56f2b813261fff0a819bb0a045702d50c1012a68a0150b3e7118f4c1706f8c34164a23eddb
6
+ metadata.gz: 5756f59b2775e1d1dc6a6662a5d28d9fbe762810ee6bb276dab74a1aa56986239ac1b7057cfee5c22213f671af88c778c9434103bb54c617117d926bf27aa737
7
+ data.tar.gz: f50e7ff23ca973be9b1fd257405ad7cbfa48cfab2bd82ef6c52f012449c00c95541018292fbf1223ddbf8f8cd31b3031d43382e9df9920c636add292649504bc
@@ -27,7 +27,7 @@
27
27
  <orderEntry type="library" scope="PROVIDED" name="rack (v1.5.5, RVM: ruby-2.0.0-p643) [gem]" level="application" />
28
28
  <orderEntry type="library" scope="PROVIDED" name="rack-cache (v1.5.1, RVM: ruby-2.0.0-p643) [gem]" level="application" />
29
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" />
30
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.0.0-p643) [gem]" level="application" />
31
31
  <orderEntry type="library" scope="PROVIDED" name="redis (v3.2.2, RVM: ruby-2.0.0-p643) [gem]" level="application" />
32
32
  <orderEntry type="library" scope="PROVIDED" name="redis-actionpack (v4.0.1, RVM: ruby-2.0.0-p643) [gem]" level="application" />
33
33
  <orderEntry type="library" scope="PROVIDED" name="redis-activesupport (v4.1.5, RVM: ruby-2.0.0-p643) [gem]" level="application" />
data/.idea/workspace.xml CHANGED
@@ -2,6 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="78ee9ade-a8c5-47bb-b3b1-b29782923738" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/custom_redis/version.rb" afterPath="$PROJECT_DIR$/lib/custom_redis/version.rb" />
5
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
7
  </list>
7
8
  <ignored path="custom_redis.iws" />
@@ -24,54 +25,54 @@
24
25
  </component>
25
26
  <component name="FileEditorManager">
26
27
  <leaf>
27
- <file leaf-file-name="custom_redis.rb" pinned="false" current-in-tab="true">
28
+ <file leaf-file-name="custom_redis.rb" pinned="false" current-in-tab="false">
28
29
  <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
29
30
  <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" />
31
+ <state vertical-scroll-proportion="0.0">
32
+ <caret line="15" column="16" selection-start-line="15" selection-start-column="16" selection-end-line="15" selection-end-column="16" />
32
33
  <folding />
33
34
  </state>
34
35
  </provider>
35
36
  </entry>
36
37
  </file>
37
- <file leaf-file-name="custom_redis.gemspec" pinned="false" current-in-tab="false">
38
- <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
38
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
39
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis/version.rb">
39
40
  <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" />
41
+ <state vertical-scroll-proportion="0.03307393">
42
+ <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
42
43
  <folding />
43
44
  </state>
44
45
  </provider>
45
46
  </entry>
46
47
  </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 />
48
+ <file leaf-file-name="custom_redis.gemspec" pinned="false" current-in-tab="false">
49
+ <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
50
+ <provider selected="true" editor-type-id="text-editor">
51
+ <state vertical-scroll-proportion="0.0">
52
+ <caret line="18" column="32" selection-start-line="18" selection-start-column="32" selection-end-line="18" selection-end-column="32" />
53
+ <folding />
56
54
  </state>
57
55
  </provider>
58
- <provider editor-type-id="MultiMarkdownFxPreviewEditor">
59
- <state />
60
- </provider>
61
56
  </entry>
62
57
  </file>
63
58
  </leaf>
64
59
  </component>
65
60
  <component name="Git.Settings">
66
61
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
62
+ <option name="RECENT_BRANCH_BY_REPOSITORY">
63
+ <map>
64
+ <entry key="$PROJECT_DIR$" value="master" />
65
+ </map>
66
+ </option>
67
67
  </component>
68
68
  <component name="IdeDocumentHistory">
69
69
  <option name="CHANGED_PATHS">
70
70
  <list>
71
71
  <option value="$PROJECT_DIR$/Gemfile" />
72
- <option value="$PROJECT_DIR$/README.md" />
73
72
  <option value="$PROJECT_DIR$/custom_redis.gemspec" />
73
+ <option value="$PROJECT_DIR$/README.md" />
74
74
  <option value="$PROJECT_DIR$/lib/custom_redis.rb" />
75
+ <option value="$PROJECT_DIR$/lib/custom_redis/version.rb" />
75
76
  </list>
76
77
  </option>
77
78
  </component>
@@ -110,7 +111,6 @@
110
111
  <sortByType />
111
112
  </navigator>
112
113
  <panes>
113
- <pane id="Scratches" />
114
114
  <pane id="ProjectPane">
115
115
  <subPane>
116
116
  <PATH>
@@ -119,72 +119,146 @@
119
119
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
120
120
  </PATH_ELEMENT>
121
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
122
  </subPane>
179
123
  </pane>
180
124
  <pane id="Scope" />
125
+ <pane id="Scratches" />
181
126
  </panes>
182
127
  </component>
183
128
  <component name="PropertiesComponent">
184
- <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
129
+ <property name="settings.editor.selected.configurable" value="reference.settingsdialog.IDE.editor.colors.Font" />
185
130
  <property name="settings.editor.splitter.proportion" value="0.2" />
186
131
  <property name="WebServerToolWindowFactoryState" value="false" />
187
- <property name="FullScreen" value="false" />
132
+ <property name="FullScreen" value="true" />
133
+ </component>
134
+ <component name="RunManager">
135
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
136
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
137
+ <module name="" />
138
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
139
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
140
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
141
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
142
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
143
+ <envs />
144
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
145
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
146
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
147
+ <COVERAGE_PATTERN ENABLED="true">
148
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
149
+ </COVERAGE_PATTERN>
150
+ </EXTENSION>
151
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
152
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
153
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
154
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
155
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
156
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
157
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
158
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
159
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
160
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
161
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
162
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
163
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
164
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
165
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
166
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
167
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
168
+ <method />
169
+ </configuration>
170
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
171
+ <method />
172
+ </configuration>
173
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
174
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
175
+ <module name="" />
176
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
177
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
178
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
179
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
180
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
181
+ <envs />
182
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
183
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
184
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
185
+ <COVERAGE_PATTERN ENABLED="true">
186
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
187
+ </COVERAGE_PATTERN>
188
+ </EXTENSION>
189
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
190
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
191
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
192
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
193
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
194
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
195
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
196
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
197
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
198
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
199
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
200
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
201
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
202
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
203
+ <method />
204
+ </configuration>
205
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
206
+ <module name="" />
207
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
208
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
209
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
210
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
211
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
212
+ <envs />
213
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
214
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
215
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
216
+ <COVERAGE_PATTERN ENABLED="true">
217
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
218
+ </COVERAGE_PATTERN>
219
+ </EXTENSION>
220
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
221
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
222
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
223
+ <method />
224
+ </configuration>
225
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
226
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
227
+ <module name="" />
228
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
229
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
230
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
231
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
232
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
233
+ <envs />
234
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
235
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
236
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
237
+ <COVERAGE_PATTERN ENABLED="true">
238
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
239
+ </COVERAGE_PATTERN>
240
+ </EXTENSION>
241
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
242
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
243
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
244
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
245
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
246
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
247
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
248
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
249
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
250
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
251
+ <method />
252
+ </configuration>
253
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
254
+ <node-options />
255
+ <gulpfile />
256
+ <tasks />
257
+ <arguments />
258
+ <pass-parent-envs>true</pass-parent-envs>
259
+ <envs />
260
+ <method />
261
+ </configuration>
188
262
  </component>
189
263
  <component name="ShelveChangesManager" show_recycled="false" />
190
264
  <component name="SvnConfiguration">
@@ -209,7 +283,151 @@
209
283
  <option name="project" value="LOCAL" />
210
284
  <updated>1454539070360</updated>
211
285
  </task>
212
- <option name="localTasksCounter" value="3" />
286
+ <task id="LOCAL-00003" summary="Hadling exceptions&#10;Public methods added: &#10;- smembers&#10;- sadd">
287
+ <created>1455104238588</created>
288
+ <option name="number" value="00003" />
289
+ <option name="project" value="LOCAL" />
290
+ <updated>1455104238589</updated>
291
+ </task>
292
+ <task id="LOCAL-00004" summary="Fixing raiseException to check if attr is an activerecord object">
293
+ <created>1455109808001</created>
294
+ <option name="number" value="00004" />
295
+ <option name="project" value="LOCAL" />
296
+ <updated>1455109808001</updated>
297
+ </task>
298
+ <task id="LOCAL-00005" summary="Fixing self methods for module:&#10;- cr_get&#10;- my_redis_key">
299
+ <created>1455112709791</created>
300
+ <option name="number" value="00005" />
301
+ <option name="project" value="LOCAL" />
302
+ <updated>1455112709791</updated>
303
+ </task>
304
+ <task id="LOCAL-00006" summary="Changes on raiseExcepcion">
305
+ <created>1455126044369</created>
306
+ <option name="number" value="00006" />
307
+ <option name="project" value="LOCAL" />
308
+ <updated>1455126044369</updated>
309
+ </task>
310
+ <task id="LOCAL-00007" summary="Changes on raiseExcepcion">
311
+ <created>1455126554819</created>
312
+ <option name="number" value="00007" />
313
+ <option name="project" value="LOCAL" />
314
+ <updated>1455126554819</updated>
315
+ </task>
316
+ <task id="LOCAL-00008" summary="Changes on raiseExcepcion">
317
+ <created>1455126876378</created>
318
+ <option name="number" value="00008" />
319
+ <option name="project" value="LOCAL" />
320
+ <updated>1455126876378</updated>
321
+ </task>
322
+ <task id="LOCAL-00009" summary="Changes on raiseExcepcion">
323
+ <created>1455127323625</created>
324
+ <option name="number" value="00009" />
325
+ <option name="project" value="LOCAL" />
326
+ <updated>1455127323625</updated>
327
+ </task>
328
+ <task id="LOCAL-00010" summary="Changes on raiseExcepcion">
329
+ <created>1455127494652</created>
330
+ <option name="number" value="00010" />
331
+ <option name="project" value="LOCAL" />
332
+ <updated>1455127494652</updated>
333
+ </task>
334
+ <task id="LOCAL-00011" summary="Changes on cr_eval">
335
+ <created>1455142126088</created>
336
+ <option name="number" value="00011" />
337
+ <option name="project" value="LOCAL" />
338
+ <updated>1455142126088</updated>
339
+ </task>
340
+ <task id="LOCAL-00012" summary="Changes on cr_eval">
341
+ <created>1455142615877</created>
342
+ <option name="number" value="00012" />
343
+ <option name="project" value="LOCAL" />
344
+ <updated>1455142615877</updated>
345
+ </task>
346
+ <task id="LOCAL-00013" summary="Changes on cr_eval">
347
+ <created>1455143073076</created>
348
+ <option name="number" value="00013" />
349
+ <option name="project" value="LOCAL" />
350
+ <updated>1455143073076</updated>
351
+ </task>
352
+ <task id="LOCAL-00014" summary="Change my_redis_key to public&#10;Changes on cr_eval">
353
+ <created>1455202707642</created>
354
+ <option name="number" value="00014" />
355
+ <option name="project" value="LOCAL" />
356
+ <updated>1455202707642</updated>
357
+ </task>
358
+ <task id="LOCAL-00015" summary="Change my_redis_key to public&#10;Changes on cr_eval">
359
+ <created>1455202897155</created>
360
+ <option name="number" value="00015" />
361
+ <option name="project" value="LOCAL" />
362
+ <updated>1455202897155</updated>
363
+ </task>
364
+ <task id="LOCAL-00016" summary="Changes on cr_eval if condition">
365
+ <created>1455226793293</created>
366
+ <option name="number" value="00016" />
367
+ <option name="project" value="LOCAL" />
368
+ <updated>1455226793293</updated>
369
+ </task>
370
+ <task id="LOCAL-00017" summary="Changes on cr_eval&#10;Adding readme information">
371
+ <created>1455267008194</created>
372
+ <option name="number" value="00017" />
373
+ <option name="project" value="LOCAL" />
374
+ <updated>1455267008194</updated>
375
+ </task>
376
+ <task id="LOCAL-00018" summary="Changes on cr_eval&#10;Adding readme information">
377
+ <created>1455282748649</created>
378
+ <option name="number" value="00018" />
379
+ <option name="project" value="LOCAL" />
380
+ <updated>1455282748649</updated>
381
+ </task>
382
+ <task id="LOCAL-00019" summary="Changes on cr_set and cr_sadd">
383
+ <created>1455282766460</created>
384
+ <option name="number" value="00019" />
385
+ <option name="project" value="LOCAL" />
386
+ <updated>1455282766460</updated>
387
+ </task>
388
+ <task id="LOCAL-00020" summary="Changes on cr_set and cr_sadd">
389
+ <created>1455284224929</created>
390
+ <option name="number" value="00020" />
391
+ <option name="project" value="LOCAL" />
392
+ <updated>1455284224929</updated>
393
+ </task>
394
+ <task id="LOCAL-00021" summary="Changes on cr_set and cr_sadd">
395
+ <created>1455284445794</created>
396
+ <option name="number" value="00021" />
397
+ <option name="project" value="LOCAL" />
398
+ <updated>1455284445794</updated>
399
+ </task>
400
+ <task id="LOCAL-00022" summary="Simplified the get and set method for Strings and Set type">
401
+ <created>1455284789981</created>
402
+ <option name="number" value="00022" />
403
+ <option name="project" value="LOCAL" />
404
+ <updated>1455284789981</updated>
405
+ </task>
406
+ <task id="LOCAL-00023" summary="Simplified the get and set method for Strings and Set type">
407
+ <created>1455284826410</created>
408
+ <option name="number" value="00023" />
409
+ <option name="project" value="LOCAL" />
410
+ <updated>1455284826411</updated>
411
+ </task>
412
+ <task id="LOCAL-00024" summary="type :set now accepts a each block with several methods to execute">
413
+ <created>1455560673534</created>
414
+ <option name="number" value="00024" />
415
+ <option name="project" value="LOCAL" />
416
+ <updated>1455560673534</updated>
417
+ </task>
418
+ <task id="LOCAL-00025" summary="Added cr_flush to accept (object,methods)">
419
+ <created>1455614619714</created>
420
+ <option name="number" value="00025" />
421
+ <option name="project" value="LOCAL" />
422
+ <updated>1455614619714</updated>
423
+ </task>
424
+ <task id="LOCAL-00026" summary="Added cr_flush to accept (object,methods)">
425
+ <created>1455992086252</created>
426
+ <option name="number" value="00026" />
427
+ <option name="project" value="LOCAL" />
428
+ <updated>1455992086252</updated>
429
+ </task>
430
+ <option name="localTasksCounter" value="27" />
213
431
  <servers />
214
432
  </component>
215
433
  <component name="TodoView">
@@ -222,29 +440,50 @@
222
440
  </todo-panel>
223
441
  </component>
224
442
  <component name="ToolWindowManager">
225
- <frame x="0" y="23" width="1440" height="831" extended-state="6" />
226
- <editor active="true" />
443
+ <frame x="0" y="23" width="1440" height="831" extended-state="0" />
444
+ <editor active="false" />
227
445
  <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" />
446
+ <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2398317" sideWeight="0.4914163" order="7" side_tool="false" content_ui="tabs" />
232
447
  <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" />
448
+ <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" />
449
+ <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" />
450
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32959327" sideWeight="0.50858366" order="7" side_tool="true" content_ui="tabs" />
451
+ <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" />
452
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.37026647" sideWeight="0.49713877" order="7" side_tool="false" content_ui="tabs" />
453
+ <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="7" side_tool="false" content_ui="tabs" />
454
+ <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" />
233
455
  <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
456
  <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" />
457
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.26752505" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
458
+ <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" />
459
+ <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" />
460
+ <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" />
461
+ <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" />
462
+ <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" />
463
+ <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" />
464
+ <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" />
465
+ </layout>
466
+ <layout-to-restore>
239
467
  <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" />
468
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32258064" sideWeight="0.4914163" order="7" side_tool="false" content_ui="tabs" />
240
469
  <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" />
470
+ <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" />
471
+ <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" />
241
472
  <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
473
  <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" />
474
+ <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" />
475
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32959327" sideWeight="0.50858366" order="8" side_tool="true" content_ui="tabs" />
476
+ <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="9" side_tool="false" content_ui="tabs" />
477
+ <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="10" side_tool="false" content_ui="tabs" />
478
+ <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" />
479
+ <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" />
243
480
  <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" />
481
+ <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="11" side_tool="false" content_ui="tabs" />
482
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.26037195" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
244
483
  <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
484
  <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
485
  <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>
486
+ </layout-to-restore>
248
487
  </component>
249
488
  <component name="Vcs.Log.UiProperties">
250
489
  <option name="RECENTLY_FILTERED_USER_GROUPS">
@@ -260,11 +499,23 @@
260
499
  <component name="VcsManagerConfiguration">
261
500
  <MESSAGE value="Readme and english translation" />
262
501
  <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" />
502
+ <MESSAGE value="Hadling exceptions&#10;Public methods added: &#10;- smembers&#10;- sadd" />
503
+ <MESSAGE value="Fixing raiseException to check if attr is an activerecord object" />
504
+ <MESSAGE value="Fixing self methods for module:&#10;- cr_get&#10;- my_redis_key" />
505
+ <MESSAGE value="Changes on raiseExcepcion" />
506
+ <MESSAGE value="Changes on cr_eval" />
507
+ <MESSAGE value="Change my_redis_key to public&#10;Changes on cr_eval" />
508
+ <MESSAGE value="Changes on cr_eval if condition" />
509
+ <MESSAGE value="Changes on cr_eval&#10;Adding readme information" />
510
+ <MESSAGE value="Changes on cr_set and cr_sadd" />
511
+ <MESSAGE value="Simplified the get and set method for Strings and Set type" />
512
+ <MESSAGE value="type :set now accepts a each block with several methods to execute" />
513
+ <MESSAGE value="Added cr_flush to accept (object,methods)" />
514
+ <option name="LAST_COMMIT_MESSAGE" value="Added cr_flush to accept (object,methods)" />
264
515
  </component>
265
516
  <component name="XDebuggerManager">
266
517
  <breakpoint-manager>
267
- <option name="time" value="1" />
518
+ <option name="time" value="2" />
268
519
  </breakpoint-manager>
269
520
  <watches-manager />
270
521
  </component>
@@ -272,38 +523,79 @@
272
523
  <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
273
524
  <provider selected="true" editor-type-id="text-editor">
274
525
  <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" />
526
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
276
527
  <folding />
277
528
  </state>
278
529
  </provider>
279
530
  </entry>
280
- <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
531
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
281
532
  <provider selected="true" editor-type-id="text-editor">
282
533
  <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" />
534
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
284
535
  <folding />
285
536
  </state>
286
537
  </provider>
287
538
  </entry>
539
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
540
+ <provider selected="true" editor-type-id="text-editor">
541
+ <state vertical-scroll-proportion="0.0">
542
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
543
+ <folding />
544
+ </state>
545
+ </provider>
546
+ </entry>
547
+ <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
548
+ <provider selected="true" editor-type-id="text-editor">
549
+ <state vertical-scroll-proportion="0.0">
550
+ <caret line="26" column="41" selection-start-line="26" selection-start-column="41" selection-end-line="26" selection-end-column="41" />
551
+ </state>
552
+ </provider>
553
+ </entry>
288
554
  <entry file="file://$PROJECT_DIR$/README.md">
555
+ <provider editor-type-id="MultiMarkdownFxPreviewEditor">
556
+ <state />
557
+ </provider>
289
558
  <provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
290
559
  <state split_layout="FIRST">
291
560
  <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 />
561
+ <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="35" />
294
562
  </first_editor>
295
563
  <second_editor />
296
564
  </state>
297
565
  </provider>
566
+ </entry>
567
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
568
+ <provider selected="true" editor-type-id="text-editor">
569
+ <state vertical-scroll-proportion="0.0">
570
+ <caret line="7" column="20" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="20" />
571
+ <folding />
572
+ </state>
573
+ </provider>
574
+ </entry>
575
+ <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
576
+ <provider selected="true" editor-type-id="text-editor">
577
+ <state vertical-scroll-proportion="0.0">
578
+ <caret line="13" column="16" selection-start-line="13" selection-start-column="16" selection-end-line="13" selection-end-column="16" />
579
+ </state>
580
+ </provider>
581
+ </entry>
582
+ <entry file="file://$PROJECT_DIR$/README.md">
298
583
  <provider editor-type-id="MultiMarkdownFxPreviewEditor">
299
584
  <state />
300
585
  </provider>
586
+ <provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
587
+ <state split_layout="FIRST">
588
+ <first_editor vertical-scroll-proportion="0.0">
589
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
590
+ </first_editor>
591
+ <second_editor />
592
+ </state>
593
+ </provider>
301
594
  </entry>
302
595
  <entry file="file://$PROJECT_DIR$/Gemfile">
303
596
  <provider selected="true" editor-type-id="text-editor">
304
597
  <state vertical-scroll-proportion="0.0">
305
598
  <caret line="6" column="7" selection-start-line="6" selection-start-column="7" selection-end-line="6" selection-end-column="7" />
306
- <folding />
307
599
  </state>
308
600
  </provider>
309
601
  </entry>
@@ -315,54 +607,103 @@
315
607
  </state>
316
608
  </provider>
317
609
  </entry>
318
- <entry file="file://$PROJECT_DIR$/Gemfile">
610
+ <entry file="file://$PROJECT_DIR$/bin/setup">
319
611
  <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 />
612
+ <state vertical-scroll-proportion="0.0">
613
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
323
614
  </state>
324
615
  </provider>
325
616
  </entry>
326
- <entry file="file://$PROJECT_DIR$/lib/custom_redis/version.rb">
617
+ <entry file="file://$PROJECT_DIR$/bin/console">
327
618
  <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 />
619
+ <state vertical-scroll-proportion="0.0">
620
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
331
621
  </state>
332
622
  </provider>
333
623
  </entry>
334
- <entry file="file://$PROJECT_DIR$/bin/setup">
624
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/httpresponse.rb">
335
625
  <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 />
626
+ <state vertical-scroll-proportion="0.33333334">
627
+ <caret line="329" column="8" selection-start-line="329" selection-start-column="8" selection-end-line="329" selection-end-column="8" />
339
628
  </state>
340
629
  </provider>
341
630
  </entry>
342
- <entry file="file://$PROJECT_DIR$/bin/console">
631
+ <entry file="file://$APPLICATION_HOME_DIR$/rubystubs20/object.rb">
632
+ <provider selected="true" editor-type-id="text-editor">
633
+ <state vertical-scroll-proportion="0.3328467">
634
+ <caret line="844" column="8" selection-start-line="844" selection-start-column="8" selection-end-line="844" selection-end-column="8" />
635
+ </state>
636
+ </provider>
637
+ </entry>
638
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
343
639
  <provider selected="true" editor-type-id="text-editor">
344
640
  <state vertical-scroll-proportion="0.0">
345
641
  <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
346
- <folding />
347
642
  </state>
348
643
  </provider>
644
+ <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
645
+ <state />
646
+ </provider>
349
647
  </entry>
350
648
  <entry file="file://$PROJECT_DIR$/README.md">
649
+ <provider editor-type-id="text-editor">
650
+ <state vertical-scroll-proportion="0.06666667">
651
+ <caret line="2" column="255" selection-start-line="2" selection-start-column="255" selection-end-line="2" selection-end-column="255" />
652
+ </state>
653
+ </provider>
654
+ <provider editor-type-id="MultiMarkdownFxPreviewEditor">
655
+ <state />
656
+ </provider>
351
657
  <provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
352
658
  <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 />
659
+ <first_editor vertical-scroll-proportion="0.8160173">
660
+ <caret line="50" column="15" selection-start-line="50" selection-start-column="15" selection-end-line="50" selection-end-column="15" />
356
661
  </first_editor>
357
662
  <second_editor />
358
663
  </state>
359
664
  </provider>
665
+ </entry>
666
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.1.0/lib/active_support/core_ext/module/attr_internal.rb">
667
+ <provider selected="true" editor-type-id="text-editor">
668
+ <state vertical-scroll-proportion="-0.41330168">
669
+ <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
670
+ <folding />
671
+ </state>
672
+ </provider>
673
+ </entry>
674
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/base.rb">
675
+ <provider selected="true" editor-type-id="text-editor">
676
+ <state vertical-scroll-proportion="0.33254156">
677
+ <caret line="132" column="10" selection-start-line="132" selection-start-column="10" selection-end-line="132" selection-end-column="10" />
678
+ </state>
679
+ </provider>
680
+ </entry>
681
+ <entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
360
682
  <provider editor-type-id="MultiMarkdownFxPreviewEditor">
361
683
  <state />
362
684
  </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" />
685
+ <provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
686
+ <state split_layout="FIRST">
687
+ <first_editor vertical-scroll-proportion="0.0">
688
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
689
+ <folding />
690
+ </first_editor>
691
+ <second_editor />
692
+ </state>
693
+ </provider>
694
+ </entry>
695
+ <entry file="file://$PROJECT_DIR$/Rakefile">
696
+ <provider selected="true" editor-type-id="text-editor">
697
+ <state vertical-scroll-proportion="0.0">
698
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
699
+ <folding />
700
+ </state>
701
+ </provider>
702
+ </entry>
703
+ <entry file="file://$PROJECT_DIR$/Gemfile">
704
+ <provider selected="true" editor-type-id="text-editor">
705
+ <state vertical-scroll-proportion="0.2236842">
706
+ <caret line="6" column="7" selection-start-line="6" selection-start-column="7" selection-end-line="6" selection-end-column="7" />
366
707
  <folding />
367
708
  </state>
368
709
  </provider>
@@ -370,15 +711,31 @@
370
711
  <entry file="file://$PROJECT_DIR$/custom_redis.gemspec">
371
712
  <provider selected="true" editor-type-id="text-editor">
372
713
  <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" />
714
+ <caret line="18" column="32" selection-start-line="18" selection-start-column="32" selection-end-line="18" selection-end-column="32" />
715
+ <folding />
716
+ </state>
717
+ </provider>
718
+ </entry>
719
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.0.0-p643/gems/redis-3.2.2/lib/redis.rb">
720
+ <provider selected="true" editor-type-id="text-editor">
721
+ <state vertical-scroll-proportion="0.1118421">
722
+ <caret line="3" column="11" selection-start-line="3" selection-start-column="11" selection-end-line="3" selection-end-column="11" />
374
723
  <folding />
375
724
  </state>
376
725
  </provider>
377
726
  </entry>
378
727
  <entry file="file://$PROJECT_DIR$/lib/custom_redis.rb">
379
728
  <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" />
729
+ <state vertical-scroll-proportion="0.0">
730
+ <caret line="15" column="16" selection-start-line="15" selection-start-column="16" selection-end-line="15" selection-end-column="16" />
731
+ <folding />
732
+ </state>
733
+ </provider>
734
+ </entry>
735
+ <entry file="file://$PROJECT_DIR$/lib/custom_redis/version.rb">
736
+ <provider selected="true" editor-type-id="text-editor">
737
+ <state vertical-scroll-proportion="0.03307393">
738
+ <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
382
739
  <folding />
383
740
  </state>
384
741
  </provider>
data/README.md CHANGED
@@ -20,8 +20,28 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ The gem allows you to manage { key: value } elements easily autogenerating unique keys from ActiveRecord instances on a Redis server which must be running.
24
+ If you have no idea how Redis works, please check Redis's homepage:
25
+ First of all, after adding the gem to the Gemfile, you have to create the initializer CustomRedis.rb and add this line to start using custom_redis
26
+
27
+ ```ruby
28
+ CustomRedis.new
29
+ ```
30
+
31
+ It'll create the global $custom_redis variable. It's accesible from any part of your app to use all Redis functionabilities. Otherwise CustomRedis allows you to forget several methods and manage a cache quickly.
24
32
 
33
+ ```ruby
34
+ employer = Employer.find_by_id(35)
35
+
36
+ #Returns a { key: value } element
37
+ my_custom_redis_element = CustomRedis.cr_eval(employer, :get_agreements,:build_html_resume)
38
+ #Returns a { key: value } element
39
+ my_custom_redis_selements = CustomRedis.cr_eval(employer, :get_agreements,:build_html_resume, :set)
40
+ my_custom_redis_deleted_key = CustomRedis.cr_delete(employer, :get_agreements,:build_html_resume)
41
+ my_custom_redis_flushed_keys = CustomRedis.cr_flush('employer*get_agreements*build_html_resume')
42
+
43
+ ```
44
+
25
45
  ## Development
26
46
 
27
47
  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.
@@ -30,7 +50,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
30
50
 
31
51
  ## Contributing
32
52
 
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.
53
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lmbautista/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
54
 
35
55
 
36
56
  ## License
@@ -1,3 +1,3 @@
1
- module CustomRedis
2
- VERSION = "0.1.0"
1
+ class CustomRedis
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/custom_redis.rb CHANGED
@@ -1,67 +1,167 @@
1
1
  require "custom_redis/version"
2
2
  require "redis"
3
3
 
4
- module CustomRedis
4
+ class CustomRedis
5
5
 
6
6
  attr_accessor :host
7
7
  attr_accessor :port
8
8
  attr_reader :redis
9
9
 
10
- def self.new(host = 'localhost', port = 6379)
10
+ @methods_key
11
+ @type_methods
12
+ @type
13
+
14
+ def initialize(host = 'localhost', port = 6379)
11
15
  @host = host
12
16
  @port = port
13
17
 
14
18
  $custom_redis = Redis.new(:host => @host, :port => @port)
15
19
  end
16
20
 
21
+ # It returns a string like model:id:method1_method2_method3
22
+ def self.my_redis_key(model, string)
23
+ "#{model.class.to_s.downcase}:#{model.id.to_s}:#{string}"
24
+ end
25
+
17
26
  # 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))
27
+ def self.cr_delete(object, custom_key)
28
+ $custom_redis.del(my_redis_key(object, custom_key.to_s))
20
29
  end
21
30
 
22
- # It delete all Redis key-values which
23
- def flush(pattern)
31
+ # It delete all Redis key-values which match with the search
32
+ def self.cr_pflush(pattern)
24
33
  list = $custom_redis.keys(pattern)
25
- list.each do |element|
26
- $custom_redis.del(element)
27
- end
34
+ cr_dlist(list)
28
35
  end
29
36
 
37
+ def self.cr_flush(object, methods)
38
+ @methods_key = methods.join('_')
39
+ list = $custom_redis.keys(my_redis_key(object,@methods_key))
40
+ cr_dlist(list)
41
+ end
42
+
43
+
44
+
30
45
  # 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])
46
+ # It returns the value after executing all methods
47
+ # TODO: Allow to send a method which several params as a hash on *methods
48
+
49
+ def self.cr_eval(object, type = :string, *methods)
50
+
51
+ @methods_key = methods.join('_')
52
+
53
+ cr_evalType(type)
54
+
55
+ case @type
56
+ when :string
57
+ get_method = :get
58
+ set_method = :set
59
+ when :set
60
+ get_method = :smembers
61
+ set_method = :sadd
62
+ when :hash
63
+ get_method = :hash
64
+ set_method = :set
65
+ end
66
+
67
+ # It returns a hash with a key or an array of keys
68
+ if (value = cr_get(object, @methods_key, get_method)) && value.present?
69
+ value
70
+ else
71
+ if methods.present?
72
+ value = object.public_send(methods[0])
73
+ for i in 1..methods.size-1
74
+ value = value.public_send(methods[i])
75
+ end
76
+ end
77
+
78
+ # Iterate each element of a possible result for all methods of cr_eval and execute the each block of methods
79
+ if type == :set
80
+ cr_iterate_set(object, value, set_method)
81
+ else
82
+ cr_set(object, value, set_method)
41
83
  end
42
- set( self, { key => value})
43
84
  end
44
85
  end
45
86
 
46
- private
87
+ class << self
88
+ private
47
89
 
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
90
+ # It set in Redis a key-value as { :"model:id:method1_method2_method3" => value }
91
+ def cr_set(object, value, redis_method)
92
+ redis_key = my_redis_key(object, @methods_key)
93
+ $custom_redis.public_send( redis_method, redis_key, value)
94
+ value
95
+ end
96
+
97
+ # It get in Redis a string or list of string (depends on get method)
98
+ def cr_get(object, custom_key, redis_method)
99
+ $custom_redis.public_send(redis_method, my_redis_key(object, custom_key.to_s))
100
+ end
52
101
 
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)
102
+ # It set the value in Redis within a set
103
+ def cr_sadd(object, custom_key, value)
104
+ $custom_redis.public_send(redis_method, my_redis_key(object, custom_key.to_s), value)
105
+ end
58
106
 
59
- { key => value }.deep_symbolize_keys
60
- end
107
+ # It returns all members of a set in Redis
108
+ def cr_smembers(object,key)
109
+ $custom_redis.smembers(my_redis_key(object, key.to_s))
110
+ end
111
+
112
+ # It deletes a list of element
113
+ def cr_dlist(list)
114
+ list.each do |element|
115
+ $custom_redis.del(element)
116
+ end
117
+ end
118
+
119
+ # Set error messages for each public method
120
+ def evalException(args = [])
121
+ args.each do |hash|
122
+ hash.map { |type, attr|
123
+ raiseException(type, attr)
124
+ }
125
+ end
126
+ end
127
+
128
+ # Check if the attr is an active record to evaluate a possible exception to throw
129
+ def raiseException(type, attr = nil)
130
+ valid = ((type == "field_required") && !attr.nil?) ||
131
+ ((type == "id_required") && !attr.nil? && attr.class.superclass.to_s.include?("ActiveRecord"))
132
+ attr = (!attr.nil? && attr.is_a?(String)) ? attr : attr.class.to_s
133
+
134
+ raise Exception, to_s + '::' + (attr + type.gsub('_',' ')) if !valid
135
+ end
136
+
137
+ # Eval the type of cr_eval method and a possible block to execute
138
+ def cr_evalType(type)
139
+ if @type.is_a?(Hash)
140
+ type_key = type.keys.try(:first)
141
+ @type_methods = type.try(:[],type_key)
142
+ @methods_key += '_' + Array(@type_methods).join('_')
143
+ end
144
+ @type = type_key.present? ? type_key : type
145
+ end
146
+
147
+ # Return an array of values for the block of methods executed
148
+ def cr_iterate_set(object, value, set_method)
149
+ members = []
150
+ if !value.present?
151
+ cr_set(object, "", set_method)
152
+ end
153
+ Array(value).each do |element|
154
+ result = element
155
+ Array(type_methods).each do |method|
156
+ result = result.public_send(method)
157
+ end
158
+ cr_set(object, result, set_method)
159
+ members << result
160
+ end
161
+
162
+ members
163
+ end
61
164
 
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
165
  end
66
166
 
67
167
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - lbautista
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler