aha_builder_core 1.0.10 → 1.0.11

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: 2f7d7e8eb61eea4472fc5960558e667e654e1cebaacddae46b1a01ed732298ef
4
- data.tar.gz: 535a6ddfcd22bf55c5b3a81f4e1763ea455e9e38a15f404c9faa7b7d2d9c4160
3
+ metadata.gz: e6e28bca46f39adb4867003b15c833849411798457acf1e1cd7992fbd5aacf8f
4
+ data.tar.gz: e408177a51f230e9bb730773a3e8ccd3d5748527098593d52b97b7ed0b282091
5
5
  SHA512:
6
- metadata.gz: 165ef19eb864fb64c1ee7518f6a3ae1a61da09781e99d31eecff2ce5a2d0f4a5d660c42afa4e62c33dc00892cd06f75642cd0de09e6852b79305504ec34997d2
7
- data.tar.gz: 3d0a95fafd99aab8e4973245512c48c7daa36333379a230a1d0206c9bcfed608948101205df65789587f37e24faacd890b26dd91e57af4a38365fe57a4480e4e
6
+ metadata.gz: ab9432062bfc10636c3c6b9ad84c56b2d3535fa7ddd74808a56a7efb5af6a86b631520efc3ea6e726bcc92f1a20fbfea200edcd19a131b59af780e5524406c2a
7
+ data.tar.gz: 93c391bcc6ca38d2143d2eb47cd7cec2db3d94c9406a0f6db4fc27418ad546281751318ab77659bcf9af87311fbc2eea29eafe8ca6a0e8da64c08e001f16810b
data/README.md CHANGED
@@ -178,3 +178,26 @@ rescue Aha::Auth::ApiError => e
178
178
  # Other API error, check e.status and e.body
179
179
  end
180
180
  ```
181
+
182
+ ## User Guide
183
+
184
+ Access user guide documentation created in Aha! for your application:
185
+
186
+ ```ruby
187
+ # List all user guide pages (metadata only)
188
+ result = Aha::UserGuide.list
189
+ guides = result[:guides] # Array of guide hashes
190
+
191
+ # Get a single guide with HTML content
192
+ guide = Aha::UserGuide.find(id)
193
+ html_content = guide["content_html"]
194
+ ```
195
+
196
+ ### Guide Structure
197
+
198
+ Each guide hash contains:
199
+ - `id` - Guide ID
200
+ - `name` - Guide title
201
+ - `parent_id` - Parent folder ID for building navigation
202
+ - `position` - Sort order
203
+ - `content_html` - HTML content (only in `find` response)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aha
4
4
  module Auth
5
- VERSION = "1.0.10"
5
+ VERSION = "1.0.11"
6
6
  end
7
7
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aha
4
+ module UserGuide
5
+ class << self
6
+ def list
7
+ response = client.send(:get, "/api/core/guides")
8
+ {
9
+ guides: response["guides"] || []
10
+ }
11
+ end
12
+
13
+ def find(id)
14
+ client.send(:get, "/api/core/guides/#{id}")
15
+ end
16
+
17
+ private
18
+
19
+ def client
20
+ Aha::Auth.send(:client)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "aha/auth"
4
+ require_relative "aha/user_guide"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aha_builder_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aha! Labs Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-14 00:00:00.000000000 Z
11
+ date: 2026-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -124,6 +124,7 @@ files:
124
124
  - lib/aha/auth/user.rb
125
125
  - lib/aha/auth/users_resource.rb
126
126
  - lib/aha/auth/version.rb
127
+ - lib/aha/user_guide.rb
127
128
  - lib/aha_builder_core.rb
128
129
  - lib/generators/aha_builder_core/auth/USAGE
129
130
  - lib/generators/aha_builder_core/auth/auth_generator.rb