lru-cacher 1.0.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 +7 -0
- data/.gitignore +9 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/encodings.xml +6 -0
- data/.idea/lru-cache.iml +57 -0
- data/.idea/misc.xml +31 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +521 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/lru/cacher/node.rb +12 -0
- data/lib/lru/cacher/version.rb +5 -0
- data/lib/lru/cacher.rb +62 -0
- data/lru-cacher.gemspec +24 -0
- metadata +91 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e055df32c598c2272de0d3d38cc0f9ba46d08958
|
4
|
+
data.tar.gz: 8c2bcc7bc2aa2dbf3a7bede6cbdf5120acf20f45
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 42990e16e543b4022b47ef38b060b8b3ad3f67687bff534e8da28f5d52f6921f8ae74d50e757aced03a0e315418c6575f3c840d6ec30c345a3a7f61de0fc2352
|
7
|
+
data.tar.gz: fd88410a52834bd7c25e2eef09adc1212514dc6a4590c582a2542a95e8938fe7a544f9a3bcb5260f14622c98ee9b678900479c75667efb1b64ce67c2f0259c0c
|
data/.gitignore
ADDED
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build lru-cache-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install lru-cache-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install lru-cache-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push lru-cache-0.1.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/encodings.xml
ADDED
data/.idea/lru-cache.iml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="New Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$/../lru-cache" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/../lru-cache/test" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/../lru-cache/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="cacher" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
14
|
+
<module name="lru-cache" />
|
15
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
16
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/lru" />
|
17
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
18
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
19
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
20
|
+
<envs />
|
21
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
22
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
23
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
24
|
+
<COVERAGE_PATTERN ENABLED="true">
|
25
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
26
|
+
</COVERAGE_PATTERN>
|
27
|
+
</EXTENSION>
|
28
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/lru/cacher.rb" />
|
29
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
30
|
+
<method />
|
31
|
+
</configuration>
|
32
|
+
</component>
|
33
|
+
<component name="NewModuleRootManager">
|
34
|
+
<content url="file://$MODULE_DIR$">
|
35
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
36
|
+
<excludeFolder url="file://$MODULE_DIR$/.bundle" />
|
37
|
+
<excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
|
38
|
+
</content>
|
39
|
+
<orderEntry type="inheritedJdk" />
|
40
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
41
|
+
<orderEntry type="module-library">
|
42
|
+
<library name="rake (vbundled(10.5.0), /Users/jasony/VMop/tmp/lru-cache/vendor/bundle/gems/rake-10.5.0) [path][gem]">
|
43
|
+
<CLASSES>
|
44
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/bin" />
|
45
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/lib" />
|
46
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/rakelib" />
|
47
|
+
</CLASSES>
|
48
|
+
<SOURCES>
|
49
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/bin" />
|
50
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/lib" />
|
51
|
+
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/rakelib" />
|
52
|
+
</SOURCES>
|
53
|
+
</library>
|
54
|
+
</orderEntry>
|
55
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, ruby-2.0.0-p481) [gem]" level="application" />
|
56
|
+
</component>
|
57
|
+
</module>
|
data/.idea/misc.xml
ADDED
@@ -0,0 +1,31 @@
|
|
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="ruby-2.0.0-p481" project-jdk-type="RUBY_SDK" />
|
14
|
+
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false" SSL_PROTOCOLS="sslv3">
|
15
|
+
<option name="USER" value="" />
|
16
|
+
<option name="PASSWORD" value="" />
|
17
|
+
<option name="mySSHConnectionTimeout" value="30000" />
|
18
|
+
<option name="mySSHReadTimeout" value="30000" />
|
19
|
+
<option name="LAST_MERGED_REVISION" />
|
20
|
+
<option name="MERGE_DRY_RUN" value="false" />
|
21
|
+
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
22
|
+
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
23
|
+
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
24
|
+
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
25
|
+
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
26
|
+
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
27
|
+
<option name="FORCE_UPDATE" value="false" />
|
28
|
+
<option name="IGNORE_EXTERNALS" value="false" />
|
29
|
+
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
30
|
+
</component>
|
31
|
+
</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$/../lru-cacher/.idea/lru-cache.iml" filepath="$PROJECT_DIR$/../lru-cacher/.idea/lru-cache.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,521 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="53aeabdf-3e80-4df6-ab15-58d619b35ba5" name="Default" comment="" />
|
5
|
+
<ignored path="lru-cache.iws" />
|
6
|
+
<ignored path=".idea/workspace.xml" />
|
7
|
+
<ignored path=".idea/dataSources.local.xml" />
|
8
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
9
|
+
<option name="TRACKING_ENABLED" value="true" />
|
10
|
+
<option name="SHOW_DIALOG" value="false" />
|
11
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
12
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
13
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
14
|
+
</component>
|
15
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
16
|
+
<component name="CoverageDataManager">
|
17
|
+
<SUITE FILE_PATH="coverage/lru-cache@cache.coverage" NAME="cache Coverage Results" MODIFIED="1464038908022" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib/lru" MODULE_NAME="lru-cache" />
|
18
|
+
</component>
|
19
|
+
<component name="CreatePatchCommitExecutor">
|
20
|
+
<option name="PATCH_PATH" value="" />
|
21
|
+
</component>
|
22
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
23
|
+
<component name="FavoritesManager">
|
24
|
+
<favorites_list name="lru-cache" />
|
25
|
+
</component>
|
26
|
+
<component name="FileEditorManager">
|
27
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
28
|
+
<file leaf-file-name="cacher.rb" pinned="false" current-in-tab="false">
|
29
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lib/lru/cacher.rb">
|
30
|
+
<provider selected="true" editor-type-id="text-editor">
|
31
|
+
<state relative-caret-position="270">
|
32
|
+
<caret line="18" column="24" selection-start-line="18" selection-start-column="24" selection-end-line="18" selection-end-column="24" />
|
33
|
+
<folding />
|
34
|
+
</state>
|
35
|
+
</provider>
|
36
|
+
</entry>
|
37
|
+
</file>
|
38
|
+
<file leaf-file-name="node.rb" pinned="false" current-in-tab="false">
|
39
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lib/lru/cacher/node.rb">
|
40
|
+
<provider selected="true" editor-type-id="text-editor">
|
41
|
+
<state relative-caret-position="165">
|
42
|
+
<caret line="11" column="3" selection-start-line="11" selection-start-column="3" selection-end-line="11" selection-end-column="3" />
|
43
|
+
<folding />
|
44
|
+
</state>
|
45
|
+
</provider>
|
46
|
+
</entry>
|
47
|
+
</file>
|
48
|
+
<file leaf-file-name="lru-cacher.gemspec" pinned="false" current-in-tab="false">
|
49
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lru-cacher.gemspec">
|
50
|
+
<provider selected="true" editor-type-id="text-editor">
|
51
|
+
<state relative-caret-position="90">
|
52
|
+
<caret line="6" column="34" selection-start-line="6" selection-start-column="34" selection-end-line="6" selection-end-column="34" />
|
53
|
+
<folding />
|
54
|
+
</state>
|
55
|
+
</provider>
|
56
|
+
</entry>
|
57
|
+
</file>
|
58
|
+
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
59
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/README.md">
|
60
|
+
<provider selected="true" editor-type-id="text-editor">
|
61
|
+
<state relative-caret-position="330">
|
62
|
+
<caret line="22" column="18" selection-start-line="22" selection-start-column="18" selection-end-line="22" selection-end-column="18" />
|
63
|
+
<folding />
|
64
|
+
</state>
|
65
|
+
</provider>
|
66
|
+
</entry>
|
67
|
+
</file>
|
68
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
69
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lib/lru/cacher/version.rb">
|
70
|
+
<provider selected="true" editor-type-id="text-editor">
|
71
|
+
<state relative-caret-position="15">
|
72
|
+
<caret line="1" column="15" selection-start-line="1" selection-start-column="15" selection-end-line="1" selection-end-column="15" />
|
73
|
+
<folding />
|
74
|
+
</state>
|
75
|
+
</provider>
|
76
|
+
</entry>
|
77
|
+
</file>
|
78
|
+
<file leaf-file-name="ruby-debug-ide.rb" pinned="false" current-in-tab="false">
|
79
|
+
<entry file="file://$USER_HOME$/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide.rb">
|
80
|
+
<provider selected="true" editor-type-id="text-editor">
|
81
|
+
<state relative-caret-position="1320">
|
82
|
+
<caret line="88" column="0" selection-start-line="88" selection-start-column="0" selection-end-line="88" selection-end-column="0" />
|
83
|
+
<folding />
|
84
|
+
</state>
|
85
|
+
</provider>
|
86
|
+
</entry>
|
87
|
+
</file>
|
88
|
+
<file leaf-file-name="kernel_require.rb" pinned="false" current-in-tab="false">
|
89
|
+
<entry file="file:///System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb">
|
90
|
+
<provider selected="true" editor-type-id="text-editor">
|
91
|
+
<state relative-caret-position="810">
|
92
|
+
<caret line="54" column="0" selection-start-line="54" selection-start-column="0" selection-end-line="54" selection-end-column="0" />
|
93
|
+
<folding />
|
94
|
+
</state>
|
95
|
+
</provider>
|
96
|
+
</entry>
|
97
|
+
</file>
|
98
|
+
</leaf>
|
99
|
+
</component>
|
100
|
+
<component name="FileTemplateManagerImpl">
|
101
|
+
<option name="RECENT_TEMPLATES">
|
102
|
+
<list>
|
103
|
+
<option value="Ruby Class Template" />
|
104
|
+
</list>
|
105
|
+
</option>
|
106
|
+
</component>
|
107
|
+
<component name="Git.Settings">
|
108
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
109
|
+
</component>
|
110
|
+
<component name="IdeDocumentHistory">
|
111
|
+
<option name="CHANGED_PATHS">
|
112
|
+
<list>
|
113
|
+
<option value="$PROJECT_DIR$/lib/lru/cache/node.rb" />
|
114
|
+
<option value="$PROJECT_DIR$/lru-cache.gemspec" />
|
115
|
+
<option value="$PROJECT_DIR$/lib/lru/cache.rb" />
|
116
|
+
<option value="$PROJECT_DIR$/lib/lru/cache/version.rb" />
|
117
|
+
<option value="$PROJECT_DIR$/../lru-cacher/lib/lru/cacher/node.rb" />
|
118
|
+
<option value="$PROJECT_DIR$/../lru-cacher/lib/lru/cacher.rb" />
|
119
|
+
<option value="$PROJECT_DIR$/../lru-cacher/lru-cache.gemspec" />
|
120
|
+
<option value="$PROJECT_DIR$/../lru-cacher/README.md" />
|
121
|
+
<option value="$PROJECT_DIR$/../lru-cacher/lib/lru/cacher/version.rb" />
|
122
|
+
</list>
|
123
|
+
</option>
|
124
|
+
</component>
|
125
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" />
|
126
|
+
<component name="JsBuildToolPackageJson" detection-done="true" />
|
127
|
+
<component name="JsGulpfileManager">
|
128
|
+
<detection-done>true</detection-done>
|
129
|
+
</component>
|
130
|
+
<component name="ProjectFrameBounds">
|
131
|
+
<option name="y" value="23" />
|
132
|
+
<option name="width" value="1680" />
|
133
|
+
<option name="height" value="963" />
|
134
|
+
</component>
|
135
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
136
|
+
<OptionsSetting value="true" id="Add" />
|
137
|
+
<OptionsSetting value="true" id="Remove" />
|
138
|
+
<OptionsSetting value="true" id="Checkout" />
|
139
|
+
<OptionsSetting value="true" id="Update" />
|
140
|
+
<OptionsSetting value="true" id="Status" />
|
141
|
+
<OptionsSetting value="true" id="Edit" />
|
142
|
+
<ConfirmationsSetting value="0" id="Add" />
|
143
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
144
|
+
</component>
|
145
|
+
<component name="ProjectView">
|
146
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
147
|
+
<flattenPackages />
|
148
|
+
<showMembers />
|
149
|
+
<showModules />
|
150
|
+
<showLibraryContents />
|
151
|
+
<hideEmptyPackages />
|
152
|
+
<abbreviatePackageNames />
|
153
|
+
<autoscrollToSource />
|
154
|
+
<autoscrollFromSource />
|
155
|
+
<sortByType />
|
156
|
+
<manualOrder />
|
157
|
+
<foldersAlwaysOnTop value="true" />
|
158
|
+
</navigator>
|
159
|
+
<panes>
|
160
|
+
<pane id="Scratches" />
|
161
|
+
<pane id="ProjectPane">
|
162
|
+
<subPane>
|
163
|
+
<PATH>
|
164
|
+
<PATH_ELEMENT>
|
165
|
+
<option name="myItemId" value="lru-cache" />
|
166
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
167
|
+
</PATH_ELEMENT>
|
168
|
+
</PATH>
|
169
|
+
<PATH>
|
170
|
+
<PATH_ELEMENT>
|
171
|
+
<option name="myItemId" value="lru-cache" />
|
172
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
173
|
+
</PATH_ELEMENT>
|
174
|
+
<PATH_ELEMENT>
|
175
|
+
<option name="myItemId" value="lru-cacher" />
|
176
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
177
|
+
</PATH_ELEMENT>
|
178
|
+
</PATH>
|
179
|
+
<PATH>
|
180
|
+
<PATH_ELEMENT>
|
181
|
+
<option name="myItemId" value="lru-cache" />
|
182
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
183
|
+
</PATH_ELEMENT>
|
184
|
+
<PATH_ELEMENT>
|
185
|
+
<option name="myItemId" value="lru-cacher" />
|
186
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
187
|
+
</PATH_ELEMENT>
|
188
|
+
<PATH_ELEMENT>
|
189
|
+
<option name="myItemId" value="lib" />
|
190
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
191
|
+
</PATH_ELEMENT>
|
192
|
+
<PATH_ELEMENT>
|
193
|
+
<option name="myItemId" value="lru" />
|
194
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
195
|
+
</PATH_ELEMENT>
|
196
|
+
</PATH>
|
197
|
+
<PATH>
|
198
|
+
<PATH_ELEMENT>
|
199
|
+
<option name="myItemId" value="lru-cache" />
|
200
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
201
|
+
</PATH_ELEMENT>
|
202
|
+
<PATH_ELEMENT>
|
203
|
+
<option name="myItemId" value="lru-cacher" />
|
204
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
205
|
+
</PATH_ELEMENT>
|
206
|
+
<PATH_ELEMENT>
|
207
|
+
<option name="myItemId" value="lib" />
|
208
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
209
|
+
</PATH_ELEMENT>
|
210
|
+
<PATH_ELEMENT>
|
211
|
+
<option name="myItemId" value="lru" />
|
212
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
213
|
+
</PATH_ELEMENT>
|
214
|
+
<PATH_ELEMENT>
|
215
|
+
<option name="myItemId" value="cacher" />
|
216
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
217
|
+
</PATH_ELEMENT>
|
218
|
+
</PATH>
|
219
|
+
</subPane>
|
220
|
+
</pane>
|
221
|
+
<pane id="Scope" />
|
222
|
+
</panes>
|
223
|
+
</component>
|
224
|
+
<component name="PropertiesComponent">
|
225
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
226
|
+
<property name="options.lastSelected" value="coverage" />
|
227
|
+
<property name="options.searchVisible" value="true" />
|
228
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
229
|
+
<property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
230
|
+
<property name="settings.editor.splitter.proportion" value="0.2" />
|
231
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
232
|
+
</component>
|
233
|
+
<component name="RunManager" selected="Ruby.cacher">
|
234
|
+
<configuration default="false" name="cacher" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
235
|
+
<module name="lru-cache" />
|
236
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
237
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/lru" />
|
238
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
239
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
240
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
241
|
+
<envs />
|
242
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
243
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
244
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
245
|
+
<COVERAGE_PATTERN ENABLED="true">
|
246
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
247
|
+
</COVERAGE_PATTERN>
|
248
|
+
</EXTENSION>
|
249
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/lru/cacher.rb" />
|
250
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
251
|
+
<method />
|
252
|
+
</configuration>
|
253
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
254
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
255
|
+
<module name="" />
|
256
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
257
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
258
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
259
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
260
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
261
|
+
<envs />
|
262
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
263
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
264
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
265
|
+
<COVERAGE_PATTERN ENABLED="true">
|
266
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
267
|
+
</COVERAGE_PATTERN>
|
268
|
+
</EXTENSION>
|
269
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
270
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
271
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
272
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
273
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
274
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
275
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
276
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
277
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
278
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
279
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
280
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
281
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
282
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
283
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
284
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
285
|
+
<method />
|
286
|
+
</configuration>
|
287
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
288
|
+
<method />
|
289
|
+
</configuration>
|
290
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
291
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
292
|
+
<module name="" />
|
293
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
294
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
295
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
296
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
297
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
298
|
+
<envs />
|
299
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
300
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
301
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
302
|
+
<COVERAGE_PATTERN ENABLED="true">
|
303
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
304
|
+
</COVERAGE_PATTERN>
|
305
|
+
</EXTENSION>
|
306
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
307
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
308
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
309
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
310
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
311
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
312
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
316
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
317
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
318
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
319
|
+
<method />
|
320
|
+
</configuration>
|
321
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
322
|
+
<module name="" />
|
323
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
324
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
325
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
326
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
327
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
328
|
+
<envs />
|
329
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
330
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
331
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
332
|
+
<COVERAGE_PATTERN ENABLED="true">
|
333
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
334
|
+
</COVERAGE_PATTERN>
|
335
|
+
</EXTENSION>
|
336
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
337
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
338
|
+
<method />
|
339
|
+
</configuration>
|
340
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
341
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
342
|
+
<module name="" />
|
343
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
344
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
345
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
346
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
347
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
348
|
+
<envs />
|
349
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
350
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
351
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
352
|
+
<COVERAGE_PATTERN ENABLED="true">
|
353
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
354
|
+
</COVERAGE_PATTERN>
|
355
|
+
</EXTENSION>
|
356
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
357
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
358
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
359
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
360
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
361
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
362
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
363
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
364
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
365
|
+
<method />
|
366
|
+
</configuration>
|
367
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
368
|
+
<node-interpreter>project</node-interpreter>
|
369
|
+
<node-options />
|
370
|
+
<gulpfile />
|
371
|
+
<tasks />
|
372
|
+
<arguments />
|
373
|
+
<envs />
|
374
|
+
<method />
|
375
|
+
</configuration>
|
376
|
+
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
377
|
+
<command value="run-script" />
|
378
|
+
<scripts />
|
379
|
+
<node-interpreter value="project" />
|
380
|
+
<envs />
|
381
|
+
<method />
|
382
|
+
</configuration>
|
383
|
+
<list size="1">
|
384
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.cacher" />
|
385
|
+
</list>
|
386
|
+
<recent_temporary>
|
387
|
+
<list size="1">
|
388
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.cacher" />
|
389
|
+
</list>
|
390
|
+
</recent_temporary>
|
391
|
+
</component>
|
392
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
393
|
+
<option name="remove_strategy" value="false" />
|
394
|
+
</component>
|
395
|
+
<component name="TaskManager">
|
396
|
+
<task active="true" id="Default" summary="Default task">
|
397
|
+
<changelist id="53aeabdf-3e80-4df6-ab15-58d619b35ba5" name="Default" comment="" />
|
398
|
+
<created>1464036635817</created>
|
399
|
+
<option name="number" value="Default" />
|
400
|
+
<option name="presentableId" value="Default" />
|
401
|
+
<updated>1464036635817</updated>
|
402
|
+
<workItem from="1464036637044" duration="5219000" />
|
403
|
+
<workItem from="1464056831515" duration="4515000" />
|
404
|
+
</task>
|
405
|
+
<servers />
|
406
|
+
</component>
|
407
|
+
<component name="TimeTrackingManager">
|
408
|
+
<option name="totallyTimeSpent" value="9734000" />
|
409
|
+
</component>
|
410
|
+
<component name="ToolWindowManager">
|
411
|
+
<frame x="0" y="23" width="1680" height="963" extended-state="0" />
|
412
|
+
<editor active="false" />
|
413
|
+
<layout>
|
414
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18376069" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
415
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
416
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3289941" sideWeight="0.5" order="9" side_tool="true" content_ui="tabs" />
|
417
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
418
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3289941" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
419
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
420
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.28875738" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
421
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
422
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.08047337" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
423
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
424
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.19526628" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
425
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
426
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
427
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
428
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
429
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
430
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
431
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
432
|
+
</layout>
|
433
|
+
</component>
|
434
|
+
<component name="VcsContentAnnotationSettings">
|
435
|
+
<option name="myLimit" value="2678400000" />
|
436
|
+
</component>
|
437
|
+
<component name="XDebuggerManager">
|
438
|
+
<breakpoint-manager>
|
439
|
+
<option name="time" value="4" />
|
440
|
+
</breakpoint-manager>
|
441
|
+
<watches-manager>
|
442
|
+
<configuration name="RubyRunConfigurationType">
|
443
|
+
<watch expression="@tail.next_node" />
|
444
|
+
</configuration>
|
445
|
+
</watches-manager>
|
446
|
+
</component>
|
447
|
+
<component name="editorHistoryManager">
|
448
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lib/lru/cacher.rb">
|
449
|
+
<provider selected="true" editor-type-id="text-editor">
|
450
|
+
<state relative-caret-position="0">
|
451
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
452
|
+
<folding />
|
453
|
+
</state>
|
454
|
+
</provider>
|
455
|
+
</entry>
|
456
|
+
<entry file="file://$USER_HOME$/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide.rb">
|
457
|
+
<provider selected="true" editor-type-id="text-editor">
|
458
|
+
<state relative-caret-position="1320">
|
459
|
+
<caret line="88" column="0" selection-start-line="88" selection-start-column="0" selection-end-line="88" selection-end-column="0" />
|
460
|
+
<folding />
|
461
|
+
</state>
|
462
|
+
</provider>
|
463
|
+
</entry>
|
464
|
+
<entry file="file:///System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb">
|
465
|
+
<provider selected="true" editor-type-id="text-editor">
|
466
|
+
<state relative-caret-position="810">
|
467
|
+
<caret line="54" column="0" selection-start-line="54" selection-start-column="0" selection-end-line="54" selection-end-column="0" />
|
468
|
+
<folding />
|
469
|
+
</state>
|
470
|
+
</provider>
|
471
|
+
</entry>
|
472
|
+
<entry file="file://$PROJECT_DIR$/Gemfile.lock">
|
473
|
+
<provider selected="true" editor-type-id="text-editor">
|
474
|
+
<state relative-caret-position="0">
|
475
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
476
|
+
<folding />
|
477
|
+
</state>
|
478
|
+
</provider>
|
479
|
+
</entry>
|
480
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lib/lru/cacher.rb">
|
481
|
+
<provider selected="true" editor-type-id="text-editor">
|
482
|
+
<state relative-caret-position="270">
|
483
|
+
<caret line="18" column="24" selection-start-line="18" selection-start-column="24" selection-end-line="18" selection-end-column="24" />
|
484
|
+
<folding />
|
485
|
+
</state>
|
486
|
+
</provider>
|
487
|
+
</entry>
|
488
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lib/lru/cacher/node.rb">
|
489
|
+
<provider selected="true" editor-type-id="text-editor">
|
490
|
+
<state relative-caret-position="165">
|
491
|
+
<caret line="11" column="3" selection-start-line="11" selection-start-column="3" selection-end-line="11" selection-end-column="3" />
|
492
|
+
<folding />
|
493
|
+
</state>
|
494
|
+
</provider>
|
495
|
+
</entry>
|
496
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/README.md">
|
497
|
+
<provider selected="true" editor-type-id="text-editor">
|
498
|
+
<state relative-caret-position="330">
|
499
|
+
<caret line="22" column="18" selection-start-line="22" selection-start-column="18" selection-end-line="22" selection-end-column="18" />
|
500
|
+
<folding />
|
501
|
+
</state>
|
502
|
+
</provider>
|
503
|
+
</entry>
|
504
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lru-cacher.gemspec">
|
505
|
+
<provider selected="true" editor-type-id="text-editor">
|
506
|
+
<state relative-caret-position="90">
|
507
|
+
<caret line="6" column="34" selection-start-line="6" selection-start-column="34" selection-end-line="6" selection-end-column="34" />
|
508
|
+
<folding />
|
509
|
+
</state>
|
510
|
+
</provider>
|
511
|
+
</entry>
|
512
|
+
<entry file="file://$PROJECT_DIR$/../lru-cacher/lib/lru/cacher/version.rb">
|
513
|
+
<provider selected="true" editor-type-id="text-editor">
|
514
|
+
<state relative-caret-position="15">
|
515
|
+
<caret line="1" column="15" selection-start-line="1" selection-start-column="15" selection-end-line="1" selection-end-column="15" />
|
516
|
+
<folding />
|
517
|
+
</state>
|
518
|
+
</provider>
|
519
|
+
</entry>
|
520
|
+
</component>
|
521
|
+
</project>
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 jason.manther.young@gmail.com. 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
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Manther
|
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,41 @@
|
|
1
|
+
# Lru::Cacher
|
2
|
+
|
3
|
+
Least recently use caching gem
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'lru-cacher'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install lru-cacher
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
@lru = LRU::Cacher.new(3)
|
24
|
+
@lru.set(:some_key, some_value)
|
25
|
+
@lru.get(:some_key)
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lru-cache. 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.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "lru/cache"
|
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
data/lib/lru/cacher.rb
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'lru/cache/node'
|
2
|
+
module LRU
|
3
|
+
class Cacher
|
4
|
+
attr_accessor :head, :tail, :max_items, :table
|
5
|
+
|
6
|
+
def initialize(max_items)
|
7
|
+
@max_items = max_items
|
8
|
+
@table = {}
|
9
|
+
@head = nil
|
10
|
+
@tail = nil
|
11
|
+
end
|
12
|
+
|
13
|
+
def set(key, value)
|
14
|
+
if @table.size > @max_items
|
15
|
+
@table.delete @head.key
|
16
|
+
@head = @head.next_node
|
17
|
+
end
|
18
|
+
if !@table.key?(key)
|
19
|
+
new_node = LRU::Node.new value, key, @tail, nil
|
20
|
+
else
|
21
|
+
new_node = @table[key]
|
22
|
+
new_node.value = value
|
23
|
+
end
|
24
|
+
@head = new_node if @tail == nil
|
25
|
+
@tail.next_node = new_node if @tail != nil
|
26
|
+
@tail = new_node
|
27
|
+
@table[key] = new_node
|
28
|
+
end
|
29
|
+
|
30
|
+
def get(key)
|
31
|
+
current_node = @table[key]
|
32
|
+
if current_node
|
33
|
+
return current_node if current_node.next_node == nil
|
34
|
+
if current_node.prev_node != nil
|
35
|
+
current_node.prev_node.next_node = current_node.next_node
|
36
|
+
else
|
37
|
+
@head = current_node.next_node
|
38
|
+
@head.prev_node = nil
|
39
|
+
end
|
40
|
+
@tail.next_node = current_node
|
41
|
+
current_node.next_node = nil
|
42
|
+
current_node.prev_node = @tail
|
43
|
+
@tail = current_node
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def delete(key)
|
48
|
+
current_node = @table[key]
|
49
|
+
if current_node
|
50
|
+
if @head == current_node
|
51
|
+
@head = current_node.next_node
|
52
|
+
elsif @tail == current_node
|
53
|
+
@tail = current_node.prev_node
|
54
|
+
else
|
55
|
+
current_node.prev_node.next_node = current_node.next_node
|
56
|
+
current_node.next_node.prev_node = current_node.prev_node
|
57
|
+
end
|
58
|
+
@table.delete(key)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
data/lru-cacher.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'lru/cacher/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "lru-cacher"
|
8
|
+
spec.version = LRU::Cacher::VERSION
|
9
|
+
spec.authors = ["Manther"]
|
10
|
+
spec.email = ["jason.manther.young@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{LRU Caching gem.}
|
13
|
+
spec.description = %q{LRU Caching gem.}
|
14
|
+
spec.homepage = "https://github.com/Manther/lru-cache"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lru-cacher
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Manther
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-05-25 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: LRU Caching gem.
|
42
|
+
email:
|
43
|
+
- jason.manther.young@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- ".idea/.rakeTasks"
|
50
|
+
- ".idea/encodings.xml"
|
51
|
+
- ".idea/lru-cache.iml"
|
52
|
+
- ".idea/misc.xml"
|
53
|
+
- ".idea/modules.xml"
|
54
|
+
- ".idea/vcs.xml"
|
55
|
+
- ".idea/workspace.xml"
|
56
|
+
- CODE_OF_CONDUCT.md
|
57
|
+
- Gemfile
|
58
|
+
- LICENSE.txt
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- bin/console
|
62
|
+
- bin/setup
|
63
|
+
- lib/lru/cacher.rb
|
64
|
+
- lib/lru/cacher/node.rb
|
65
|
+
- lib/lru/cacher/version.rb
|
66
|
+
- lru-cacher.gemspec
|
67
|
+
homepage: https://github.com/Manther/lru-cache
|
68
|
+
licenses:
|
69
|
+
- MIT
|
70
|
+
metadata: {}
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
requirements: []
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.2.2
|
88
|
+
signing_key:
|
89
|
+
specification_version: 4
|
90
|
+
summary: LRU Caching gem.
|
91
|
+
test_files: []
|