flash_integration 0.1.2.1 → 1.0.1

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: d29c5738c7098856c1b14c3c2f5a0b066950c3e25cacfcad53e565427d60d9e3
4
- data.tar.gz: f7296474e9631500dae3c335e48ad330028eefa16770f014bd0e7c7fa017be33
3
+ metadata.gz: 3d8e14d8d06afdba30c4253994e9c013c98a1c2a3d40e0078f8a7a56f10c18c4
4
+ data.tar.gz: 3bf642c53f220e2091a6b807f8532844c37779d35e85f65dc118f318b3ce7d6c
5
5
  SHA512:
6
- metadata.gz: deec4c6103f054baf73f4bbf0de3581806351040eeeaa175ea4c860331180678e114b1fbd10ad90a26275956898ae3180f5e24c6a95b7079569ff2b465d3076e
7
- data.tar.gz: 81ef75fb2ba847adf20827aafa32ed183ab9570c06930d2bb3d490e640959ccc1c69b6f9896ae09d9fa423d9986777ad3aac2df9174d17cac0bb6b8d0e9a4410
6
+ metadata.gz: 8c8187fd519d7ec8f24f5ab0f3551ba48a2028e277ec4b29dd64c71d0782185dfb8e5ed0deecc90e7b57a0368a45649630d7b115f729055ad870f32f7177d4d3
7
+ data.tar.gz: b94d2493a6a1b87cfe1036fe4ebbb40c7ecda24eadebc130c7233d6f9fba49b0ae5afc1695edbeb4dbe7055ab4d1b56ab6b716aa9d5f19effc9cac293643910d
data/CHANGELOG.md CHANGED
@@ -1,17 +1,40 @@
1
- # CHANGELOG
1
+ # Changelog
2
2
 
3
- ## v0.1.2.1-20220209 - Danilo Carolino
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- Fixes
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7
 
