ruby_qb101 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b0b649aafacdad337f96dbf14623200f8dd57a5cbb399d207d93f8da8c343f27
4
+ data.tar.gz: db64744c473672a9a24f4330670db38b6786a95d6e33252e44d94b766826ca7e
5
+ SHA512:
6
+ metadata.gz: b0b982ce0239f9db76198b9f05761448d91fe2ebd6a5035b1b7e4f5cb950d64c8c7355093a23cde4c786bd603cdfeac5d2d62c5fb169fd05510ed8e60af7db02
7
+ data.tar.gz: 385fe459f3403c9ae7f26c5cc8a7db78f7e7c1be11b962cf7a33af6e7df9c228519bdb8b8f893e4798b743f2f6821be2c03e1adaf72e38a89c16c18027e8a7dd
checksums.yaml.gz.sig ADDED
Binary file
data/lib/ruby_qb101.rb ADDED
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: ruby_qb101.tb
4
+
5
+ # Description: Ruby related questions to ask Chat GPT. #experimental
6
+
7
+ require 'polyrex-headings'
8
+
9
+ QUESTIONS = <<-MARKDOWN
10
+
11
+ title: Questions to ask when learning the programming language Ruby
12
+ tags: ruby learning book questions answers
13
+
14
+ # Questions to ask when learning the programming language Ruby
15
+
16
+ ## Introduction to Programming
17
+
18
+ Write a table of contents for a programming language
19
+ What is an expression in a programming language?
20
+ What is a statement in a programming language?
21
+
22
+
23
+ ## Data types
24
+
25
+ Give me an example of using an integer in the programming language Ruby.
26
+ Give me an example of using a boolean in the programming language Ruby.
27
+
28
+
29
+ MARKDOWN
30
+
31
+ class Ruby_Qb101
32
+
33
+ def initialize(questions=QUESTIONS)
34
+
35
+ @questions = questions[/#.*/m]
36
+ s = '<?ph schema="book[title,tags]/section[x]"?>' + questions
37
+ @px = PolyrexHeadings.new(s, debug: false).to_polyrex
38
+
39
+ end
40
+
41
+ def question(id)
42
+
43
+ found = @px.find_by_id(id.to_s)
44
+ found.x if found
45
+
46
+ end
47
+
48
+ alias q question
49
+
50
+ def to_md()
51
+ @questions
52
+ end
53
+
54
+ def to_xml()
55
+ @px.to_xml(pretty: true)
56
+ end
57
+
58
+ end
59
+
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_qb101
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEljCCAv6gAwIBAgIBATANBgkqhkiG9w0BAQsFADBIMRIwEAYDVQQDDAlnZW1t
14
+ YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
+ 8ixkARkWAmV1MB4XDTIzMDIwNjA4MTIzMloXDTI0MDIwNjA4MTIzMlowSDESMBAG
16
+ A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
+ EjAQBgoJkiaJk/IsZAEZFgJldTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoC
18
+ ggGBAMwVkZCSlInB0EzIhJRqeif6WvPDilrFOGdo0lN+a+OAIne5c+ZzbqnBs0Pr
19
+ EfGqBBrbnkCic0wM3fViAxp52I+8V2SZb9YgxYTpkKv5hbqGfsd/1cDYd3lQPVs6
20
+ 8sfE0UAovzcBBhQJD8iGj/1+M1airKv4+/bIhF3wgU+0v4PowVMFYsX9x/24O4AN
21
+ n9ZpNu4HA73XzBZfZV3YkZa4toYy6BrNWRmtwRhsoDiTWQZ3yT37pOZTRZ8xqeq+
22
+ TPnQqkT0+hZBoMuZbdWa/AFhnddZUX5Dfo+lUF8u7/is7zwGSDyJ/YA77wC/NVtk
23
+ Gj1+JoQRP+Ba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41
+ - !ruby/object:Gem::Dependency
42
+ name: polyrex-headings
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.3'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.3.0
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0.3'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.3.0
61
+ description:
62
+ email: digital.robertson@gmail.com
63
+ executables: []
64
+ extensions: []
65
+ extra_rdoc_files: []
66
+ files:
67
+ - lib/ruby_qb101.rb
68
+ homepage: https://github.com/jrobertson/ruby_qb101
69
+ licenses:
70
+ - MIT
71
+ metadata: {}
72
+ post_install_message:
73
+ rdoc_options: []
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ requirements: []
87
+ rubygems_version: 3.4.4
88
+ signing_key:
89
+ specification_version: 4
90
+ summary: 'Ruby related questions to ask Chat GPT. #experimental'
91
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1 @@
1
+ TV��<��.�U����ߢ��g_J.�ۑ8o�Y=ßf?M�%�g]��bw�_J�l?��Y�C/NwE<*�5��p���e�rB��_�/�k�HK��� C(M����eۥy��10ǫ�x��K|��i8��<7r �eO�E��b�<��ǿd/���PW�u놢*(�{)���:0"4O������� �ͣ�7��V�8�B��n���Mb�Oo�}�0��x{!y�Mza�vr��K��=��Džd� �M~ß���P������!��_���p�Pa8l�f�>?�g���?��������(��`�U�jhoٛ�,5y :9H]h���R��կ����O�\jV{����z'���D��%�^E$�_�Y�Bbu