veryfi 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: fa063aa14b6a540ea48bd02a484b211e5acc7e11bb4aaf59068f59e983f69ed5
4
- data.tar.gz: 754e3dec09c3beb49939c34f133b24a27f3d45cf89d6adcf44601cb12e46a46c
3
+ metadata.gz: 2dfb0025549fca927a9ac0badcd5cb0aca467bb4bd67cd899b715a01499fbdbd
4
+ data.tar.gz: ad4805a5f6729fbad09d3d5b0c9f3454182dbcc8c010b9ad534bff9943c220bd
5
5
  SHA512:
6
- metadata.gz: '0869e3e754ce266a002f6d995b62102f94140b4203316f16b5436979a35b53eea42f18fdda25c978a3c213c7e4f131ce869c494b652bf18272b74b651429d07d'
7
- data.tar.gz: 1428c37fdf6b6ca08dcd62d6aef36c6888297584caf0979b5e5650c5b25a5abde4bd8288e2122ca8cd9f902745ef27632309e0ef216407cf3b15290f19abeb08
6
+ metadata.gz: 6cddf104265757d407e4523359fa6b0aa1a0674527b723cd4ce67b1dcdfb0707089edf7dccc591fc931aeb9e7f880438077760f51d497ba20221d17da7642140
7
+ data.tar.gz: 998431b237b95ef26ab665f79792a3ae7057fb0cfef5d6a31f8697010d1849f2257eda0bf5968995535d49aef7e0f4b3b1f170ab1ecddc14f4e0e9d945cee5bc
@@ -12,11 +12,11 @@ jobs:
12
12
  steps:
13
13
  - uses: actions/checkout@v2
14
14
  - name: Set up Ruby
15
- uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: 2.7
18
- # runs 'bundle install' and caches installed gems automatically
19
- bundler-cache: true
15
+ run: |
16
+ sudo apt install ruby-full=1:2.7+1
17
+ sudo gem install bundler:2.2
18
+ bundle _2.2.0_ install
19
+ sudo apt update
20
20
  - name: Release Gem
21
21
  uses: discourse/publish-rubygems-action@v2-beta
22
22
  env:
@@ -5,18 +5,15 @@ on: [push, pull_request]
5
5
  jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
- strategy:
9
- matrix:
10
- ruby_version: [2.6, 2.7]
11
8
  env:
12
9
  CI: true
13
10
  steps:
14
11
  - uses: actions/checkout@v2
15
12
  - name: Set up Ruby
16
- uses: ruby/setup-ruby@v1
17
- with:
18
- ruby-version: ${{ matrix.ruby_version }}
19
- # runs 'bundle install' and caches installed gems automatically
20
- bundler-cache: true
13
+ run: |
14
+ sudo apt install ruby-full=1:2.7+1
15
+ sudo gem install bundler:2.2
16
+ bundle _2.2.0_ install
17
+ sudo apt update
21
18
  - name: Run CI scripts
22
19
  run: bin/ci
data/.gitignore CHANGED
@@ -18,3 +18,4 @@ _yardoc
18
18
  doc/
19
19
 
20
20
  .env
21
+ .idea/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veryfi (0.1.3)
4
+ veryfi (0.1.4)
5
5
  base64 (~> 0.1)
6
6
  faraday (~> 1.7)
7
7
  openssl (~> 2.2)
@@ -12,7 +12,7 @@ GEM
12
12
  addressable (2.8.0)
13
13
  public_suffix (>= 2.0.2, < 5.0)
14
14
  ast (2.4.2)
15
- base64 (0.1.0)
15
+ base64 (0.1.1)
16
16
  bundler-audit (0.9.0)
17
17
  bundler (>= 1.2.0, < 3)
18
18
  thor (~> 1.0)
@@ -21,29 +21,35 @@ GEM
21
21
  rexml
22
22
  diff-lcs (1.4.4)
23
23
  docile (1.4.0)
24
- faraday (1.7.1)
24
+ faraday (1.9.3)
25
25
  faraday-em_http (~> 1.0)
26
26
  faraday-em_synchrony (~> 1.0)
27
27
  faraday-excon (~> 1.1)
28
- faraday-httpclient (~> 1.0.1)
28
+ faraday-httpclient (~> 1.0)
29
+ faraday-multipart (~> 1.0)
29
30
  faraday-net_http (~> 1.0)
30
- faraday-net_http_persistent (~> 1.1)
31
+ faraday-net_http_persistent (~> 1.0)
31
32
  faraday-patron (~> 1.0)
32
33
  faraday-rack (~> 1.0)
33
- multipart-post (>= 1.2, < 3)
34
+ faraday-retry (~> 1.0)
34
35
  ruby2_keywords (>= 0.0.4)
35
36
  faraday-em_http (1.0.0)
36
37
  faraday-em_synchrony (1.0.0)
37
38
  faraday-excon (1.1.0)
38
39
  faraday-httpclient (1.0.1)
40
+ faraday-multipart (1.0.3)
41
+ multipart-post (>= 1.2, < 3)
39
42
  faraday-net_http (1.0.1)
40
43
  faraday-net_http_persistent (1.2.0)
41
44
  faraday-patron (1.0.0)
42
45
  faraday-rack (1.0.0)
46
+ faraday-retry (1.0.3)
43
47
  hashdiff (1.0.1)
48
+ ipaddr (1.2.3)
44
49
  method_source (1.0.0)
45
50
  multipart-post (2.1.1)
46
- openssl (2.2.0)
51
+ openssl (2.2.1)
52
+ ipaddr
47
53
  parallel (1.20.1)
48
54
  parser (3.0.2.0)
49
55
  ast (~> 2.4.1)
@@ -103,6 +109,7 @@ GEM
103
109
  hashdiff (>= 0.4.0, < 2.0.0)
104
110
 
105
111
  PLATFORMS
112
+ ruby
106
113
  x86_64-darwin-19
107
114
  x86_64-linux
108
115
 
data/README.md CHANGED
@@ -263,3 +263,11 @@ bin/setup
263
263
  ## Develop
264
264
 
265
265
  `bin/ci` checks your specs and runs quality tools
266
+
267
+ ## Release
268
+
269
+ 1. Change version in `lib/veryfi/version.rb`
270
+ 2. Run bundle - this should update `Gemfile.lock`
271
+ 3. Commit changes and push to Github
272
+ 4. On Github go to `Actions` -> `Release` -> and click `Run workflow` to trigger release
273
+ 5. Workflow will publish gem to [Rubygems](https://rubygems.org/gems/veryfi) and also create a new tag in repository
@@ -39,7 +39,7 @@ module Veryfi
39
39
  params = setup_create_params(raw_params)
40
40
 
41
41
  file_content = File.read(params[:file_path])
42
- file_name = File.basename(params[:file_path], ".*")
42
+ file_name = File.basename(params[:file_path])
43
43
  file_data = Base64.encode64(file_content).gsub("\n", "")
44
44
 
45
45
  payload = params.reject { |k| k == :file_path }.merge(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Veryfi
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veryfi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Veryfi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64