tarta-api 1.0.0 → 1.0.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +12 -13
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 544d926902d26f0880f580084088c77be0a20396024b9f4b0454c3468c23d29b
4
- data.tar.gz: fa92b7580d5333e6b3d1bcc2f8cf2cdb6878c14e10e5d1b552181ba595df277f
3
+ metadata.gz: 39ab6dea4e1537762954e1fb36abf69287e48f887a2748044e65e6c52c89a7dc
4
+ data.tar.gz: 5c7c6758c9b9498ac17fa6181495e1732658d9b297fc82a2d5b7d7b13ee263da
5
5
  SHA512:
6
- metadata.gz: dd739b07fd31aeff73535a3a1b10f252fb5ee228df272ecc7a7f2201ce601bee9c5206c846a30e0d776b7bf964afb6fc1ac2419d75900fcb2d5a7bd290228779
7
- data.tar.gz: fa3f7020b70d038dbb915c00a992374ba6d05a0dc3d4f9e90bd0364ed7649d2764b762c6419f8f799a39c83af5055badf8420ae051206730eaf70c1eea6885ec
6
+ metadata.gz: 1cc9433662eb79cd8c9dbdfbea2b00382d9e88f35afecb358d1121a1f773fd8aacdb4afacfc7873abbca29fb009f70d7d26a5ad47f06b15bd41b1194d39809f9
7
+ data.tar.gz: b229d5188855edc16222d2a3837d4320914624b9c582ea1d3f5afb837fc199fa43addef10c6b227a34a8128e49010d9be7e68521304f332aee0b921d1aa150d9
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2025 JoPilot
3
+ Copyright (c) 2025 tarta.ai
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -42,7 +42,7 @@ def search_jobs(title, size = 5)
42
42
 
43
43
  begin
44
44
  results = TartaAPI::JobSearchService.search_jobs(request)
45
- jobs = results.fetch("jobs", [])
45
+ jobs = results[:jobs] || []
46
46
 
47
47
  if jobs.empty?
48
48
  puts "No job results found."
@@ -51,14 +51,14 @@ def search_jobs(title, size = 5)
51
51
 
52
52
  puts "Job Search Results:"
53
53
  jobs.each do |job|
54
- job_name = job.fetch("name", "N/A")
55
- company = job.fetch("companyName", "N/A")
56
- location = job.fetch("location", {})
57
- city = location.fetch("city", "Unknown")
58
- state = location.fetch("state", "Unknown")
59
- country = location.fetch("country", "Unknown")
60
- source = job.fetch("feed", "N/A")
61
- posted_date = job.fetch("created", "N/A")
54
+ job_name = job[:name] || "N/A"
55
+ company = job[:companyName] || "N/A"
56
+ location = job[:location] || {}
57
+ city = location[:city] || "Unknown"
58
+ state = location[:state] || "Unknown"
59
+ country = location[:country] || "Unknown"
60
+ source = job[:feed] || "N/A"
61
+ posted_date = job[:created] || "N/A"
62
62
 
63
63
  puts "Job: #{job_name} at #{company}"
64
64
  puts "Location: #{city}, #{state}, #{country}"
@@ -66,13 +66,12 @@ def search_jobs(title, size = 5)
66
66
  puts "Posted: #{posted_date}\n"
67
67
  end
68
68
 
69
- rescue => e
70
- puts "Error fetching job results: #{e}"
69
+ rescue StandardError => e
70
+ puts "Error fetching job results: #{e.message}"
71
71
  end
72
72
  end
73
73
 
74
- search_jobs("ruby", size: 2)
75
-
74
+ search_jobs("ruby", 2)
76
75
  ```
77
76
 
78
77
  ## Key Features
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarta-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tarta.ai