mifiel 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +6 -15
- data/.travis.yml +22 -6
- data/Appraisals +11 -0
- data/Gemfile +2 -6
- data/Rakefile +2 -0
- data/gemfiles/rails_5.gemfile +12 -0
- data/gemfiles/rails_6.gemfile +12 -0
- data/lib/mifiel.rb +3 -1
- data/lib/mifiel/base.rb +2 -0
- data/lib/mifiel/certificate.rb +2 -0
- data/lib/mifiel/config.rb +7 -5
- data/lib/mifiel/document.rb +6 -4
- data/lib/mifiel/errors.rb +2 -0
- data/lib/mifiel/template.rb +2 -0
- data/lib/mifiel/user.rb +4 -2
- data/lib/mifiel/version.rb +3 -1
- data/mifiel.gemspec +18 -22
- data/spec/mifiel/base_spec.rb +2 -0
- data/spec/mifiel/certificate_spec.rb +2 -1
- data/spec/mifiel/document_spec.rb +2 -0
- data/spec/mifiel/template_spec.rb +2 -0
- data/spec/mifiel/user_spec.rb +2 -0
- data/spec/spec_helper.rb +3 -2
- data/spec/support/fake_mifiel.rb +55 -54
- metadata +54 -51
- data/Guardfile +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 30f7aeb18c7ac08adcaf698ef656976b80e6d0224252f1ae6b4b17798d973c6c
|
4
|
+
data.tar.gz: 7cf15f910e58163c971cc6a215dda296ece97db1a0bc11e6c4d37212284b9b9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45d708a1dcf7f74580e1bffb8f954992068e70cec202e3826aaf28da5909d533df49068ad368169b5b2c48576180d8ea34177480dc2e25d41fc4f8c125b1832b
|
7
|
+
data.tar.gz: 20fbd3b40b3b0ecabc40185f240a0810e3029585ad9a075bcd66b852ca8a23a77b9923ac8688080280730cb3e7b241eb34d699c9f5394fb5a7d9c267a896a882
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,27 +1,18 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
3
|
-
|
4
|
-
|
5
|
-
Enabled: false
|
6
|
-
|
7
|
-
Style/AlignHash:
|
8
|
-
Enabled: false
|
2
|
+
TargetRubyVersion: 2.3
|
3
|
+
Exclude:
|
4
|
+
- 'gemfiles/**/*'
|
9
5
|
|
10
|
-
|
11
|
-
|
6
|
+
Layout/LineLength:
|
7
|
+
Max: 190
|
12
8
|
|
13
9
|
Style/Documentation:
|
14
10
|
Enabled: false
|
15
11
|
|
16
|
-
Style/EmptyLinesAroundBlockBody:
|
17
|
-
Enabled: false
|
18
|
-
|
19
|
-
Metrics/LineLength:
|
20
|
-
Max: 190
|
21
|
-
|
22
12
|
Style/HashSyntax:
|
23
13
|
EnforcedStyle: ruby19
|
24
14
|
|
25
15
|
Metrics/BlockLength:
|
26
16
|
Exclude:
|
27
17
|
- 'spec/**/*'
|
18
|
+
- '*.gemspec'
|
data/.travis.yml
CHANGED
@@ -1,15 +1,31 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
sudo: false
|
4
|
+
|
5
|
+
gemfile:
|
6
|
+
- gemfiles/rails_5.gemfile
|
7
|
+
- gemfiles/rails_6.gemfile
|
8
|
+
|
4
9
|
rvm:
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.
|
10
|
+
- 2.3
|
11
|
+
- 2.4
|
12
|
+
- 2.5
|
13
|
+
- 2.6
|
14
|
+
|
8
15
|
notifications:
|
9
16
|
email:
|
10
17
|
on_success: change
|
11
18
|
on_failure: always
|
19
|
+
|
12
20
|
script:
|
13
|
-
- mkdir ./tmp/
|
14
|
-
- bundle exec rubocop
|
15
|
-
- bundle exec rspec
|
21
|
+
- mkdir ./tmp/
|
22
|
+
- bundle exec rubocop
|
23
|
+
- bundle exec rspec
|
24
|
+
|
25
|
+
matrix:
|
26
|
+
exclude:
|
27
|
+
- rvm: 2.3
|
28
|
+
gemfile: gemfiles/rails_6.gemfile
|
29
|
+
- rvm: 2.4
|
30
|
+
gemfile: gemfiles/rails_6.gemfile
|
31
|
+
fast_finish: true
|
data/Appraisals
ADDED
data/Gemfile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
# Specify your gem's dependencies in mifiel.gemspec
|
@@ -5,10 +7,4 @@ gemspec
|
|
5
7
|
|
6
8
|
group :development, :test do
|
7
9
|
gem 'coveralls', require: false
|
8
|
-
gem 'guard', '2.13.0'
|
9
|
-
gem 'guard-rspec'
|
10
|
-
# compatible with ruby >= 1.9.3
|
11
|
-
gem 'guard-rubocop'
|
12
|
-
gem 'listen', '3.0.8'
|
13
|
-
gem 'terminal-notifier-guard'
|
14
10
|
end
|
data/Rakefile
CHANGED
data/lib/mifiel.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'flexirest'
|
2
4
|
|
3
5
|
module Mifiel
|
@@ -9,7 +11,7 @@ module Mifiel
|
|
9
11
|
autoload :Config, 'mifiel/config'
|
10
12
|
autoload :User, 'mifiel/user'
|
11
13
|
|
12
|
-
BASE_URL = 'https://www.mifiel.com/api/v1'
|
14
|
+
BASE_URL = 'https://www.mifiel.com/api/v1'
|
13
15
|
|
14
16
|
def self.config
|
15
17
|
if block_given?
|
data/lib/mifiel/base.rb
CHANGED
data/lib/mifiel/certificate.rb
CHANGED
data/lib/mifiel/config.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Mifiel
|
2
4
|
module Config
|
3
5
|
class << self
|
@@ -26,11 +28,11 @@ module Mifiel
|
|
26
28
|
|
27
29
|
private
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
def set_api_auth_credentials
|
32
|
+
Flexirest::Base.base_url = base_url
|
33
|
+
Flexirest::Base.api_auth_credentials(app_id, app_secret)
|
34
|
+
Flexirest::Base.request_body_type = :json
|
35
|
+
end
|
34
36
|
end
|
35
37
|
|
36
38
|
reset
|
data/lib/mifiel/document.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'open3'
|
2
4
|
require 'api-auth'
|
3
5
|
|
@@ -19,6 +21,7 @@ module Mifiel
|
|
19
21
|
callback_url = args[:callback_url]
|
20
22
|
raise ArgumentError, 'Either file or hash must be provided' if !file && !hash
|
21
23
|
raise ArgumentError, 'Only one of file or hash must be provided' if file && hash
|
24
|
+
|
22
25
|
payload = {
|
23
26
|
signatories: build_signatories(signatories),
|
24
27
|
callback_url: callback_url,
|
@@ -33,7 +36,7 @@ module Mifiel
|
|
33
36
|
end
|
34
37
|
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
|
35
38
|
|
36
|
-
def request_signature(email, cc: nil)
|
39
|
+
def request_signature(email, cc: nil) # rubocop:disable Naming/MethodParameterName
|
37
40
|
params = { email: email }
|
38
41
|
params[:cc] = cc if cc.is_a?(Array)
|
39
42
|
Mifiel::Document._request("#{Mifiel.config.base_url}/documents/#{id}/request_signature", :post, params)
|
@@ -54,10 +57,9 @@ module Mifiel
|
|
54
57
|
File.open(path, 'w') { |file| file.write(response) }
|
55
58
|
end
|
56
59
|
|
57
|
-
def self.process_request(path, method, payload=nil)
|
58
|
-
path[0] = '' if path[0] == '/'
|
60
|
+
def self.process_request(path, method, payload = nil)
|
59
61
|
rest_request = RestClient::Request.new(
|
60
|
-
url: "#{Mifiel.config.base_url}/#{path}",
|
62
|
+
url: "#{Mifiel.config.base_url}/#{path.gsub(%r{^\/}, '')}",
|
61
63
|
method: method,
|
62
64
|
payload: payload,
|
63
65
|
ssl_version: 'SSLv23'
|
data/lib/mifiel/errors.rb
CHANGED
data/lib/mifiel/template.rb
CHANGED
data/lib/mifiel/user.rb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Mifiel
|
2
4
|
class User < Mifiel::Base
|
3
5
|
post :setup_widget, '/users/setup-widget'
|
4
6
|
|
5
|
-
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
6
|
-
def self.setup_widget(args)
|
7
|
+
def self.setup_widget(args) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
7
8
|
email = args[:email]
|
8
9
|
tax_id = args[:tax_id]
|
9
10
|
callback_url = args[:callback_url]
|
10
11
|
|
11
12
|
raise ArgumentError, 'Email must be provided' unless email
|
12
13
|
raise ArgumentError, 'Tax id must be provided' unless tax_id
|
14
|
+
|
13
15
|
rest_request = RestClient::Request.new(
|
14
16
|
url: "#{Mifiel.config.base_url}/users/setup-widget",
|
15
17
|
method: :post,
|
data/lib/mifiel/version.rb
CHANGED
data/mifiel.gemspec
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
|
4
6
|
require 'mifiel/version'
|
5
7
|
|
6
|
-
# rubocop:disable Metrics/BlockLength, Layout/ExtraSpacing
|
7
8
|
Gem::Specification.new do |spec|
|
8
9
|
spec.name = 'mifiel'
|
9
10
|
spec.version = Mifiel::VERSION
|
@@ -17,28 +18,23 @@ Gem::Specification.new do |spec|
|
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
20
|
spec.require_paths = ['lib']
|
20
|
-
spec.required_ruby_version = '~> 2.
|
21
|
+
spec.required_ruby_version = '~> 2.3'
|
21
22
|
|
22
|
-
spec.add_runtime_dependency '
|
23
|
-
spec.add_runtime_dependency '
|
24
|
-
spec.add_runtime_dependency '
|
25
|
-
|
26
|
-
|
27
|
-
if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('2.2.2')
|
28
|
-
spec.add_runtime_dependency 'activesupport'
|
29
|
-
else
|
30
|
-
spec.add_runtime_dependency 'activesupport', '< 5.0.0'
|
31
|
-
end
|
32
|
-
spec.add_runtime_dependency 'flexirest', '~> 1.6.6'
|
23
|
+
spec.add_runtime_dependency 'activesupport'
|
24
|
+
spec.add_runtime_dependency 'api-auth', '~> 1.4'
|
25
|
+
spec.add_runtime_dependency 'flexirest', '~> 1.6'
|
26
|
+
spec.add_runtime_dependency 'json', '>= 1.8'
|
27
|
+
spec.add_runtime_dependency 'rest-client', '>= 1.8'
|
33
28
|
|
34
|
-
spec.add_development_dependency '
|
35
|
-
spec.add_development_dependency '
|
36
|
-
spec.add_development_dependency '
|
37
|
-
spec.add_development_dependency '
|
29
|
+
spec.add_development_dependency 'appraisal'
|
30
|
+
spec.add_development_dependency 'bump', '~> 0.5', '>= 0.5.3'
|
31
|
+
spec.add_development_dependency 'bundler'
|
32
|
+
spec.add_development_dependency 'byebug', '~> 9.0', '< 9.0.6'
|
33
|
+
spec.add_development_dependency 'pry-byebug', '~> 3.4', '>= 3.3.0'
|
38
34
|
spec.add_development_dependency 'rake', '~> 10.0'
|
39
|
-
spec.add_development_dependency 'rspec', '~> 3.1',
|
40
|
-
spec.add_development_dependency 'rubocop', '0.
|
35
|
+
spec.add_development_dependency 'rspec', '~> 3.1', '>= 3.1.7'
|
36
|
+
spec.add_development_dependency 'rubocop', '~> 0.79.0'
|
41
37
|
spec.add_development_dependency 'simplecov', '~> 0.15'
|
42
|
-
spec.add_development_dependency 'sinatra'
|
43
|
-
spec.add_development_dependency 'webmock'
|
38
|
+
spec.add_development_dependency 'sinatra'
|
39
|
+
spec.add_development_dependency 'webmock'
|
44
40
|
end
|
data/spec/mifiel/base_spec.rb
CHANGED
data/spec/mifiel/user_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'pry'
|
2
4
|
require 'byebug'
|
3
5
|
require 'pry-byebug'
|
@@ -11,10 +13,9 @@ SimpleCov.start do
|
|
11
13
|
end
|
12
14
|
Coveralls.wear!
|
13
15
|
|
14
|
-
Dir['./spec/support/**/*.rb'].each { |f| require f }
|
16
|
+
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
|
15
17
|
|
16
18
|
RSpec.configure do |config|
|
17
|
-
|
18
19
|
config.before(:suite) do
|
19
20
|
Mifiel.config do |conf|
|
20
21
|
conf.app_id = 'APP_ID'
|
data/spec/support/fake_mifiel.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'sinatra/base'
|
2
|
-
|
3
|
-
class FakeMifiel < Sinatra::Base
|
4
|
+
|
5
|
+
class FakeMifiel < Sinatra::Base # rubocop:disable Metrics/ClassLength
|
4
6
|
get '/api/v1/keys' do
|
5
7
|
content_type :json
|
6
8
|
status 200
|
@@ -107,59 +109,58 @@ class FakeMifiel < Sinatra::Base
|
|
107
109
|
|
108
110
|
private
|
109
111
|
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
112
|
+
def template(args = {})
|
113
|
+
{
|
114
|
+
id: args[:id] || SecureRandom.uuid,
|
115
|
+
name: 'some-template',
|
116
|
+
content: '<div><field name="name">NAME</field></div>'
|
117
|
+
}
|
118
|
+
end
|
119
|
+
|
120
|
+
def key(args = {})
|
121
|
+
id = args[:id] || SecureRandom.uuid
|
122
|
+
{
|
123
|
+
id: id,
|
124
|
+
type_of: 'FIEL',
|
125
|
+
cer_hex: '308204cf30...1303030303030323',
|
126
|
+
owner: 'JORGE MORALES MENDEZ',
|
127
|
+
tax_id: 'MOMJ811012643',
|
128
|
+
expires_at: '2017-04-28T19:43:23.000Z',
|
129
|
+
expired: false
|
130
|
+
}
|
131
|
+
end
|
132
|
+
|
133
|
+
def document(args = {}) # rubocop:disable Metrics/MethodLength
|
134
|
+
id = args[:id] || SecureRandom.uuid
|
135
|
+
{
|
136
|
+
id: id,
|
137
|
+
original_hash: Digest::SHA256.hexdigest(id),
|
138
|
+
file_file_name: 'test-pdf.pdf',
|
139
|
+
signed_by_all: true,
|
140
|
+
signed: true,
|
141
|
+
signed_at: Time.now.utc.iso8601,
|
142
|
+
status: [1, 'Firmado'],
|
143
|
+
owner: {
|
144
|
+
email: 'signer1@email.com',
|
145
|
+
name: 'Jorge Morales'
|
146
|
+
},
|
147
|
+
file: "/api/v1/documents/#{id}/file",
|
148
|
+
file_download: "/api/v1/documents/#{id}/file?download=true",
|
149
|
+
file_signed: "/api/v1/documents/#{id}/file_signed",
|
150
|
+
file_signed_download: "/api/v1/documents/#{id}/file_signed?download=true",
|
151
|
+
file_zipped: "/api/v1/documents/#{id}/zip",
|
152
|
+
signatures: [{
|
153
|
+
email: 'signer1@email.com',
|
139
154
|
signed: true,
|
140
|
-
signed_at: Time.now.utc.iso8601,
|
141
|
-
|
142
|
-
|
155
|
+
signed_at: (Time.now.utc - 10_000).iso8601,
|
156
|
+
certificate_number: '20001000000200001410',
|
157
|
+
tax_id: 'AAA010101AAA',
|
158
|
+
signature: '77cd5156779c..4e276ef1056c1de11b7f70bed28',
|
159
|
+
user: {
|
143
160
|
email: 'signer1@email.com',
|
144
161
|
name: 'Jorge Morales'
|
145
|
-
}
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
file_signed_download: "/api/v1/documents/#{id}/file_signed?download=true",
|
150
|
-
file_zipped: "/api/v1/documents/#{id}/zip",
|
151
|
-
signatures: [{
|
152
|
-
email: 'signer1@email.com',
|
153
|
-
signed: true,
|
154
|
-
signed_at: (Time.now.utc - 10_000).iso8601,
|
155
|
-
certificate_number: '20001000000200001410',
|
156
|
-
tax_id: 'AAA010101AAA',
|
157
|
-
signature: '77cd5156779c..4e276ef1056c1de11b7f70bed28',
|
158
|
-
user: {
|
159
|
-
email: 'signer1@email.com',
|
160
|
-
name: 'Jorge Morales'
|
161
|
-
}
|
162
|
-
}]
|
163
|
-
}
|
164
|
-
end
|
162
|
+
}
|
163
|
+
}]
|
164
|
+
}
|
165
|
+
end
|
165
166
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mifiel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genaro Madrid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: api-auth
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -25,21 +39,21 @@ dependencies:
|
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '1.4'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
42
|
+
name: flexirest
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
47
|
+
version: '1.6'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
54
|
+
version: '1.6'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: json
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - ">="
|
@@ -53,33 +67,33 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '1.8'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: rest-client
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: '1.8'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
version: '1.8'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: appraisal
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
type: :
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bump
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,16 +118,16 @@ dependencies:
|
|
104
118
|
name: bundler
|
105
119
|
requirement: !ruby/object:Gem::Requirement
|
106
120
|
requirements:
|
107
|
-
- - "
|
121
|
+
- - ">="
|
108
122
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
123
|
+
version: '0'
|
110
124
|
type: :development
|
111
125
|
prerelease: false
|
112
126
|
version_requirements: !ruby/object:Gem::Requirement
|
113
127
|
requirements:
|
114
|
-
- - "
|
128
|
+
- - ">="
|
115
129
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
130
|
+
version: '0'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: byebug
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,22 +152,22 @@ dependencies:
|
|
138
152
|
name: pry-byebug
|
139
153
|
requirement: !ruby/object:Gem::Requirement
|
140
154
|
requirements:
|
141
|
-
- - "~>"
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '3.4'
|
144
155
|
- - ">="
|
145
156
|
- !ruby/object:Gem::Version
|
146
157
|
version: 3.3.0
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '3.4'
|
147
161
|
type: :development
|
148
162
|
prerelease: false
|
149
163
|
version_requirements: !ruby/object:Gem::Requirement
|
150
164
|
requirements:
|
151
|
-
- - "~>"
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '3.4'
|
154
165
|
- - ">="
|
155
166
|
- !ruby/object:Gem::Version
|
156
167
|
version: 3.3.0
|
168
|
+
- - "~>"
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '3.4'
|
157
171
|
- !ruby/object:Gem::Dependency
|
158
172
|
name: rake
|
159
173
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,16 +206,16 @@ dependencies:
|
|
192
206
|
name: rubocop
|
193
207
|
requirement: !ruby/object:Gem::Requirement
|
194
208
|
requirements:
|
195
|
-
- -
|
209
|
+
- - "~>"
|
196
210
|
- !ruby/object:Gem::Version
|
197
|
-
version: 0.
|
211
|
+
version: 0.79.0
|
198
212
|
type: :development
|
199
213
|
prerelease: false
|
200
214
|
version_requirements: !ruby/object:Gem::Requirement
|
201
215
|
requirements:
|
202
|
-
- -
|
216
|
+
- - "~>"
|
203
217
|
- !ruby/object:Gem::Version
|
204
|
-
version: 0.
|
218
|
+
version: 0.79.0
|
205
219
|
- !ruby/object:Gem::Dependency
|
206
220
|
name: simplecov
|
207
221
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,42 +234,30 @@ dependencies:
|
|
220
234
|
name: sinatra
|
221
235
|
requirement: !ruby/object:Gem::Requirement
|
222
236
|
requirements:
|
223
|
-
- - "~>"
|
224
|
-
- !ruby/object:Gem::Version
|
225
|
-
version: '1.4'
|
226
237
|
- - ">="
|
227
238
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
239
|
+
version: '0'
|
229
240
|
type: :development
|
230
241
|
prerelease: false
|
231
242
|
version_requirements: !ruby/object:Gem::Requirement
|
232
243
|
requirements:
|
233
|
-
- - "~>"
|
234
|
-
- !ruby/object:Gem::Version
|
235
|
-
version: '1.4'
|
236
244
|
- - ">="
|
237
245
|
- !ruby/object:Gem::Version
|
238
|
-
version:
|
246
|
+
version: '0'
|
239
247
|
- !ruby/object:Gem::Dependency
|
240
248
|
name: webmock
|
241
249
|
requirement: !ruby/object:Gem::Requirement
|
242
250
|
requirements:
|
243
|
-
- - "~>"
|
244
|
-
- !ruby/object:Gem::Version
|
245
|
-
version: '1.22'
|
246
251
|
- - ">="
|
247
252
|
- !ruby/object:Gem::Version
|
248
|
-
version:
|
253
|
+
version: '0'
|
249
254
|
type: :development
|
250
255
|
prerelease: false
|
251
256
|
version_requirements: !ruby/object:Gem::Requirement
|
252
257
|
requirements:
|
253
|
-
- - "~>"
|
254
|
-
- !ruby/object:Gem::Version
|
255
|
-
version: '1.22'
|
256
258
|
- - ">="
|
257
259
|
- !ruby/object:Gem::Version
|
258
|
-
version:
|
260
|
+
version: '0'
|
259
261
|
description:
|
260
262
|
email:
|
261
263
|
- genmadrid@gmail.com
|
@@ -268,12 +270,14 @@ files:
|
|
268
270
|
- ".rspec"
|
269
271
|
- ".rubocop.yml"
|
270
272
|
- ".travis.yml"
|
273
|
+
- Appraisals
|
271
274
|
- Gemfile
|
272
|
-
- Guardfile
|
273
275
|
- LICENSE.txt
|
274
276
|
- README.md
|
275
277
|
- Rakefile
|
276
278
|
- bump
|
279
|
+
- gemfiles/rails_5.gemfile
|
280
|
+
- gemfiles/rails_6.gemfile
|
277
281
|
- lib/mifiel.rb
|
278
282
|
- lib/mifiel/base.rb
|
279
283
|
- lib/mifiel/certificate.rb
|
@@ -307,15 +311,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
307
311
|
requirements:
|
308
312
|
- - "~>"
|
309
313
|
- !ruby/object:Gem::Version
|
310
|
-
version: '2.
|
314
|
+
version: '2.3'
|
311
315
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
312
316
|
requirements:
|
313
317
|
- - ">="
|
314
318
|
- !ruby/object:Gem::Version
|
315
319
|
version: '0'
|
316
320
|
requirements: []
|
317
|
-
|
318
|
-
rubygems_version: 2.2.2
|
321
|
+
rubygems_version: 3.0.6
|
319
322
|
signing_key:
|
320
323
|
specification_version: 4
|
321
324
|
summary: Ruby SDK for mifiel.com.
|
data/Guardfile
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
notification :terminal_notifier
|
2
|
-
|
3
|
-
rspec_options = {
|
4
|
-
all_after_pass: false,
|
5
|
-
cmd: 'rspec spec',
|
6
|
-
failed_mode: :focus
|
7
|
-
}
|
8
|
-
|
9
|
-
clearing :on
|
10
|
-
|
11
|
-
guard :rspec, rspec_options do
|
12
|
-
require 'ostruct'
|
13
|
-
|
14
|
-
# Generic Ruby apps
|
15
|
-
rspec = OpenStruct.new
|
16
|
-
rspec.spec = ->(m) { "spec/#{m}_spec.rb" }
|
17
|
-
rspec.spec_dir = 'spec'
|
18
|
-
rspec.spec_helper = 'spec/spec_helper.rb'
|
19
|
-
|
20
|
-
watch(%r{^spec/.+_spec\.rb$})
|
21
|
-
watch(%r{^lib/mifiel/(.+)\.rb$}) do |m|
|
22
|
-
"spec/mifiel/#{m[1]}_spec.rb"
|
23
|
-
end
|
24
|
-
watch(%r{^lib/mifiel/(.+)\.rb$}) do |m|
|
25
|
-
"spec/mifiel/integration/#{m[1]}_spec.rb"
|
26
|
-
end
|
27
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
28
|
-
end
|
29
|
-
|
30
|
-
rubocop_opts = {
|
31
|
-
all_on_start: false,
|
32
|
-
cli: '--format html -o rubocop.html'
|
33
|
-
}
|
34
|
-
guard :rubocop, rubocop_opts do
|
35
|
-
watch(/.+\.rb$/)
|
36
|
-
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
37
|
-
end
|