access_token 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aed36edb392a0af5ee9c97a0190ecac3dad636d5
4
- data.tar.gz: b8387c690fb472abc595061d3e25f4ab19a93fc0
3
+ metadata.gz: 155a28989f2b3d9d182d2355225eb9e5f11136cb
4
+ data.tar.gz: d5d48fa77a2e3efb863f5c7c38ad32177c727fad
5
5
  SHA512:
6
- metadata.gz: 1bfeb8a5eec2377decee65cddfd0054deb0e99c134ef638ea8168539edd7e97079d57044cf86e3341beba2f8a689d9881bdc76ed7b7c1a8a9a761d13801e877a
7
- data.tar.gz: 367b5a440d992b167e138126fa85f6e66657c4a9e83a193929aff9b9938c518c868ca3df6908522ed8b94ab386e625437bcfee649e46b7bf291d9d8d45648ed1
6
+ metadata.gz: 89b733cafcff734e853b3e26f44323db5eb1fe68337cb7ec192cdf896950cc85657d7a4d72367e02b30486a4b74b9cc5667de5a230f62e3b599a2ec0c713cea0
7
+ data.tar.gz: de4ee7a175851ef2ca3c0818b23106d77153a58332f7ae95f58292abfb04cc83a193d0cf6bc30dacc8b260f2cf2ea069441f1daf229b1b1ca2b8ad8902a12dca
data/.travis.yml CHANGED
@@ -2,7 +2,11 @@ language: ruby
2
2
  cache: bundler
3
3
  sudo: false
4
4
  rvm:
5
- - 2.2.2
5
+ - 2.2.2
6
6
  services:
7
- - redis-server
8
- - memcached
7
+ - redis-server
8
+ - memcached
9
+ addons:
10
+ code_climate:
11
+ repo_token:
12
+ secure: MVq0vDsOc4hUwE8MeenRi5WdZz5+mZSs8LJUj1k3jabjdyyxGpWNOoy5fvjP+MqYo0KXz+CtkQlSPOMrGrXB4IIHTz+WnJuZNHeXE9X6qk9dz5G2XyrrNernDjr6K/ybO5gw23KP39W3LiXxMSwapZBw/NcjTZz9uA3S+SXUFTlcIQmH7soXxYlRWuFWa8MoW4MBb35xyjIn2iv5WDoS+9OL7sWdsQMuxy0tJHNXmxXB5fJr4Kevzg2NZqbEvcd7tF1WMdd5EraYy/a7Rs2xxXR0lKGDM17XNDoTMOYdXwt/d5d19WUXMlvrVBVPGuaTsXvZi5IJ//74BBWzA3XP0s7y7MIHGBCRlh2Uie6RlKx6Z5zQG0HR3crOoimSlNMW1EeWtcJouuVlI7eQyKTdeKAhlRdd/LR4Ap4yyIrRdQQLB+jOkKkRsG0ZvdgDwYM34bOuMkYC4Nq+/BkfjZZD5L1EM9Z/hc2unEHBy+J0slyz13GK9HSo6a3Eg9w3bASZA1VgAnJaHARlNOIM0PEHHsKpk+dzkid9GjsZmsz/bP8U/n9DRw+SQqC2uhhdCGA4pVqTOLzGFRITS898Hl3j2UrvKHbLS8GaqtLbG3qXC04oXVmmt7vFDsZRbw+UUZa7D+mB+cwYUu6i+rr5NfKINHkuBF2l75La7d2gIdtmkqw=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Changelog
2
2
 
3
- # v0.1.0 - unreleased
3
+ #### v0.1.0 - May 31, 2015
4
4
 
5
5
  - Initial release
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # AccessToken
2
2
 
3
3
  [![Build Status](https://travis-ci.org/fnando/access_token.svg)](https://travis-ci.org/fnando/access_token)
4
+ [![Code Climate](https://codeclimate.com/github/fnando/access_token/badges/gpa.svg)](https://codeclimate.com/github/fnando/access_token)
5
+ [![Test Coverage](https://codeclimate.com/github/fnando/access_token/badges/coverage.svg)](https://codeclimate.com/github/fnando/access_token/coverage)
4
6
 
5
7
  A simple and easy-to-use access token generator.
6
8
 
data/access_token.gemspec CHANGED
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'pry-meta'
30
30
  spec.add_development_dependency 'redis'
31
31
  spec.add_development_dependency 'dalli'
32
+ spec.add_development_dependency 'codeclimate-test-reporter'
32
33
  end
@@ -7,10 +7,7 @@ class AccessToken
7
7
  end
8
8
 
9
9
  def set(key, value, ttl)
10
- client.multi do
11
- client.set(key, value)
12
- client.expire(key, ttl)
13
- end
10
+ client.setex(key, ttl, value)
14
11
  end
15
12
 
16
13
  def get(key)
@@ -1,3 +1,3 @@
1
1
  class AccessToken
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-01 00:00:00.000000000 Z
11
+ date: 2015-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parsel
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: codeclimate-test-reporter
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
195
209
  description: Access token for client-side and API authentication.
196
210
  email:
197
211
  - fnando.vieira@gmail.com
@@ -298,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
312
  version: '0'
299
313
  requirements: []
300
314
  rubyforge_project:
301
- rubygems_version: 2.4.6
315
+ rubygems_version: 2.4.5.1
302
316
  signing_key:
303
317
  specification_version: 4
304
318
  summary: Access token for client-side and API authentication.