oslovision 0.1.1 → 0.1.2

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: 9d4899a8b2c74ebe8d00d10dd518433de7e2dae40cc367647faa5df20cd23a14
4
- data.tar.gz: e90bff1a9620e500eda4928551a53262f8466b2de9d91b6a177d96f6ad894eaa
3
+ metadata.gz: b6ea19b217615f040934fbd514ee251fa3768407f48b9ae9bf1ab608c820ac90
4
+ data.tar.gz: 59d52061d84a2beda8385014fd9ba5614d62d10ddcc55c9184fffa435c8e8bf5
5
5
  SHA512:
6
- metadata.gz: 0a911f15a553b796dbf2a446d1544bb80beeb0b15600d57792ec3de909135653cda4ddac494fa86e35115647e12ddbf4a13f294a648cc4652ba53f4a334efaf4
7
- data.tar.gz: 8d79cac7222089c6eb61f48e74f09ddf9ed41d44b153f66675c61ae20e08a104bc2974835717573a1fb8a68785cb5a1ecb4fad3e62c4626ecc6e198b03fcd67f
6
+ metadata.gz: b31bde2b0fa248f1f6b36105523c03668d3f9748ffff2a93c8ea625fbd3b9405b87b2a877205bc59b7ab65fae693a9502c822eb407f73ef5ce982020c9d40596
7
+ data.tar.gz: 3ad52dbd914ad8d210203d6ab88ecd1f4ac064430898a2f072ed3fa2ee9ddeacaf889d39757de0d547bd5ec95be291d358d36bf957c1f5e807e1518e3df3e267
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## [Unreleased]
1
+ ## [0.1.2] - 2025-07-17
2
+
3
+ - Fixed API endpoint for creating annotations to use `project_identifier` and `image_identifier` instead of `image_id`
4
+ - Fixed API endpoint for downloading exports to use `project_identifier` and `version` in the query string
5
+ - Updated version number to 0.1.2
2
6
 
3
7
  ## [0.1.1] - 2025-07-16
4
8
 
@@ -46,9 +46,10 @@ module Oslovision
46
46
  body = {
47
47
  url: image,
48
48
  split: split,
49
- status: status
49
+ status: status,
50
+ project_identifier: project_identifier
50
51
  }
51
- response = self.class.post("/projects/#{project_identifier}/images", body: body)
52
+ response = self.class.post("/images", body: body)
52
53
  else
53
54
  # Handle file upload
54
55
  file_data = prepare_file_data(image)
@@ -57,7 +58,7 @@ module Oslovision
57
58
  split: split,
58
59
  status: status
59
60
  }
60
- response = self.class.post("/projects/#{project_identifier}/images", body: body)
61
+ response = self.class.post("/images", body: body)
61
62
  end
62
63
 
63
64
  handle_response(response)
@@ -76,7 +77,8 @@ module Oslovision
76
77
  # @raise [Oslovision::APIError] If the API request fails
77
78
  def create_annotation(project_identifier, image_identifier, label, x0:, y0:, width_px:, height_px:)
78
79
  body = {
79
- image_id: image_identifier,
80
+ project_identifier: project_identifier,
81
+ image_identifier: image_identifier,
80
82
  label: label,
81
83
  x0: x0,
82
84
  y0: y0,
@@ -84,7 +86,7 @@ module Oslovision
84
86
  height_px: height_px
85
87
  }
86
88
 
87
- response = self.class.post("/projects/#{project_identifier}/annotations",
89
+ response = self.class.post("/annotations",
88
90
  body: body.to_json,
89
91
  headers: { "Content-Type" => "application/json" })
90
92
  handle_response(response)
@@ -98,7 +100,7 @@ module Oslovision
98
100
  # @return [String] The path to the downloaded export directory
99
101
  # @raise [Oslovision::APIError] If the API request fails
100
102
  def download_export(project_identifier, version, output_dir: ".")
101
- response = self.class.get("/projects/#{project_identifier}/exports/#{version}/download")
103
+ response = self.class.get("/exports/#{version}?project_identifier=#{project_identifier}")
102
104
 
103
105
  if response.success?
104
106
  zip_path = File.join(output_dir, "#{project_identifier}_v#{version}.zip")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Oslovision
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oslovision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alastair Brunton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-16 00:00:00.000000000 Z
11
+ date: 2025-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty