lru-cacher 1.3.4 → 1.3.5
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 +4 -4
- data/.gitignore +3 -1
- data/lib/lru-cacher/version.rb +1 -1
- data/lib/lru-cacher.rb +18 -26
- metadata +2 -10
- data/.idea/.rakeTasks +0 -7
- data/.idea/encodings.xml +0 -6
- data/.idea/lru-cache.iml +0 -334
- data/.idea/misc.xml +0 -14
- data/.idea/modules.xml +0 -8
- data/.idea/vcs.xml +0 -6
- data/.idea/workspace.xml +0 -1223
- data/lru-cacher-1.3.3.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc7e12137a036160e14431fe97760a9c0880c6b8
|
4
|
+
data.tar.gz: c4c587836cd9045a4f2cbaaac6b0b761c62fc9aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2a512ea52d962c7f4c4325c1997eb5d92f4f9e975819b3a40b2adf739f6d0be867134c18cc280dc42bed44a6540a26c2d85dcb2319308b9c1c6d777d9faa369
|
7
|
+
data.tar.gz: 88303fb1fbfa437f18d2e66ca93ddbb078c34cecbbe988955b82d6c04678a84ed4f62effc186b14754f2f4afe194f14b222146b5402a07f74f6c06634677575e
|
data/.gitignore
CHANGED
data/lib/lru-cacher/version.rb
CHANGED
data/lib/lru-cacher.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'lru-cacher/node'
|
2
|
+
|
2
3
|
class LRUCacher
|
3
4
|
def initialize
|
4
5
|
@table = {}
|
@@ -7,18 +8,16 @@ class LRUCacher
|
|
7
8
|
end
|
8
9
|
|
9
10
|
def set(key, value)
|
10
|
-
new_node = LRUCacher::Node.new
|
11
|
-
@head = new_node
|
12
|
-
@tail.next_node = new_node if @tail
|
11
|
+
new_node = LRUCacher::Node.new(value, key, @tail, nil)
|
12
|
+
@head = new_node unless @tail
|
13
|
+
@tail.next_node = new_node if @tail
|
13
14
|
@tail = new_node
|
14
15
|
@table[key] = new_node
|
15
|
-
if over_threshold?
|
16
|
-
delete(@head.key) if @head
|
17
|
-
end
|
16
|
+
delete(@head.key) if @head && over_threshold?
|
18
17
|
end
|
19
18
|
|
20
19
|
def exists?(key)
|
21
|
-
@table.key?
|
20
|
+
@table.key?(key)
|
22
21
|
end
|
23
22
|
|
24
23
|
def size
|
@@ -31,12 +30,17 @@ class LRUCacher
|
|
31
30
|
if @tail == current_node
|
32
31
|
current_node
|
33
32
|
elsif @head == current_node
|
34
|
-
@head
|
35
|
-
@
|
36
|
-
@tail
|
33
|
+
@head = current_node.next_node
|
34
|
+
@head.prev_node = nil
|
35
|
+
current_node.prev_node = @tail
|
36
|
+
current_node.next_node = nil
|
37
|
+
@tail.next_node = current_node
|
38
|
+
@tail = current_node
|
37
39
|
else
|
38
40
|
current_node.prev_node.next_node = current_node.next_node
|
39
41
|
current_node.next_node.prev_node = current_node.prev_node
|
42
|
+
current_node.prev_node = @tail
|
43
|
+
current_node.next_node = nil
|
40
44
|
@tail.next_node = current_node
|
41
45
|
@tail = current_node
|
42
46
|
end
|
@@ -50,9 +54,11 @@ class LRUCacher
|
|
50
54
|
if @head == current_node && @tail == current_node
|
51
55
|
@head, @tail = nil
|
52
56
|
elsif @head == current_node
|
53
|
-
@head
|
57
|
+
@head = current_node.next_node
|
58
|
+
@head.prev_node = nil
|
54
59
|
elsif @tail == current_node
|
55
|
-
@tail
|
60
|
+
@tail = current_node.prev_node
|
61
|
+
@tail.next_node = nil
|
56
62
|
else
|
57
63
|
current_node.prev_node.next_node = current_node.next_node
|
58
64
|
current_node.next_node.prev_node = current_node.prev_node
|
@@ -60,18 +66,4 @@ class LRUCacher
|
|
60
66
|
@table.delete(key)
|
61
67
|
end
|
62
68
|
end
|
63
|
-
|
64
69
|
end
|
65
|
-
|
66
|
-
|
67
|
-
# (0)
|
68
|
-
# nn ||
|
69
|
-
# V ||
|
70
|
-
# ||
|
71
|
-
# || ^
|
72
|
-
# || pn
|
73
|
-
# V
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lru-cacher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manther
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -88,13 +88,6 @@ extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
90
|
- .gitignore
|
91
|
-
- .idea/.rakeTasks
|
92
|
-
- .idea/encodings.xml
|
93
|
-
- .idea/lru-cache.iml
|
94
|
-
- .idea/misc.xml
|
95
|
-
- .idea/modules.xml
|
96
|
-
- .idea/vcs.xml
|
97
|
-
- .idea/workspace.xml
|
98
91
|
- CODE_OF_CONDUCT.md
|
99
92
|
- Gemfile
|
100
93
|
- LICENSE.txt
|
@@ -108,7 +101,6 @@ files:
|
|
108
101
|
- lib/lru-cacher/memory_limited_java.rb
|
109
102
|
- lib/lru-cacher/node.rb
|
110
103
|
- lib/lru-cacher/version.rb
|
111
|
-
- lru-cacher-1.3.3.gem
|
112
104
|
- lru-cacher.gemspec
|
113
105
|
homepage: https://github.com/Manther/lru-cache
|
114
106
|
licenses:
|
data/.idea/.rakeTasks
DELETED
@@ -1,7 +0,0 @@
|
|
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-cacher-1.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install lru-cacher-1.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v1.1.0 and build and push lru-cacher-1.1.0.gem to Rubygems" fullCmd="release" taksId="release" /><RakeTask description="" fullCmd="default" taksId="default" /></RakeGroup></Settings>
|
data/.idea/encodings.xml
DELETED
data/.idea/lru-cache.iml
DELETED
@@ -1,334 +0,0 @@
|
|
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="MemoryLimited: lru-cache" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
14
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
15
|
-
<module name="lru-cache" />
|
16
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
17
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
18
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
19
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
20
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
21
|
-
<envs>
|
22
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
23
|
-
</envs>
|
24
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
25
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
26
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
27
|
-
<COVERAGE_PATTERN ENABLED="true">
|
28
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
29
|
-
</COVERAGE_PATTERN>
|
30
|
-
</EXTENSION>
|
31
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
32
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/unit/service_spec.rb" />
|
33
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
34
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
35
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MemoryLimited" />
|
36
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
37
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
38
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
39
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
40
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
41
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
42
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
43
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
44
|
-
<method />
|
45
|
-
</configuration>
|
46
|
-
<configuration default="false" name="MemoryLimited delete Resets the tail node if tail is deleted, and pops off the correct item after: lru-cache" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
47
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
48
|
-
<module name="lru-cache" />
|
49
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
50
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
51
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
52
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
53
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
54
|
-
<envs>
|
55
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
56
|
-
</envs>
|
57
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
58
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
59
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
60
|
-
<COVERAGE_PATTERN ENABLED="true">
|
61
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
62
|
-
</COVERAGE_PATTERN>
|
63
|
-
</EXTENSION>
|
64
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
65
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/unit/service_spec.rb" />
|
66
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
67
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
68
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MemoryLimited delete Resets the tail node if tail is deleted, and pops off the correct item after" />
|
69
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
70
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
71
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
72
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
73
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
74
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
75
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
76
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
77
|
-
<method />
|
78
|
-
</configuration>
|
79
|
-
<configuration default="false" name="MemoryLimited delete Resets the head node if head is deleted, and pops off the correct item after: lru-cache" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
80
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
81
|
-
<module name="lru-cache" />
|
82
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
83
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
84
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
85
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
86
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
87
|
-
<envs>
|
88
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
89
|
-
</envs>
|
90
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
91
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
92
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
93
|
-
<COVERAGE_PATTERN ENABLED="true">
|
94
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
95
|
-
</COVERAGE_PATTERN>
|
96
|
-
</EXTENSION>
|
97
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
98
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/unit/service_spec.rb" />
|
99
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
100
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
101
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MemoryLimited delete Resets the head node if head is deleted, and pops off the correct item after" />
|
102
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
103
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
104
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
105
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
106
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
107
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
108
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
109
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
110
|
-
<method />
|
111
|
-
</configuration>
|
112
|
-
<configuration default="false" name="Run spec 'service_spec': lru-cache" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
113
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
114
|
-
<module name="lru-cache" />
|
115
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
116
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
117
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
118
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
119
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
120
|
-
<envs>
|
121
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
122
|
-
</envs>
|
123
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
124
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
125
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
126
|
-
<COVERAGE_PATTERN ENABLED="true">
|
127
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
128
|
-
</COVERAGE_PATTERN>
|
129
|
-
</EXTENSION>
|
130
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
131
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/unit/service_spec.rb" />
|
132
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
133
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
134
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
135
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
136
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
137
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
138
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
139
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
140
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
141
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
142
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
143
|
-
<method />
|
144
|
-
</configuration>
|
145
|
-
<configuration default="false" name="ItemLimited get Moves the currently gotten item to the tail if it is the head.: lru-cache" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
146
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
147
|
-
<module name="lru-cache" />
|
148
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
149
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
150
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
151
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
152
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
153
|
-
<envs>
|
154
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
155
|
-
</envs>
|
156
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
157
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
158
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
159
|
-
<COVERAGE_PATTERN ENABLED="true">
|
160
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
161
|
-
</COVERAGE_PATTERN>
|
162
|
-
</EXTENSION>
|
163
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
164
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/unit/service_spec.rb" />
|
165
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
166
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
167
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ItemLimited get Moves the currently gotten item to the tail if it is the head." />
|
168
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
169
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
170
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
171
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
172
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
173
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
174
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
175
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
176
|
-
<method />
|
177
|
-
</configuration>
|
178
|
-
</component>
|
179
|
-
<component name="NewModuleRootManager">
|
180
|
-
<content url="file://$MODULE_DIR$">
|
181
|
-
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
182
|
-
<excludeFolder url="file://$MODULE_DIR$/.bundle" />
|
183
|
-
<excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
|
184
|
-
</content>
|
185
|
-
<orderEntry type="jdk" jdkName="jruby-1.7.16-p392" jdkType="JRUBY_SDK" />
|
186
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
187
|
-
<orderEntry type="module-library">
|
188
|
-
<library name="diff-lcs (vbundled(1.2.5), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/diff-lcs-1.2.5) [path][gem]">
|
189
|
-
<CLASSES>
|
190
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/diff-lcs-1.2.5/bin" />
|
191
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/diff-lcs-1.2.5/lib" />
|
192
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/diff-lcs-1.2.5/autotest" />
|
193
|
-
</CLASSES>
|
194
|
-
<SOURCES>
|
195
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/diff-lcs-1.2.5/bin" />
|
196
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/diff-lcs-1.2.5/lib" />
|
197
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/diff-lcs-1.2.5/autotest" />
|
198
|
-
</SOURCES>
|
199
|
-
</library>
|
200
|
-
</orderEntry>
|
201
|
-
<orderEntry type="module-library">
|
202
|
-
<library name="docile (vbundled(1.1.5), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/docile-1.1.5) [path][gem]">
|
203
|
-
<CLASSES>
|
204
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/docile-1.1.5/lib" />
|
205
|
-
</CLASSES>
|
206
|
-
<SOURCES>
|
207
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/docile-1.1.5/lib" />
|
208
|
-
</SOURCES>
|
209
|
-
</library>
|
210
|
-
</orderEntry>
|
211
|
-
<orderEntry type="module-library">
|
212
|
-
<library name="json (vbundled(1.8.3), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/json-1.8.3-java) [path][gem]">
|
213
|
-
<CLASSES>
|
214
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/json-1.8.3-java/lib" />
|
215
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/json-1.8.3-java/tests" />
|
216
|
-
</CLASSES>
|
217
|
-
<SOURCES>
|
218
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/json-1.8.3-java/lib" />
|
219
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/json-1.8.3-java/tests" />
|
220
|
-
</SOURCES>
|
221
|
-
</library>
|
222
|
-
</orderEntry>
|
223
|
-
<orderEntry type="module-library">
|
224
|
-
<library name="rake (vbundled(10.5.0), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/rake-10.5.0) [path][gem]">
|
225
|
-
<CLASSES>
|
226
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/bin" />
|
227
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/lib" />
|
228
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/rakelib" />
|
229
|
-
</CLASSES>
|
230
|
-
<SOURCES>
|
231
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/bin" />
|
232
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/lib" />
|
233
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rake-10.5.0/rakelib" />
|
234
|
-
</SOURCES>
|
235
|
-
</library>
|
236
|
-
</orderEntry>
|
237
|
-
<orderEntry type="module-library">
|
238
|
-
<library name="rspec (vbundled(3.4.0), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/rspec-3.4.0) [path][gem]">
|
239
|
-
<CLASSES>
|
240
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-3.4.0/lib" />
|
241
|
-
</CLASSES>
|
242
|
-
<SOURCES>
|
243
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-3.4.0/lib" />
|
244
|
-
</SOURCES>
|
245
|
-
</library>
|
246
|
-
</orderEntry>
|
247
|
-
<orderEntry type="module-library">
|
248
|
-
<library name="rspec-core (vbundled(3.4.4), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/rspec-core-3.4.4) [path][gem]">
|
249
|
-
<CLASSES>
|
250
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-core-3.4.4/exe" />
|
251
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-core-3.4.4/lib" />
|
252
|
-
</CLASSES>
|
253
|
-
<SOURCES>
|
254
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-core-3.4.4/exe" />
|
255
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-core-3.4.4/lib" />
|
256
|
-
</SOURCES>
|
257
|
-
</library>
|
258
|
-
</orderEntry>
|
259
|
-
<orderEntry type="module-library">
|
260
|
-
<library name="rspec-expectations (vbundled(3.4.0), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/rspec-expectations-3.4.0) [path][gem]">
|
261
|
-
<CLASSES>
|
262
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-expectations-3.4.0/lib" />
|
263
|
-
</CLASSES>
|
264
|
-
<SOURCES>
|
265
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-expectations-3.4.0/lib" />
|
266
|
-
</SOURCES>
|
267
|
-
</library>
|
268
|
-
</orderEntry>
|
269
|
-
<orderEntry type="module-library">
|
270
|
-
<library name="rspec-mocks (vbundled(3.4.1), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/rspec-mocks-3.4.1) [path][gem]">
|
271
|
-
<CLASSES>
|
272
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-mocks-3.4.1/lib" />
|
273
|
-
</CLASSES>
|
274
|
-
<SOURCES>
|
275
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-mocks-3.4.1/lib" />
|
276
|
-
</SOURCES>
|
277
|
-
</library>
|
278
|
-
</orderEntry>
|
279
|
-
<orderEntry type="module-library">
|
280
|
-
<library name="rspec-support (vbundled(3.4.1), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/rspec-support-3.4.1) [path][gem]">
|
281
|
-
<CLASSES>
|
282
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-support-3.4.1/lib" />
|
283
|
-
</CLASSES>
|
284
|
-
<SOURCES>
|
285
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/rspec-support-3.4.1/lib" />
|
286
|
-
</SOURCES>
|
287
|
-
</library>
|
288
|
-
</orderEntry>
|
289
|
-
<orderEntry type="module-library">
|
290
|
-
<library name="simplecov (vbundled(0.10.0), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/simplecov-0.10.0) [path][gem]">
|
291
|
-
<CLASSES>
|
292
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-0.10.0/lib" />
|
293
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-0.10.0/features" />
|
294
|
-
</CLASSES>
|
295
|
-
<SOURCES>
|
296
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-0.10.0/lib" />
|
297
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-0.10.0/features" />
|
298
|
-
</SOURCES>
|
299
|
-
</library>
|
300
|
-
</orderEntry>
|
301
|
-
<orderEntry type="module-library">
|
302
|
-
<library name="simplecov-html (vbundled(0.10.0), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/simplecov-html-0.10.0) [path][gem]">
|
303
|
-
<CLASSES>
|
304
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/lib" />
|
305
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/views" />
|
306
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/assets" />
|
307
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/public" />
|
308
|
-
</CLASSES>
|
309
|
-
<SOURCES>
|
310
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/lib" />
|
311
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/views" />
|
312
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/assets" />
|
313
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-html-0.10.0/public" />
|
314
|
-
</SOURCES>
|
315
|
-
</library>
|
316
|
-
</orderEntry>
|
317
|
-
<orderEntry type="module-library">
|
318
|
-
<library name="simplecov-rcov (vbundled(0.2.3), /Users/jasony/VMop/tmp/lru-cacher/vendor/bundle/gems/simplecov-rcov-0.2.3) [path][gem]">
|
319
|
-
<CLASSES>
|
320
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-rcov-0.2.3/lib" />
|
321
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-rcov-0.2.3/views" />
|
322
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-rcov-0.2.3/assets" />
|
323
|
-
</CLASSES>
|
324
|
-
<SOURCES>
|
325
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-rcov-0.2.3/lib" />
|
326
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-rcov-0.2.3/views" />
|
327
|
-
<root url="file://$MODULE_DIR$/vendor/bundle/gems/simplecov-rcov-0.2.3/assets" />
|
328
|
-
</SOURCES>
|
329
|
-
</library>
|
330
|
-
</orderEntry>
|
331
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, jruby-1.7.16-p392) [gem]" level="application" />
|
332
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.0.0.beta1, jruby-1.7.16-p392) [gem]" level="application" />
|
333
|
-
</component>
|
334
|
-
</module>
|
data/.idea/misc.xml
DELETED
@@ -1,14 +0,0 @@
|
|
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
|
-
</project>
|
data/.idea/modules.xml
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="ProjectModuleManager">
|
4
|
-
<modules>
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/lru-cache.iml" filepath="$PROJECT_DIR$/.idea/lru-cache.iml" />
|
6
|
-
</modules>
|
7
|
-
</component>
|
8
|
-
</project>
|