studyguidemaker-url-tools 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 757cc7cc660af3fdb2c1cf34fe87de3492ddca200a8b635e998394860e524673
4
+ data.tar.gz: 4cbc8f0602b8c8472dae34bd3aa448942f4f5eb7f32d9d8fb2fd1f8842751d60
5
+ SHA512:
6
+ metadata.gz: 7fd39a24faa18f9ede7844a8ec5f03719e1253703b32bcbf263b372862cdaa8fca9eef3f7071b078e751c49ea816ea7e5bfcd27348c72165b069cf3db9b710f7
7
+ data.tar.gz: f421fdc39683d99b1f78696865c13946b727d4bb8c987afdc9cfc8eff9a952cbae3ed9a3fd12c498173121c822b51a04c5047f020f676cd923b2e2ee8353d001
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 bbwdadfg
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # studyguidemaker-url-tools
2
+
3
+ `studyguidemaker-url-tools` builds canonical HTTPS URLs for [Study Guide Maker](https://studyguidemaker.net/).
4
+
5
+ Offline URL builder for Study Guide Maker source, audience, flashcard, and quiz pages. Not an official SDK.
6
+
7
+ The helper only concatenates known page slugs. It does not call the site, upload files, or sign in.
8
+
9
+ ## JavaScript
10
+
11
+ ```js
12
+ import { pageUrl, pageUrl, sourceUrl, audienceUrl } from 'studyguidemaker-url-tools';
13
+
14
+ pageUrl('pricing'); // https://studyguidemaker.net/pricing
15
+ pageUrl('blog'); // https://studyguidemaker.net/blog
16
+ sourceUrl('pdf'); // https://studyguidemaker.net/from/pdf
17
+ audienceUrl('college-students'); // https://studyguidemaker.net/for/college-students
18
+ ```
19
+
20
+ ## Python
21
+
22
+ ```python
23
+ from studyguidemaker_url_tools import page_url, page_url, source_url, audience_url
24
+
25
+ page_url('pricing') # https://studyguidemaker.net/pricing
26
+ page_url('blog') # https://studyguidemaker.net/blog
27
+ source_url('pdf') # https://studyguidemaker.net/from/pdf
28
+ audience_url('college-students') # https://studyguidemaker.net/for/college-students
29
+ ```
30
+
31
+ The repository also contains equivalent Rust, PHP, and Go helpers, plus a small command that prints the same URLs.
32
+
33
+ Source: https://github.com/bbwdadfg/studyguidemaker-url-tools
34
+
35
+ License: MIT.
@@ -0,0 +1,29 @@
1
+ module StudyguidemakerUrlTools
2
+ BASE = "https://studyguidemaker.net"
3
+ PAGES = { "pricing" => "/pricing", "blog" => "/blog" }
4
+ def self.home_url
5
+ BASE + "/"
6
+ end
7
+
8
+ def self.page_url(name)
9
+ path = PAGES[name]
10
+ raise ArgumentError, "unknown page: #{name}" if path.nil?
11
+ BASE + path
12
+ end
13
+
14
+ def self.source_url(slug)
15
+ allowed = ["pdf", "powerpoint", "notes", "word"]
16
+ raise ArgumentError, "unknown source_url: #{slug}" unless allowed.include?(slug)
17
+ BASE + "/from/" + slug + ""
18
+ end
19
+ def self.audience_url(slug)
20
+ allowed = ["college-students", "high-school", "teachers"]
21
+ raise ArgumentError, "unknown audience_url: #{slug}" unless allowed.include?(slug)
22
+ BASE + "/for/" + slug + ""
23
+ end
24
+ def self.tool_url(slug)
25
+ allowed = ["flashcard-maker", "quiz-generator"]
26
+ raise ArgumentError, "unknown tool_url: #{slug}" unless allowed.include?(slug)
27
+ BASE + "/tools/" + slug + ""
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: studyguidemaker-url-tools
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - bbwdadfg
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Offline URL builder for Study Guide Maker source, audience, flashcard,
13
+ and quiz pages. Not an official SDK.
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - LICENSE
19
+ - README.md
20
+ - ruby/lib/studyguidemaker_url_tools.rb
21
+ homepage: https://studyguidemaker.net/
22
+ licenses:
23
+ - MIT
24
+ metadata:
25
+ homepage_uri: https://studyguidemaker.net/
26
+ source_code_uri: https://github.com/wangneo276-lgtm/studyguidemaker-url-tools
27
+ rdoc_options: []
28
+ require_paths:
29
+ - ruby/lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 4.0.11
42
+ specification_version: 4
43
+ summary: Offline URL helpers for Study Guide Maker
44
+ test_files: []