7
- * [32](https://github.com/Quasar-Flash/flash_integration/issues/32) HashSyntax with EnforcedShorthandSyntax as always
8
+ ## [Unreleased]
8
9
 
9
- ## v0.1.2-20220202 - Danilo Carolino
10
+ ## [1.0.1] - 2023-02-03
10
11
 
11
- * [QC-79](https://qflash.atlassian.net/jira/software/projects/QC/boards/31?selectedIssue=QC-79)
12
+ ### Changed
13
+
14
+ - Adiciona workflow de deployment padronizado ao projeto por @danilogco
15
+ - Adiciona o Ruby v3.2.0 para a matriz de testes unitários por @danilogco
16
+
17
+ ## [1.0.0] - 2022-06-13
18
+
19
+ ### Changed
20
+
21
+ - Bump `faraday` version from >= 1.4.1, < 1.9.0 to >= 1.4.1, < 2.4.0
22
+
23
+ ## [0.1.3] - 2022-02-09
24
+
25
+ ### Fixed
26
+
27
+ - HashSyntax with EnforcedShorthandSyntax as always #32
28
+
29
+ ## [0.1.2] - 2022-02-02
30
+
31
+ ### Changed
32
+
33
+ - [QC-79](https://qflash.atlassian.net/jira/software/projects/QC/boards/31?selectedIssue=QC-79)
12
34
  Reduzir uso de pipelines em projetos Ruby [Dependabot]
13
- * Bump Ruby version to v3.1.0
14
35
 
15
- ## v0.1.0
36
+ ## [0.1.0]
37
+
38
+ ### Added
16
39
 
17
- * Initial release
40
+ - Initial release
data/README.md CHANGED
@@ -1,32 +1,29 @@
1
- BigId Auth's Library for Ruby
2
- ==============
1
+ # Flash Integration
2
+
3
+ A Faraday's extension to make it easier to create integrations.
3
4
 
4
5
  [![Gem Version](https://badge.fury.io/rb/flash_integration.svg)](https://badge.fury.io/rb/flash_integration)
5
- [![flash_integration](https://github.com/Quasar-Flash/flash_integration/actions/workflows/ruby.yml/badge.svg)](https://github.com/Quasar-Flash/flash_integration/actions/workflows/ruby.yml)
6
+ [![Build](https://github.com/Quasar-Flash/flash_integration/actions/workflows/tests.yml/badge.svg)](https://github.com/Quasar-Flash/flash_integration/actions/workflows/tests.yml)
6
7
 
7
- Dev Requirements
8
- -----------------
8
+ ## Dev Requirements
9
9
 
10
10
  - Ruby: Any version
11
11
  - Bundler
12
12
 
13
- Global Installation
14
- -----------------
13
+ ## Global Installation
15
14
 
16
15
  ```ruby
17
16
  gem install flash_integration
18
17
  ```
19
18
 
20
- Installation for Rails
21
- -----------------
19
+ ## Installation for Rails
22
20
 
23
21
  ```ruby
24
22
  # Add to the Gemfile
25
- gem 'flash_integration', '~> 0.1.0'
23
+ gem 'flash_integration', '~> 1.0.0'
26
24
  ```
27
25
 
28
- Example - How to extend
29
- -----------------
26
+ ## Example - How to extend
30
27
 
31
28
  ```ruby
32
29
  module MyApp
@@ -45,8 +42,7 @@ module MyApp
45
42
  end
46
43
  ```
47
44
 
48
- Example - How to request
49
- -----------------
45
+ ## Example - How to request
50
46
 
51
47
  ```ruby
52
48
  res = @connection.post(
@@ -65,15 +61,13 @@ res.body
65
61
  res.time
66
62
  ```
67
63
 
68
- Problems?
69
- -----------------
64
+ ## Problems?
70
65
 
71
66
  **Please do not directly email any committers with questions or problems.** A community is best served when discussions are held in public.
72
67
 
73
68
  Searching the [issues](https://github.com/Quasar-Flash/flash_integration/issues) for your problem is also a good idea.
74
69
 
75
- Contributing
76
- -----------------
70
+ ## Contributing
77
71
 
78
72
  - Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet;
79
73
  - Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it;
@@ -83,12 +77,10 @@ Contributing
83
77
  - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.;
84
78
  - Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
85
79
 
86
- License
87
- -----------------
80
+ ## License
88
81
 
89
82
  Please see [LICENSE](https://github.com/Quasar-Flash/flash_integration/blob/master/LICENSE.txt) for licensing details.
90
83
 
91
- Authors
92
- -----------------
84
+ ## Authors
93
85
 
94
86
  Danilo Carolino, [@danilogco](https://github.com/danilogco) / [@Quasar-Flash](https://github.com/Quasar-Flash)
@@ -87,7 +87,7 @@ module Flash
87
87
 
88
88
  def multipart_connection
89
89
  @request_class.new(url: @base_url) do |conn|
90
- conn.use Flash::Integration::MultipartFlat
90
+ conn.request :multipart
91
91
  conn.request :url_encoded
92
92
  conn.adapter @request_class.default_adapter
93
93
  end
@@ -9,6 +9,6 @@ module Flash
9
9
  # Major - Incremented for incompatible changes with previous release (or big enough new features)
10
10
  # Minor - Incremented for new backwards-compatible features + deprecations
11
11
  # Patch - Incremented for backwards-compatible bug fixes
12
- VERSION = "0.1.2.1"
12
+ VERSION = File.read(".version").strip
13
13
  end
14
14
  end
@@ -3,7 +3,6 @@
3
3
  require "faraday"
4
4
 
5
5
  require "flash/integration/version"
6
- require "flash/integration/multipart_flat"
7
6
  require "flash/integration/response"
8
7
  require "flash/integration/request"
9
8
  require "flash/integration/connection"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Carolino
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 1.4.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 1.9.0
22
+ version: 2.8.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 1.4.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 1.9.0
32
+ version: 2.8.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.14'
53
+ version: 0.14.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.14'
60
+ version: 0.14.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -84,70 +84,70 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '3.10'
87
+ version: 3.12.0
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '3.10'
94
+ version: 3.12.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: rubocop
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '1.25'
101
+ version: 1.44.1
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '1.25'
108
+ version: 1.44.1
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rubocop-packaging
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '0.5'
115
+ version: 0.5.1
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '0.5'
122
+ version: 0.5.1
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: rubocop-performance
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '1.13'
129
+ version: 1.15.0
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: '1.13'
136
+ version: 1.15.0
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: rubocop-rspec
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: '2.8'
143
+ version: 2.18.0
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '2.8'
150
+ version: 2.18.0
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: simplecov
153
153
  requirement: !ruby/object:Gem::Requirement
@@ -174,7 +174,6 @@ files:
174
174
  - README.md
175
175
  - Rakefile
176
176
  - lib/flash/integration/connection.rb
177
- - lib/flash/integration/multipart_flat.rb
178
177
  - lib/flash/integration/request.rb
179
178
  - lib/flash/integration/response.rb
180
179
  - lib/flash/integration/version.rb
@@ -190,7 +189,7 @@ metadata:
190
189
  changelog_uri: https://github.com/Quasar-Flash/flash_integration/blob/master/CHANGELOG.md
191
190
  source_code_uri: https://github.com/Quasar-Flash/flash_integration
192
191
  bug_tracker_uri: https://github.com/Quasar-Flash/flash_integration/issues
193
- post_install_message:
192
+ post_install_message:
194
193
  rdoc_options: []
195
194
  require_paths:
196
195
  - lib
@@ -205,12 +204,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
204
  - !ruby/object:Gem::Version
206
205
  version: '0'
207
206
  requirements: []
208
- rubygems_version: 3.3.3
209
- signing_key:
207
+ rubygems_version: 3.1.6
208
+ signing_key:
210
209
  specification_version: 4
211
210
  summary: Flash Integration Library
212
211
  test_files:
212
+ - spec/flash_integration_spec.rb
213
213
  - spec/flash/integration/connection_spec.rb
214
214
  - spec/flash/integration/response_spec.rb
215
- - spec/flash_integration_spec.rb
216
215
  - spec/spec_helper.rb
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Flash
4
- module Integration
5
- class MultipartFlat < Faraday::Request::Multipart
6
- self.mime_type = "multipart/form-data"
7
- DEFAULT_BOUNDARY_PREFIX = "-----------RubyMultipartPost" unless defined? DEFAULT_BOUNDARY_PREFIX
8
-
9
- def process_params(params, prefix = nil, pieces = nil, &block)
10
- params.inject(pieces || []) do |all, (key, value)|
11
- key = prefix.to_s if prefix
12
-
13
- case value
14
- when Array
15
- values = value.inject([]) { |a, v| a << [nil, v] }
16
- process_params(values, key, all, &block)
17
- when Hash
18
- process_params(value, key, all, &block)
19
- else
20
- all << block.call(key, value)
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end