pylon-api 0.1.0 → 0.2.0

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: fcfe4ab02c112c8898998add96fc34ff4846029b2fc10bf2e2ce13c1f907a565
4
- data.tar.gz: d8fd25a0307bbdc62e1a8921a95cf5859382f52d27303d25fec825db7f416ee7
3
+ metadata.gz: 6c5b1f37ba1c9f84dbf0f1f0dd9064e85a5b64a0fe327ad3013e40dadb069d8c
4
+ data.tar.gz: 7800d67a2bcc68f30e73a1d1558296c69e2f51e45b5a19ab6316d8b9b2ce1807
5
5
  SHA512:
6
- metadata.gz: 7205621d5fe56ec66b58974d632eaa03e5be978a42e508656ad59583d499d348eef1ae91e6838da9f2ee3f9add0113f7e45151cce4578aebcd786cb2065a86ff
7
- data.tar.gz: d0bd80e6ba44a85fb9d083263cf0ae74904d5fce043fb18de248cf6e4ff8807905b4dedc5508afc05af9c293c1b2f8778b860602969c48992b58a7896fe01c6a
6
+ metadata.gz: ba0a41a8d95c55dc0f02b1a7e165a28f2cca04dac895d9923ccd9edeb0226ca7d67429d4dfd5f0ae7e124462fc028679b311340769d2d18f559897412b06846a
7
+ data.tar.gz: f3da4554aba19d6eca7058b075a1e40746e05fe3207dd1cd6257eba4a08f99b548341e1aeac594b95bfc5a87252c79d810d10be1c4331bb1a45737474a16efea
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.2.0] - 2024-03-21
8
+
9
+ ### Added
10
+ - Added `snooze_issue` method to support the new issue snooze endpoint
11
+
7
12
  ## [0.1.0] - 2024-03-21
8
13
 
9
14
  ### Added
@@ -31,4 +36,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
36
  - YARD documentation for all methods
32
37
  - MIT License
33
38
 
39
+ [0.2.0]: https://github.com/benjodo/pylon-api/compare/v0.1.0...v0.2.0
34
40
  [0.1.0]: https://github.com/benjodo/pylon-api/releases/tag/v0.1.0
data/lib/pylon/client.rb CHANGED
@@ -154,6 +154,15 @@ module Pylon
154
154
  patch("/issues/#{issue_id}", body: params)
155
155
  end
156
156
 
157
+ # Snooze an issue until a specified time
158
+ #
159
+ # @param issue_id [String] The ID or number of the issue to snooze
160
+ # @param snooze_until [String] The date and time to snooze the issue until (RFC3339 format)
161
+ # @return [Hash] Updated issue details
162
+ def snooze_issue(issue_id, snooze_until:)
163
+ post("/issues/#{issue_id}/snooze", body: { snooze_until: snooze_until })
164
+ end
165
+
157
166
  # List all knowledge base articles with pagination
158
167
  #
159
168
  # @param page [Integer] Page number for pagination
data/lib/pylon/version.rb CHANGED
@@ -4,7 +4,7 @@ module Pylon
4
4
  # Major version for breaking changes
5
5
  MAJOR = 0
6
6
  # Minor version for new features
7
- MINOR = 1
7
+ MINOR = 2
8
8
  # Patch version for bug fixes
9
9
  PATCH = 0
10
10
  # Pre-release version (optional)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pylon-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Odom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-27 00:00:00.000000000 Z
11
+ date: 2025-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.3.7
148
+ rubygems_version: 3.5.22
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Ruby client for the Pylon API