greeenboii 0.1.2 → 0.1.6

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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.idea/dataSources/28fe2501-d682-44de-9f2e-9ff4bf02ce84/storage_v2/_src_/schema/main.uQUzAA.meta +2 -0
  3. data/.idea/dataSources/28fe2501-d682-44de-9f2e-9ff4bf02ce84.xml +1617 -0
  4. data/.idea/dataSources.local.xml +18 -0
  5. data/.idea/dataSources.xml +12 -0
  6. data/.idea/greeenboii.iml +6 -0
  7. data/.idea/sqldialects.xml +7 -0
  8. data/.idea/workspace.xml +71 -39
  9. data/.rubocop.sorbet.yml +5 -0
  10. data/.rubocop.yml +36 -0
  11. data/Makefile +269 -0
  12. data/exe/greeenboii +1 -1
  13. data/greeenboii_todo.db +0 -0
  14. data/lib/greeenboii/version.rb +1 -1
  15. data/lib/greeenboii.rb +96 -7
  16. data/sig/greeenboii/todo_list.rbs +30 -0
  17. data/sorbet/rbi/gems/.gitattributes +1 -0
  18. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  19. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  20. data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +9 -0
  21. data/sorbet/rbi/gems/cli-ui@2.3.0.rbi +3181 -0
  22. data/sorbet/rbi/gems/console_table@0.3.1.rbi +78 -0
  23. data/sorbet/rbi/gems/csv@3.3.2.rbi +9 -0
  24. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  25. data/sorbet/rbi/gems/httparty@0.22.0.rbi +2115 -0
  26. data/sorbet/rbi/gems/json@2.10.1.rbi +2120 -0
  27. data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
  28. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
  29. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  30. data/sorbet/rbi/gems/minitest@5.25.4.rbi +1547 -0
  31. data/sorbet/rbi/gems/multi_xml@0.7.1.rbi +9 -0
  32. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  33. data/sorbet/rbi/gems/nokogiri@1.18.3.rbi +8205 -0
  34. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  35. data/sorbet/rbi/gems/parser@3.3.7.1.rbi +5525 -0
  36. data/sorbet/rbi/gems/prism@1.3.0.rbi +41403 -0
  37. data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
  38. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  39. data/sorbet/rbi/gems/rake-compiler@1.2.9.rbi +9 -0
  40. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  41. data/sorbet/rbi/gems/rbi@0.2.4.rbi +4542 -0
  42. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
  43. data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +7654 -0
  44. data/sorbet/rbi/gems/rubocop@1.72.2.rbi +61026 -0
  45. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  46. data/sorbet/rbi/gems/spoom@1.5.4.rbi +5026 -0
  47. data/sorbet/rbi/gems/sqlite3@2.6.0.rbi +1895 -0
  48. data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3656 -0
  49. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  50. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  51. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  52. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  53. data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
  54. data/sorbet/tapioca/require.rb +6 -0
  55. data/src/main.c +19 -0
  56. metadata +55 -8
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="dataSourceStorageLocal" created-in="RM-243.23654.167">
4
+ <data-source name="greeenboii_todo.db" uuid="28fe2501-d682-44de-9f2e-9ff4bf02ce84">
5
+ <database-info product="SQLite" version="3.45.1" jdbc-version="4.2" driver-name="SQLite JDBC" driver-version="3.45.1.0" dbms="SQLITE" exact-version="3.45.1" exact-driver-version="3.45">
6
+ <identifier-quote-string>&quot;</identifier-quote-string>
7
+ </database-info>
8
+ <case-sensitivity plain-identifiers="mixed" quoted-identifiers="mixed" />
9
+ <secret-storage>master_key</secret-storage>
10
+ <auth-provider>no-auth</auth-provider>
11
+ <schema-mapping>
12
+ <introspection-scope>
13
+ <node kind="schema" qname="@" />
14
+ </introspection-scope>
15
+ </schema-mapping>
16
+ </data-source>
17
+ </component>
18
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
4
+ <data-source source="LOCAL" name="greeenboii_todo.db" uuid="28fe2501-d682-44de-9f2e-9ff4bf02ce84">
5
+ <driver-ref>sqlite.xerial</driver-ref>
6
+ <synchronize>true</synchronize>
7
+ <jdbc-driver>org.sqlite.JDBC</jdbc-driver>
8
+ <jdbc-url>jdbc:sqlite:greeenboii_todo.db</jdbc-url>
9
+ <working-dir>$ProjectFileDir$</working-dir>
10
+ </data-source>
11
+ </component>
12
+ </project>
data/.idea/greeenboii.iml CHANGED
@@ -12,12 +12,18 @@
12
12
  <orderEntry type="jdk" jdkName="ruby-3.2.4-p170" jdkType="RUBY_SDK" />
