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.
- checksums.yaml +4 -4
- data/.idea/dataSources/28fe2501-d682-44de-9f2e-9ff4bf02ce84/storage_v2/_src_/schema/main.uQUzAA.meta +2 -0
- data/.idea/dataSources/28fe2501-d682-44de-9f2e-9ff4bf02ce84.xml +1617 -0
- data/.idea/dataSources.local.xml +18 -0
- data/.idea/dataSources.xml +12 -0
- data/.idea/greeenboii.iml +6 -0
- data/.idea/sqldialects.xml +7 -0
- data/.idea/workspace.xml +71 -39
- data/.rubocop.sorbet.yml +5 -0
- data/.rubocop.yml +36 -0
- data/Makefile +269 -0
- data/exe/greeenboii +1 -1
- data/greeenboii_todo.db +0 -0
- data/lib/greeenboii/version.rb +1 -1
- data/lib/greeenboii.rb +96 -7
- data/sig/greeenboii/todo_list.rbs +30 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +9 -0
- data/sorbet/rbi/gems/cli-ui@2.3.0.rbi +3181 -0
- data/sorbet/rbi/gems/console_table@0.3.1.rbi +78 -0
- data/sorbet/rbi/gems/csv@3.3.2.rbi +9 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/httparty@0.22.0.rbi +2115 -0
- data/sorbet/rbi/gems/json@2.10.1.rbi +2120 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
- data/sorbet/rbi/gems/minitest@5.25.4.rbi +1547 -0
- data/sorbet/rbi/gems/multi_xml@0.7.1.rbi +9 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nokogiri@1.18.3.rbi +8205 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
- data/sorbet/rbi/gems/parser@3.3.7.1.rbi +5525 -0
- data/sorbet/rbi/gems/prism@1.3.0.rbi +41403 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake-compiler@1.2.9.rbi +9 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
- data/sorbet/rbi/gems/rbi@0.2.4.rbi +4542 -0
- data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
- data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +7654 -0
- data/sorbet/rbi/gems/rubocop@1.72.2.rbi +61026 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/spoom@1.5.4.rbi +5026 -0
- data/sorbet/rbi/gems/sqlite3@2.6.0.rbi +1895 -0
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3656 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
- data/sorbet/tapioca/require.rb +6 -0
- data/src/main.c +19 -0
- 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>"</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" />
|
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
|
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"
|
31
|
-
|
32
|
-
|
33
|
-
|
23
|
+
<component name="GitHubPullRequestSearchHistory">{
|
24
|
+
"lastFilter": {
|
25
|
+
"state": "OPEN",
|
26
|
+
"assignee": "greeenboi"
|
34
27
|
}
|
35
|
-
}
|
36
|
-
<component name="GithubPullRequestsUISettings"
|
37
|
-
|
38
|
-
|
39
|
-
|
28
|
+
}</component>
|
29
|
+
<component name="GithubPullRequestsUISettings">{
|
30
|
+
"selectedUrlAndAccountId": {
|
31
|
+
"url": "https://github.com/greeenboi/greeenboii.git",
|
32
|
+
"accountId": "978466ca-1190-4215-a801-ef0a654296e3"
|
40
33
|
}
|
41
|
-
}
|
42
|
-
<component name="ProjectColorInfo"
|
43
|
-
|
44
|
-
}
|
34
|
+
}</component>
|
35
|
+
<component name="ProjectColorInfo">{
|
36
|
+
"associatedIndex": 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"
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
43
|
+
<component name="PropertiesComponent">{
|
44
|
+
"keyToString": {
|
45
|
+
"Ruby.greeenboii.executor": "Run",
|
46
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
47
|
+
"RunOnceActivity.git.unshallow": "true",
|
48
|
+
"git-widget-placeholder": "main",
|
49
|
+
"last_opened_file_path": "C:/Users/suvan/Downloads/cli-kit-example-main-yee/cli-kit-example-main",
|
50
|
+
"node.js.detected.package.eslint": "true",
|
51
|
+
"node.js.detected.package.tslint": "true",
|
52
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
53
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
54
|
+
"nodejs_package_manager_path": "npm",
|
55
|
+
"ruby.structure.view.model.defaults.configured": "true",
|
56
|
+
"settings.editor.selected.configurable": "preferences.pluginManager",
|
57
|
+
"vue.rearranger.settings.migration": "true"
|
58
|
+
},
|
59
|
+
"keyToStringList": {
|
60
|
+
"DatabaseDriversLRU": [
|
61
|
+
"sqlite"
|
62
|
+
]
|
64
63
|
}
|
65
|
-
}
|
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="
|
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
|
-
<
|
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
|
-
<
|
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>
|
data/.rubocop.sorbet.yml
ADDED
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
data/greeenboii_todo.db
ADDED
Binary file
|
data/lib/greeenboii/version.rb
CHANGED