cuchinizer 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.idea/workspace.xml +106 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +90 -0
- data/Rakefile +1 -0
- data/cuchinizer.gemspec +20 -0
- data/lib/cuchinizer.rb +24 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 92fc518df5b41e14ea04cc6145cdc591befefbdea2896c054987abdc417392d4
|
4
|
+
data.tar.gz: f39756a12dd459ebfd67af125e9fd249e9c32115afea8a7a0b358483e894a887
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 83f63b7163e89430205c5ea9e7addd9014b3c8266c866e3f73e05b53f575e67e3ed6acec8775842ad34d7babac6283079bf022683ae25c45a57211bb25173f67
|
7
|
+
data.tar.gz: 199df905a1db90185b3c24ed7037fd6c2719708c4f3efc7cb8fc66b8c2739e81211e2e02a118846cb602fce2d7fb1eb29b1a193a18b8400397e48ea62f95f8cb
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="eda6a3ce-3f01-43bd-9087-5cccb904c142" name="Changes" comment="">
|
5
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
6
|
+
</list>
|
7
|
+
<option name="SHOW_DIALOG" value="false" />
|
8
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
9
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
10
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
11
|
+
</component>
|
12
|
+
<component name="FileTemplateManagerImpl">
|
13
|
+
<option name="RECENT_TEMPLATES">
|
14
|
+
<list>
|
15
|
+
<option value="Ruby File" />
|
16
|
+
</list>
|
17
|
+
</option>
|
18
|
+
</component>
|
19
|
+
<component name="Git.Settings">
|
20
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
21
|
+
</component>
|
22
|
+
<component name="MarkdownSettingsMigration">
|
23
|
+
<option name="stateVersion" value="1" />
|
24
|
+
</component>
|
25
|
+
<component name="ProjectId" id="25a3XWBkZDvwzHIWmNk3GdiZ7L5" />
|
26
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
27
|
+
<component name="ProjectViewState">
|
28
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
29
|
+
<option name="showLibraryContents" value="true" />
|
30
|
+
</component>
|
31
|
+
<component name="PropertiesComponent">
|
32
|
+
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
33
|
+
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
34
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
35
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
36
|
+
<property name="nodejs_package_manager_path" value="npm" />
|
37
|
+
</component>
|
38
|
+
<component name="RubyModuleManagerSettings">
|
39
|
+
<option name="blackListedRootsPaths">
|
40
|
+
<list>
|
41
|
+
<option value="$PROJECT_DIR$" />
|
42
|
+
</list>
|
43
|
+
</option>
|
44
|
+
</component>
|
45
|
+
<component name="RunManager">
|
46
|
+
<configuration name="app" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
47
|
+
<module name="_" />
|
48
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="" />
|
49
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$PROJECT_DIR$/lib" />
|
50
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
51
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
52
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
53
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="AUTO" bundleExecEnabled="true" />
|
54
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
55
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" runner="rcov">
|
56
|
+
<COVERAGE_PATTERN ENABLED="true">
|
57
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
58
|
+
</COVERAGE_PATTERN>
|
59
|
+
</EXTENSION>
|
60
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
61
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$PROJECT_DIR$/lib/app.rb" />
|
62
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
63
|
+
<method v="2" />
|
64
|
+
</configuration>
|
65
|
+
<recent_temporary>
|
66
|
+
<list>
|
67
|
+
<item itemvalue="Ruby.app" />
|
68
|
+
</list>
|
69
|
+
</recent_temporary>
|
70
|
+
</component>
|
71
|
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
72
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="true" RAILS_SPRING_PRE_LOADER_OPTION="true" />
|
73
|
+
<component name="TaskManager">
|
74
|
+
<task active="true" id="Default" summary="Default task">
|
75
|
+
<changelist id="eda6a3ce-3f01-43bd-9087-5cccb904c142" name="Changes" comment="" />
|
76
|
+
<created>1645751411552</created>
|
77
|
+
<option name="number" value="Default" />
|
78
|
+
<option name="presentableId" value="Default" />
|
79
|
+
<updated>1645751411552</updated>
|
80
|
+
<workItem from="1645751413234" duration="3808000" />
|
81
|
+
<workItem from="1645789991959" duration="952000" />
|
82
|
+
<workItem from="1645820532592" duration="2175000" />
|
83
|
+
<workItem from="1646237240447" duration="580000" />
|
84
|
+
<workItem from="1646237880908" duration="87000" />
|
85
|
+
<workItem from="1646237980818" duration="31000" />
|
86
|
+
</task>
|
87
|
+
<servers />
|
88
|
+
</component>
|
89
|
+
<component name="TypeScriptGeneratedFilesManager">
|
90
|
+
<option name="version" value="3" />
|
91
|
+
</component>
|
92
|
+
<component name="Vcs.Log.Tabs.Properties">
|
93
|
+
<option name="TAB_STATES">
|
94
|
+
<map>
|
95
|
+
<entry key="MAIN">
|
96
|
+
<value>
|
97
|
+
<State />
|
98
|
+
</value>
|
99
|
+
</entry>
|
100
|
+
</map>
|
101
|
+
</option>
|
102
|
+
</component>
|
103
|
+
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
104
|
+
<SUITE FILE_PATH="coverage/_@app.rcov" NAME="app Coverage Results" MODIFIED="1645752562932" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="_" />
|
105
|
+
</component>
|
106
|
+
</project>
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2009 Yusuke Endoh
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
# `cuchinizer`
|
2
|
+
|
3
|
+
`cuchinizer` allows you to write Ruby script by using only `cuchi`.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install cuchinizer
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
The following โจ pice of art โจ is a "Hello, cuchi!" program which can be executed by Ruby interpreter:
|
12
|
+
|
13
|
+
require "cuchinizer"
|
14
|
+
|
15
|
+
cuchicuchicuchicuchi
|
16
|
+
cuchi
|
17
|
+
cuchicuchicuchicuchicuchi
|
18
|
+
cuchicuchicuchicuchi
|
19
|
+
cuchicuchi
|
20
|
+
cuchicuchicuchicuchi
|
21
|
+
cuchicuchicuchicuchi
|
22
|
+
cuchicuchi
|
23
|
+
cuchicuchicuchi
|
24
|
+
cuchicuchicuchicuchi
|
25
|
+
cuchicuchi
|
26
|
+
cuchicuchi
|
27
|
+
cuchi
|
28
|
+
cuchicuchicuchicuchicuchicuchi
|
29
|
+
cuchicuchicuchi
|
30
|
+
cuchi
|
31
|
+
cuchicuchicuchicuchicuchicuchi
|
32
|
+
cuchicuchicuchicuchicuchi
|
33
|
+
cuchicuchicuchi
|
34
|
+
cuchi
|
35
|
+
cuchi
|
36
|
+
cuchicuchicuchi
|
37
|
+
cuchicuchicuchicuchicuchi
|
38
|
+
cuchicuchicuchicuchicuchicuchi
|
39
|
+
cuchicuchicuchicuchi
|
40
|
+
cuchi
|
41
|
+
cuchi
|
42
|
+
cuchicuchicuchicuchi
|
43
|
+
cuchi
|
44
|
+
cuchi
|
45
|
+
cuchicuchicuchicuchi
|
46
|
+
cuchi
|
47
|
+
cuchicuchicuchicuchi
|
48
|
+
cuchicuchi
|
49
|
+
cuchicuchi
|
50
|
+
cuchicuchicuchi
|
51
|
+
cuchi
|
52
|
+
cuchicuchicuchicuchicuchicuchi
|
53
|
+
cuchicuchicuchi
|
54
|
+
cuchicuchicuchi
|
55
|
+
cuchicuchicuchicuchicuchi
|
56
|
+
cuchicuchicuchicuchi
|
57
|
+
cuchicuchicuchicuchi
|
58
|
+
cuchicuchi
|
59
|
+
cuchicuchicuchicuchi
|
60
|
+
cuchicuchicuchi
|
61
|
+
cuchicuchicuchicuchicuchi
|
62
|
+
cuchicuchicuchicuchi
|
63
|
+
cuchicuchicuchi
|
64
|
+
cuchicuchicuchicuchicuchicuchi
|
65
|
+
cuchicuchicuchi
|
66
|
+
cuchicuchicuchi
|
67
|
+
cuchicuchicuchicuchicuchicuchi
|
68
|
+
cuchicuchicuchicuchi
|
69
|
+
cuchi
|
70
|
+
cuchicuchicuchicuchicuchicuchi
|
71
|
+
cuchicuchicuchicuchi
|
72
|
+
cuchi
|
73
|
+
cuchicuchicuchicuchicuchicuchi
|
74
|
+
cuchicuchicuchicuchicuchi
|
75
|
+
|
76
|
+
You can generate your code using the `๐๐cuchinizer๐๐`:
|
77
|
+
|
78
|
+
require 'cuchinizer'
|
79
|
+
|
80
|
+
puts ๐๐cuchinizer๐๐ '
|
81
|
+
def foo(bar)
|
82
|
+
puts bar
|
83
|
+
end
|
84
|
+
foo("murilooooo")
|
85
|
+
'
|
86
|
+
|
87
|
+
## License
|
88
|
+
This gem was based on [this one](https://rubygems.org/gems/_)
|
89
|
+
This repository was based on [this one](https://github.com/mame/_)
|
90
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/cuchinizer.gemspec
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "cuchinizer"
|
6
|
+
spec.version = "1.0"
|
7
|
+
spec.authors = ["Vinicius Kammradt", "Gabriel Rohden"]
|
8
|
+
spec.email = ["vinicius.kammradt1@gmail.com", "gabriel_rohden@outlook.com"]
|
9
|
+
|
10
|
+
spec.summary = "'cuchinizder' allows you to write Ruby script by using only 'cuchi'. It's a simple and easy way to write Ruby scripts."
|
11
|
+
spec.description = "'cuchinizder' allows you to write Ruby script by using only 'cuchi'. It's a simple and easy way to write Ruby scripts."
|
12
|
+
spec.homepage = "http://github.com/kammradt/cuchinizer"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.require_paths = ["lib"]
|
17
|
+
|
18
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
19
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
20
|
+
end
|
data/lib/cuchinizer.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
$_fragment, $fragment = [], []
|
2
|
+
|
3
|
+
def ๐๐cuchinizer๐๐(src)
|
4
|
+
code = []
|
5
|
+
src = src.unpack("C*").map { |c| c.ord.to_s(6).rjust(3, "0").chars.to_a }
|
6
|
+
src.flatten(1).map { |n| n.to_i(6) + 1 }.each do |n|
|
7
|
+
(!code.empty? && !code.last.size + n + 1 >= (2 ** 6) + n) ? code.last << " " : code << ""
|
8
|
+
code.last << :cuchi.to_s * n
|
9
|
+
end
|
10
|
+
([] << ['require "./cuchinizer"'] + code).join "\n"
|
11
|
+
end
|
12
|
+
|
13
|
+
def method_missing(mhd, *x)
|
14
|
+
unless !x.empty?
|
15
|
+
$_fragment.concat $fragment.reverse
|
16
|
+
$fragment.clear
|
17
|
+
end
|
18
|
+
$fragment << (mhd.to_s.scan(/...../).size - 1).to_s if mhd.to_s.match(/cuchi/)
|
19
|
+
end
|
20
|
+
|
21
|
+
at_exit do
|
22
|
+
$_fragment.concat $fragment.reverse
|
23
|
+
eval $_fragment.join.scan(/.../).map { _1.to_i(6) }.pack "C*"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cuchinizer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vinicius Kammradt
|
8
|
+
- Gabriel Rohden
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.16'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.16'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.0'
|
42
|
+
description: "'cuchinizder' allows you to write Ruby script by using only 'cuchi'.
|
43
|
+
It's a simple and easy way to write Ruby scripts."
|
44
|
+
email:
|
45
|
+
- vinicius.kammradt1@gmail.com
|
46
|
+
- gabriel_rohden@outlook.com
|
47
|
+
executables: []
|
48
|
+
extensions: []
|
49
|
+
extra_rdoc_files: []
|
50
|
+
files:
|
51
|
+
- ".idea/workspace.xml"
|
52
|
+
- Gemfile
|
53
|
+
- LICENSE.txt
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- cuchinizer.gemspec
|
57
|
+
- lib/cuchinizer.rb
|
58
|
+
homepage: http://github.com/kammradt/cuchinizer
|
59
|
+
licenses:
|
60
|
+
- MIT
|
61
|
+
metadata: {}
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubygems_version: 3.1.2
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: "'cuchinizder' allows you to write Ruby script by using only 'cuchi'. It's
|
81
|
+
a simple and easy way to write Ruby scripts."
|
82
|
+
test_files: []
|