tcat 0.1.3 → 0.1.4
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 +4 -4
- data/lib/tcat/query.rb +3 -3
- data/lib/tcat/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 649a0ce80d0bd52cde6c0cd171b869ab557d7b085467d2e0e950a652456a29a9
|
4
|
+
data.tar.gz: 2519e582fd44fc108a05b1c69a0bbcc80dba5620f6acb5f8baf21a96c8289b38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5040e5ed15e2bef7e946a7b237f50464ecf52fbe0dd50fec8aba99c9ee78e9d1c43de2d78840a84921876c713b1af46cfbe90d2d2a75183619a5d8839466620b
|
7
|
+
data.tar.gz: fdcacbc2c3bdd76754cf73083bd59dd8791501f22404966992bc827a78d90ddb2e3f8f8819b2bc1611175f451eb9c9e8ec8b55a6136826e8ddc7026f1461648a
|
data/lib/tcat/query.rb
CHANGED
@@ -7,8 +7,8 @@ require 'ox'
|
|
7
7
|
module Tcat
|
8
8
|
class Query
|
9
9
|
def initialize(tracking_number)
|
10
|
-
@secret_string =
|
11
|
-
@secret_key =
|
10
|
+
@secret_string = Tcat.configuration.secret_string
|
11
|
+
@secret_key = Tcat.configuration.secret_key
|
12
12
|
validate_secrets!
|
13
13
|
|
14
14
|
@tracking_number = tracking_number
|
@@ -16,7 +16,7 @@ module Tcat
|
|
16
16
|
|
17
17
|
def perform
|
18
18
|
cookies = 'citrix_ns_id=AAE7go4rZDusCRcEAAAAADuVBLGLdqo1FolMO02r_jOEnjNmr4u9sIYwtllmmfsOOw==KJArZA==AQJLxyeLYOXPo3Uzfh_rWrr_NcU=; ASP.NET_SessionId=p4v1z4nijrynbortgf4iqml4'
|
19
|
-
ua = 'BlackCat/2.
|
19
|
+
ua = 'BlackCat/2.49 (iPhone; iOS 17.6.1; Scale/3.00)'
|
20
20
|
headers = { 'User-Agent': ua, 'Accept-Language': 'zh-Hant-TW;q=1, en-TW;q=0.9', Cookie: cookies }
|
21
21
|
uri = URI('https://www.t-cat.com.tw/iPhone/TCatApp.aspx?ver=24.26')
|
22
22
|
|
data/lib/tcat/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zac
|
@@ -38,9 +38,9 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.14.2
|
41
|
-
description:
|
42
|
-
information from the
|
43
|
-
allowing developers to easily integrate
|
41
|
+
description: Tcat provides an easy-to-use interface for querying package tracking
|
42
|
+
information from the TCat system. It handles authentication and request formatting,
|
43
|
+
allowing developers to easily integrate Tcat tracking into their Ruby applications.
|
44
44
|
email:
|
45
45
|
- 579103+7a6163@users.noreply.github.com
|
46
46
|
executables: []
|
@@ -58,11 +58,11 @@ files:
|
|
58
58
|
- lib/tcat/query.rb
|
59
59
|
- lib/tcat/version.rb
|
60
60
|
- sig/tcat.rbs
|
61
|
-
homepage: https://
|
61
|
+
homepage: https://rubygems.org/gems/tcat
|
62
62
|
licenses:
|
63
63
|
- MIT
|
64
64
|
metadata:
|
65
|
-
homepage_uri: https://
|
65
|
+
homepage_uri: https://rubygems.org/gems/tcat
|
66
66
|
post_install_message:
|
67
67
|
rdoc_options: []
|
68
68
|
require_paths:
|
@@ -81,5 +81,5 @@ requirements: []
|
|
81
81
|
rubygems_version: 3.5.11
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
|
-
summary: A Ruby gem for tracking packages using the
|
84
|
+
summary: A Ruby gem for tracking packages using the Tcat system.
|
85
85
|
test_files: []
|