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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a062bd29d434d2b5e1c3454d42e42ed4a3735748
4
- data.tar.gz: 0cdbbeb3a80539baac11e7186172647dabad4fcc
2
+ SHA256:
3
+ metadata.gz: 30f7aeb18c7ac08adcaf698ef656976b80e6d0224252f1ae6b4b17798d973c6c
4
+ data.tar.gz: 7cf15f910e58163c971cc6a215dda296ece97db1a0bc11e6c4d37212284b9b9e
5
5
  SHA512:
6
- metadata.gz: af10664e2cd473c62be20183738b176ad45a9fb8012962395009d225b70e2885b004901f6ebff7e87d78c14143052d2c0274879baf262941fc1cb9781d3b5c3a
7
- data.tar.gz: acafa09520766f8e1c11f88437a3bed7afe7d5d7edec790c4a28e254c39ac4ec11d2e87ed446280285d9f54ab4373f7f7dfffaabd56ca15754859a59aa368432
6
+ metadata.gz: 45d708a1dcf7f74580e1bffb8f954992068e70cec202e3826aaf28da5909d533df49068ad368169b5b2c48576180d8ea34177480dc2e25d41fc4f8c125b1832b
7
+ data.tar.gz: 20fbd3b40b3b0ecabc40185f240a0810e3029585ad9a075bcd66b852ca8a23a77b9923ac8688080280730cb3e7b241eb34d699c9f5394fb5a7d9c267a896a882
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ rubocop.html
17
17
  .ruby-version
18
18
  *.sublime-workspace
19
19
  vendor
20
+ gemfiles/*.lock
@@ -1,27 +1,18 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.1
3
-
4
- Style/IndentationConsistency:
5
- Enabled: false
6
-
7
- Style/AlignHash:
8
- Enabled: false
2
+ TargetRubyVersion: 2.3
3
+ Exclude:
4
+ - 'gemfiles/**/*'
9
5
 
10
- Style/SpaceAroundEqualsInParameterDefault:
11
- Enabled: false
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'
@@ -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.1
6
- - 2.2
7
- - 2.3.0
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 spec
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
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-5' do
4
+ gem 'rails', '5'
5
+ gem 'sinatra'
6
+ end
7
+
8
+ appraise 'rails-6' do
9
+ gem 'rails', '6'
10
+ gem 'sinatra'
11
+ end
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
 
3
5
  task :console do
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5"
6
+ gem "sinatra"
7
+
8
+ group :development, :test do
9
+ gem "coveralls", require: false
10
+ end
11
+
12
+ gemspec path: "../"
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "6"
6
+ gem "sinatra"
7
+
8
+ group :development, :test do
9
+ gem "coveralls", require: false
10
+ end
11
+
12
+ gemspec path: "../"
@@ -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'.freeze
14
+ BASE_URL = 'https://www.mifiel.com/api/v1'
13
15
 
14
16
  def self.config
15
17
  if block_given?
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rest-client'
2
4
 
3
5
  module Mifiel
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mifiel
2
4
  class Certificate < Mifiel::Base
3
5
  get :all, '/keys'
@@ -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
- def set_api_auth_credentials
30
- Flexirest::Base.base_url = base_url
31
- Flexirest::Base.api_auth_credentials(app_id, app_secret)
32
- Flexirest::Base.request_body_type = :json
33
- end
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
@@ -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'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mifiel
2
4
  MifielError = Class.new StandardError
3
5
  BadRequestError = Class.new StandardError
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mifiel
2
4
  class Template < Mifiel::Base
3
5
  get :all, '/templates'
@@ -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,
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mifiel
2
- VERSION = '1.2.2'.freeze
4
+ VERSION = '1.3.0'
3
5
  end
@@ -1,9 +1,10 @@
1
- lib = File.expand_path('../lib', __FILE__)
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.1'
21
+ spec.required_ruby_version = '~> 2.3'
21
22
 
