faceless 0.0.2 → 0.0.3

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: a95630ccec9b0437cfba0af56707bb35d90f15c3
4
- data.tar.gz: b00b23228bbe389573993980d6f1810c140e8cbf
3
+ metadata.gz: 8caaad36e60f658ecc1f64418a2220eaec14522a
4
+ data.tar.gz: 02ab15da49dccc87a85565873314f661b2278c0a
5
5
  SHA512:
6
- metadata.gz: d7cd462fe1dfca57d30016637c3369a6f6fb8309706c5b47d26ee7fe02ea6d7a764daebceab8f754c062d15b80b00a933c7db1dd76e5674e69bff48ab5bfe629
7
- data.tar.gz: 780d02d517844b9df4c1c843f92e5d6917a92b2192b866f4a92ea1bf2f8beb61c2d923d8892463310cfd80b8f9dcff7b67e7e0ae592b4a5f9dd8ccda8ab0f517
6
+ metadata.gz: 2f8aa21ae06e19629ab2ff7b81b4e96d37e56a2f83df69d31e6199588f0bc53248e21b76a255dec1f5a4496b5d17b54cb6e3f97cec3c60cbf9245384fe94b43b
7
+ data.tar.gz: 73143296a057bf782b59e3d1d7bda1ffacf1cc133e08a704273eaedf67025db440cfb436e098d8ea16f621cd5be41bf98486b141d0e42663d7a5a4acf4f97771
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.0"
4
+ - "2.1"
5
+ - "2.2"
6
+ script: rake test
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Faceless
1
+ # Faceless [![Gem Version](https://badge.fury.io/rb/faceless.svg)](https://badge.fury.io/rb/faceless) [![Build Status](https://travis-ci.org/hlcfan/faceless.svg?branch=master)](https://travis-ci.org/hlcfan/faceless)
2
2
 
3
3
  A cool implementation of encryption/decryption in Ruby, borrowed from [UCenter Authcode(comsenz)](http://www.comsenz.com/downloads/install/ucenter).
4
4
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
- require 'rake/testtask'
2
+ require "rake/testtask"
3
3
 
4
4
  Rake::TestTask.new do |t|
5
5
  t.libs << 'test'
data/faceless.gemspec CHANGED
@@ -14,5 +14,5 @@ Gem::Specification.new do |gem|
14
14
  gem.require_paths = ["lib"]
15
15
  gem.version = Faceless::VERSION
16
16
 
17
- gem.add_development_dependency "bundler", "~> 1.0"
17
+ gem.add_development_dependency 'minitest'
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Faceless
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/lib/faceless.rb CHANGED
@@ -4,7 +4,7 @@ require "faceless/authcode"
4
4
  module Faceless
5
5
  class << self
6
6
 
7
- attr_accessor :configuration
7
+ attr_writer :configuration
8
8
 
9
9
  def configuration
10
10
  @configuration ||= Configuration.new
@@ -5,16 +5,14 @@ class Authcode < Minitest::Test
5
5
  Faceless.configure do |config|
6
6
  config.auth_token = 'test-token'
7
7
  end
8
-
9
- @authenticator = Faceless::Authcode
10
8
  end
11
9
 
12
10
  def test_encode
13
- assert @authenticator.encode("encrypt-me").length > 0
11
+ assert Faceless::Authcode.encode("encrypt-me").length > 0
14
12
  end
15
13
 
16
14
  def test_decode
17
15
  assert_equal "encrypt-me",
18
- @authenticator.decode("2d4enq1n92Am7AX7+z9yuqAItMzrgeuBCqA3/R1YX7GJk4/lZE8g")
16
+ Faceless::Authcode.decode("2d4enq1n92Am7AX7+z9yuqAItMzrgeuBCqA3/R1YX7GJk4/lZE8g")
19
17
  end
20
18
  end
data/test/test_helper.rb CHANGED
@@ -1,3 +1,3 @@
1
- require "faceless"
1
+ require 'faceless'
2
2
  require 'minitest/autorun'
3
3
  require 'minitest/pride'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faceless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex S
@@ -11,19 +11,19 @@ cert_chain: []
11
11
  date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '0'
27
27
  description: Ruby Implementation of UCenter Authcode
28
28
  email: hlcfan.yan@gmail.com.com
29
29
  executables: []
@@ -31,6 +31,7 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - .gitignore
34
+ - .travis.yml
34
35
  - Gemfile
35
36
  - LICENSE
36
37
  - README.md