bitzer_store 0.0.3 → 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 +4 -4
- data/.gitignore +9 -17
- data/.travis.yml +14 -0
- data/Appraisals +19 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/LICENSE.txt +17 -18
- data/README.md +2 -0
- data/bitzer_store.gemspec +12 -8
- data/gemfiles/rails3.gemfile +8 -0
- data/gemfiles/rails3.gemfile.lock +90 -0
- data/gemfiles/rails40.gemfile +8 -0
- data/gemfiles/rails40.gemfile.lock +72 -0
- data/gemfiles/rails41.gemfile +8 -0
- data/gemfiles/rails41.gemfile.lock +76 -0
- data/gemfiles/rails42.gemfile +8 -0
- data/gemfiles/rails42.gemfile.lock +93 -0
- data/lib/bitzer_store/version.rb +1 -1
- metadata +50 -25
- data/spec/spec_helper.rb +0 -2
- data/spec/unit/bitzer_store_configure_spec.rb +0 -48
- data/spec/unit/bitzer_store_spec.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dbc407f759b68d6a26bf1d171e7ee97fb0786a5
|
4
|
+
data.tar.gz: ac387f654a6db333610ae33a897d343a8658d6da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c08160c9015bba4753fc17bd9367f5485f9ba06a8b2bdc402164d5a1f91be274532f60a3892550d749d00d35d8d9ddcefb8d977681d4f7782df17d2fd889b06e
|
7
|
+
data.tar.gz: 42f35cfc8a4863a5eaea335e5c0377064df3d54dd8f90dd44b1d0ec93968ca1a492b611664dd3ff9711779086c322fe763e23c05160c6b5c16b67efd8d141d16
|
data/.gitignore
CHANGED
@@ -1,18 +1,10 @@
|
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
1
10
|
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
bundle
|
data/.travis.yml
ADDED
data/Appraisals
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
appraise "rails3" do
|
2
|
+
gem "activesupport", "~> 3.2.0"
|
3
|
+
gem "railties", "~> 3.2.0"
|
4
|
+
end
|
5
|
+
|
6
|
+
appraise "rails40" do
|
7
|
+
gem "activesupport", "~> 4.0.0"
|
8
|
+
gem "railties", "~> 4.0.0"
|
9
|
+
end
|
10
|
+
|
11
|
+
appraise "rails41" do
|
12
|
+
gem "activesupport", "~> 4.1.0"
|
13
|
+
gem "railties", "~> 4.1.0"
|
14
|
+
end
|
15
|
+
|
16
|
+
appraise "rails42" do
|
17
|
+
gem "activesupport", "~> 4.2.0"
|
18
|
+
gem "railties", "~> 4.2.0"
|
19
|
+
end
|
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 tsukasa.oishi@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/LICENSE.txt
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
|
1
|
+
The MIT License (MIT)
|
2
2
|
|
3
|
-
|
3
|
+
Copyright (c) 2016 Tsukasa OISHI
|
4
4
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
the following conditions:
|
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:
|
12
11
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
15
14
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
OF
|
22
|
-
|
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
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# BitzerStore
|
2
2
|
|
3
|
+
[](http://badge.fury.io/rb/bitzer_store) [](https://travis-ci.org/tsukasaoishi/bitzer_store) [](https://codeclimate.com/github/tsukasaoishi/bitzer_store)
|
4
|
+
|
3
5
|
The cache of Rails uses the cache cluster only one.
|
4
6
|
BitzerStore can treat multiple cache clusters.
|
5
7
|
|
data/bitzer_store.gemspec
CHANGED
@@ -6,22 +6,26 @@ require 'bitzer_store/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "bitzer_store"
|
8
8
|
spec.version = BitzerStore::VERSION
|
9
|
-
spec.authors = ["
|
9
|
+
spec.authors = ["Tsukasa OISHI"]
|
10
10
|
spec.email = ["tsukasa.oishi@gmail.com"]
|
11
|
+
|
11
12
|
spec.description = %q{BitzerStore can treat individual cache clusters in Rails.}
|
12
13
|
spec.summary = %q{BitzerStore can treat individual cache clusters in Rails.}
|
13
14
|
spec.homepage = "https://github.com/tsukasaoishi/bitzer_store"
|
14
15
|
spec.license = "MIT"
|
15
16
|
|
16
|
-
spec.files = `git ls-files`.split(
|
17
|
-
spec.
|
18
|
-
spec.
|
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) }
|
19
20
|
spec.require_paths = ["lib"]
|
20
21
|
|
21
|
-
spec.
|
22
|
-
|
22
|
+
spec.required_ruby_version = '>= 2.0'
|
23
|
+
|
24
|
+
spec.add_dependency "activesupport", ">= 3.2", "< 5.0"
|
25
|
+
spec.add_dependency "railties", ">= 3.2", "< 5.0"
|
23
26
|
|
24
|
-
spec.add_development_dependency "bundler",
|
25
|
-
spec.add_development_dependency "rake",
|
27
|
+
spec.add_development_dependency "bundler", ">= 1.3.0", "< 2.0"
|
28
|
+
spec.add_development_dependency "rake", ">= 0.8.7"
|
26
29
|
spec.add_development_dependency "rspec", '~> 3.0'
|
30
|
+
spec.add_development_dependency 'appraisal'
|
27
31
|
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
bitzer_store (0.0.3)
|
5
|
+
activesupport (>= 3.2, < 5.0)
|
6
|
+
railties (>= 3.2, < 5.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (3.2.22)
|
12
|
+
activemodel (= 3.2.22)
|
13
|
+
activesupport (= 3.2.22)
|
14
|
+
builder (~> 3.0.0)
|
15
|
+
erubis (~> 2.7.0)
|
16
|
+
journey (~> 1.0.4)
|
17
|
+
rack (~> 1.4.5)
|
18
|
+
rack-cache (~> 1.2)
|
19
|
+
rack-test (~> 0.6.1)
|
20
|
+
sprockets (~> 2.2.1)
|
21
|
+
activemodel (3.2.22)
|
22
|
+
activesupport (= 3.2.22)
|
23
|
+
builder (~> 3.0.0)
|
24
|
+
activesupport (3.2.22)
|
25
|
+
i18n (~> 0.6, >= 0.6.4)
|
26
|
+
multi_json (~> 1.0)
|
27
|
+
appraisal (2.1.0)
|
28
|
+
bundler
|
29
|
+
rake
|
30
|
+
thor (>= 0.14.0)
|
31
|
+
builder (3.0.4)
|
32
|
+
diff-lcs (1.2.5)
|
33
|
+
erubis (2.7.0)
|
34
|
+
hike (1.2.3)
|
35
|
+
i18n (0.7.0)
|
36
|
+
journey (1.0.4)
|
37
|
+
json (1.8.3)
|
38
|
+
multi_json (1.11.2)
|
39
|
+
rack (1.4.7)
|
40
|
+
rack-cache (1.5.1)
|
41
|
+
rack (>= 0.4)
|
42
|
+
rack-ssl (1.3.4)
|
43
|
+
rack
|
44
|
+
rack-test (0.6.3)
|
45
|
+
rack (>= 1.0)
|
46
|
+
railties (3.2.22)
|
47
|
+
actionpack (= 3.2.22)
|
48
|
+
activesupport (= 3.2.22)
|
49
|
+
rack-ssl (~> 1.3.2)
|
50
|
+
rake (>= 0.8.7)
|
51
|
+
rdoc (~> 3.4)
|
52
|
+
thor (>= 0.14.6, < 2.0)
|
53
|
+
rake (10.4.2)
|
54
|
+
rdoc (3.12.2)
|
55
|
+
json (~> 1.4)
|
56
|
+
rspec (3.4.0)
|
57
|
+
rspec-core (~> 3.4.0)
|
58
|
+
rspec-expectations (~> 3.4.0)
|
59
|
+
rspec-mocks (~> 3.4.0)
|
60
|
+
rspec-core (3.4.1)
|
61
|
+
rspec-support (~> 3.4.0)
|
62
|
+
rspec-expectations (3.4.0)
|
63
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
+
rspec-support (~> 3.4.0)
|
65
|
+
rspec-mocks (3.4.0)
|
66
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
+
rspec-support (~> 3.4.0)
|
68
|
+
rspec-support (3.4.1)
|
69
|
+
sprockets (2.2.3)
|
70
|
+
hike (~> 1.2)
|
71
|
+
multi_json (~> 1.0)
|
72
|
+
rack (~> 1.0)
|
73
|
+
tilt (~> 1.1, != 1.3.0)
|
74
|
+
thor (0.19.1)
|
75
|
+
tilt (1.4.1)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
activesupport (~> 3.2.0)
|
82
|
+
appraisal
|
83
|
+
bitzer_store!
|
84
|
+
bundler (>= 1.3.0, < 2.0)
|
85
|
+
railties (~> 3.2.0)
|
86
|
+
rake (>= 0.8.7)
|
87
|
+
rspec (~> 3.0)
|
88
|
+
|
89
|
+
BUNDLED WITH
|
90
|
+
1.11.2
|
@@ -0,0 +1,72 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
bitzer_store (0.0.3)
|
5
|
+
activesupport (>= 3.2, < 5.0)
|
6
|
+
railties (>= 3.2, < 5.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (4.0.13)
|
12
|
+
activesupport (= 4.0.13)
|
13
|
+
builder (~> 3.1.0)
|
14
|
+
erubis (~> 2.7.0)
|
15
|
+
rack (~> 1.5.2)
|
16
|
+
rack-test (~> 0.6.2)
|
17
|
+
activesupport (4.0.13)
|
18
|
+
i18n (~> 0.6, >= 0.6.9)
|
19
|
+
minitest (~> 4.2)
|
20
|
+
multi_json (~> 1.3)
|
21
|
+
thread_safe (~> 0.1)
|
22
|
+
tzinfo (~> 0.3.37)
|
23
|
+
appraisal (2.1.0)
|
24
|
+
bundler
|
25
|
+
rake
|
26
|
+
thor (>= 0.14.0)
|
27
|
+
builder (3.1.4)
|
28
|
+
diff-lcs (1.2.5)
|
29
|
+
erubis (2.7.0)
|
30
|
+
i18n (0.7.0)
|
31
|
+
minitest (4.7.5)
|
32
|
+
multi_json (1.11.2)
|
33
|
+
rack (1.5.5)
|
34
|
+
rack-test (0.6.3)
|
35
|
+
rack (>= 1.0)
|
36
|
+
railties (4.0.13)
|
37
|
+
actionpack (= 4.0.13)
|
38
|
+
activesupport (= 4.0.13)
|
39
|
+
rake (>= 0.8.7)
|
40
|
+
thor (>= 0.18.1, < 2.0)
|
41
|
+
rake (10.4.2)
|
42
|
+
rspec (3.4.0)
|
43
|
+
rspec-core (~> 3.4.0)
|
44
|
+
rspec-expectations (~> 3.4.0)
|
45
|
+
rspec-mocks (~> 3.4.0)
|
46
|
+
rspec-core (3.4.1)
|
47
|
+
rspec-support (~> 3.4.0)
|
48
|
+
rspec-expectations (3.4.0)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.4.0)
|
51
|
+
rspec-mocks (3.4.0)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.4.0)
|
54
|
+
rspec-support (3.4.1)
|
55
|
+
thor (0.19.1)
|
56
|
+
thread_safe (0.3.5)
|
57
|
+
tzinfo (0.3.46)
|
58
|
+
|
59
|
+
PLATFORMS
|
60
|
+
ruby
|
61
|
+
|
62
|
+
DEPENDENCIES
|
63
|
+
activesupport (~> 4.0.0)
|
64
|
+
appraisal
|
65
|
+
bitzer_store!
|
66
|
+
bundler (>= 1.3.0, < 2.0)
|
67
|
+
railties (~> 4.0.0)
|
68
|
+
rake (>= 0.8.7)
|
69
|
+
rspec (~> 3.0)
|
70
|
+
|
71
|
+
BUNDLED WITH
|
72
|
+
1.11.2
|
@@ -0,0 +1,76 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
bitzer_store (0.0.3)
|
5
|
+
activesupport (>= 3.2, < 5.0)
|
6
|
+
railties (>= 3.2, < 5.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (4.1.14)
|
12
|
+
actionview (= 4.1.14)
|
13
|
+
activesupport (= 4.1.14)
|
14
|
+
rack (~> 1.5.2)
|
15
|
+
rack-test (~> 0.6.2)
|
16
|
+
actionview (4.1.14)
|
17
|
+
activesupport (= 4.1.14)
|
18
|
+
builder (~> 3.1)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
activesupport (4.1.14)
|
21
|
+
i18n (~> 0.6, >= 0.6.9)
|
22
|
+
json (~> 1.7, >= 1.7.7)
|
23
|
+
minitest (~> 5.1)
|
24
|
+
thread_safe (~> 0.1)
|
25
|
+
tzinfo (~> 1.1)
|
26
|
+
appraisal (2.1.0)
|
27
|
+
bundler
|
28
|
+
rake
|
29
|
+
thor (>= 0.14.0)
|
30
|
+
builder (3.2.2)
|
31
|
+
diff-lcs (1.2.5)
|
32
|
+
erubis (2.7.0)
|
33
|
+
i18n (0.7.0)
|
34
|
+
json (1.8.3)
|
35
|
+
minitest (5.8.3)
|
36
|
+
rack (1.5.5)
|
37
|
+
rack-test (0.6.3)
|
38
|
+
rack (>= 1.0)
|
39
|
+
railties (4.1.14)
|
40
|
+
actionpack (= 4.1.14)
|
41
|
+
activesupport (= 4.1.14)
|
42
|
+
rake (>= 0.8.7)
|
43
|
+
thor (>= 0.18.1, < 2.0)
|
44
|
+
rake (10.4.2)
|
45
|
+
rspec (3.4.0)
|
46
|
+
rspec-core (~> 3.4.0)
|
47
|
+
rspec-expectations (~> 3.4.0)
|
48
|
+
rspec-mocks (~> 3.4.0)
|
49
|
+
rspec-core (3.4.1)
|
50
|
+
rspec-support (~> 3.4.0)
|
51
|
+
rspec-expectations (3.4.0)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.4.0)
|
54
|
+
rspec-mocks (3.4.0)
|
55
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
56
|
+
rspec-support (~> 3.4.0)
|
57
|
+
rspec-support (3.4.1)
|
58
|
+
thor (0.19.1)
|
59
|
+
thread_safe (0.3.5)
|
60
|
+
tzinfo (1.2.2)
|
61
|
+
thread_safe (~> 0.1)
|
62
|
+
|
63
|
+
PLATFORMS
|
64
|
+
ruby
|
65
|
+
|
66
|
+
DEPENDENCIES
|
67
|
+
activesupport (~> 4.1.0)
|
68
|
+
appraisal
|
69
|
+
bitzer_store!
|
70
|
+
bundler (>= 1.3.0, < 2.0)
|
71
|
+
railties (~> 4.1.0)
|
72
|
+
rake (>= 0.8.7)
|
73
|
+
rspec (~> 3.0)
|
74
|
+
|
75
|
+
BUNDLED WITH
|
76
|
+
1.11.2
|
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
bitzer_store (0.0.3)
|
5
|
+
activesupport (>= 3.2, < 5.0)
|
6
|
+
railties (>= 3.2, < 5.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (4.2.5)
|
12
|
+
actionview (= 4.2.5)
|
13
|
+
activesupport (= 4.2.5)
|
14
|
+
rack (~> 1.6)
|
15
|
+
rack-test (~> 0.6.2)
|
16
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
17
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
18
|
+
actionview (4.2.5)
|
19
|
+
activesupport (= 4.2.5)
|
20
|
+
builder (~> 3.1)
|
21
|
+
erubis (~> 2.7.0)
|
22
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
24
|
+
activesupport (4.2.5)
|
25
|
+
i18n (~> 0.7)
|
26
|
+
json (~> 1.7, >= 1.7.7)
|
27
|
+
minitest (~> 5.1)
|
28
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
29
|
+
tzinfo (~> 1.1)
|
30
|
+
appraisal (2.1.0)
|
31
|
+
bundler
|
32
|
+
rake
|
33
|
+
thor (>= 0.14.0)
|
34
|
+
builder (3.2.2)
|
35
|
+
diff-lcs (1.2.5)
|
36
|
+
erubis (2.7.0)
|
37
|
+
i18n (0.7.0)
|
38
|
+
json (1.8.3)
|
39
|
+
loofah (2.0.3)
|
40
|
+
nokogiri (>= 1.5.9)
|
41
|
+
mini_portile2 (2.0.0)
|
42
|
+
minitest (5.8.3)
|
43
|
+
nokogiri (1.6.7.1)
|
44
|
+
mini_portile2 (~> 2.0.0.rc2)
|
45
|
+
rack (1.6.4)
|
46
|
+
rack-test (0.6.3)
|
47
|
+
rack (>= 1.0)
|
48
|
+
rails-deprecated_sanitizer (1.0.3)
|
49
|
+
activesupport (>= 4.2.0.alpha)
|
50
|
+
rails-dom-testing (1.0.7)
|
51
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
52
|
+
nokogiri (~> 1.6.0)
|
53
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
54
|
+
rails-html-sanitizer (1.0.2)
|
55
|
+
loofah (~> 2.0)
|
56
|
+
railties (4.2.5)
|
57
|
+
actionpack (= 4.2.5)
|
58
|
+
activesupport (= 4.2.5)
|
59
|
+
rake (>= 0.8.7)
|
60
|
+
thor (>= 0.18.1, < 2.0)
|
61
|
+
rake (10.4.2)
|
62
|
+
rspec (3.4.0)
|
63
|
+
rspec-core (~> 3.4.0)
|
64
|
+
rspec-expectations (~> 3.4.0)
|
65
|
+
rspec-mocks (~> 3.4.0)
|
66
|
+
rspec-core (3.4.1)
|
67
|
+
rspec-support (~> 3.4.0)
|
68
|
+
rspec-expectations (3.4.0)
|
69
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
+
rspec-support (~> 3.4.0)
|
71
|
+
rspec-mocks (3.4.0)
|
72
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
+
rspec-support (~> 3.4.0)
|
74
|
+
rspec-support (3.4.1)
|
75
|
+
thor (0.19.1)
|
76
|
+
thread_safe (0.3.5)
|
77
|
+
tzinfo (1.2.2)
|
78
|
+
thread_safe (~> 0.1)
|
79
|
+
|
80
|
+
PLATFORMS
|
81
|
+
ruby
|
82
|
+
|
83
|
+
DEPENDENCIES
|
84
|
+
activesupport (~> 4.2.0)
|
85
|
+
appraisal
|
86
|
+
bitzer_store!
|
87
|
+
bundler (>= 1.3.0, < 2.0)
|
88
|
+
railties (~> 4.2.0)
|
89
|
+
rake (>= 0.8.7)
|
90
|
+
rspec (~> 3.0)
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
1.11.2
|
data/lib/bitzer_store/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitzer_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Tsukasa OISHI
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: railties
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '3.2'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '5.0'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,35 +49,41 @@ dependencies:
|
|
49
49
|
version: '3.2'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '5.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: bundler
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 1.3.0
|
60
|
+
- - "<"
|
58
61
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
62
|
+
version: '2.0'
|
60
63
|
type: :development
|
61
64
|
prerelease: false
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
|
-
- - "
|
67
|
+
- - ">="
|
65
68
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
69
|
+
version: 1.3.0
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '2.0'
|
67
73
|
- !ruby/object:Gem::Dependency
|
68
74
|
name: rake
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
70
76
|
requirements:
|
71
|
-
- - "
|
77
|
+
- - ">="
|
72
78
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
79
|
+
version: 0.8.7
|
74
80
|
type: :development
|
75
81
|
prerelease: false
|
76
82
|
version_requirements: !ruby/object:Gem::Requirement
|
77
83
|
requirements:
|
78
|
-
- - "
|
84
|
+
- - ">="
|
79
85
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
86
|
+
version: 0.8.7
|
81
87
|
- !ruby/object:Gem::Dependency
|
82
88
|
name: rspec
|
83
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,6 +98,20 @@ dependencies:
|
|
92
98
|
- - "~>"
|
93
99
|
- !ruby/object:Gem::Version
|
94
100
|
version: '3.0'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: appraisal
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
type: :development
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
95
115
|
description: BitzerStore can treat individual cache clusters in Rails.
|
96
116
|
email:
|
97
117
|
- tsukasa.oishi@gmail.com
|
@@ -100,18 +120,26 @@ extensions: []
|
|
100
120
|
extra_rdoc_files: []
|
101
121
|
files:
|
102
122
|
- ".gitignore"
|
123
|
+
- ".travis.yml"
|
124
|
+
- Appraisals
|
125
|
+
- CODE_OF_CONDUCT.md
|
103
126
|
- Gemfile
|
104
127
|
- LICENSE.txt
|
105
128
|
- README.md
|
106
129
|
- Rakefile
|
107
130
|
- bitzer_store.gemspec
|
131
|
+
- gemfiles/rails3.gemfile
|
132
|
+
- gemfiles/rails3.gemfile.lock
|
133
|
+
- gemfiles/rails40.gemfile
|
134
|
+
- gemfiles/rails40.gemfile.lock
|
135
|
+
- gemfiles/rails41.gemfile
|
136
|
+
- gemfiles/rails41.gemfile.lock
|
137
|
+
- gemfiles/rails42.gemfile
|
138
|
+
- gemfiles/rails42.gemfile.lock
|
108
139
|
- lib/active_support/cache/bitzer_store.rb
|
109
140
|
- lib/bitzer_store.rb
|
110
141
|
- lib/bitzer_store/configure.rb
|
111
142
|
- lib/bitzer_store/version.rb
|
112
|
-
- spec/spec_helper.rb
|
113
|
-
- spec/unit/bitzer_store_configure_spec.rb
|
114
|
-
- spec/unit/bitzer_store_spec.rb
|
115
143
|
homepage: https://github.com/tsukasaoishi/bitzer_store
|
116
144
|
licenses:
|
117
145
|
- MIT
|
@@ -124,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
152
|
requirements:
|
125
153
|
- - ">="
|
126
154
|
- !ruby/object:Gem::Version
|
127
|
-
version: '0'
|
155
|
+
version: '2.0'
|
128
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
157
|
requirements:
|
130
158
|
- - ">="
|
@@ -132,11 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
160
|
version: '0'
|
133
161
|
requirements: []
|
134
162
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.5.1
|
136
164
|
signing_key:
|
137
165
|
specification_version: 4
|
138
166
|
summary: BitzerStore can treat individual cache clusters in Rails.
|
139
|
-
test_files:
|
140
|
-
- spec/spec_helper.rb
|
141
|
-
- spec/unit/bitzer_store_configure_spec.rb
|
142
|
-
- spec/unit/bitzer_store_spec.rb
|
167
|
+
test_files: []
|
data/spec/spec_helper.rb
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe BitzerStore::Configure do
|
4
|
-
context "#set" do
|
5
|
-
it "add settings" do
|
6
|
-
c = BitzerStore::Configure.new
|
7
|
-
c.set(:cache_name, :dalli, "localhost:11211", :expires_in => 600, :namespace => "tsu")
|
8
|
-
c.set(:cache_name2, :dalli, "localhost:11211", :expires_in => 600, :namespace => "oishi")
|
9
|
-
c.settings.each do |k, v|
|
10
|
-
case k
|
11
|
-
when :cache_name
|
12
|
-
expect(v).to eq([:dalli, "localhost:11211", :expires_in => 600, :namespace => "tsu"])
|
13
|
-
when :cache_name2
|
14
|
-
expect(v).to eq([:dalli, "localhost:11211", :expires_in => 600, :namespace => "oishi"])
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
it "use method_missing" do
|
20
|
-
c = BitzerStore::Configure.new
|
21
|
-
c.cache_name :dalli, "localhost:11211", :expires_in => 600, :namespace => "tsu"
|
22
|
-
c.cache_name2 :dalli, "localhost:11211", :expires_in => 600, :namespace => "oishi"
|
23
|
-
c.settings.each do |k, v|
|
24
|
-
case k
|
25
|
-
when :cache_name
|
26
|
-
expect(v).to eq([:dalli, "localhost:11211", :expires_in => 600, :namespace => "tsu"])
|
27
|
-
when :cache_name2
|
28
|
-
expect(v).to eq([:dalli, "localhost:11211", :expires_in => 600, :namespace => "oishi"])
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
it "use common_setting" do
|
34
|
-
c = BitzerStore::Configure.new
|
35
|
-
c.common_setting :dalli, "localhost:11211", :expires_in => 600, :namespace => "tsuka"
|
36
|
-
c.cache_name :namespace => "special"
|
37
|
-
c.cache_name2 :namespace => "oishi"
|
38
|
-
c.settings.each do |k, v|
|
39
|
-
case k
|
40
|
-
when :cache_name
|
41
|
-
expect(v).to eq([:dalli, "localhost:11211", :expires_in => 600, :namespace => "special"])
|
42
|
-
when :cache_name2
|
43
|
-
expect(v).to eq([:dalli, "localhost:11211", :expires_in => 600, :namespace => "oishi"])
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'rails'
|
3
|
-
|
4
|
-
describe BitzerStore do
|
5
|
-
context ".configure" do
|
6
|
-
it "set cache_store config" do
|
7
|
-
c = Rails::Application::Configuration.new
|
8
|
-
BitzerStore.configure(c) do |cache|
|
9
|
-
cache.common_setting :dalli, "localhost:11211", :expires_in => 600
|
10
|
-
cache.default :namespace => "tsuka"
|
11
|
-
end
|
12
|
-
|
13
|
-
expect(c.cache_store).to eq([:bitzer_store, {:default=>[:dalli, "localhost:11211", {:expires_in=>600, :namespace=>"tsuka"}]}])
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|