├── .gitignore ├── Rakefile ├── README.rdoc ├── Deutsch.gemspec ├── MIT-LICENSE.txt └── lib └── Deutsch.rb /.gitignore: -------------------------------------------------------------------------------- 1 | Gemfile.lock 2 | pkg 3 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | 3 | require 'rake' 4 | require 'rubygems/tasks' 5 | Gem::Tasks.new 6 | -------------------------------------------------------------------------------- /README.rdoc: -------------------------------------------------------------------------------- 1 | Like English.rb, but for German: "Include the Deutsch library file in a Ruby script, and you can reference the global variables such as $_ using less cryptic names." 2 | 3 | Install it with: 4 | 5 | $ gem install Deutsch 6 | 7 | 8 | Without 'Deutsch': 9 | 10 | $\ = ' -- ' 11 | "waterbuffalo" =~ /buff/ 12 | print $", $', $$, "\n" 13 | 14 | With Deutsch: 15 | 16 | require "Deutsch" 17 | 18 | $AUSGABE_DATENSATZ_TRENNER = ' -- ' 19 | "waterbuffalo" =~ /buff/ 20 | print $GELADENE_FUNKTIONALITÄTEN, $NACHÜBEREINSTIMMUNG, $PID, "\n" 21 | 22 | 23 | See https://github.com/janlelis/Deutsch.rb/blob/main/lib/Deutsch.rb for all aliases. 24 | 25 | Copyright (c) 2014 Jan Lelis 26 | MIT LICENSE 27 | -------------------------------------------------------------------------------- /Deutsch.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | 3 | Gem::Specification.new do |gem| 4 | gem.name = "Deutsch" 5 | gem.version = "1.0.1" 6 | gem.summary = "Deutsch.rb" 7 | gem.description = "Include the Deutsch library file in a Ruby script, and you can reference the global variables such as $_ using less cryptic names." 8 | gem.license = "MIT" 9 | gem.authors = ["Jan Lelis"] 10 | gem.email = ["hi@ruby.consulting"] 11 | gem.homepage = "https://github.com/janlelis/Deutsch.rb" 12 | gem.files = Dir['{**/}{.*,*}'].select { |path| File.file?(path) } 13 | gem.require_paths = ['lib'] 14 | 15 | gem.add_development_dependency 'rake', '~> 0.8' 16 | gem.add_development_dependency 'rubygems-tasks', '~> 0.2' 17 | end 18 | -------------------------------------------------------------------------------- /MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Jan Lelis 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /lib/Deutsch.rb: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | # https://github.com/ruby/ruby/blob/trunk/lib/English.rb 3 | module Deutsch end if false 4 | 5 | alias $FEHLER_INFO $! 6 | alias $FEHLER_POSITION $@ 7 | alias $FT $; 8 | alias $FELD_TRENNER $; 9 | alias $AFT $, 10 | alias $AUSGABE_FELD_TRENNER $, 11 | alias $DT $/ 12 | alias $EINGABE_DATENSATZ_TRENNER $/ 13 | alias $ADT $\ 14 | alias $AUSGABE_DATENSATZ_TRENNER $\ 15 | alias $EINGABE_ZEILEN_NUMMER $. 16 | alias $NR $. 17 | alias $ZULETZT_GELESENE_ZEILE $_ 18 | alias $STANDARD_AUSGABE $> 19 | alias $STANDARD_EINGABE $< 20 | alias $PID $$ 21 | alias $PROZESS_ID $$ 22 | alias $KIND_STATUS $? 23 | alias $LETZTE_ÜBEREINSTIMMUNG $~ 24 | alias $IGNORIERE_SCHREIBUNG $= 25 | alias $ARGV $* 26 | alias $ÜBEREINSTIMMUNG $& 27 | alias $VORÜBEREINSTIMMUNG $` 28 | alias $NACHÜBEREINSTIMMUNG $' 29 | alias $LETZTE_ELTERN_ÜBEREINSTIMMUNG $+ 30 | 31 | alias $SICHERHEIT $SAFE 32 | alias $DATEINAME $FILENAME 33 | alias $PROGRAMM_NAME $PROGRAM_NAME 34 | alias $LADE_PFAD $LOAD_PATH 35 | alias $GELADENE_FUNKTIONALITÄTEN $LOADED_FEATURES 36 | alias $AUSFÜHRLICH $VERBOSE 37 | alias $ENTWANZEN $DEBUG 38 | 39 | alias $bindung $binding 40 | alias $stdrein $stdin 41 | alias $stdraus $stdout 42 | alias $stdfehl $stderr 43 | --------------------------------------------------------------------------------