yoti 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +37 -0
- data/CHANGELOG.md +13 -0
- data/CONTRIBUTING.md +119 -0
- data/Gemfile +9 -0
- data/Guardfile +11 -0
- data/LICENSE.txt +202 -0
- data/README.md +222 -0
- data/Rakefile +46 -0
- data/lib/generators/yoti/install/install_generator.rb +13 -0
- data/lib/generators/yoti/install/templates/yoti.rb +4 -0
- data/lib/yoti/activity_details.rb +31 -0
- data/lib/yoti/client.rb +17 -0
- data/lib/yoti/configuration.rb +84 -0
- data/lib/yoti/errors.rb +13 -0
- data/lib/yoti/protobuf/v1/attribute_public_api/attribute.pb.rb +45 -0
- data/lib/yoti/protobuf/v1/attribute_public_api/list.pb.rb +33 -0
- data/lib/yoti/protobuf/v1/attribute_public_api/signing.pb.rb +27 -0
- data/lib/yoti/protobuf/v1/common_public_api/encrypted_data.pb.rb +22 -0
- data/lib/yoti/protobuf/v1/definitions/attribute-public-api/attrpubapi_v1/attribute.proto +52 -0
- data/lib/yoti/protobuf/v1/definitions/attribute-public-api/attrpubapi_v1/list.proto +27 -0
- data/lib/yoti/protobuf/v1/definitions/attribute-public-api/attrpubapi_v1/signing.proto +23 -0
- data/lib/yoti/protobuf/v1/definitions/common-public-api/compubapi_v1/encrypted_data.proto +15 -0
- data/lib/yoti/protobuf/v1/protobuf.rb +49 -0
- data/lib/yoti/request.rb +58 -0
- data/lib/yoti/ssl.rb +71 -0
- data/lib/yoti/version.rb +4 -0
- data/lib/yoti.rb +21 -0
- data/login_flow.png +0 -0
- data/rubocop.yml +27 -0
- data/yardstick.yml +9 -0
- data/yoti.gemspec +38 -0
- metadata +218 -0
data/rubocop.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisplayCopNames: true
|
3
|
+
DisplayStyleGuide: true
|
4
|
+
TargetRubyVersion: 2.3
|
5
|
+
Exclude:
|
6
|
+
- 'examples/rails/config/**/*'
|
7
|
+
|
8
|
+
Metrics/AbcSize:
|
9
|
+
Max: 15
|
10
|
+
Exclude:
|
11
|
+
- examples/rails/app/controllers/yoti_controller.rb
|
12
|
+
|
13
|
+
Metrics/LineLength:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Metrics/MethodLength:
|
17
|
+
CountComments: false
|
18
|
+
Max: 15
|
19
|
+
|
20
|
+
Style/Documentation:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Style/FrozenStringLiteralComment:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Style/NumericLiterals:
|
27
|
+
Enabled: false
|
data/yardstick.yml
ADDED
data/yoti.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'yoti/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'yoti'
|
8
|
+
spec.version = Yoti::VERSION
|
9
|
+
spec.authors = ['Vasile Zaremba']
|
10
|
+
spec.email = ['vasile.zaremba@yoti.com']
|
11
|
+
|
12
|
+
spec.summary = 'Yoti Ruby SDK for back-end integration.'
|
13
|
+
spec.description = <<-EOF
|
14
|
+
This gem contains the tools you need to quickly integrate your Ruby back-end
|
15
|
+
with Yoti, so that your users can share their identity details with your
|
16
|
+
application in a secure and trusted way.
|
17
|
+
EOF
|
18
|
+
|
19
|
+
spec.homepage = 'https://github.com/getyoti/ruby'
|
20
|
+
spec.license = 'MIT'
|
21
|
+
|
22
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|examples)/}) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.required_ruby_version = '>= 2'
|
26
|
+
|
27
|
+
spec.add_dependency 'protobuf', '~> 3.6'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'bundler'
|
30
|
+
spec.add_development_dependency 'dotenv'
|
31
|
+
spec.add_development_dependency 'generator_spec'
|
32
|
+
spec.add_development_dependency 'rake'
|
33
|
+
spec.add_development_dependency 'rspec'
|
34
|
+
spec.add_development_dependency 'simplecov'
|
35
|
+
spec.add_development_dependency 'webmock'
|
36
|
+
spec.add_development_dependency 'yard'
|
37
|
+
spec.add_development_dependency 'yardstick'
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,218 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yoti
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vasile Zaremba
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: protobuf
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.6'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dotenv
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: generator_spec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webmock
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yard
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: yardstick
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: |2
|
154
|
+
This gem contains the tools you need to quickly integrate your Ruby back-end
|
155
|
+
with Yoti, so that your users can share their identity details with your
|
156
|
+
application in a secure and trusted way.
|
157
|
+
email:
|
158
|
+
- vasile.zaremba@yoti.com
|
159
|
+
executables: []
|
160
|
+
extensions: []
|
161
|
+
extra_rdoc_files: []
|
162
|
+
files:
|
163
|
+
- ".gitignore"
|
164
|
+
- CHANGELOG.md
|
165
|
+
- CONTRIBUTING.md
|
166
|
+
- Gemfile
|
167
|
+
- Guardfile
|
168
|
+
- LICENSE.txt
|
169
|
+
- README.md
|
170
|
+
- Rakefile
|
171
|
+
- lib/generators/yoti/install/install_generator.rb
|
172
|
+
- lib/generators/yoti/install/templates/yoti.rb
|
173
|
+
- lib/yoti.rb
|
174
|
+
- lib/yoti/activity_details.rb
|
175
|
+
- lib/yoti/client.rb
|
176
|
+
- lib/yoti/configuration.rb
|
177
|
+
- lib/yoti/errors.rb
|
178
|
+
- lib/yoti/protobuf/v1/attribute_public_api/attribute.pb.rb
|
179
|
+
- lib/yoti/protobuf/v1/attribute_public_api/list.pb.rb
|
180
|
+
- lib/yoti/protobuf/v1/attribute_public_api/signing.pb.rb
|
181
|
+
- lib/yoti/protobuf/v1/common_public_api/encrypted_data.pb.rb
|
182
|
+
- lib/yoti/protobuf/v1/definitions/attribute-public-api/attrpubapi_v1/attribute.proto
|
183
|
+
- lib/yoti/protobuf/v1/definitions/attribute-public-api/attrpubapi_v1/list.proto
|
184
|
+
- lib/yoti/protobuf/v1/definitions/attribute-public-api/attrpubapi_v1/signing.proto
|
185
|
+
- lib/yoti/protobuf/v1/definitions/common-public-api/compubapi_v1/encrypted_data.proto
|
186
|
+
- lib/yoti/protobuf/v1/protobuf.rb
|
187
|
+
- lib/yoti/request.rb
|
188
|
+
- lib/yoti/ssl.rb
|
189
|
+
- lib/yoti/version.rb
|
190
|
+
- login_flow.png
|
191
|
+
- rubocop.yml
|
192
|
+
- yardstick.yml
|
193
|
+
- yoti.gemspec
|
194
|
+
homepage: https://github.com/getyoti/ruby
|
195
|
+
licenses:
|
196
|
+
- MIT
|
197
|
+
metadata: {}
|
198
|
+
post_install_message:
|
199
|
+
rdoc_options: []
|
200
|
+
require_paths:
|
201
|
+
- lib
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '2'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
requirements: []
|
213
|
+
rubyforge_project:
|
214
|
+
rubygems_version: 2.5.1
|
215
|
+
signing_key:
|
216
|
+
specification_version: 4
|
217
|
+
summary: Yoti Ruby SDK for back-end integration.
|
218
|
+
test_files: []
|