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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3d77b7d036203617ed676dff2d9f7d51b79785326f21837f2ecb9715379adc8
4
- data.tar.gz: a2433f854e76fb9b8793946a39f1d01230d6fcb539951662c50efb3d6fdf5383
3
+ metadata.gz: 649a0ce80d0bd52cde6c0cd171b869ab557d7b085467d2e0e950a652456a29a9
4
+ data.tar.gz: 2519e582fd44fc108a05b1c69a0bbcc80dba5620f6acb5f8baf21a96c8289b38
5
5
  SHA512:
6
- metadata.gz: e990723f69fb576d9ebdc6aa19ba085353f7758640f0d15ba1880e0550d5d7252e5698c40bb8a44c39de6dd7d1cc7d85603ef6ce559c72e839d3621ffa98b4d4
7
- data.tar.gz: b47efa32cefb85088d032f3631ac8fa4ebe358946e069ff5320a8fcab843c49af1d8edae251ce3eb028eff99bd709e56d96b5ffc7e476d3529e31b4d70651439
6
+ metadata.gz: 5040e5ed15e2bef7e946a7b237f50464ecf52fbe0dd50fec8aba99c9ee78e9d1c43de2d78840a84921876c713b1af46cfbe90d2d2a75183619a5d8839466620b
7
+ data.tar.gz: fdcacbc2c3bdd76754cf73083bd59dd8791501f22404966992bc827a78d90ddb2e3f8f8819b2bc1611175f451eb9c9e8ec8b55a6136826e8ddc7026f1461648a
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Tact
3
+ module Tcat
4
4
  class Configuration
5
5
  attr_accessor :secret_string, :secret_key
6
6
 
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 = TcatTracker.configuration.secret_string
11
- @secret_key = TcatTracker.configuration.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.42.2 (iPhone; iOS 16.4; Scale/3.00)'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tcat
4
- VERSION = "0.1.2"
4
+ VERSION = '0.1.4'
5
5
  end
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.2
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: TcatTracker provides an easy-to-use interface for querying package tracking
42
- information from the T-Cat system. It handles authentication and request formatting,
43
- allowing developers to easily integrate T-cat tracking into their Ruby applications.
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
- - tcat.gemspec
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://github.com/7a6163/tcat
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 T-cat system.
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