13
13
  <orderEntry type="sourceFolder" forTests="false" />
14
14
  <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, ruby-3.2.4-p170) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="bigdecimal (v3.1.9, ruby-3.2.4-p170) [gem]" level="application" />
15
16
  <orderEntry type="library" scope="PROVIDED" name="bundler (v2.6.3, ruby-3.2.4-p170) [gem]" level="application" />
16
17
  <orderEntry type="library" scope="PROVIDED" name="cli-ui (v2.3.0, ruby-3.2.4-p170) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="console_table (v0.3.1, ruby-3.2.4-p170) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="csv (v3.3.2, ruby-3.2.4-p170) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="httparty (v0.22.0, ruby-3.2.4-p170) [gem]" level="application" />
17
21
  <orderEntry type="library" scope="PROVIDED" name="json (v2.10.1, ruby-3.2.4-p170) [gem]" level="application" />
18
22
  <orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.4, ruby-3.2.4-p170) [gem]" level="application" />
19
23
  <orderEntry type="library" scope="PROVIDED" name="mini_mime (v1.1.5, ruby-3.2.4-p170) [gem]" level="application" />
20
24
  <orderEntry type="library" scope="PROVIDED" name="minitest (v5.25.4, ruby-3.2.4-p170) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.7.1, ruby-3.2.4-p170) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.18.3, ruby-3.2.4-p170) [gem]" level="application" />
21
27
  <orderEntry type="library" scope="PROVIDED" name="parallel (v1.26.3, ruby-3.2.4-p170) [gem]" level="application" />
22
28
  <orderEntry type="library" scope="PROVIDED" name="parser (v3.3.7.1, ruby-3.2.4-p170) [gem]" level="application" />
23
29
  <orderEntry type="library" scope="PROVIDED" name="racc (v1.8.1, ruby-3.2.4-p170) [gem]" level="application" />
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="SqlDialectMappings">
4
+ <file url="file://$PROJECT_DIR$/lib/greeenboii.rb" dialect="SQLite" />
5
+ <file url="PROJECT" dialect="SQLite" />
6
+ </component>
7
+ </project>
data/.idea/workspace.xml CHANGED
@@ -4,14 +4,7 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="0fa98f61-8369-4575-be76-5316c7df88b7" name="Changes" comment="Add RBS classes for Error, Options, and Search modules">
8
- <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/Gemfile" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/exe/greeenboii" beforeDir="false" afterPath="$PROJECT_DIR$/exe/greeenboii" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/greeenboii.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/greeenboii.gemspec" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/lib/greeenboii/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/greeenboii/version.rb" afterDir="false" />
14
- </list>
7
+ <list default="true" id="0fa98f61-8369-4575-be76-5316c7df88b7" name="Changes" comment="Add RuboCop configuration for Sorbet and update gem dependencies" />
15
8
  <option name="SHOW_DIALOG" value="false" />
16
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
17
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -27,42 +20,48 @@
27
20
  <component name="Git.Settings">
28
21
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
29
22
  </component>
