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 +4 -4
- data/README.md +23 -0
- data/lib/aha/auth/version.rb +1 -1
- data/lib/aha/user_guide.rb +24 -0
- data/lib/aha_builder_core.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6e28bca46f39adb4867003b15c833849411798457acf1e1cd7992fbd5aacf8f
|
|
4
|
+
data.tar.gz: e408177a51f230e9bb730773a3e8ccd3d5748527098593d52b97b7ed0b282091
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
data/lib/aha/auth/version.rb
CHANGED
|
@@ -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
|
data/lib/aha_builder_core.rb
CHANGED
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.
|
|
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-
|
|
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
|