redis-store-with-cas 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b078891090e8eb34a95b4ee0bc6a8a4f2f9fc179
4
- data.tar.gz: c80c840495cff70bc4e3b46da42f04d9a5fae9bd
3
+ metadata.gz: 3a44a3f454ccc44b8c2be1d422788afe4e4b125b
4
+ data.tar.gz: eb1ffd346f2b9c44985fad26512fb72c9f071d22
5
5
  SHA512:
6
- metadata.gz: 0b1d51e1aca950890aa2bf18c97b284269c5fbc9352a174e27c277c5678af10bb7d9349a1775bc60b3135bae09e9de2132e8ecb393a405f318dd655cf6b8eb65
7
- data.tar.gz: 033d735df907553eb5e537c3d8076cd2771079b28aff0ee89e676bb5223ad56305d20f32f7e5113b7c95ae0c1202fcf019ccda6eb04e644355d2ef66014b532f
6
+ metadata.gz: 903537525084707bebc097721057193d555367207cb203e44f336e70fa8e195d1d43210651feb20fd50cd00cf5542db391e596525c76ff7d09b3e9337bee4693
7
+ data.tar.gz: 024a6fa750f40dca32005b3779169efaf4ade0e74a07bc5f65747166721f95a5d55c82b0b50bf61bb0bfe1883485834995414088ab2d59932059d0e5f3141f51
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,41 @@
1
+ # This file is a template, and might need editing before it works on your project.
2
+ # Official language image. Look for the different tagged releases at:
3
+ # https://hub.docker.com/r/library/ruby/tags/
4
+ image: "ruby:2.4"
5
+
6
+ # Pick zero or more services to be used on all builds.
7
+ # Only needed when using a docker container to run your tests in.
8
+ # Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
9
+ services:
10
+ - "redis:latest"
11
+
12
+ # Cache gems in between builds
13
+ cache:
14
+ paths:
15
+ - vendor/ruby
16
+
17
+ stages:
18
+ - test
19
+
20
+ # This is a basic example for a gem or script which doesn't use
21
+ # services such as redis or postgres
22
+ before_script:
23
+ - ruby -v # Print out ruby version for debugging
24
+ # Uncomment next line if your rails app needs a JS runtime:
25
+ # - apt-get update -q && apt-get install nodejs -yqq
26
+ - gem install bundler --no-ri --no-rdoc # Bundler is not installed with the image
27
+ - bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
28
+
29
+ test:
30
+ script:
31
+ - bundle exec rake
32
+ stage: test
33
+
34
+ # This deploy job uses a simple deploy flow to Heroku, other providers, e.g. AWS Elastic Beanstalk
35
+ # are supported too: https://github.com/travis-ci/dpl
36
+ #deploy:
37
+ # type: deploy
38
+ # environment: production
39
+ # script:
40
+ # - gem install dpl
41
+ # - dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_PRODUCTION_KEY
@@ -1,8 +1,15 @@
1
1
  require 'redis'
2
2
  require 'redis/store'
3
+ require 'redis/store/version'
3
4
  require 'redis/store-with-cas/cas'
4
5
  require 'redis/store-with-cas/version'
5
- require 'redis/store/marshalling'
6
+
7
+ begin
8
+ require 'redis/store/marshalling'
9
+ rescue LoadError
10
+ require 'redis/store/serialization'
11
+ end
12
+
6
13
  require 'redis/store/namespace'
7
14
  require 'redis/store-with-cas/namespace'
8
15
 
@@ -2,6 +2,6 @@ require 'redis/store'
2
2
 
3
3
  class Redis
4
4
  class StoreWithCas < Store
5
- VERSION = '0.0.1'
5
+ VERSION = '0.0.3'
6
6
  end
7
7
  end
@@ -1,10 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path('../lib', __FILE__)
3
- require 'redis/store-with-cas/version'
3
+ #require 'redis/store-with-cas/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'redis-store-with-cas'
7
- s.version = Redis::StoreWithCas::VERSION
7
+ s.version = '0.0.3'
8
8
  s.authors = ['Rajko Albrecht']
9
9
  s.email = ['ral@alwins-world.de']
10
10
  s.homepage = 'https://git.alwin-it.de/alwin/redis-store-with-cas'
data/test/store_test.rb CHANGED
@@ -2,7 +2,9 @@ require 'test_helper'
2
2
 
3
3
  describe Redis::StoreWithCas do
4
4
  def setup
5
- @store = Redis::Store.new :namespace => 'storetest'
5
+ port = ENV['REDIS_PORT_6379_TCP_PORT']||6379
6
+ host = ENV['REDIS_PORT_6379_TCP_ADDR']||"localhost"
7
+ @store = Redis::Store.new :host => host, :port => port, :namespace => 'storetest'
6
8
  end
7
9
 
8
10
  def teardown
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-store-with-cas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajko Albrecht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2018-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -171,6 +171,7 @@ extensions: []
171
171
  extra_rdoc_files: []
172
172
  files:
173
173
  - ".gitignore"
174
+ - ".gitlab-ci.yml"
174
175
  - Gemfile
175
176
  - MIT-LICENSE
176
177
  - README.md
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
206
  version: '0'
206
207
  requirements: []
207
208
  rubyforge_project: redis-store-with-cas
208
- rubygems_version: 2.6.11
209
+ rubygems_version: 2.6.13
209
210
  signing_key:
210
211
  specification_version: 4
211
212
  summary: Extend redis store for Ruby frameworks with cas