ArcherSysOS 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/-interactive +0 -0
- data/.302.html.swp +0 -0
- data/.AerodiaServer.rb.swp +0 -0
- data/.README.md.swp +0 -0
- data/.archersys_os_peace.py.swp +0 -0
- data/.authorize.php.swp +0 -0
- data/.buildinfo +4 -0
- data/.git.cmd.swp +0 -0
- data/.gitconfig +1 -0
- data/.gitignore +9 -0
- data/.htaccess +12 -0
- data/.index.php.swl +0 -0
- data/.index.php.swm +0 -0
- data/.index.php.swn +0 -0
- data/.index.php.swo +0 -0
- data/.index.php.swp +0 -0
- data/.irb.cmd.swp +0 -0
- data/.irb_history +436 -0
- data/.irbrc +24 -0
- data/.irbrc~ +24 -0
- data/.livesearch.php.swp +0 -0
- data/.login.php.swl +0 -0
- data/.login.php.swm +0 -0
- data/.login.php.swn +0 -0
- data/.login.php.swo +0 -0
- data/.login.php.swp +0 -0
- data/.logout.php.swp +0 -0
- data/.npmrc +96 -0
- data/.os-desktop.php.swp +0 -0
- data/.pythonrc.py +11 -0
- data/.railsrc +1 -0
- data/.travis.yml +3 -0
- data/.vimstarter.bat.swp +0 -0
- data/302.html +8 -0
- data/401.html +43 -0
- data/403.html +9 -0
- data/404.html +43 -0
- data/7imperialisminjapan2.ppt +0 -0
- data/8_imperialism_by_the_united_states2.ppt +0 -0
- data/AbstractArrbyKlass.rb +16 -0
- data/AbstractImplementation.rb +10 -0
- data/Aerodia2.scn +0 -0
- data/AerodiaServer.rb +130 -0
- data/AerodiaServer.rb~ +129 -0
- data/AerodiaServer.txt +53 -0
- data/ArcherCGI.txt +8 -0
- data/ArcherDBM.rb +30 -0
- data/ArcherSysOS.gemspec +33 -0
- data/ArcherSysOS.rb +13 -0
- data/ArcherSysOS.rb.txt +13 -0
- data/ArcherSysOSDate.rb +10 -0
- data/ArcherSysOSOptionsParser.rb +108 -0
- data/ArcherSysOSOptionsParser.rb~ +108 -0
- data/ArcherVMCashewDelegator.rb +17 -0
- data/ArcherVMCashewLogger.rb +55 -0
- data/ArcherVMCashewLogger.rb~ +55 -0
- data/ArcherVMCashewTimeServer.rb +23 -0
- data/ArcherVMCashewTimeServer.rb~ +23 -0
- data/ArcherVMException.rb +13 -0
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +8 -0
- data/CodeIgniter_2.2.0.zip +0 -0
- data/ConfigTest.php +11 -0
- data/F16MUDCockpitServlet.rb +14 -0
- data/F16MUDTape.rb +7 -0
- data/F16Shell.rb +42 -0
- data/Gemfile +4 -0
- data/LICENSE +19 -0
- data/Listing.rb +31 -0
- data/Middleware.rb +12 -0
- data/Middleware.txt +12 -0
- data/Movie.rb +8 -0
- data/MovieLibrary.rb +10 -0
- data/MySQLDumper1.24.4.zip +0 -0
- data/NotakerPro.aia +0 -0
- data/Num.rb +17 -0
- data/OSStartScreen.py +31 -0
- data/Product.rb +26 -0
- data/QAERODIACORP.sav +0 -0
- data/Queue.rb +16 -0
- data/Queue.rb~ +15 -0
- data/README.md +39 -0
- data/README.md~ +46 -0
- data/Rakefile +1 -0
- data/StockTickerServlet.rb +19 -0
- data/StockTickerServlet.rb~ +19 -0
- data/Symfony_cookbook_2.5.pdf +35637 -39
- data/Taxgator.rb +9 -0
- data/Tetris +2 -0
- data/Ticker.rb +63 -0
- data/Ticker.rb~ +63 -0
- data/WeakHash.rb +10 -0
- data/WikiPage.rb +27 -0
- data/WikiPage.rb~ +27 -0
- data/ZlibEngine.rb +20 -0
- data/_.swm +0 -0
- data/_.swn +0 -0
- data/_.swo +0 -0
- data/_.swp +0 -0
- data/acoserver_acoserver (2).sql +15131 -0
- data/acoserver_acoserver.sql +34707 -0
- data/acoserver_admin.sql +571 -0
- data/acoserver_games.sql +6344 -0
- data/acoserver_moodle.sql +16013 -0
- data/activate_docs_gen.bat +1 -0
- data/activate_docs_gen.txt +1 -0
- data/ager.py +6 -0
- data/alarmpy.py +6 -0
- data/american_imperialism2.ppt +0 -0
- data/apple-touch-icon.png +0 -0
- data/apps.php +35 -0
- data/apps.php.txt +7 -0
- data/arbylog.rb +16 -0
- data/archergit.py +6 -0
- data/archergit.py.txt +6 -0
- data/archergit.txt +6 -0
- data/archerlua.lua +3 -0
- data/archersys-logo.png +0 -0
- data/archersys.gemspec +32 -0
- data/archersys_os_peace.py +7 -0
- data/archersys_os_peace.py~ +5 -0
- data/autoexec.bat +3 -0
- data/bootstrap-tour.css +65 -0
- data/bootstrap-tour.js +698 -0
- data/bootstrap-tour.min.css +19 -0
- data/bootstrap-tour.min.js +19 -0
- data/bootstrap.css +7098 -0
- data/bootstrap.js +2002 -0
- data/bucketwise-master.zip +0 -0
- data/cargo.bat +1 -0
- data/cargo.cmd +1 -0
- data/changelog.txt +769 -0
- data/client_secrets.json +4 -0
- data/cockpitguess.py +12 -0
- data/collaborant-0.1.0.gem +0 -0
- data/composer.json +40 -0
- data/composer.lock +1484 -0
- data/composer.phar +0 -0
- data/conchtack_id.dat +0 -0
- data/config.json +4 -0
- data/config.php +17 -0
- data/config.ru +5 -0
- data/config.yml +16 -0
- data/console.html +8 -0
- data/console.php +42 -0
- data/contact.db +0 -0
- data/contacts.db +0 -0
- data/contrib-update.cmd +6 -0
- data/contrib-update.cmd~ +6 -0
- data/crossdomain.xml +9 -0
- data/cse.xml +25 -0
- data/depression_dbq.pdf +0 -0
- data/desktop-w10.php +6 -0
- data/desktop.html +33 -0
- data/desktop.php +310 -0
- data/dialogue.txt +13 -0
- data/dict.rb +15 -0
- data/dictionary_of_words.db +0 -0
- data/doc-create.html +5 -0
- data/doc-create.php +12 -0
- data/dokuwiki-d9556fbc2c1c07a0baaf81c07d4165f6.tgz +0 -0
- data/drive-appfolder.php +19 -0
- data/drive.php +49 -0
- data/dropbox-login.php +13 -0
- data/drupal-7.34.zip +0 -0
- data/dtop.php +131 -0
- data/f18mud.rb +2 -0
- data/favicon.ico +0 -0
- data/favicon.png +0 -0
- data/footer.html +5 -0
- data/forum.php +5 -0
- data/game1.py +171 -0
- data/genindex.html +164 -0
- data/git.cmd~ +2 -0
- data/github-ci.rb +6 -0
- data/histogram.py +36 -0
- data/htdocs.gemspec~ +31 -0
- data/https___summerjobs.dc.gov_(S(ryzytlym5hqgi255zgb4ojjk))_parental_consent_form.pdf +0 -0
- data/ieconfig.xml +12 -0
- data/imperialism_dbq_questions2.doc +0 -0
- data/imperialism_graphic_organizer2.docx +0 -0
- data/index-desktop.php +42 -0
- data/index-desktop.php.txt +14 -0
- data/index.html +175 -0
- data/index.php +302 -0
- data/index.php~ +315 -0
- data/info.php +3 -0
- data/iostarter.py +88 -0
- data/irb.cmd +3 -0
- data/irb.cmd~ +2 -0
- data/jquery-mobile-theme-105213-0.zip +0 -0
- data/jquery-ui-1.11.1.custom.zip +0 -0
- data/laravel-master.zip +0 -0
- data/laravel.phar +0 -0
- data/latest_specs.4.8 +0 -0
- data/latest_specs.4.8.gz +0 -0
- data/login.php +266 -0
- data/login.php~ +265 -0
- data/logout.php +13 -0
- data/logout.php~ +13 -0
- data/lua.bat +1 -0
- data/main.php +22 -0
- data/manage.py +10 -0
- data/manifest.appcache +22 -0
- data/manifest.json +19 -0
- data/manifest.webapp +14 -0
- data/meter.js +19 -0
- data/meter.php +17 -0
- data/mime.types +0 -0
- data/moodle.sqk +12123 -0
- data/moodle.sql +12123 -0
- data/movielibrary.rhtml +16 -0
- data/mud_login.rb +38 -0
- data/news.py +18 -0
- data/node.exe +0 -0
- data/node_etw_provider.man +153 -0
- data/node_perfctr_provider.man +107 -0
- data/nodejs-portable.bat +194 -0
- data/nodevars.bat +24 -0
- data/notifications-gateway.php +5 -0
- data/now.bat +3 -0
- data/npm +14 -0
- data/npm-debug.log +40 -0
- data/npm.cmd +6 -0
- data/objects.inv +0 -0
- data/ocular.phar +0 -0
- data/opensearch.xml +12 -0
- data/os-desktop.php +211 -0
- data/os-mobile.php +127 -0
- data/package.json +5 -0
- data/parse-js-blank-1.3.0.zip +0 -0
- data/partii.appcache +2 -0
- data/pear.conf +2 -0
- data/phpldapadmin-1.2.3.zip +0 -0
- data/phpliteAdmin_v1-9-5.zip +0 -0
- data/phpunit.cmd +1 -0
- data/phpunit.dist.xml +8 -0
- data/phpunit.phar +77428 -2
- data/phpunit.xml +8 -0
- data/pik.bat +3 -0
- data/pik.ps1 +3 -0
- data/pik_runner.exe +0 -0
- data/pip-selfcheck.json +1 -0
- data/prerelease_specs.4.8 +0 -0
- data/prerelease_specs.4.8.gz +0 -0
- data/producktivshellwin +0 -0
- data/profile.php +7 -0
- data/prototype.php +7 -0
- data/pyconsole.cmd +3 -0
- data/pyconsole.py +8 -0
- data/pygubu-asos.py +19 -0
- data/pythonray.py +62 -0
- data/pythonray.py~ +62 -0
- data/pyvenv.cfg +3 -0
- data/radius.py +12 -0
- data/react-0.11.2.zip +0 -0
- data/readme.txt +8 -0
- data/register.php +130 -0
- data/register.php~ +126 -0
- data/rockpaperscissors.py +68 -0
- data/rockpaperscissors.py~ +28 -0
- data/run_f16.rb +2 -0
- data/rustc.cmd +1 -0
- data/scrollbar.css +6 -0
- data/scrollbar.css~ +4 -0
- data/scrutinizer.yml +5 -0
- data/search.html +177 -0
- data/searchindex.js +1 -0
- data/setup-owncloud.php +300 -0
- data/setup.py +9 -0
- data/sinatra-1.4.5.gem +0 -0
- data/smartsheet.html +1 -0
- data/span.html +5 -0
- data/specs.4.8 +0 -0
- data/specs.4.8.gz +0 -0
- data/starter-kit-1.8.1.zip +0 -0
- data/startscreen.php +11 -0
- data/startscreen.py +33 -0
- data/startup.png +0 -0
- data/svg-edit-2.6.zip +0 -0
- data/symfony.com_pdf_Symfony_book_2.5.pdf +0 -0
- data/telnet-client.py +18 -0
- data/tess.py +26 -0
- data/time.css +279 -0
- data/time.html +2 -0
- data/time.php +56 -0
- data/tinymce_spellchecker_php_2_0_6_1.zip +0 -0
- data/urllib2.py +1371 -0
- data/uru.bat +12 -0
- data/uru.bat.bak +12 -0
- data/uru.ps1 +11 -0
- data/uru.ps1.bak +11 -0
- data/uru_rt.exe +0 -0
- data/vimstarter.bat +3 -0
- metadata +338 -0
data/AerodiaServer.rb~
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
module ArcherSysOS
|
|
2
|
+
require "gdbm"
|
|
3
|
+
require 'ruby_mud'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require "readline"
|
|
7
|
+
|
|
8
|
+
class WordDictionary
|
|
9
|
+
def initialize(title)#creates a hash like a dictionary
|
|
10
|
+
@title = title
|
|
11
|
+
@words = GDBM.new("dictionary_of_words.db")
|
|
12
|
+
|
|
13
|
+
end
|
|
14
|
+
def add_entry(word,definition) # Add Definitions
|
|
15
|
+
@words[word] = definition
|
|
16
|
+
end
|
|
17
|
+
def get_entry(word)
|
|
18
|
+
return "#{!word.capitalize} : #{@words[word]}"
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
DICTIONARY_OF_WORDS = WordDictionary.new("Dictionary of Word")
|
|
23
|
+
class MudServer::DefaultController
|
|
24
|
+
def on_start
|
|
25
|
+
# Send messages via send_text.
|
|
26
|
+
send_text "Welcome! Here's a list of available commands"
|
|
27
|
+
send_text "TIME : See the current time."
|
|
28
|
+
send_text "SAY : Talk."
|
|
29
|
+
send_text "SECRET: Go somewhere super secret."
|
|
30
|
+
send_text "QUIT : Disconnect from the server."
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
def allowed_methods
|
|
34
|
+
super + ['time', 'secret', 'say','study'] # Quit is available by default via `super`
|
|
35
|
+
# No need to implement it yourself.
|
|
36
|
+
end
|
|
37
|
+
# User input after a command is provided via `params`.
|
|
38
|
+
def say
|
|
39
|
+
send_text "You just said: #{params}"
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def time
|
|
43
|
+
send_text "The time is now #{Time.now}"
|
|
44
|
+
end
|
|
45
|
+
#Transfer people to a different menu / area using `transfer_to`
|
|
46
|
+
def secret
|
|
47
|
+
transfer_to PokerRoom # Define the PokerRoom as a controller.
|
|
48
|
+
end
|
|
49
|
+
def study
|
|
50
|
+
transfer_to StudyHall
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
class PokerRoom < MudServer::AbstractController # controllers are inherited.
|
|
54
|
+
def on_start
|
|
55
|
+
send_text 'You found the secret poker room!'
|
|
56
|
+
send_text 'Type DEAL to get a hand of cards.'
|
|
57
|
+
run_cms
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def allowed_methods
|
|
62
|
+
['quit', 'deal']
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def deal
|
|
66
|
+
send_text 'Did I say poker? I meant dice.'
|
|
67
|
+
send_text "You rolled a #{rand(5)+1}."
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
class StudyHall < MudServer::AbstractController # Main course of ArcherSys OS Cashew's
|
|
71
|
+
def on_start
|
|
72
|
+
send_text 'You are now in the Study Hall! Use this room to collaborate with study group members'
|
|
73
|
+
send_text 'Commands: '
|
|
74
|
+
send_text 'LOOKUP: Looks up a word from the dictionary '
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
end
|
|
79
|
+
def allowed_methods
|
|
80
|
+
super + ['quiz','lookup','admin','talk','review_notes']
|
|
81
|
+
end
|
|
82
|
+
def quiz # goes to F16Cockpit
|
|
83
|
+
transfer_to F16Cockpit
|
|
84
|
+
end
|
|
85
|
+
def admin
|
|
86
|
+
transfer_to Library
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def lookup # Looks up a word from a dictionary
|
|
90
|
+
word = params
|
|
91
|
+
|
|
92
|
+
send_text DICTIONARY_OF_WORDS.get_entry(word)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
end
|
|
96
|
+
class F16Cockpit < MudServer::AbstractController
|
|
97
|
+
|
|
98
|
+
end
|
|
99
|
+
class Library < MudServer::AbstractController
|
|
100
|
+
def on_start
|
|
101
|
+
send_text 'You Just Entered the Library'
|
|
102
|
+
end
|
|
103
|
+
def allowed_methods
|
|
104
|
+
super + ['add_entry','quit']
|
|
105
|
+
end
|
|
106
|
+
def add_entry
|
|
107
|
+
word = Readline.readline("Word: ",true)
|
|
108
|
+
definition = Readline.readline("Definition: ",true)
|
|
109
|
+
|
|
110
|
+
ArcherSysOS::DICTIONARY_OF_WORDS.add_entry(word,definition)
|
|
111
|
+
DICTIONARY_OF_WORD.words.close
|
|
112
|
+
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
SERVER = MudServer.new '0.0.0.0', '4321' # Run server on all IPs on port 4321.
|
|
117
|
+
|
|
118
|
+
# Defaults to 0.0.0.0:4000 if none set.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
SERVER.start # Accept connections
|
|
122
|
+
begin
|
|
123
|
+
puts 'Press enter to exit.'
|
|
124
|
+
loop{}
|
|
125
|
+
rescue Interrupt => e
|
|
126
|
+
|
|
127
|
+
SERVER.stop
|
|
128
|
+
end
|
|
129
|
+
end
|
data/AerodiaServer.txt
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module ArcherSysOS
|
|
2
|
+
require 'ruby_mud'
|
|
3
|
+
|
|
4
|
+
class MudServer::DefaultController
|
|
5
|
+
def on_start
|
|
6
|
+
# Send messages via send_text.
|
|
7
|
+
send_text "Welcome! Here's a list of available commands"
|
|
8
|
+
send_text "TIME : See the current time."
|
|
9
|
+
send_text "SAY : Talk."
|
|
10
|
+
send_text "SECRET: Go somewhere super secret."
|
|
11
|
+
send_text "QUIT : Disconnect from the server."
|
|
12
|
+
end
|
|
13
|
+
def allowed_methods
|
|
14
|
+
super + ['time', 'secret', 'say'] # Quit is available by default via `super`
|
|
15
|
+
# No need to implement it yourself.
|
|
16
|
+
end
|
|
17
|
+
# User input after a command is provided via `params`.
|
|
18
|
+
def say
|
|
19
|
+
send_text "You just said: #{params}"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def time
|
|
23
|
+
send_text "The time is now #{Time.now}"
|
|
24
|
+
end
|
|
25
|
+
#Transfer people to a different menu / area using `transfer_to`
|
|
26
|
+
def secret
|
|
27
|
+
transfer_to TownHall # Define the PokerRoom as a controller.
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
class PokerRoom < MudServer::AbstractController # controllers are inherited.
|
|
31
|
+
def on_start
|
|
32
|
+
send_text 'You found the secret poker room!'
|
|
33
|
+
send_text 'Type DEAL to get a hand of cards.'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def allowed_methods
|
|
37
|
+
['quit', 'deal']
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def deal
|
|
41
|
+
send_text 'Did I say poker? I meant dice.'
|
|
42
|
+
send_text "You rolled a #{rand(5)+1}."
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
server = AerodiaServer.new '0.0.0.0', '4321' # Run server on all IPs on port 4321.
|
|
47
|
+
# Defaults to 0.0.0.0:4000 if none set.
|
|
48
|
+
server.start # Accept connections
|
|
49
|
+
|
|
50
|
+
puts 'Press enter to exit.'
|
|
51
|
+
|
|
52
|
+
server.stop if gets.chomp
|
|
53
|
+
end
|
data/ArcherCGI.txt
ADDED
data/ArcherDBM.rb
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module ArcherSysOS
|
|
2
|
+
require 'gdbm'
|
|
3
|
+
class ArcherDBM #The Enclosed Implemementation of The GDBM Class
|
|
4
|
+
def initialize(title,file) #creates GDBM Kernel
|
|
5
|
+
|
|
6
|
+
@file = file
|
|
7
|
+
@title = title
|
|
8
|
+
@gdbm = " "
|
|
9
|
+
end
|
|
10
|
+
def setup_database() #creates DBM Object using Filename
|
|
11
|
+
puts "Now loading Database File"
|
|
12
|
+
@gdbm = GDBM.new(@file)
|
|
13
|
+
end
|
|
14
|
+
def set_value(key, value) #Creates Entries
|
|
15
|
+
@gdbm[key] = value
|
|
16
|
+
end
|
|
17
|
+
def set_file(file)
|
|
18
|
+
@file = file
|
|
19
|
+
end
|
|
20
|
+
def get_value(key) #Returns the value from those Entries
|
|
21
|
+
return @gdbm[key]
|
|
22
|
+
end
|
|
23
|
+
def print_all_keys() #Prints all the Keys To The Console.
|
|
24
|
+
@gdbm.each_pair do |key, value|
|
|
25
|
+
print "#{key}: #{value}\n"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
data/ArcherSysOS.gemspec
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module ArcherSysOS
|
|
2
|
+
# coding: utf-8
|
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
+
require 'ArcherSysOS/version'
|
|
6
|
+
|
|
7
|
+
Gem::Specification.new do |spec|
|
|
8
|
+
spec.name = "ArcherSysOS"
|
|
9
|
+
spec.version = ArcherSysOS::VERSION
|
|
10
|
+
spec.authors = ["usage: git [--version] [--help] [-C <path>] [-c name=value]\n [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\n [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n <command> [<args>]\n\nThe most commonly used git commands are:\n add Add file contents to the index\n bisect Find by binary search the change that introduced a bug\n branch List, create, or delete branches\n checkout Checkout a branch or paths to the working tree\n clone Clone a repository into a new directory\n commit Record changes to the repository\n diff Show changes between commits, commit and working tree, etc\n fetch Download objects and refs from another repository\n grep Print lines matching a pattern\n init Create an empty Git repository or reinitialize an existing one\n log Show commit logs\n merge Join two or more development histories together\n mv Move or rename a file, a directory, or a symlink\n pull Fetch from and integrate with another repository or a local branch\n push Update remote refs along with associated objects\n rebase Forward-port local commits to the updated upstream head\n reset Reset current HEAD to the specified state\n rm Remove files from the working tree and from the index\n show Show various types of objects\n status Show the working tree status\n tag Create, list, delete or verify a tag object signed with GPG\n\n'git help -a' and 'git help -g' lists available subcommands and some\nconcept guides. See 'git help <command>' or 'git help <concept>'\nto read about a specific subcommand or concept."]
|
|
11
|
+
spec.email = ["usage: git [--version] [--help] [-C <path>] [-c name=value]\n [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\n [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n <command> [<args>]\n\nThe most commonly used git commands are:\n add Add file contents to the index\n bisect Find by binary search the change that introduced a bug\n branch List, create, or delete branches\n checkout Checkout a branch or paths to the working tree\n clone Clone a repository into a new directory\n commit Record changes to the repository\n diff Show changes between commits, commit and working tree, etc\n fetch Download objects and refs from another repository\n grep Print lines matching a pattern\n init Create an empty Git repository or reinitialize an existing one\n log Show commit logs\n merge Join two or more development histories together\n mv Move or rename a file, a directory, or a symlink\n pull Fetch from and integrate with another repository or a local branch\n push Update remote refs along with associated objects\n rebase Forward-port local commits to the updated upstream head\n reset Reset current HEAD to the specified state\n rm Remove files from the working tree and from the index\n show Show various types of objects\n status Show the working tree status\n tag Create, list, delete or verify a tag object signed with GPG\n\n'git help -a' and 'git help -g' lists available subcommands and some\nconcept guides. See 'git help <command>' or 'git help <concept>'\nto read about a specific subcommand or concept."]
|
|
12
|
+
|
|
13
|
+
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
|
|
14
|
+
spec.description = %q{TODO: Write a longer description or delete this line.}
|
|
15
|
+
spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
|
+
spec.bindir = "exe"
|
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
21
|
+
spec.require_paths = ["lib"]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
if spec.respond_to?(:metadata)
|
|
25
|
+
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
spec.add_development_dependency "bundler", "~> 1.8"
|
|
29
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
end
|
data/ArcherSysOS.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module ArcherSysOS # ArcherRuby
|
|
2
|
+
require "dict"
|
|
3
|
+
DICTIONARY_OF_WORDS = new ArcherSysOS::WordDictionary("ArcherLex Dictionary")
|
|
4
|
+
require 'rake'
|
|
5
|
+
def get_user_name_input
|
|
6
|
+
puts "Enter your VM Username:"
|
|
7
|
+
return gets.chomp
|
|
8
|
+
end
|
|
9
|
+
ARCHERRAKE = Rake::Application.new("archerrake",".","Rakefile")
|
|
10
|
+
LOADF16 = Rake::Task.new("f16_init",ARCHERRAKE)
|
|
11
|
+
|
|
12
|
+
USERNAME = get_user_name_input()
|
|
13
|
+
end
|
data/ArcherSysOS.rb.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module ArcherSysOS # ArcherRuby
|
|
2
|
+
require "dict"
|
|
3
|
+
DICTIONARY_OF_WORDS = ArcherSysOS::WordDictionary("ArcherLex Dictionary").new
|
|
4
|
+
require 'rake'
|
|
5
|
+
def get_user_name_input
|
|
6
|
+
puts "Enter your VM Username:"
|
|
7
|
+
return gets.chomp
|
|
8
|
+
end
|
|
9
|
+
ARCHERRAKE = Rake::Application.new("archerrake",".","Rakefile")
|
|
10
|
+
LOADF16 = Rake::Task.new("f16_init",ARCHERRAKE)
|
|
11
|
+
|
|
12
|
+
USERNAME = get_user_name_input()
|
|
13
|
+
end
|
data/ArcherSysOSDate.rb
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
module ArcherSysOS
|
|
2
|
+
require 'optparse'
|
|
3
|
+
require 'optparse/time'
|
|
4
|
+
require 'ostruct'
|
|
5
|
+
require 'pp'
|
|
6
|
+
class ArcherSysOSOptionsParser
|
|
7
|
+
|
|
8
|
+
CODES = %w[iso-2022-jp shift_jis euc-jp utf8 binary]
|
|
9
|
+
CODE_ALIASES = { "jis" => "iso-2022-jp", "sjis" => "shift_jis" }
|
|
10
|
+
|
|
11
|
+
#
|
|
12
|
+
# Return a structure describing the options.
|
|
13
|
+
#
|
|
14
|
+
def self.parse(args)
|
|
15
|
+
# The options specified on the command line will be collected in *options*.
|
|
16
|
+
# We set default values here.
|
|
17
|
+
options = OpenStruct.new
|
|
18
|
+
options.library = []
|
|
19
|
+
options.inplace = false
|
|
20
|
+
options.encoding = "utf8"
|
|
21
|
+
options.transfer_type = :auto
|
|
22
|
+
options.verbose = false
|
|
23
|
+
|
|
24
|
+
opt_parser = OptionParser.new do |opts|
|
|
25
|
+
opts.banner = "Usage: example.rb [options]"
|
|
26
|
+
|
|
27
|
+
opts.separator ""
|
|
28
|
+
opts.separator "Specific options:"
|
|
29
|
+
|
|
30
|
+
# Mandatory argument.
|
|
31
|
+
opts.on("-r", "--require LIBRARY",
|
|
32
|
+
"Require the LIBRARY before executing your script") do |lib|
|
|
33
|
+
options.library << lib
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Optional argument; multi-line description.
|
|
37
|
+
opts.on("-i", "--inplace [EXTENSION]",
|
|
38
|
+
"Edit ARGV files in place",
|
|
39
|
+
" (make backup if EXTENSION supplied)") do |ext|
|
|
40
|
+
options.inplace = true
|
|
41
|
+
options.extension = ext || ''
|
|
42
|
+
options.extension.sub!(/\A\.?(?=.)/, ".") # Ensure extension begins with dot.
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Cast 'delay' argument to a Float.
|
|
46
|
+
opts.on("--delay N", Float, "Delay N seconds before executing") do |n|
|
|
47
|
+
options.delay = n
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Cast 'time' argument to a Time object.
|
|
51
|
+
opts.on("-t", "--time [TIME]", Time, "Begin execution at given time") do |time|
|
|
52
|
+
options.time = time
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Cast to octal integer.
|
|
56
|
+
opts.on("-F", "--irs [OCTAL]", OptionParser::OctalInteger,
|
|
57
|
+
"Specify record separator (default \\0)") do |rs|
|
|
58
|
+
options.record_separator = rs
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# List of arguments.
|
|
62
|
+
opts.on("--list x,y,z", Array, "Example 'list' of arguments") do |list|
|
|
63
|
+
options.list = list
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Keyword completion. We are specifying a specific set of arguments (CODES
|
|
67
|
+
# and CODE_ALIASES - notice the latter is a Hash), and the user may provide
|
|
68
|
+
# the shortest unambiguous text.
|
|
69
|
+
code_list = (CODE_ALIASES.keys + CODES).join(',')
|
|
70
|
+
opts.on("--code CODE", CODES, CODE_ALIASES, "Select encoding",
|
|
71
|
+
" (#{code_list})") do |encoding|
|
|
72
|
+
options.encoding = encoding
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Optional argument with keyword completion.
|
|
76
|
+
opts.on("--type [TYPE]", [:text, :binary, :auto],
|
|
77
|
+
"Select transfer type (text, binary, auto)") do |t|
|
|
78
|
+
options.transfer_type = t
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Boolean switch.
|
|
82
|
+
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
|
|
83
|
+
options.verbose = v
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
opts.separator ""
|
|
87
|
+
opts.separator "Common options:"
|
|
88
|
+
|
|
89
|
+
# No argument, shows at tail. This will print an options summary.
|
|
90
|
+
# Try it and see!
|
|
91
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
|
92
|
+
puts opts
|
|
93
|
+
exit
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Another typical switch to print the version.
|
|
97
|
+
opts.on_tail("--version", "Show version") do
|
|
98
|
+
puts ::Version.join('.')
|
|
99
|
+
exit
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
opt_parser.parse!(args)
|
|
104
|
+
options
|
|
105
|
+
end # parse()
|
|
106
|
+
|
|
107
|
+
end # class ArcherSysOSOptionsParser
|
|
108
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
module ArcherSysOS
|
|
2
|
+
require 'optparse'
|
|
3
|
+
require 'optparse/time'
|
|
4
|
+
require 'ostruct'
|
|
5
|
+
require 'pp'
|
|
6
|
+
class ArcherSysOSOptionsParser
|
|
7
|
+
|
|
8
|
+
CODES = %w[iso-2022-jp shift_jis euc-jp utf8 binary]
|
|
9
|
+
CODE_ALIASES = { "jis" => "iso-2022-jp", "sjis" => "shift_jis" }
|
|
10
|
+
|
|
11
|
+
#
|
|
12
|
+
# Return a structure describing the options.
|
|
13
|
+
#
|
|
14
|
+
def self.parse(args)
|
|
15
|
+
# The options specified on the command line will be collected in *options*.
|
|
16
|
+
# We set default values here.
|
|
17
|
+
options = OpenStruct.new
|
|
18
|
+
options.library = []
|
|
19
|
+
options.inplace = false
|
|
20
|
+
options.encoding = "utf8"
|
|
21
|
+
options.transfer_type = :auto
|
|
22
|
+
options.verbose = false
|
|
23
|
+
|
|
24
|
+
opt_parser = OptionParser.new do |opts|
|
|
25
|
+
opts.banner = "Usage: example.rb [options]"
|
|
26
|
+
|
|
27
|
+
opts.separator ""
|
|
28
|
+
opts.separator "Specific options:"
|
|
29
|
+
|
|
30
|
+
# Mandatory argument.
|
|
31
|
+
opts.on("-r", "--require LIBRARY",
|
|
32
|
+
"Require the LIBRARY before executing your script") do |lib|
|
|
33
|
+
options.library << lib
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Optional argument; multi-line description.
|
|
37
|
+
opts.on("-i", "--inplace [EXTENSION]",
|
|
38
|
+
"Edit ARGV files in place",
|
|
39
|
+
" (make backup if EXTENSION supplied)") do |ext|
|
|
40
|
+
options.inplace = true
|
|
41
|
+
options.extension = ext || ''
|
|
42
|
+
options.extension.sub!(/\A\.?(?=.)/, ".") # Ensure extension begins with dot.
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Cast 'delay' argument to a Float.
|
|
46
|
+
opts.on("--delay N", Float, "Delay N seconds before executing") do |n|
|
|
47
|
+
options.delay = n
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Cast 'time' argument to a Time object.
|
|
51
|
+
opts.on("-t", "--time [TIME]", Time, "Begin execution at given time") do |time|
|
|
52
|
+
options.time = time
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Cast to octal integer.
|
|
56
|
+
opts.on("-F", "--irs [OCTAL]", OptionParser::OctalInteger,
|
|
57
|
+
"Specify record separator (default \\0)") do |rs|
|
|
58
|
+
options.record_separator = rs
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# List of arguments.
|
|
62
|
+
opts.on("--list x,y,z", Array, "Example 'list' of arguments") do |list|
|
|
63
|
+
options.list = list
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Keyword completion. We are specifying a specific set of arguments (CODES
|
|
67
|
+
# and CODE_ALIASES - notice the latter is a Hash), and the user may provide
|
|
68
|
+
# the shortest unambiguous text.
|
|
69
|
+
code_list = (CODE_ALIASES.keys + CODES).join(',')
|
|
70
|
+
opts.on("--code CODE", CODES, CODE_ALIASES, "Select encoding",
|
|
71
|
+
" (#{code_list})") do |encoding|
|
|
72
|
+
options.encoding = encoding
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Optional argument with keyword completion.
|
|
76
|
+
opts.on("--type [TYPE]", [:text, :binary, :auto],
|
|
77
|
+
"Select transfer type (text, binary, auto)") do |t|
|
|
78
|
+
options.transfer_type = t
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Boolean switch.
|
|
82
|
+
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
|
|
83
|
+
options.verbose = v
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
opts.separator ""
|
|
87
|
+
opts.separator "Common options:"
|
|
88
|
+
|
|
89
|
+
# No argument, shows at tail. This will print an options summary.
|
|
90
|
+
# Try it and see!
|
|
91
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
|
92
|
+
puts opts
|
|
93
|
+
exit
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Another typical switch to print the version.
|
|
97
|
+
opts.on_tail("--version", "Show version") do
|
|
98
|
+
puts ::Version.join('.')
|
|
99
|
+
exit
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
opt_parser.parse!(args)
|
|
104
|
+
options
|
|
105
|
+
end # parse()
|
|
106
|
+
|
|
107
|
+
end # class ArcherSysOSOptionsParser
|
|
108
|
+
end
|