elephas 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 536b8ddd5ca0285ded9c01fb5255dabc1883a12f47d02b50b2ceedb4ab91cc67
4
+ data.tar.gz: c23750795de37a4ce14b65cc9202c0aec76fd265c0a3324c96a161c6df76c6fa
5
+ SHA512:
6
+ metadata.gz: 85b005847cff6eab61034db56ec119362652b9c8184e7c7248028e239be9a73750bd01d065c600a6abaf47311b69f154e0a322bc71e722e02b6ed205eff7ee92
7
+ data.tar.gz: 95f29464633d7c1f02e3b66e04716963fa2266e50ae102788005372b8f88cb3268627deb13ee5e1faab40bb5b306d25045a1f252560dacf8db9f422ff3b24e91
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
data/README.md CHANGED
@@ -1,62 +1,11 @@
1
1
  # elephas
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/elephas.png)](http://badge.fury.io/rb/elephas)
4
- [![Dependency Status](https://gemnasium.com/ShogunPanda/elephas.png?travis)](https://gemnasium.com/ShogunPanda/elephas)
5
- [![Build Status](https://secure.travis-ci.org/ShogunPanda/elephas.png?branch=master)](http://travis-ci.org/ShogunPanda/elephas)
6
- [![Code Climate](https://codeclimate.com/github/ShogunPanda/elephas.png)](https://codeclimate.com/github/ShogunPanda/elephas)
7
- [![Coverage Status](https://coveralls.io/repos/ShogunPanda/elephas/badge.png)](https://coveralls.io/r/ShogunPanda/elephas)
3
+ ## END OF DEVELOPMENT NOTICE - This gem has been discontinued
8
4
 
9
5
  A storage agnostic caching framework.
10
6
 
11
- http://sw.cow.tc/elephas
12
-
13
- http://rdoc.info/gems/elephas
14
-
15
- ## Usage
16
-
17
- The usage of the framework is really simple.
18
-
19
- At first you have to setup a cache object with a backend (that is, a storage) for the Elephas. By default it uses an internal hash, and also Rails is supported.
20
-
21
- ```ruby
22
- cache = Elephas::Cache.new(Elephas::Backends::RubyOnRails.new)
23
- ```
24
-
25
- After that, you can query the framework for a value use the `use` method.
26
-
27
- You should also pass a block to the method, so that the framework use that for computing the value of the cache entry.
28
-
29
- ```ruby
30
- value = cache.use("KEY") do |options|
31
- "VALUE"
32
- end
33
- # => "VALUE"
34
- ```
35
-
36
- The next time you issue this call, the block won't be called.
37
-
38
- The block takes an argument, which contains all the options for the entry.
39
-
40
- You can see ``Elephas::Cache#setup_options`` documentation to see what options are supported.
41
-
42
- For now, you just have to know that you can set the ```:ttl``` option to specify how long the value will stay in the cache (in milliseconds). Setting it to a non-positive value means to never cache the value.
43
-
44
- See documentation for more informations.
45
-
46
- **You're done!**
47
-
48
- ## Contributing to elephas
49
-
50
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
51
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
52
- * Fork the project.
53
- * Start a feature/bugfix branch.
54
- * Commit and push until you are happy with your contribution.
55
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
56
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
57
-
58
7
  ## Copyright
59
8
 
60
- Copyright (C) 2013 and above Shogun (shogun_panda@me.com).
9
+ Copyright (C) 2013 and above Shogun (shogun@cowtech.it).
61
10
 
62
11
  Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -88,7 +88,7 @@
88
88
 
89
89
  <h2>Overview</h2><div class="docstring">
90
90
  <div class="discussion">
91
- <p>This file is part of the elephas gem. Copyright (C) 2013 and above Shogun &lt;shogun_panda@me.com&gt;.
91
+ <p>This file is part of the elephas gem. Copyright (C) 2013 and above Shogun &lt;shogun@cowtech.it&gt;.
92
92
  Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.</p>
93
93
 
94
94
 
@@ -122,7 +122,7 @@ end
122
122
 
123
123
  <h2 id="copyright">Copyright</h2>
124
124
 
125
- <p>Copyright (C) 2013 and above Shogun (shogun_panda@me.com).</p>
125
+ <p>Copyright (C) 2013 and above Shogun (shogun@cowtech.it).</p>
126
126
 
127
127
  <p>Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.</p>
128
128
  </div></div>
@@ -122,7 +122,7 @@ end
122
122
 
123
123
  <h2 id="copyright">Copyright</h2>
124
124
 
125
- <p>Copyright (C) 2013 and above Shogun (shogun_panda@me.com).</p>
125
+ <p>Copyright (C) 2013 and above Shogun (shogun@cowtech.it).</p>
126
126
 
127
127
  <p>Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.</p>
128
128
  </div></div>
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.rubyforge_project = "elephas"
16
16
 
17
17
  gem.authors = ["Shogun"]
18
- gem.email = ["shogun_panda@me.com"]
18
+ gem.email = ["shogun@cowtech.it"]
19
19
 
20
20
  gem.files = `git ls-files`.split($\)
21
21
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -17,7 +17,7 @@ module Elephas
17
17
  MINOR = 2
18
18
 
19
19
  # The patch version.
20
- PATCH = 0
20
+ PATCH = 1
21
21
 
22
22
  # The current version of elephas.
23
23
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -8,7 +8,7 @@ require "pathname"
8
8
  require "simplecov"
9
9
  require "coveralls"
10
10
 
11
- Coveralls.wear!
11
+ Coveralls.wear! if ENV["CI"] || ENV["JENKINS_URL"]
12
12
 
13
13
  SimpleCov.start do
14
14
  root = Pathname.new(File.dirname(__FILE__)) + ".."
@@ -17,4 +17,4 @@ SimpleCov.start do
17
17
  path = Pathname.new(src_file.filename).relative_path_from(root).to_s
18
18
  path !~ /^lib/
19
19
  end
20
- end
20
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the elephas gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
metadata CHANGED
@@ -1,43 +1,40 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elephas
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
5
- prerelease:
4
+ version: 4.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Shogun
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-20 00:00:00.000000000 Z
11
+ date: 2019-12-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: lazier
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.3.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.3.1
30
27
  description: A storage agnostic caching framework.
31
28
  email:
32
- - shogun_panda@me.com
29
+ - shogun@cowtech.it
33
30
  executables: []
34
31
  extensions: []
35
32
  extra_rdoc_files: []
36
33
  files:
37
- - .gitignore
38
- - .travis-gemfile
39
- - .travis.yml
40
- - .yardopts
34
+ - ".gitignore"
35
+ - ".travis-gemfile"
36
+ - ".travis.yml"
37
+ - ".yardopts"
41
38
  - Gemfile
42
39
  - README.md
43
40
  - Rakefile
@@ -82,30 +79,25 @@ files:
82
79
  - spec/spec_helper.rb
83
80
  homepage: http://sw.cow.tc/elephas
84
81
  licenses: []
82
+ metadata: {}
85
83
  post_install_message:
86
84
  rdoc_options: []
87
85
  require_paths:
88
86
  - lib
89
87
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
88
  requirements:
92
- - - ! '>='
89
+ - - ">="
93
90
  - !ruby/object:Gem::Version
94
91
  version: 1.9.3
95
92
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
93
  requirements:
98
- - - ! '>='
94
+ - - ">="
99
95
  - !ruby/object:Gem::Version
100
96
  version: '0'
101
- segments:
102
- - 0
103
- hash: -2667720784332844790
104
97
  requirements: []
105
- rubyforge_project: elephas
106
- rubygems_version: 1.8.25
98
+ rubygems_version: 3.0.3
107
99
  signing_key:
108
- specification_version: 3
100
+ specification_version: 4
109
101
  summary: A storage agnostic caching framework.
110
102
  test_files:
111
103
  - spec/coverage_helper.rb
@@ -115,4 +107,3 @@ test_files:
115
107
  - spec/elephas/providers/hash_spec.rb
116
108
  - spec/elephas/providers/ruby_on_rails_spec.rb
117
109
  - spec/spec_helper.rb
118
- has_rdoc: