zoho_sign 0.1.1 → 0.2.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
2
  SHA256:
3
- metadata.gz: 85bd1a932999943e553720f8e0d866a0b5365bdd2a29406c5016d59b2ae39f7b
4
- data.tar.gz: 55cd33a724b2d63ecc0c95aa62cf1d2e5a6b114aa1d522244fc8314ccdf30ef6
3
+ metadata.gz: 78297001b457d3aedb552bbec22b02b20803dc758da0dda9ac679fb0cae3e6b9
4
+ data.tar.gz: 8ba05a240b314305092af54207d523bf4d24fc8a6e4caccd5f8a5d4c0927f274
5
5
  SHA512:
6
- metadata.gz: 57f9062cd8b92ecdfae801fbce3a70bd6a4b0a44d3c06d331dee9d0709006e79ddb4b11ab90804d0c9719c9898768019f8227f78cf15ca9ab613d6271785b163
7
- data.tar.gz: 9bd95ce532b3f593f764dfb48f4bb8af5a0661f2e67ca935aa493b556828e07aeb38db07e70235ac334faacb5605b26679f75a939fcaea9be28762cd670f8c54
6
+ metadata.gz: 1da49e70a33de5208ef3c3ba8562bee22e48720301b917f377685e0fc124adfe272c2511b29c639f21726a81531326407f4cccc236a519e50b41eba4fb6b4eb0
7
+ data.tar.gz: 5b80257268709e3c166eb6a758028b7215d7b160b4578ac6647738a07b2d311355a65abdb713226e66bc2efd46265ae0531a6a45598f5e8a8d9c87cb86ff0cf0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2023-10-02
4
+
5
+ - Upgrade Faraday gem from v1 to v2 (#52)
6
+ - Add ruby 3.1 to the testing matrix. (#27)
7
+
8
+ ## [0.1.1] - 2021-12-17
9
+
10
+ - Created `RELEASE_PROCESS.md`.
11
+
3
12
  ## [0.1.0] - 2021-09-17
4
13
 
5
14
  - Initial release:
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ gem "dotenv"
10
10
  gem "rake", "~> 13.0"
11
11
 
12
12
  # Lints
13
- gem "rubocop", "~> 1.7"
13
+ gem "standard", "~> 1.5"
14
14
 
15
15
  # Console
16
16
  gem "pry"
@@ -19,3 +19,6 @@ gem "pry"
19
19
  gem "faker"
20
20
  gem "rspec", "~> 3.0"
21
21
  gem "webmock"
22
+
23
+ # Publish Gem
24
+ gem "gem-release", "~> 2.2"
@@ -0,0 +1,51 @@
1
+ # How to create a new release
2
+
3
+ ## Step 1: Update `CHANGELOG.md`
4
+
5
+ The step 1 is to make sure the `CHANGELOG.md` is up-to-date. If is not up-to-date
6
+ please update the missing changes.
7
+
8
+ ## Step 2: Prepare the release
9
+
10
+ Note: This steps needs to be performed in the `main` branch. Remember to have a up-to-date repo.
11
+
12
+ First open the `lib/zoho_sign/version.rb` file and update the `VERSION` constant.
13
+
14
+ We are following "[Semantic Versioning v2](https://semver.org/spec/v2.0.0.html)" conventions.
15
+
16
+ ## Step 3: Setup your environment
17
+
18
+ First of all make sure you have the file `~/.gem/credentials` with this content:
19
+
20
+ ```yml
21
+ ---
22
+ :rubygems_api_key: $RUBYGEM_API_KEY
23
+ :github: $GITHUB_TOKEN_API_KEY
24
+ ```
25
+
26
+ You can get your `$RUBYGEM_API_KEY` from your RubyGems.org account.
27
+ You can get your `$GITHUB_TOKEN_API_KEY` from your GitHub.com account. Instructions [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).
28
+
29
+ ## Step 4: Publish new gem version in GitHub Package Registry
30
+
31
+ Now last step run this terminal commands:
32
+
33
+ ```bash
34
+ gem build *.gemspec
35
+ gem push --KEY github --host https://$GITHUB_USER:$GITHUB_TOKEN_API_KEY@rubygems.pkg.github.com/wecasa *.gem
36
+ ```
37
+
38
+ - `$GITHUB_USER` -> example `wakematta`
39
+ - `$GITHUB_TOKEN_API_KEY` -> Instructions [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).
40
+
41
+ ## Step 5: Publish new gem version in RubyGems.org
42
+
43
+ Now you can run this terminal command:
44
+
45
+ ```bash
46
+ gem bump --release --push --tag --version '$NEW_RELEASE_VERSION' --message ':arrow_up: Prepare release v%{version} %{skip_ci}'
47
+ ```
48
+
49
+ Remember that `$NEW_RELEASE_VERSION` needs to be the same as the one in `lib/zoho_sign/version.rb`.
50
+
51
+ You can add `--pretend` to the command, to make sure there is no erros. Before doing it for real.
data/Rakefile CHANGED
@@ -5,8 +5,6 @@ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- require "rubocop/rake_task"
8
+ require "standard/rake"
9
9
 
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
10
+ task default: %i[spec standard]
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "json"
4
4
  require "faraday"
5
- require "faraday_middleware"
5
+ require "faraday/retry"
6
6
  require "addressable"
7
7
 
8
8
  module ZohoSign
@@ -21,8 +21,7 @@ module ZohoSign
21
21
  # @param [String] :sort_order (nil)
22
22
  #
23
23
  # @return [Array] Array of instances of current class
24
- def all(start_index: DEFAULT_START_INDEX, per_request: DEFAULT_RECORDS_PER_REQUEST,
25
- sort_column: nil, sort_order: nil)
24
+ def all(start_index: DEFAULT_START_INDEX, per_request: DEFAULT_RECORDS_PER_REQUEST, sort_column: nil, sort_order: nil)
26
25
  params = build_params_for_index_action(start_index, per_request, sort_column, sort_order)
27
26
  body = connection.get(request_path, params)
28
27
  response = build_response(body)
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "rainbow"
4
4
  require "faraday"
5
- require "faraday_middleware"
5
+ require "faraday/retry"
6
6
 
7
7
  require_relative "response_handler"
8
8
 
@@ -101,7 +101,7 @@ module ZohoSign
101
101
  conn.headers["Content-Type"] = "application/x-www-form-urlencoded"
102
102
  conn.request :json
103
103
  conn.request :retry
104
- conn.response :json, parser_options: { symbolize_names: true }, content_type: /\bjson$/
104
+ conn.response :json, parser_options: {symbolize_names: true}, content_type: /\bjson$/
105
105
  conn.response :logger if ZohoSign.config.debug
106
106
  conn.adapter Faraday.default_adapter
107
107
  end
@@ -112,7 +112,7 @@ module ZohoSign
112
112
  conn.headers["Authorization"] = authorization_token if access_token?
113
113
  conn.headers["Content-Type"] = "application/x-www-form-urlencoded"
114
114
  conn.request :retry
115
- conn.response :json, parser_options: { symbolize_names: true }, content_type: /\bjson$/
115
+ conn.response :json, parser_options: {symbolize_names: true}, content_type: /\bjson$/
116
116
  conn.response :logger if ZohoSign.config.debug
117
117
  conn.adapter Faraday.default_adapter
118
118
  end
@@ -35,8 +35,7 @@ module ZohoSign
35
35
  #
36
36
  # @return [Class] ZohoSign::Document instance
37
37
  #
38
- def create_document(template_id:, field_data: {}, recipient_data: [], shared_notes: "", quicksend: true,
39
- document_name: nil)
38
+ def create_document(template_id:, field_data: {}, recipient_data: [], shared_notes: "", quicksend: true, document_name: nil)
40
39
  actions = recipient_data.map do |action_data|
41
40
  recipient = action_data.fetch(:recipient)
42
41
  {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZohoSign
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
data/renovate.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "extends": [
3
3
  "config:base"
4
- ]
4
+ ],
5
+ "commitMessagePrefix": ":arrow_up:"
5
6
  }
metadata CHANGED
@@ -1,15 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoho_sign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wecasa Developers Team
8
8
  - Mohamed Ziata
9
+ - Louise
10
+ - Romain Verbeke
9
11
  autorequire:
10
12
  bindir: exe
11
13
  cert_chain: []
12
- date: 2021-12-17 00:00:00.000000000 Z
14
+ date: 2023-10-02 00:00:00.000000000 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: activesupport
@@ -68,7 +70,7 @@ dependencies:
68
70
  - !ruby/object:Gem::Version
69
71
  version: '0'
70
72
  - !ruby/object:Gem::Dependency
71
- name: faraday_middleware
73
+ name: faraday-retry
72
74
  requirement: !ruby/object:Gem::Requirement
73
75
  requirements:
74
76
  - - ">="
@@ -108,9 +110,9 @@ files:
108
110
  - CHANGELOG.md
109
111
  - CODE_OF_CONDUCT.md
110
112
  - Gemfile
111
- - Gemfile.lock
112
113
  - LICENSE.txt
113
114
  - README.md
115
+ - RELEASE_PROCESS.md
114
116
  - Rakefile
115
117
  - bin/console
116
118
  - bin/setup
@@ -132,6 +134,7 @@ metadata:
132
134
  source_code_uri: https://github.com/wecasa/zoho_sign
133
135
  changelog_uri: https://github.com/wecasa/zoho_sign/blob/master/CHANGELOG.md
134
136
  bug_tracker_uri: https://github.com/wecasa/zoho_sign/issues
137
+ rubygems_mfa_required: 'true'
135
138
  post_install_message:
136
139
  rdoc_options: []
137
140
  require_paths:
@@ -147,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
150
  - !ruby/object:Gem::Version
148
151
  version: '0'
149
152
  requirements: []
150
- rubygems_version: 3.2.32
153
+ rubygems_version: 3.0.3.1
151
154
  signing_key:
152
155
  specification_version: 4
153
156
  summary: Zoho Sign API Wrapper
data/Gemfile.lock DELETED
@@ -1,124 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- zoho_sign (0.1.0)
5
- activesupport
6
- addressable
7
- dry-configurable (~> 0.13)
8
- faraday
9
- faraday_middleware
10
- rainbow
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- activesupport (6.1.4.1)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 1.6, < 2)
18
- minitest (>= 5.1)
19
- tzinfo (~> 2.0)
20
- zeitwerk (~> 2.3)
21
- addressable (2.8.0)
22
- public_suffix (>= 2.0.2, < 5.0)
23
- ast (2.4.2)
24
- coderay (1.1.3)
25
- concurrent-ruby (1.1.9)
26
- crack (0.4.5)
27
- rexml
28
- diff-lcs (1.4.4)
29
- dotenv (2.7.6)
30
- dry-configurable (0.13.0)
31
- concurrent-ruby (~> 1.0)
32
- dry-core (~> 0.6)
33
- dry-core (0.7.1)
34
- concurrent-ruby (~> 1.0)
35
- faker (2.19.0)
36
- i18n (>= 1.6, < 2)
37
- faraday (1.8.0)
38
- faraday-em_http (~> 1.0)
39
- faraday-em_synchrony (~> 1.0)
40
- faraday-excon (~> 1.1)
41
- faraday-httpclient (~> 1.0.1)
42
- faraday-net_http (~> 1.0)
43
- faraday-net_http_persistent (~> 1.1)
44
- faraday-patron (~> 1.0)
45
- faraday-rack (~> 1.0)
46
- multipart-post (>= 1.2, < 3)
47
- ruby2_keywords (>= 0.0.4)
48
- faraday-em_http (1.0.0)
49
- faraday-em_synchrony (1.0.0)
50
- faraday-excon (1.1.0)
51
- faraday-httpclient (1.0.1)
52
- faraday-net_http (1.0.1)
53
- faraday-net_http_persistent (1.2.0)
54
- faraday-patron (1.0.0)
55
- faraday-rack (1.0.0)
56
- faraday_middleware (1.1.0)
57
- faraday (~> 1.0)
58
- hashdiff (1.0.1)
59
- i18n (1.8.10)
60
- concurrent-ruby (~> 1.0)
61
- method_source (1.0.0)
62
- minitest (5.14.4)
63
- multipart-post (2.1.1)
64
- parallel (1.21.0)
65
- parser (3.0.2.0)
66
- ast (~> 2.4.1)
67
- pry (0.14.1)
68
- coderay (~> 1.1)
69
- method_source (~> 1.0)
70
- public_suffix (4.0.6)
71
- rainbow (3.0.0)
72
- rake (13.0.6)
73
- regexp_parser (2.1.1)
74
- rexml (3.2.5)
75
- rspec (3.10.0)
76
- rspec-core (~> 3.10.0)
77
- rspec-expectations (~> 3.10.0)
78
- rspec-mocks (~> 3.10.0)
79
- rspec-core (3.10.1)
80
- rspec-support (~> 3.10.0)
81
- rspec-expectations (3.10.1)
82
- diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.10.0)
84
- rspec-mocks (3.10.2)
85
- diff-lcs (>= 1.2.0, < 2.0)
86
- rspec-support (~> 3.10.0)
87
- rspec-support (3.10.2)
88
- rubocop (1.21.0)
89
- parallel (~> 1.10)
90
- parser (>= 3.0.0.0)
91
- rainbow (>= 2.2.2, < 4.0)
92
- regexp_parser (>= 1.8, < 3.0)
93
- rexml
94
- rubocop-ast (>= 1.9.1, < 2.0)
95
- ruby-progressbar (~> 1.7)
96
- unicode-display_width (>= 1.4.0, < 3.0)
97
- rubocop-ast (1.12.0)
98
- parser (>= 3.0.1.1)
99
- ruby-progressbar (1.11.0)
100
- ruby2_keywords (0.0.5)
101
- tzinfo (2.0.4)
102
- concurrent-ruby (~> 1.0)
103
- unicode-display_width (2.1.0)
104
- webmock (3.14.0)
105
- addressable (>= 2.8.0)
106
- crack (>= 0.3.2)
107
- hashdiff (>= 0.4.0, < 2.0.0)
108
- zeitwerk (2.4.2)
109
-
110
- PLATFORMS
111
- x86_64-linux
112
-
113
- DEPENDENCIES
114
- dotenv
115
- faker
116
- pry
117
- rake (~> 13.0)
118
- rspec (~> 3.0)
119
- rubocop (~> 1.7)
120
- webmock
121
- zoho_sign!
122
-
123
- BUNDLED WITH
124
- 2.2.27