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 +4 -4
- data/.travis.yml +6 -0
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/faceless.gemspec +1 -1
- data/lib/faceless/version.rb +1 -1
- data/lib/faceless.rb +1 -1
- data/test/faceless/test_authcode.rb +2 -4
- data/test/test_helper.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8caaad36e60f658ecc1f64418a2220eaec14522a
|
4
|
+
data.tar.gz: 02ab15da49dccc87a85565873314f661b2278c0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f8aa21ae06e19629ab2ff7b81b4e96d37e56a2f83df69d31e6199588f0bc53248e21b76a255dec1f5a4496b5d17b54cb6e3f97cec3c60cbf9245384fe94b43b
|
7
|
+
data.tar.gz: 73143296a057bf782b59e3d1d7bda1ffacf1cc133e08a704273eaedf67025db440cfb436e098d8ea16f621cd5be41bf98486b141d0e42663d7a5a4acf4f97771
|
data/.travis.yml
ADDED
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
data/faceless.gemspec
CHANGED
data/lib/faceless/version.rb
CHANGED
data/lib/faceless.rb
CHANGED
@@ -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
|
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
|
-
|
16
|
+
Faceless::Authcode.decode("2d4enq1n92Am7AX7+z9yuqAItMzrgeuBCqA3/R1YX7GJk4/lZE8g")
|
19
17
|
end
|
20
18
|
end
|
data/test/test_helper.rb
CHANGED
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.
|
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:
|
14
|
+
name: minitest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
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: '
|
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
|