an_post_return 0.2.1 → 0.2.3

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: 21117bee5b1a89c2538217b6e317bbdeb01a09c94ebd053f7341c8cead7f2806
4
- data.tar.gz: '01868c415b4b74b1486d164a1e168902fef2cc2315c5c7514a58ba0455224cdf'
3
+ metadata.gz: 758688bc128e110722699506c377c8ef8fa12043ae8442428955d909a1d2f5a5
4
+ data.tar.gz: f6f9d366ec248e45fe9324b05a5240567f37133d528babce5fd6b6f935cbad67
5
5
  SHA512:
6
- metadata.gz: c7d406b357f13e3ed86ab5b29805a92d783bbe39bf715783680369d63ff203c0c9509146210cdc64416bd2dba9a33ef49924953bdfdfe4bdee834f3257a83d96
7
- data.tar.gz: 507ee59443f89e704647f0b1c1060d8a4df3cd5bda35df8b897dd3b5b02434c53c72a7a04d3c82651157bc13111b223c52555e7148a3a577cc68935c743ee907
6
+ metadata.gz: 99a6dce6c36134cebf00c60014dce2af6c9ec44352d719ff6dde479f69dc1cef6c4987256b0841317889823d1516214dcaa1cd49ec02313ce7b71de66dfb40f7
7
+ data.tar.gz: 9637582d234c2fb069e9887859c336a51f1d5f351cdad0ce7695baf1eefa531d6aa472303817788c56ec6070bbac0255043aea3f98e9ae350481fc5b11449405
data/.env.example CHANGED
@@ -1,14 +1,9 @@
1
- # Required
2
- ANTHROPIC_API_KEY=your-api-key-here # For most AI ops -- Format: sk-ant-api03-... (Required)
3
- PERPLEXITY_API_KEY=pplx-abcde # For research -- Format: pplx-abcde (Optional, Highly Recommended)
4
-
5
- # Optional - defaults shown
6
- MODEL=claude-3-7-sonnet-20250219 # Recommended models: claude-3-7-sonnet-20250219, claude-3-opus-20240229 (Required)
7
- PERPLEXITY_MODEL=sonar-pro # Make sure you have access to sonar-pro otherwise you can use sonar regular (Optional)
8
- MAX_TOKENS=64000 # Maximum tokens for model responses (Required)
9
- TEMPERATURE=0.2 # Temperature for model responses (0.0-1.0) - lower = less creativity and follow your prompt closely (Required)
10
- DEBUG=false # Enable debug logging (true/false)
11
- LOG_LEVEL=info # Log level (debug, info, warn, error)
12
- DEFAULT_SUBTASKS=5 # Default number of subtasks when expanding
13
- DEFAULT_PRIORITY=medium # Default priority for generated tasks (high, medium, low)
14
- PROJECT_NAME={{projectName}} # Project name for tasks.json metadata
1
+ SFTP_HOST=
2
+ SFTP_USERNAME=
3
+ SFTP_PASSWORD=
4
+ SFTP_REMOTE_PATH=
5
+ PROXY_HOST=
6
+ PROXY_PORT=
7
+ PROXY_USERNAME=
8
+ PROXY_PASSWORD=
9
+ AN_POST_SUBSCRIPTION_KEY=
@@ -29,12 +29,19 @@ module AnPostReturn
29
29
  def proxy_uri
30
30
  return nil unless proxy_configured?
31
31
 
32
- uri = "http://#{proxy_config[:host]}:#{proxy_config[:port]}"
33
- uri =
34
- "http://#{proxy_config[:user]}:#{proxy_config[:password]}@#{proxy_config[:host]}:#{proxy_config[:port]}" if proxy_config[
35
- :user
36
- ] && proxy_config[:password]
37
- URI.parse(uri)
32
+ user = proxy_config[:user]
33
+ password = proxy_config[:password]
34
+ host = proxy_config[:host]
35
+ port = proxy_config[:port]
36
+
37
+ uri_string = "http://#{host}:#{port}"
38
+ if user && password
39
+ encoded_user = URI.encode_www_form_component(user)
40
+ encoded_password = URI.encode_www_form_component(password)
41
+ uri_string = "http://#{encoded_user}:#{encoded_password}@#{host}:#{port}"
42
+ end
43
+
44
+ URI.parse(uri_string)
38
45
  end
39
46
 
40
47
  def sftp_configured?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AnPostReturn
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: an_post_return
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Chong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-25 00:00:00.000000000 Z
11
+ date: 2025-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: x25519