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.
Files changed (296) hide show
  1. checksums.yaml +7 -0
  2. data/-interactive +0 -0
  3. data/.302.html.swp +0 -0
  4. data/.AerodiaServer.rb.swp +0 -0
  5. data/.README.md.swp +0 -0
  6. data/.archersys_os_peace.py.swp +0 -0
  7. data/.authorize.php.swp +0 -0
  8. data/.buildinfo +4 -0
  9. data/.git.cmd.swp +0 -0
  10. data/.gitconfig +1 -0
  11. data/.gitignore +9 -0
  12. data/.htaccess +12 -0
  13. data/.index.php.swl +0 -0
  14. data/.index.php.swm +0 -0
  15. data/.index.php.swn +0 -0
  16. data/.index.php.swo +0 -0
  17. data/.index.php.swp +0 -0
  18. data/.irb.cmd.swp +0 -0
  19. data/.irb_history +436 -0
  20. data/.irbrc +24 -0
  21. data/.irbrc~ +24 -0
  22. data/.livesearch.php.swp +0 -0
  23. data/.login.php.swl +0 -0
  24. data/.login.php.swm +0 -0
  25. data/.login.php.swn +0 -0
  26. data/.login.php.swo +0 -0
  27. data/.login.php.swp +0 -0
  28. data/.logout.php.swp +0 -0
  29. data/.npmrc +96 -0
  30. data/.os-desktop.php.swp +0 -0
  31. data/.pythonrc.py +11 -0
  32. data/.railsrc +1 -0
  33. data/.travis.yml +3 -0
  34. data/.vimstarter.bat.swp +0 -0
  35. data/302.html +8 -0
  36. data/401.html +43 -0
  37. data/403.html +9 -0
  38. data/404.html +43 -0
  39. data/7imperialisminjapan2.ppt +0 -0
  40. data/8_imperialism_by_the_united_states2.ppt +0 -0
  41. data/AbstractArrbyKlass.rb +16 -0
  42. data/AbstractImplementation.rb +10 -0
  43. data/Aerodia2.scn +0 -0
  44. data/AerodiaServer.rb +130 -0
  45. data/AerodiaServer.rb~ +129 -0
  46. data/AerodiaServer.txt +53 -0
  47. data/ArcherCGI.txt +8 -0
  48. data/ArcherDBM.rb +30 -0
  49. data/ArcherSysOS.gemspec +33 -0
  50. data/ArcherSysOS.rb +13 -0
  51. data/ArcherSysOS.rb.txt +13 -0
  52. data/ArcherSysOSDate.rb +10 -0
  53. data/ArcherSysOSOptionsParser.rb +108 -0
  54. data/ArcherSysOSOptionsParser.rb~ +108 -0
  55. data/ArcherVMCashewDelegator.rb +17 -0
  56. data/ArcherVMCashewLogger.rb +55 -0
  57. data/ArcherVMCashewLogger.rb~ +55 -0
  58. data/ArcherVMCashewTimeServer.rb +23 -0
  59. data/ArcherVMCashewTimeServer.rb~ +23 -0
  60. data/ArcherVMException.rb +13 -0
  61. data/CHANGELOG.md +4 -0
  62. data/CONTRIBUTING.md +8 -0
  63. data/CodeIgniter_2.2.0.zip +0 -0
  64. data/ConfigTest.php +11 -0
  65. data/F16MUDCockpitServlet.rb +14 -0
  66. data/F16MUDTape.rb +7 -0
  67. data/F16Shell.rb +42 -0
  68. data/Gemfile +4 -0
  69. data/LICENSE +19 -0
  70. data/Listing.rb +31 -0
  71. data/Middleware.rb +12 -0
  72. data/Middleware.txt +12 -0
  73. data/Movie.rb +8 -0
  74. data/MovieLibrary.rb +10 -0
  75. data/MySQLDumper1.24.4.zip +0 -0
  76. data/NotakerPro.aia +0 -0
  77. data/Num.rb +17 -0
  78. data/OSStartScreen.py +31 -0
  79. data/Product.rb +26 -0
  80. data/QAERODIACORP.sav +0 -0
  81. data/Queue.rb +16 -0
  82. data/Queue.rb~ +15 -0
  83. data/README.md +39 -0
  84. data/README.md~ +46 -0
  85. data/Rakefile +1 -0
  86. data/StockTickerServlet.rb +19 -0
  87. data/StockTickerServlet.rb~ +19 -0
  88. data/Symfony_cookbook_2.5.pdf +35637 -39
  89. data/Taxgator.rb +9 -0
  90. data/Tetris +2 -0
  91. data/Ticker.rb +63 -0
  92. data/Ticker.rb~ +63 -0
  93. data/WeakHash.rb +10 -0
  94. data/WikiPage.rb +27 -0
  95. data/WikiPage.rb~ +27 -0
  96. data/ZlibEngine.rb +20 -0
  97. data/_.swm +0 -0
  98. data/_.swn +0 -0
  99. data/_.swo +0 -0
  100. data/_.swp +0 -0
  101. data/acoserver_acoserver (2).sql +15131 -0
  102. data/acoserver_acoserver.sql +34707 -0
  103. data/acoserver_admin.sql +571 -0
  104. data/acoserver_games.sql +6344 -0
  105. data/acoserver_moodle.sql +16013 -0
  106. data/activate_docs_gen.bat +1 -0
  107. data/activate_docs_gen.txt +1 -0
  108. data/ager.py +6 -0
  109. data/alarmpy.py +6 -0
  110. data/american_imperialism2.ppt +0 -0
  111. data/apple-touch-icon.png +0 -0
  112. data/apps.php +35 -0
  113. data/apps.php.txt +7 -0
  114. data/arbylog.rb +16 -0
  115. data/archergit.py +6 -0
  116. data/archergit.py.txt +6 -0
  117. data/archergit.txt +6 -0
  118. data/archerlua.lua +3 -0
  119. data/archersys-logo.png +0 -0
  120. data/archersys.gemspec +32 -0
  121. data/archersys_os_peace.py +7 -0
  122. data/archersys_os_peace.py~ +5 -0
  123. data/autoexec.bat +3 -0
  124. data/bootstrap-tour.css +65 -0
  125. data/bootstrap-tour.js +698 -0
  126. data/bootstrap-tour.min.css +19 -0
  127. data/bootstrap-tour.min.js +19 -0
  128. data/bootstrap.css +7098 -0
  129. data/bootstrap.js +2002 -0
  130. data/bucketwise-master.zip +0 -0
  131. data/cargo.bat +1 -0
  132. data/cargo.cmd +1 -0
  133. data/changelog.txt +769 -0
  134. data/client_secrets.json +4 -0
  135. data/cockpitguess.py +12 -0
  136. data/collaborant-0.1.0.gem +0 -0
  137. data/composer.json +40 -0
  138. data/composer.lock +1484 -0
  139. data/composer.phar +0 -0
  140. data/conchtack_id.dat +0 -0
  141. data/config.json +4 -0
  142. data/config.php +17 -0
  143. data/config.ru +5 -0
  144. data/config.yml +16 -0
  145. data/console.html +8 -0
  146. data/console.php +42 -0
  147. data/contact.db +0 -0
  148. data/contacts.db +0 -0
  149. data/contrib-update.cmd +6 -0
  150. data/contrib-update.cmd~ +6 -0
  151. data/crossdomain.xml +9 -0
  152. data/cse.xml +25 -0
  153. data/depression_dbq.pdf +0 -0
  154. data/desktop-w10.php +6 -0
  155. data/desktop.html +33 -0
  156. data/desktop.php +310 -0
  157. data/dialogue.txt +13 -0
  158. data/dict.rb +15 -0
  159. data/dictionary_of_words.db +0 -0
  160. data/doc-create.html +5 -0
  161. data/doc-create.php +12 -0
  162. data/dokuwiki-d9556fbc2c1c07a0baaf81c07d4165f6.tgz +0 -0
  163. data/drive-appfolder.php +19 -0
  164. data/drive.php +49 -0
  165. data/dropbox-login.php +13 -0
  166. data/drupal-7.34.zip +0 -0
  167. data/dtop.php +131 -0
  168. data/f18mud.rb +2 -0
  169. data/favicon.ico +0 -0
  170. data/favicon.png +0 -0
  171. data/footer.html +5 -0
  172. data/forum.php +5 -0
  173. data/game1.py +171 -0
  174. data/genindex.html +164 -0
  175. data/git.cmd~ +2 -0
  176. data/github-ci.rb +6 -0
  177. data/histogram.py +36 -0
  178. data/htdocs.gemspec~ +31 -0
  179. data/https___summerjobs.dc.gov_(S(ryzytlym5hqgi255zgb4ojjk))_parental_consent_form.pdf +0 -0
  180. data/ieconfig.xml +12 -0
  181. data/imperialism_dbq_questions2.doc +0 -0
  182. data/imperialism_graphic_organizer2.docx +0 -0
  183. data/index-desktop.php +42 -0
  184. data/index-desktop.php.txt +14 -0
  185. data/index.html +175 -0
  186. data/index.php +302 -0
  187. data/index.php~ +315 -0
  188. data/info.php +3 -0
  189. data/iostarter.py +88 -0
  190. data/irb.cmd +3 -0
  191. data/irb.cmd~ +2 -0
  192. data/jquery-mobile-theme-105213-0.zip +0 -0
  193. data/jquery-ui-1.11.1.custom.zip +0 -0
  194. data/laravel-master.zip +0 -0
  195. data/laravel.phar +0 -0
  196. data/latest_specs.4.8 +0 -0
  197. data/latest_specs.4.8.gz +0 -0
  198. data/login.php +266 -0
  199. data/login.php~ +265 -0
  200. data/logout.php +13 -0
  201. data/logout.php~ +13 -0
  202. data/lua.bat +1 -0
  203. data/main.php +22 -0
  204. data/manage.py +10 -0
  205. data/manifest.appcache +22 -0
  206. data/manifest.json +19 -0
  207. data/manifest.webapp +14 -0
  208. data/meter.js +19 -0
  209. data/meter.php +17 -0
  210. data/mime.types +0 -0
  211. data/moodle.sqk +12123 -0
  212. data/moodle.sql +12123 -0
  213. data/movielibrary.rhtml +16 -0
  214. data/mud_login.rb +38 -0
  215. data/news.py +18 -0
  216. data/node.exe +0 -0
  217. data/node_etw_provider.man +153 -0
  218. data/node_perfctr_provider.man +107 -0
  219. data/nodejs-portable.bat +194 -0
  220. data/nodevars.bat +24 -0
  221. data/notifications-gateway.php +5 -0
  222. data/now.bat +3 -0
  223. data/npm +14 -0
  224. data/npm-debug.log +40 -0
  225. data/npm.cmd +6 -0
  226. data/objects.inv +0 -0
  227. data/ocular.phar +0 -0
  228. data/opensearch.xml +12 -0
  229. data/os-desktop.php +211 -0
  230. data/os-mobile.php +127 -0
  231. data/package.json +5 -0
  232. data/parse-js-blank-1.3.0.zip +0 -0
  233. data/partii.appcache +2 -0
  234. data/pear.conf +2 -0
  235. data/phpldapadmin-1.2.3.zip +0 -0
  236. data/phpliteAdmin_v1-9-5.zip +0 -0
  237. data/phpunit.cmd +1 -0
  238. data/phpunit.dist.xml +8 -0
  239. data/phpunit.phar +77428 -2
  240. data/phpunit.xml +8 -0
  241. data/pik.bat +3 -0
  242. data/pik.ps1 +3 -0
  243. data/pik_runner.exe +0 -0
  244. data/pip-selfcheck.json +1 -0
  245. data/prerelease_specs.4.8 +0 -0
  246. data/prerelease_specs.4.8.gz +0 -0
  247. data/producktivshellwin +0 -0
  248. data/profile.php +7 -0
  249. data/prototype.php +7 -0
  250. data/pyconsole.cmd +3 -0
  251. data/pyconsole.py +8 -0
  252. data/pygubu-asos.py +19 -0
  253. data/pythonray.py +62 -0
  254. data/pythonray.py~ +62 -0
  255. data/pyvenv.cfg +3 -0
  256. data/radius.py +12 -0
  257. data/react-0.11.2.zip +0 -0
  258. data/readme.txt +8 -0
  259. data/register.php +130 -0
  260. data/register.php~ +126 -0
  261. data/rockpaperscissors.py +68 -0
  262. data/rockpaperscissors.py~ +28 -0
  263. data/run_f16.rb +2 -0
  264. data/rustc.cmd +1 -0
  265. data/scrollbar.css +6 -0
  266. data/scrollbar.css~ +4 -0
  267. data/scrutinizer.yml +5 -0
  268. data/search.html +177 -0
  269. data/searchindex.js +1 -0
  270. data/setup-owncloud.php +300 -0
  271. data/setup.py +9 -0
  272. data/sinatra-1.4.5.gem +0 -0
  273. data/smartsheet.html +1 -0
  274. data/span.html +5 -0
  275. data/specs.4.8 +0 -0
  276. data/specs.4.8.gz +0 -0
  277. data/starter-kit-1.8.1.zip +0 -0
  278. data/startscreen.php +11 -0
  279. data/startscreen.py +33 -0
  280. data/startup.png +0 -0
  281. data/svg-edit-2.6.zip +0 -0
  282. data/symfony.com_pdf_Symfony_book_2.5.pdf +0 -0
  283. data/telnet-client.py +18 -0
  284. data/tess.py +26 -0
  285. data/time.css +279 -0
  286. data/time.html +2 -0
  287. data/time.php +56 -0
  288. data/tinymce_spellchecker_php_2_0_6_1.zip +0 -0
  289. data/urllib2.py +1371 -0
  290. data/uru.bat +12 -0
  291. data/uru.bat.bak +12 -0
  292. data/uru.ps1 +11 -0
  293. data/uru.ps1.bak +11 -0
  294. data/uru_rt.exe +0 -0
  295. data/vimstarter.bat +3 -0
  296. metadata +338 -0
@@ -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
@@ -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
@@ -0,0 +1,8 @@
1
+ module ArcherSysOS
2
+ class ArcherCGI < WEBrick::CGI
3
+ def do_GET req, res
4
+ res.body = 'ArcherSys OS CGI System 1.0'
5
+ res.status = 200
6
+ end
7
+ end
8
+ end
@@ -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
+
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,10 @@
1
+ module ArcherSysOS
2
+ class ArcherSysOSDate
3
+ attr_reader :mon, :day, :year
4
+
5
+ def initialize(mon, day, year)
6
+ @mon, @day, @year = mon, day, year
7
+ end
8
+ end
9
+
10
+ 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
@@ -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