22
- spec.add_runtime_dependency 'api-auth', '~> 1.4'
23
- spec.add_runtime_dependency 'json', '~> 1.8'
24
- spec.add_runtime_dependency 'rest-client', '>= 1.8'
25
- # Use Gem::Version to parse the Ruby version for reliable comparison
26
- # ActiveSupport 5+ requires Ruby 2.2.2
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 'bump', '~> 0.5', '>= 0.5.3'
35
- spec.add_development_dependency 'bundler', '~> 1.6'
36
- spec.add_development_dependency 'byebug', '~> 9.0', '< 9.0.6'
37
- spec.add_development_dependency 'pry-byebug', '~> 3.4', '>= 3.3.0'
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', '>= 3.1.7'
40
- spec.add_development_dependency 'rubocop', '0.47.1'
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', '~> 1.4', '>= 1.4.7'
43
- spec.add_development_dependency 'webmock', '~> 1.22', '>= 1.22.2'
38
+ spec.add_development_dependency 'sinatra'
39
+ spec.add_development_dependency 'webmock'
44
40
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe Mifiel::Base do
2
4
  describe 'rescue_errors' do
3
5
  describe 'when bad request' do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe Mifiel::Certificate do
2
4
  describe '#create' do
3
5
  let(:certificate) do
@@ -8,5 +10,4 @@ describe Mifiel::Certificate do
8
10
 
9
11
  it { expect(certificate).to be_a(Mifiel::Certificate) }
10
12
  end
11
-
12
13
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe Mifiel::Document do
2
4
  let!(:certificate) { File.read('spec/fixtures/FIEL_AAA010101AAA.cer') }
3
5
  let!(:private_key) { File.read('spec/fixtures/FIEL_AAA010101AAA.key') }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe Mifiel::Template do
2
4
  let!(:template_id) { 'bb7d65b4-47f1-470e-85e4-22ddae86f9ea' }
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe Mifiel::User do
2
4
  describe '#setup_widget' do
3
5
  let(:user) do
@@ -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'
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'sinatra/base'
2
- # rubocop:disable Metrics/ClassLength
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
- def template(args = {})
111
- {
112
- id: args[:id] || SecureRandom.uuid,
113
- name: 'some-template',
114
- content: '<div><field name="name">NAME</field></div>'
115
- }
116
- end
117
-
118
- def key(args={})
119
- id = args[:id] || SecureRandom.uuid
120
- {
121
- id: id,
122
- type_of: 'FIEL',
123
- cer_hex: '308204cf30...1303030303030323',
124
- owner: 'JORGE MORALES MENDEZ',
125
- tax_id: 'MOMJ811012643',
126
- expires_at: '2017-04-28T19:43:23.000Z',
127
- expired: false
128
- }
129
- end
130
-
131
- # rubocop:disable Metrics/MethodLength
132
- def document(args={})
133
- id = args[:id] || SecureRandom.uuid
134
- {
135
- id: id,
136
- original_hash: Digest::SHA256.hexdigest(id),
137
- file_file_name: 'test-pdf.pdf',
138
- signed_by_all: true,
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
- status: [1, 'Firmado'],
142
- owner: {
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
- file: "/api/v1/documents/#{id}/file",
147
- file_download: "/api/v1/documents/#{id}/file?download=true",
148
- file_signed: "/api/v1/documents/#{id}/file_signed",
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.2.2
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: 2018-04-13 00:00:00.000000000 Z
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: json
42
+ name: flexirest
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '1.8'
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.8'
54
+ version: '1.6'
41
55
  - !ruby/object:Gem::Dependency
42
- name: rest-client
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: activesupport
70
+ name: rest-client
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - "<"
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
- version: 5.0.0
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: 5.0.0
82
+ version: '1.8'
69
83
  - !ruby/object:Gem::Dependency
70
- name: flexirest
84
+ name: appraisal
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
- version: 1.6.6
76
- type: :runtime
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: 1.6.6
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: '1.6'
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: '1.6'
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.47.1
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.47.1
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: 1.4.7
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: 1.4.7
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: 1.22.2
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: 1.22.2
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.1'
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
- rubyforge_project:
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