tcat 0.1.2 → 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/configuration.rb +1 -1
- data/lib/tcat/query.rb +3 -3
- data/lib/tcat/version.rb +1 -1
- metadata +10 -11
- data/tcat.gemspec +0 -42
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/configuration.rb
CHANGED
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,11 +1,11 @@
|
|
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
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2024-09-02 00:00:00.000000000 Z
|
@@ -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,13 +58,12 @@ files:
|
|
58
58
|
- lib/tcat/query.rb
|
59
59
|
- lib/tcat/version.rb
|
60
60
|
- sig/tcat.rbs
|
61
|
-
|
62
|
-
homepage: https://github.com/7a6163/tcat
|
61
|
+
homepage: https://rubygems.org/gems/tcat
|
63
62
|
licenses:
|
64
63
|
- MIT
|
65
64
|
metadata:
|
66
|
-
homepage_uri: https://
|
67
|
-
post_install_message:
|
65
|
+
homepage_uri: https://rubygems.org/gems/tcat
|
66
|
+
post_install_message:
|
68
67
|
rdoc_options: []
|
69
68
|
require_paths:
|
70
69
|
- lib
|
@@ -80,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
79
|
version: '0'
|
81
80
|
requirements: []
|
82
81
|
rubygems_version: 3.5.11
|
83
|
-
signing_key:
|
82
|
+
signing_key:
|
84
83
|
specification_version: 4
|
85
|
-
summary: A Ruby gem for tracking packages using the
|
84
|
+
summary: A Ruby gem for tracking packages using the Tcat system.
|
86
85
|
test_files: []
|
data/tcat.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'lib/tcat/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'tcat'
|
7
|
-
spec.version = Tcat::VERSION
|
8
|
-
spec.authors = ['Zac']
|
9
|
-
spec.email = ['579103+7a6163@users.noreply.github.com']
|
10
|
-
|
11
|
-
spec.summary = 'A Ruby gem for tracking packages using the T-cat system.'
|
12
|
-
spec.description = 'TcatTracker provides an easy-to-use interface for querying package tracking information from the T-Cat system. It handles authentication and request formatting, allowing developers to easily integrate T-cat tracking into their Ruby applications.'
|
13
|
-
spec.homepage = 'https://github.com/7a6163/tcat'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = '>= 2.7.0'
|
16
|
-
|
17
|
-
# spec.metadata['allowed_push_host'] = 'https://rubygems.pkg.github.com'
|
18
|
-
|
19
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
20
|
-
# spec.metadata['source_code_uri'] = "TODO: Put your gem's public repo URL here."
|
21
|
-
# spec.metadata['changelog_uri'] = "TODO: Put your gem's CHANGELOG.md URL here."
|
22
|
-
|
23
|
-
# Specify which files should be added to the gem when it is released.
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
-
spec.files = Dir.chdir(__dir__) do
|
26
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
-
(File.expand_path(f) == __FILE__) ||
|
28
|
-
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
|
29
|
-
end
|
30
|
-
end
|
31
|
-
spec.bindir = 'exe'
|
32
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
33
|
-
spec.require_paths = ['lib']
|
34
|
-
|
35
|
-
# Uncomment to register a new dependency of your gem
|
36
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
37
|
-
spec.add_dependency 'ox', '~> 2.14'
|
38
|
-
spec.add_development_dependency 'pry', '~> 0.14.2'
|
39
|
-
|
40
|
-
# For more information and examples about making a new gem, check out our
|
41
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
42
|
-
end
|