30
- <component name="GitHubPullRequestSearchHistory"><![CDATA[{
31
- "lastFilter": {
32
- "state": "OPEN",
33
- "assignee": "greeenboi"
23
+ <component name="GitHubPullRequestSearchHistory">{
24
+ &quot;lastFilter&quot;: {
25
+ &quot;state&quot;: &quot;OPEN&quot;,
26
+ &quot;assignee&quot;: &quot;greeenboi&quot;
34
27
  }
35
- }]]></component>
36
- <component name="GithubPullRequestsUISettings"><![CDATA[{
37
- "selectedUrlAndAccountId": {
38
- "url": "https://github.com/greeenboi/greeenboii.git",
39
- "accountId": "978466ca-1190-4215-a801-ef0a654296e3"
28
+ }</component>
29
+ <component name="GithubPullRequestsUISettings">{
30
+ &quot;selectedUrlAndAccountId&quot;: {
31
+ &quot;url&quot;: &quot;https://github.com/greeenboi/greeenboii.git&quot;,
32
+ &quot;accountId&quot;: &quot;978466ca-1190-4215-a801-ef0a654296e3&quot;
40
33
  }
41
- }]]></component>
42
- <component name="ProjectColorInfo"><![CDATA[{
43
- "associatedIndex": 4
44
- }]]></component>
34
+ }</component>
35
+ <component name="ProjectColorInfo">{
36
+ &quot;associatedIndex&quot;: 4
37
+ }</component>
45
38
  <component name="ProjectId" id="2tRLehb4s0tbSzZEro6guxVspsh" />
46
39
  <component name="ProjectViewState">
47
40
  <option name="hideEmptyMiddlePackages" value="true" />
48
41
  <option name="showLibraryContents" value="true" />
49
42
  </component>
50
- <component name="PropertiesComponent"><![CDATA[{
51
- "keyToString": {
52
- "RunOnceActivity.ShowReadmeOnStart": "true",
53
- "RunOnceActivity.git.unshallow": "true",
54
- "git-widget-placeholder": "main",
55
- "last_opened_file_path": "C:/Users/suvan/Downloads/cli-kit-example-main-yee/cli-kit-example-main",
56
- "node.js.detected.package.eslint": "true",
57
- "node.js.detected.package.tslint": "true",
58
- "node.js.selected.package.eslint": "(autodetect)",
59
- "node.js.selected.package.tslint": "(autodetect)",
60
- "nodejs_package_manager_path": "npm",
61
- "ruby.structure.view.model.defaults.configured": "true",
62
- "settings.editor.selected.configurable": "preferences.pluginManager",
63
- "vue.rearranger.settings.migration": "true"
43
+ <component name="PropertiesComponent">{
44
+ &quot;keyToString&quot;: {
45
+ &quot;Ruby.greeenboii.executor&quot;: &quot;Run&quot;,
46
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
47
+ &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
48
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
49
+ &quot;last_opened_file_path&quot;: &quot;C:/Users/suvan/Downloads/cli-kit-example-main-yee/cli-kit-example-main&quot;,
50
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
51
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
52
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
53
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
54
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
55
+ &quot;ruby.structure.view.model.defaults.configured&quot;: &quot;true&quot;,
56
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
57
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
58
+ },
59
+ &quot;keyToStringList&quot;: {
60
+ &quot;DatabaseDriversLRU&quot;: [
61
+ &quot;sqlite&quot;
62
+ ]
64
63
  }
65
- }]]></component>
64
+ }</component>
66
65
  <component name="SharedIndexes">
67
66
  <attachedChunks>
68
67
  <set>
@@ -79,7 +78,10 @@
79
78
  <option name="number" value="Default" />
80
79
  <option name="presentableId" value="Default" />
81
80
  <updated>1740310037191</updated>
82
- <workItem from="1740310038341" duration="12118000" />
81
+ <workItem from="1740310038341" duration="13422000" />
82
+ <workItem from="1740370363540" duration="1955000" />
83
+ <workItem from="1740374525187" duration="497000" />
84
+ <workItem from="1740375046749" duration="1249000" />
83
85
  </task>
84
86
  <task id="LOCAL-00001" summary="update branch for push events from master to production">
85
87
  <option name="closed" value="true" />
@@ -97,7 +99,31 @@
97
99
  <option name="project" value="LOCAL" />
98
100
  <updated>1740331580301</updated>
99
101
  </task>
100
- <option name="localTasksCounter" value="3" />
102
+ <task id="LOCAL-00003" summary="Add cli-ui gem dependency and update version to 0.1.2">
103
+ <option name="closed" value="true" />
104
+ <created>1740333019050</created>
105
+ <option name="number" value="00003" />
106
+ <option name="presentableId" value="LOCAL-00003" />
107
+ <option name="project" value="LOCAL" />
108
+ <updated>1740333019050</updated>
109
+ </task>
110
+ <task id="LOCAL-00004" summary="Add Makefile and main.c for greeenboii module initialization">
111
+ <option name="closed" value="true" />
112
+ <created>1740333983898</created>
113
+ <option name="number" value="00004" />
114
+ <option name="presentableId" value="LOCAL-00004" />
115
+ <option name="project" value="LOCAL" />
116
+ <updated>1740333983898</updated>
117
+ </task>
118
+ <task id="LOCAL-00005" summary="Add RuboCop configuration for Sorbet and update gem dependencies">
119
+ <option name="closed" value="true" />
120
+ <created>1740375460765</created>
121
+ <option name="number" value="00005" />
122
+ <option name="presentableId" value="LOCAL-00005" />
123
+ <option name="project" value="LOCAL" />
124
+ <updated>1740375460765</updated>
125
+ </task>
126
+ <option name="localTasksCounter" value="6" />
101
127
  <servers />
102
128
  </component>
103
129
  <component name="TypeScriptGeneratedFilesManager">
@@ -106,6 +132,12 @@
106
132
  <component name="VcsManagerConfiguration">
107
133
  <MESSAGE value="update branch for push events from master to production" />
108
134
  <MESSAGE value="Add RBS classes for Error, Options, and Search modules" />
109
- <option name="LAST_COMMIT_MESSAGE" value="Add RBS classes for Error, Options, and Search modules" />
135
+ <MESSAGE value="Add cli-ui gem dependency and update version to 0.1.2" />
136
+ <MESSAGE value="Add Makefile and main.c for greeenboii module initialization" />
137
+ <MESSAGE value="Add RuboCop configuration for Sorbet and update gem dependencies" />
138
+ <option name="LAST_COMMIT_MESSAGE" value="Add RuboCop configuration for Sorbet and update gem dependencies" />
139
+ </component>
140
+ <component name="com.intellij.coverage.CoverageDataManagerImpl">
141
+ <SUITE FILE_PATH="coverage/greeenboii@greeenboii.rcov" NAME="greeenboii Coverage Results" MODIFIED="1740333917319" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="greeenboii" />
110
142
  </component>
111
143
  </project>
@@ -0,0 +1,5 @@
1
+ Sorbet:
2
+ Enabled: true
3
+
4
+ Sorbet/ValidSigil:
5
+ Enabled: true
data/.rubocop.yml CHANGED
@@ -2,6 +2,42 @@ AllCops:
2
2
  TargetRubyVersion: 3.1
3
3
  NewCops: enable
4
4
 
5
+
6
+ Style/FrozenStringLiteralComment:
7
+ Enabled: false
8
+
9
+ # This doesn't understand that <<~ doesn't exist in 2.0
10
+ Layout/HeredocIndentation:
11
+ Enabled: false
12
+
13
+ # This doesn't take into account retrying from an exception
14
+ Lint/SuppressedException:
15
+ Enabled: false
16
+
17
+ # allow String.new to create mutable strings
18
+ Style/EmptyLiteral:
19
+ Enabled: false
20
+
21
+ # allow the use of globals which makes sense in a CLI app like this
22
+ Style/GlobalVars:
23
+ Enabled: false
24
+
25
+ # allow using %r{} for regexes
26
+ Style/RegexpLiteral:
27
+ Enabled: false
28
+
29
+ # allow readable Dev::Util.begin formatting
30
+ Style/MultilineBlockChain:
31
+ Enabled: false
32
+
33
+ # we prefer rescue to align with the beginning of the line containing begin, not begin itself
34
+ Layout/RescueEnsureAlignment:
35
+ Enabled: false
36
+
37
+ # We heavily manage output on purpose
38
+ Style/GlobalStdStream:
39
+ Enabled: false
40
+
5
41
  Style/StringLiterals:
6
42
  EnforcedStyle: double_quotes
7
43
 
data/Makefile ADDED
@@ -0,0 +1,269 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ # V=0 quiet, V=1 verbose. other values don't work.
5
+ V = 0
6
+ V0 = $(V:0=)
7
+ Q1 = $(V:1=)
8
+ Q = $(Q1:0=@)
9
+ ECHO1 = $(V:1=@ :)
10
+ ECHO = $(ECHO1:0=@ echo)
11
+ NULLCMD = :
12
+
13
+ #### Start of system configuration section. ####
14
+
15
+ srcdir = ext/greeenboii
16
+ topdir = /usr/share/rvm/rubies/ruby-3.2.4/include/ruby-3.2.0
17
+ hdrdir = $(topdir)
18
+ arch_hdrdir = /usr/share/rvm/rubies/ruby-3.2.4/include/ruby-3.2.0/x86_64-linux
19
+ PATH_SEPARATOR = :
20
+ VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
21
+ prefix = $(DESTDIR)/usr/share/rvm/rubies/ruby-3.2.4
22
+ rubysitearchprefix = $(rubylibprefix)/$(sitearch)
23
+ rubyarchprefix = $(rubylibprefix)/$(arch)
24
+ rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
25
+ exec_prefix = $(prefix)
26
+ vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
27
+ sitearchhdrdir = $(sitehdrdir)/$(sitearch)
28
+ rubyarchhdrdir = $(rubyhdrdir)/$(arch)
29
+ vendorhdrdir = $(rubyhdrdir)/vendor_ruby
30
+ sitehdrdir = $(rubyhdrdir)/site_ruby
31
+ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
32
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
33
+ vendorlibdir = $(vendordir)/$(ruby_version)
34
+ vendordir = $(rubylibprefix)/vendor_ruby
35
+ sitearchdir = $(sitelibdir)/$(sitearch)
36
+ sitelibdir = $(sitedir)/$(ruby_version)
37
+ sitedir = $(rubylibprefix)/site_ruby
38
+ rubyarchdir = $(rubylibdir)/$(arch)
39
+ rubylibdir = $(rubylibprefix)/$(ruby_version)
40
+ sitearchincludedir = $(includedir)/$(sitearch)
41
+ archincludedir = $(includedir)/$(arch)
42
+ sitearchlibdir = $(libdir)/$(sitearch)
43
+ archlibdir = $(libdir)/$(arch)
44
+ ridir = $(datarootdir)/$(RI_BASE_NAME)
45
+ mandir = $(datarootdir)/man
46
+ localedir = $(datarootdir)/locale
47
+ libdir = $(exec_prefix)/lib
48
+ psdir = $(docdir)
49
+ pdfdir = $(docdir)
50
+ dvidir = $(docdir)
51
+ htmldir = $(docdir)
52
+ infodir = $(datarootdir)/info
53
+ docdir = $(datarootdir)/doc/$(PACKAGE)
54
+ oldincludedir = $(DESTDIR)/usr/include
55
+ includedir = $(prefix)/include
56
+ runstatedir = $(localstatedir)/run
57
+ localstatedir = $(prefix)/var
58
+ sharedstatedir = $(prefix)/com
59
+ sysconfdir = $(DESTDIR)/etc
60
+ datadir = $(datarootdir)
61
+ datarootdir = $(prefix)/share
62
+ libexecdir = $(exec_prefix)/libexec
63
+ sbindir = $(exec_prefix)/sbin
64
+ bindir = $(exec_prefix)/bin
65
+ archdir = $(rubyarchdir)
66
+
67
+
68
+ CC_WRAPPER =
69
+ CC = gcc
70
+ CXX = g++
71
+ LIBRUBY = $(LIBRUBY_SO)
72
+ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
73
+ LIBRUBYARG_SHARED = -Wl,-rpath,'$${ORIGIN}/../lib' -Wl,-rpath,'$${ORIGIN}/../lib' -l$(RUBY_SO_NAME)
74
+ LIBRUBYARG_STATIC = -Wl,-rpath,'$${ORIGIN}/../lib' -Wl,-rpath,'$${ORIGIN}/../lib' -l$(RUBY_SO_NAME)-static $(MAINLIBS)
75
+ empty =
76
+ OUTFLAG = -o $(empty)
77
+ COUTFLAG = -o $(empty)
78
+ CSRCFLAG = $(empty)
79
+
80
+ RUBY_EXTCONF_H =
81
+ cflags = $(optflags) $(debugflags) $(warnflags)
82
+ cxxflags =
83
+ optflags = -O3 -fno-fast-math
84
+ debugflags = -ggdb3
85
+ warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef
86
+ cppflags =
87
+ CCDLFLAGS = -fPIC
88
+ CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC -fvisibility=hidden $(ARCH_FLAG)
89
+ INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
90
+ DEFS =
91
+ CPPFLAGS = $(DEFS) $(cppflags)
92
+ CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
93
+ ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
94
+ dldflags = -Wl,--compress-debug-sections=zlib
95
+ ARCH_FLAG =
96
+ DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
97
+ LDSHARED = $(CC) -shared
98
+ LDSHAREDXX = $(CXX) -shared
99
+ AR = gcc-ar
100
+ EXEEXT =
101
+
102
+ RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
103
+ RUBY_SO_NAME = ruby
104
+ RUBYW_INSTALL_NAME =
105
+ RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
106
+ RUBYW_BASE_NAME = rubyw
107
+ RUBY_BASE_NAME = ruby
108
+
109
+ arch = x86_64-linux
110
+ sitearch = $(arch)
111
+ ruby_version = 3.2.0
112
+ ruby = $(bindir)/$(RUBY_BASE_NAME)
113
+ RUBY = $(ruby)
114
+ BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME)
115
+ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
116
+
117
+ RM = rm -f
118
+ RM_RF = rm -fr
119
+ RMDIRS = rmdir --ignore-fail-on-non-empty -p
120
+ MAKEDIRS = /usr/bin/mkdir -p
121
+ INSTALL = /usr/bin/install
122
+ INSTALL_PROG = $(INSTALL) -m 0755
123
+ INSTALL_DATA = $(INSTALL) -m 644
124
+ COPY = cp
125
+ TOUCH = exit >
126
+
127
+ #### End of system configuration section. ####
128
+
129
+ preload =
130
+ libpath = . $(libdir)
131
+ LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir)
132
+ DEFFILE =
133
+
134
+ CLEANFILES = mkmf.log
135
+ DISTCLEANFILES =
136
+ DISTCLEANDIRS =
137
+
138
+ extout =
139
+ extout_prefix =
140
+ target_prefix = /greeenboii
141
+ LOCAL_LIBS =
142
+ LIBS = $(LIBRUBYARG_SHARED) -lm -lpthread -lc
143
+ ORIG_SRCS = greeenboii.c
144
+ SRCS = $(ORIG_SRCS)
145
+ OBJS = greeenboii.o
146
+ HDRS = $(srcdir)/greeenboii.h
147
+ LOCAL_HDRS =
148
+ TARGET = greeenboii
149
+ TARGET_NAME = greeenboii
150
+ TARGET_ENTRY = Init_$(TARGET_NAME)
151
+ DLLIB = $(TARGET).so
152
+ EXTSTATIC =
153
+ STATIC_LIB =
154
+
155
+ TIMESTAMP_DIR = .
156
+ BINDIR = $(bindir)
157
+ RUBYCOMMONDIR = $(sitedir)$(target_prefix)
158
+ RUBYLIBDIR = $(sitelibdir)$(target_prefix)
159
+ RUBYARCHDIR = $(sitearchdir)$(target_prefix)
160
+ HDRDIR = $(sitehdrdir)$(target_prefix)
161
+ ARCHHDRDIR = $(sitearchhdrdir)$(target_prefix)
162
+ TARGET_SO_DIR =
163
+ TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
164
+ CLEANLIBS = $(TARGET_SO) false
165
+ CLEANOBJS = $(OBJS) *.bak
166
+ TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.-.greeenboii.time
167
+
168
+ all: $(DLLIB)
169
+ static: $(STATIC_LIB)
170
+ .PHONY: all install static install-so install-rb
171
+ .PHONY: clean clean-so clean-static clean-rb
172
+
173
+ clean-static::
174
+ clean-rb-default::
175
+ clean-rb::
176
+ clean-so::
177
+ clean: clean-so clean-static clean-rb-default clean-rb
178
+ -$(Q)$(RM_RF) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
179
+
180
+ distclean-rb-default::
181
+ distclean-rb::
182
+ distclean-so::
183
+ distclean-static::
184
+ distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
185
+ -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
186
+ -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
187
+ -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
188
+
189
+ realclean: distclean
190
+ install: install-so install-rb
191
+
192
+ install-so: $(DLLIB) $(TARGET_SO_DIR_TIMESTAMP)
193
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
194
+ clean-static::
195
+ -$(Q)$(RM) $(STATIC_LIB)
196
+ install-rb: pre-install-rb do-install-rb install-rb-default
197
+ install-rb-default: pre-install-rb-default do-install-rb-default
198
+ pre-install-rb: Makefile
199
+ pre-install-rb-default: Makefile
200
+ do-install-rb:
201
+ do-install-rb-default:
202
+ pre-install-rb-default:
203
+ @$(NULLCMD)
204
+ $(TARGET_SO_DIR_TIMESTAMP):
205
+ $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
206
+ $(Q) $(TOUCH) $@
207
+
208
+ site-install: site-install-so site-install-rb
209
+ site-install-so: install-so
210
+ site-install-rb: install-rb
211
+
212
+ .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
213
+
214
+ .cc.o:
215
+ $(ECHO) compiling $(<)
216
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
217
+
218
+ .cc.S:
219
+ $(ECHO) translating $(<)
220
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
221
+
222
+ .mm.o:
223
+ $(ECHO) compiling $(<)
224
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
225
+
226
+ .mm.S:
227
+ $(ECHO) translating $(<)
228
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
229
+
230
+ .cxx.o:
231
+ $(ECHO) compiling $(<)
232
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
233
+
234
+ .cxx.S:
235
+ $(ECHO) translating $(<)
236
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
237
+
238
+ .cpp.o:
239
+ $(ECHO) compiling $(<)
240
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
241
+
242
+ .cpp.S:
243
+ $(ECHO) translating $(<)
244
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
245
+
246
+ .c.o:
247
+ $(ECHO) compiling $(<)
248
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
249
+
250
+ .c.S:
251
+ $(ECHO) translating $(<)
252
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
253
+
254
+ .m.o:
255
+ $(ECHO) compiling $(<)
256
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
257
+
258
+ .m.S:
259
+ $(ECHO) translating $(<)
260
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
261
+
262
+ $(TARGET_SO): $(OBJS) Makefile
263
+ $(ECHO) linking shared-object greeenboii/$(DLLIB)
264
+ -$(Q)$(RM) $(@)
265
+ $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
266
+
267
+
268
+
269
+ $(OBJS): $(HDRS) $(ruby_headers)
data/exe/greeenboii CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require_relative '../lib/greeenboii'
4
+ require_relative "../lib/greeenboii"
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Greeenboii
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.6"
5
5
  end