greeenboii 0.1.2 → 0.1.5

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.
@@ -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" />
File without changes
data/.idea/modules.xml CHANGED
File without changes
@@ -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/vcs.xml CHANGED
File without changes
data/.idea/workspace.xml CHANGED
@@ -4,12 +4,12 @@
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">
7
+ <list default="true" id="0fa98f61-8369-4575-be76-5316c7df88b7" name="Changes" comment="Add Makefile and main.c for greeenboii module initialization">
8
+ <change beforePath="$PROJECT_DIR$/.idea/greeenboii.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/greeenboii.iml" afterDir="false" />
8
9
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
10
  <change beforePath="$PROJECT_DIR$/Gemfile" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile" afterDir="false" />
10
11
  <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" />
12
+ <change beforePath="$PROJECT_DIR$/lib/greeenboii.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/greeenboii.rb" afterDir="false" />
13
13
  <change beforePath="$PROJECT_DIR$/lib/greeenboii/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/greeenboii/version.rb" afterDir="false" />
14
14
  </list>
15
15
  <option name="SHOW_DIALOG" value="false" />
@@ -27,21 +27,21 @@
27
27
  <component name="Git.Settings">
28
28
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
29
29
  </component>
30
- <component name="GitHubPullRequestSearchHistory"><![CDATA[{
31
- "lastFilter": {
32
- "state": "OPEN",
33
- "assignee": "greeenboi"
30
+ <component name="GitHubPullRequestSearchHistory">{
31
+ &quot;lastFilter&quot;: {
32
+ &quot;state&quot;: &quot;OPEN&quot;,
33
+ &quot;assignee&quot;: &quot;greeenboi&quot;
34
34
  }
35
- }]]></component>
36
- <component name="GithubPullRequestsUISettings"><![CDATA[{
37
- "selectedUrlAndAccountId": {
38
- "url": "https://github.com/greeenboi/greeenboii.git",
39
- "accountId": "978466ca-1190-4215-a801-ef0a654296e3"
35
+ }</component>
36
+ <component name="GithubPullRequestsUISettings">{
37
+ &quot;selectedUrlAndAccountId&quot;: {
38
+ &quot;url&quot;: &quot;https://github.com/greeenboi/greeenboii.git&quot;,
39
+ &quot;accountId&quot;: &quot;978466ca-1190-4215-a801-ef0a654296e3&quot;
40
40
  }
41
- }]]></component>
42
- <component name="ProjectColorInfo"><![CDATA[{
43
- "associatedIndex": 4
44
- }]]></component>
41
+ }</component>
42
+ <component name="ProjectColorInfo">{
43
+ &quot;associatedIndex&quot;: 4
44
+ }</component>
45
45
  <component name="ProjectId" id="2tRLehb4s0tbSzZEro6guxVspsh" />
46
46
  <component name="ProjectViewState">
47
47
  <option name="hideEmptyMiddlePackages" value="true" />
@@ -49,6 +49,7 @@
49
49
  </component>
50
50
  <component name="PropertiesComponent"><![CDATA[{
51
51
  "keyToString": {
52
+ "Ruby.greeenboii.executor": "Run",
52
53
  "RunOnceActivity.ShowReadmeOnStart": "true",
53
54
  "RunOnceActivity.git.unshallow": "true",
54
55
  "git-widget-placeholder": "main",
@@ -61,6 +62,11 @@
61
62
  "ruby.structure.view.model.defaults.configured": "true",
62
63
  "settings.editor.selected.configurable": "preferences.pluginManager",
63
64
  "vue.rearranger.settings.migration": "true"
65
+ },
66
+ "keyToStringList": {
67
+ "DatabaseDriversLRU": [
68
+ "sqlite"
69
+ ]
64
70
  }
65
71
  }]]></component>
66
72
  <component name="SharedIndexes">
@@ -79,7 +85,8 @@
79
85
  <option name="number" value="Default" />
80
86
  <option name="presentableId" value="Default" />
81
87
  <updated>1740310037191</updated>
82
- <workItem from="1740310038341" duration="12118000" />
88
+ <workItem from="1740310038341" duration="13422000" />
89
+ <workItem from="1740370363540" duration="1662000" />
83
90
  </task>
84
91
  <task id="LOCAL-00001" summary="update branch for push events from master to production">
85
92
  <option name="closed" value="true" />
@@ -97,7 +104,23 @@
97
104
  <option name="project" value="LOCAL" />
98
105
  <updated>1740331580301</updated>
99
106
  </task>
100
- <option name="localTasksCounter" value="3" />
107
+ <task id="LOCAL-00003" summary="Add cli-ui gem dependency and update version to 0.1.2">
108
+ <option name="closed" value="true" />
109
+ <created>1740333019050</created>
110
+ <option name="number" value="00003" />
111
+ <option name="presentableId" value="LOCAL-00003" />
112
+ <option name="project" value="LOCAL" />
113
+ <updated>1740333019050</updated>
114
+ </task>
115
+ <task id="LOCAL-00004" summary="Add Makefile and main.c for greeenboii module initialization">
116
+ <option name="closed" value="true" />
117
+ <created>1740333983898</created>
118
+ <option name="number" value="00004" />
119
+ <option name="presentableId" value="LOCAL-00004" />
120
+ <option name="project" value="LOCAL" />
121
+ <updated>1740333983898</updated>
122
+ </task>
123
+ <option name="localTasksCounter" value="5" />
101
124
  <servers />
102
125
  </component>
103
126
  <component name="TypeScriptGeneratedFilesManager">
@@ -106,6 +129,11 @@
106
129
  <component name="VcsManagerConfiguration">
107
130
  <MESSAGE value="update branch for push events from master to production" />
108
131
  <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" />
132
+ <MESSAGE value="Add cli-ui gem dependency and update version to 0.1.2" />
133
+ <MESSAGE value="Add Makefile and main.c for greeenboii module initialization" />
134
+ <option name="LAST_COMMIT_MESSAGE" value="Add Makefile and main.c for greeenboii module initialization" />
135
+ </component>
136
+ <component name="com.intellij.coverage.CoverageDataManagerImpl">
137
+ <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
138
  </component>
111
139
  </project>
data/.rubocop.yml CHANGED
File without changes
data/CHANGELOG.md CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/CONTRIBUTING.md CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
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/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/exe/greeenboii CHANGED
File without changes
File without changes
File without changes
File without changes
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.5"
5
5
  end
data/lib/greeenboii.rb CHANGED
@@ -8,6 +8,8 @@ require "console_table"
8
8
  require "nokogiri"
9
9
  require "httparty"
10
10
 
11
+ require "sqlite3"
12
+
11
13
  module Greeenboii
12
14
  class Error < StandardError; end
13
15
 
@@ -111,6 +113,92 @@ module Greeenboii
111
113
  end
112
114
  end
113
115
 
116
+ class TodoList
117
+ def initialize
118
+ @db = setup_database
119
+ end
120
+
121
+ private def setup_database
122
+ db = SQLite3::Database.new("greeenboii_todo.db")
123
+ db.execute <<~SQL
124
+ CREATE TABLE IF NOT EXISTS todos (
125
+ id INTEGER PRIMARY KEY,
126
+ title TEXT NOT NULL,
127
+ completed BOOLEAN DEFAULT 0,
128
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP
129
+ )
130
+ SQL
131
+ db
132
+ end
133
+
134
+ def add_task
135
+ title = CLI::UI.ask("Enter task title:")
136
+ return if title.empty?
137
+
138
+ @db.execute("INSERT INTO todos (title) VALUES (?)", [title])
139
+ puts CLI::UI.fmt "{{green:✓}} Task added successfully!"
140
+ end
141
+
142
+ def list_tasks
143
+ tasks = @db.execute("SELECT id, title, completed, created_at FROM todos ORDER BY created_at DESC")
144
+ if tasks.empty?
145
+ puts CLI::UI.fmt "{{yellow:⚠}} No tasks found"
146
+ return
147
+ end
148
+
149
+ ConsoleTable.define(%w[ID Title Status Created]) do |table|
150
+ tasks.each do |id, title, completed, created_at|
151
+ status = completed == 1 ? "{{green:✓}} Done" : "{{red:✗}} Pending"
152
+ table << [id, title, CLI::UI.fmt(status), created_at]
153
+ end
154
+ end
155
+ end
156
+
157
+ def mark_done
158
+ list_tasks
159
+ id = CLI::UI.ask("Enter task ID to mark as done:")
160
+ return if id.empty?
161
+
162
+ @db.execute("UPDATE todos SET completed = 1 WHERE id = ?", [id])
163
+ puts CLI::UI.fmt "{{green:✓}} Task marked as done!"
164
+ end
165
+
166
+ def delete_task
167
+ list_tasks
168
+ id = CLI::UI.ask("Enter task ID to delete:")
169
+ return if id.empty?
170
+
171
+ @db.execute("DELETE FROM todos WHERE id = ?", [id])
172
+ puts CLI::UI.fmt "{{green:✓}} Task deleted!"
173
+ end
174
+
175
+ def update_task
176
+ list_tasks
177
+ id = CLI::UI.ask("Enter task ID to update:")
178
+ return if id.empty?
179
+
180
+ title = CLI::UI.ask("Enter new title:")
181
+ return if title.empty?
182
+
183
+ @db.execute("UPDATE todos SET title = ? WHERE id = ?", [title, id])
184
+ puts CLI::UI.fmt "{{green:✓}} Task updated!"
185
+ end
186
+
187
+ def show_menu
188
+ CLI::UI::Frame.divider('{{v}} Todo List')
189
+ loop do
190
+ CLI::UI::Prompt.ask("Todo List Options:") do |handler|
191
+ handler.option("List Tasks") { list_tasks }
192
+ handler.option("Add Task") { add_task }
193
+ handler.option("Mark Done") { mark_done }
194
+ handler.option("Update Task") { update_task }
195
+ handler.option("Delete Task") { delete_task }
196
+ handler.option("Exit") { return }
197
+ end
198
+ end
199
+ end
200
+ end
201
+
114
202
  class Options
115
203
  def self.show_options
116
204
  CLI::UI::Prompt.instructions_color = CLI::UI::Color::GRAY
@@ -119,8 +207,8 @@ module Greeenboii
119
207
  handler.option("{{gray:Search Files}}") { |selection| puts "Placeholder, Replaced soon. #{selection}" }
120
208
  handler.option("{{gray:Search Directory}}") { |selection| puts "Placeholder, Replaced soon. #{selection}" }
121
209
  handler.option("{{gray:Search Content}}") { |selection| puts "Placeholder, Replaced soon. #{selection}" }
122
- handler.option("{{gray:Search History}}") { |selection| puts "Placeholder, Replaced soon. #{selection}" }
123
- handler.option("{{cyan:Network Search}}") { |_selection| Search.perform_search }
210
+ handler.option("{{yellow:Todo List}}") { |_selection| TodoList.new.show_menu }
211
+ handler.option("{{cyan:Search Engine}}") { |_selection| Search.perform_search }
124
212
  handler.option("{{red:Exit}}") { |_selection| exit }
125
213
  end
126
214
  end
File without changes
File without changes
data/sig/greeenboii.rbs CHANGED
File without changes
data/sorbet/config CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/src/main.c ADDED
@@ -0,0 +1,19 @@
1
+ #include <stdio.h>
2
+ #include "greeenboii.h"
3
+
4
+ int main(void) {
5
+ // Initialize the Ruby interpreter.
6
+ ruby_init();
7
+
8
+ // Call the native extension initialization function.
9
+ // This registers the Ruby module defined in the C extension.
10
+ Init_greeenboii();
11
+
12
+ // Your application logic can go here.
13
+ printf("Greeenboii module successfully initialized!\n");
14
+
15
+ // Finalize the Ruby interpreter.
16
+ ruby_finalize();
17
+
18
+ return 0;
19
+ }