wy_wecall 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 651c20954122d230df8ad899ec6dadaa959c6099b572f7d5e2ce8943b433c503
4
- data.tar.gz: 3aee511fc42a57ee546d6d565cd0ea7a7cfc0762e7cacc5605a2618b30748cef
3
+ metadata.gz: 70133c2958418caf9d6528d21cf7ed7d74a6380c228f72f78c5ce1a7c87ffa45
4
+ data.tar.gz: b3aac8adc9b388ea932265449e9dbdc1a7fc8681bacc37905759af2a18689602
5
5
  SHA512:
6
- metadata.gz: 6e31ddbf11072025e1d1394945c044f05f021ef5e254f4546863a6c8f8664a0befc71ba01bd689992fc4a5a9c048abc302043411af2929e8b9c5f4f2031584bb
7
- data.tar.gz: 7643c505efec41efe9f093da661a8825517e41a2761114e9c1ce0d5fb17d4fca42026a3dca4ed6c2a0c26c6fcddea5a6ae6bb9186f4c77ee4474981f82a46ca9
6
+ metadata.gz: 7394b48376f55605f973f1a9df5bf7e314831e3791435dd2497556e319f38158d1329858c75c8ffd4f7396722984c6f12d1a394ed56111ae2128818408f21959
7
+ data.tar.gz: e27e2eac7f56658bf408464d6fcca7228e0a48b05d03477315fb5170b92309389cddd8b7fae5d27f386cf70e941fb5a7bebfaf396cbf7bba6fda73745a4dcb93
data/Gemfile.lock CHANGED
@@ -1,36 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wy_wecall (0.1.7)
5
- faraday (~> 1.8.0)
6
- faraday_middleware (~> 1.2.1)
4
+ wy_wecall (0.1.13)
5
+ faraday (>= 2.0.0)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
10
9
  specs:
10
+ base64 (0.3.0)
11
11
  diff-lcs (1.6.2)
12
- faraday (1.8.0)
13
- faraday-em_http (~> 1.0)
14
- faraday-em_synchrony (~> 1.0)
15
- faraday-excon (~> 1.1)
16
- faraday-httpclient (~> 1.0.1)
17
- faraday-net_http (~> 1.0)
18
- faraday-net_http_persistent (~> 1.1)
19
- faraday-patron (~> 1.0)
20
- faraday-rack (~> 1.0)
21
- multipart-post (>= 1.2, < 3)
12
+ faraday (2.8.1)
13
+ base64
14
+ faraday-net_http (>= 2.0, < 3.1)
22
15
  ruby2_keywords (>= 0.0.4)
23
- faraday-em_http (1.0.0)
24
- faraday-em_synchrony (1.0.1)
25
- faraday-excon (1.1.0)
26
- faraday-httpclient (1.0.1)
27
- faraday-net_http (1.0.2)
28
- faraday-net_http_persistent (1.2.0)
29
- faraday-patron (1.0.0)
30
- faraday-rack (1.0.0)
31
- faraday_middleware (1.2.1)
32
- faraday (~> 1.0)
33
- multipart-post (2.4.1)
16
+ faraday-net_http (3.0.2)
34
17
  rake (12.3.3)
35
18
  rspec (3.13.1)
36
19
  rspec-core (~> 3.13.0)
@@ -56,4 +39,4 @@ DEPENDENCIES
56
39
  wy_wecall!
57
40
 
58
41
  BUNDLED WITH
59
- 2.1.4
42
+ 2.6.9
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday_middleware'
5
4
 
6
5
  module WyWecall
7
6
  module Api
@@ -26,15 +26,15 @@ module WyWecall
26
26
  @app_key = options[:app_key] || WyWecall.configuration.app_key
27
27
  @app_secret = options[:app_secret] || WyWecall.configuration.app_secret
28
28
  @app_type = options[:app_type] || WyWecall.configuration.app_type
29
- @algorithm = options[:algorithm] || WyWecall.configuration.algorithm
30
- @headers = options[:headers] || WyWecall.configuration.headers
29
+ @algorithm = options[:algorithm] || WyWecall.configuration.algorithm || WyWecall::Configuration::DEFAULT_ALGORITHM
30
+ @headers = options[:headers] || WyWecall.configuration.headers || WyWecall::Configuration::DEFAULT_HEADERS
31
31
  @base_url = options[:base_url] || WyWecall.configuration.base_url || WyWecall::Configuration::DEFAULT_BASE_URL
32
- @connection_adapter = options[:connection_adapter] || WyWecall.configuration.connection_adapter
33
- @timeout = options[:timeout] || WyWecall.configuration.timeout
34
- @open_timeout = options[:open_timeout] || WyWecall.configuration.open_timeout
32
+ @connection_adapter = options[:connection_adapter] || WyWecall.configuration.connection_adapter || WyWecall::Configuration::DEFAULT_CONNECTION_ADAPTER
33
+ @timeout = options[:timeout] || WyWecall.configuration.timeout || WyWecall::Configuration::DEFAULT_TIMEOUT
34
+ @open_timeout = options[:open_timeout] || WyWecall.configuration.open_timeout || WyWecall::Configuration::DEFAULT_OPEN_TIMEOUT
35
35
  @api_path = options[:api_path] || WyWecall.configuration.api_path || WyWecall::Configuration::DEFAULT_API_PATH
36
36
  @api_version = options[:api_version] || WyWecall.configuration.api_version || WyWecall::Configuration::DEFAULT_API_VERSION
37
- @debug_flag = options[:debug_flag] || WyWecall.configuration.debug_flag
37
+ @debug_flag = options[:debug_flag] || WyWecall.configuration.debug_flag || WyWecall::Configuration::DEFAULT_DEBUG_FLAG
38
38
  end
39
39
 
40
40
  def log_debug(message)
@@ -1,11 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'faraday'
3
4
  module WyWecall
4
5
  class Configuration
5
6
  DEFAULT_BASE_URL = 'https://b.163.com'
6
7
  DEFAULT_API_PATH = '/open/api/wecall'
7
8
  DEFAULT_API_VERSION = 'v1'
8
9
  DEFAULT_ALGORITHM = 'SHA256'
10
+ DEFAULT_TIMEOUT = 10
11
+ DEFAULT_OPEN_TIMEOUT = 10
12
+ DEFAULT_HEADERS = { 'Content-Type' => 'application/json' }
13
+ DEFAULT_DEBUG_FLAG = false
14
+ DEFAULT_CONNECTION_ADAPTER = Faraday.default_adapter
9
15
  attr_accessor :app_key, :app_secret, :app_type, :algorithm, :base_url,
10
16
  :connection_adapter, :headers, :timeout, :open_timeout,
11
17
  :api_path, :api_version, :debug_flag
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WyWecall
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.13'
5
5
  end
data/wy_wecall.gemspec CHANGED
@@ -26,6 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.bindir = "exe"
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
- spec.add_dependency "faraday", "~> 1.8.0"
30
- spec.add_dependency "faraday_middleware", "~> 1.2.1"
29
+ spec.add_dependency "faraday", ">= 2.0.0"
31
30
  end
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wy_wecall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - TryCatch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-09 00:00:00.000000000 Z
11
+ date: 2025-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.8.0
19
+ version: 2.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.8.0
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 1.2.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 1.2.1
26
+ version: 2.0.0
41
27
  description: 支持网易云商智能外呼的 Ruby Api客户端
42
28
  email:
43
29
  - guoyoujin123@gmail.com