別のキーワード
ライブラリ
- ビルトイン (960)
-
cgi
/ session (24) -
cgi
/ session / pstore (12) - etc (36)
- fileutils (252)
- find (24)
- json (12)
-
minitest
/ unit (1) - mkmf (168)
-
net
/ ftp (184) - open3 (24)
- openssl (36)
- pathname (304)
- psych (36)
- rake (60)
-
rake
/ packagetask (36) -
rake
/ rdoctask (12) - rbconfig (24)
-
rdoc
/ generator / darkfish (12) -
rdoc
/ generator / json _ index (12) - rubygems (36)
-
rubygems
/ commands / which _ command (12) -
rubygems
/ defaults (60) -
rubygems
/ dependency _ installer (24) -
rubygems
/ ext / builder (12) -
rubygems
/ ext / configure _ builder (12) -
rubygems
/ ext / ext _ conf _ builder (12) -
rubygems
/ ext / rake _ builder (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ indexer (36) -
rubygems
/ installer (24) -
rubygems
/ package / f _ sync _ dir (12) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ package / tar _ writer (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ security (12) -
rubygems
/ server (12) -
rubygems
/ source _ index (48) -
rubygems
/ spec _ fetcher (24) -
rubygems
/ specification (24) -
rubygems
/ uninstaller (12) -
rubygems
/ validator (12) - shell (108)
-
shell
/ command-processor (48) -
shell
/ filter (48) - tempfile (60)
- tmpdir (36)
- un (48)
-
webrick
/ config (12) -
webrick
/ httpresponse (12) -
webrick
/ httpserver (84) -
webrick
/ httpstatus (12)
クラス
-
CGI
:: Session (12) -
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: PStore (12) - Class (12)
- Dir (626)
-
Etc
:: Passwd (12) - File (96)
-
File
:: Stat (84) -
Gem
:: Commands :: WhichCommand (12) -
Gem
:: DependencyInstaller (24) -
Gem
:: Ext :: Builder (12) -
Gem
:: Ext :: ConfigureBuilder (12) -
Gem
:: Ext :: ExtConfBuilder (12) -
Gem
:: Ext :: RakeBuilder (12) -
Gem
:: GemPathSearcher (12) -
Gem
:: Indexer (36) -
Gem
:: Installer (24) -
Gem
:: Package :: TarReader :: Entry (12) -
Gem
:: Package :: TarWriter (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: Server (12) -
Gem
:: SourceIndex (48) -
Gem
:: SpecFetcher (24) -
Gem
:: Specification (24) -
Gem
:: Uninstaller (12) -
Gem
:: Validator (12) - IO (22)
-
Net
:: FTP (144) -
Net
:: FTP :: MLSxEntry (40) - Pathname (304)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Document (24) -
RDoc
:: Generator :: Darkfish (12) -
RDoc
:: Generator :: JsonIndex (12) -
RDoc
:: Options (36) -
Rake
:: Application (12) -
Rake
:: PackageTask (36) -
Rake
:: RDocTask (12) - Shell (108)
-
Shell
:: CommandProcessor (48) -
Shell
:: Filter (48) - Tempfile (60)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServer (60) -
WEBrick
:: HTTPServer :: MountTable (24)
モジュール
- Etc (24)
-
File
:: Constants (72) - FileTest (36)
- FileUtils (252)
- Find (24)
- Gem (96)
-
Gem
:: Package :: FSyncDir (12) -
Gem
:: Security (12) - Kernel (240)
- Marshal (24)
- MiniTest (1)
- Open3 (24)
-
OpenSSL
:: X509 (36) - Process (12)
- Rake (36)
- RbConfig (24)
-
WEBrick
:: Config (12) -
WEBrick
:: HTTPStatus (12)
キーワード
-
$ CFLAGS (12) -
$ LDFLAGS (12) -
$ archdir (12) -
$ hdrdir (12) -
$ libdir (12) -
$ sitearchdir (12) -
$ sitelibdir (12) -
$ srcdir (12) -
$ topdir (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
DEFAULT
_ CERT _ DIR (12) -
DEFAULT
_ CERT _ DIR _ ENV (12) -
DEFAULT
_ PRIVATE _ DIR (12) - DESTDIR (12)
- DIRECT (12)
- DIRECTORIES (12)
-
FNM
_ CASEFOLD (12) -
FNM
_ DOTMATCH (12) -
FNM
_ NOESCAPE (12) -
FNM
_ PATHNAME (12) -
FNM
_ SYSCASE (12) -
GENERATOR
_ DIR (12) - IO (12)
- LIBDIR (12)
-
MINI
_ DIR (1) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) - TOPDIR (12)
- [] (24)
-
_ _ dir _ _ (12) -
absolute
_ path (12) -
add
_ bindir (12) -
add
_ trusted _ cert (12) - application (12)
- application= (12)
-
bin
_ dir (24) - bindir (12)
- blockdev? (24)
- build (36)
-
cache
_ dir (12) - cd (24)
- chardev? (24)
- chdir (90)
- children (35)
- chown (12)
-
chown
_ R (12) - chroot (12)
- cleanpath (12)
-
clear
_ paths (12) - close (12)
-
cp
_ r (12) - create (24)
- cwd (6)
- daemon (12)
-
default
_ bindir (12) -
default
_ dir (12) -
default
_ system _ source _ cache _ dir (12) -
default
_ user _ source _ cache _ dir (12) - delete (36)
-
dest
_ directory (12) -
dir
_ config (12) -
dir
_ stack (6) - directory (24)
- directory? (88)
-
directory
_ makable? (10) - dirname (42)
- dirs (6)
- download (12)
-
dummy
_ makefile (12) - dump (24)
- each (24)
-
each
_ child (70) -
each
_ entry (15) - empty? (18)
- entries (36)
- exist? (12)
- exists? (9)
- facts (10)
- fileno (22)
- find (24)
-
find
_ gems _ with _ sources (12) -
find
_ paths (12) - fnmatch (12)
- fnmatch? (12)
- foreach (66)
-
from
_ gems _ in (12) -
fsync
_ dir (12) - getdir (12)
- getwd (30)
- glob (82)
- home (24)
- httpd (12)
- inspect (12)
-
install
_ rb (12) -
installed
_ spec _ directories (12) -
json
_ creatable? (12) -
lib
_ dirs _ for (12) - list (24)
-
ln
_ s (12) -
load
_ gems _ in (12) - ls (24)
- makedirs (12)
- mkdir (90)
-
mkdir
_ p (12) - mkmf (24)
- mkpath (12)
- mktmpdir (24)
- mount (12)
-
mount
_ proc (24) - move (12)
- mv (12)
- new (162)
- nlst (12)
-
op
_ dir (12) - open (90)
- opendir (24)
-
original
_ dir (24) -
package
_ dir (12) -
package
_ dir _ path (12) -
page
_ dir (12) - path (12)
- popdir (6)
- popen3 (24)
- pos (12)
- pos= (12)
- pushdir (6)
- pwd (42)
- rdoc (12)
-
rdoc
_ dir (12) - read (12)
- realdirpath (24)
- realpath (36)
- redirect? (12)
- redirector (12)
-
relative
_ path _ from (12) - remove (12)
-
remove
_ dir (12) -
remove
_ leading _ dot _ dir (12) - rewind (12)
- rm (12)
-
rm
_ f (12) -
rm
_ r (12) -
rm
_ rf (12) - rmdir (78)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ commands / generate _ index _ command (12) - seek (12)
-
set
_ redirect (12) - setgid? (12)
- setuid? (12)
- shell (6)
- socket? (12)
-
spec
_ dirs (12) -
start
_ document (12) - sticky? (12)
- symlink (12)
- sysconfdir (12)
- systmpdir (12)
-
tag
_ directives (12) - tell (12)
-
template
_ dir (12) - tmpdir (12)
-
to
_ i (11) -
to
_ path (12) - touch (12)
- type (10)
- umount (12)
- unlink (42)
- unmount (12)
-
user
_ dir (12)
検索結果
-
Shell
# cwd -> String (101.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# getwd -> String (101.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# pwd -> String (101.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
shell (96.0)
-
Ruby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。
...Example 1:
require 'shell'
sh = Shell.cd("/tmp")
sh.mkdir "shell-test-1" unless sh.exists?("shell-test-1")
sh.cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
unless sh.exists?(dir)
sh.mkdir dir
sh.cd(dir) do
f = sh.open("tmpFile", "w")
f.puts "TEST"......require 'shell'
sh = Shell.cd("/tmp")
sh.transact do
mkdir "shell-test-1" unless exists?("shell-test-1")
cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
if !exists?(dir)
mkdir dir
cd(dir) do
f = open("tmpFile", "w")
f.print "TEST\n"......shell'
sh = Shell.new
sh.cat("/etc/printcap") | sh.tee("tee1") > "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") > "tee12"
sh.cat("/etc/printcap") | sh.tee("tee1") >> "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") >> "tee12"
==== Example 4:
require 'shell'
sh = Shell.new
p... -
NEWS for Ruby 2
. 5 . 0 (66.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...* Dir
* Dir.glob :base というキーワード引数を追加しました 13056
* Dir.chdir (ブロックなしで呼び出した場合), Dir.open, Dir.new, Dir.mkdir, Dir.rmdir,
Dir.empty? はGVLを解放するようになりました
* Dir.children を追加 11302
* Dir.e......ました 14133
* Numeric
* Numeric#step は > で0と比較できない引数が与えられたときcoerce内部で発生したエラーを隠蔽しないようになりました。
7688
* 数値の比較メソッド(<,<=,>=,>)は、coerceメソッドで発生した例外を隠蔽......43
* Range
* Range.new no longer hides exceptions when comparing begin and
end with #<=> and raise a "bad value for range" ArgumentError
but instead lets the exception from the #<=> call go through.
7688
* Regexp
* Onigmo 6.1.3-669ac9997619954c298da971fcfacccf36909d0... -
ruby 1
. 8 . 3 feature (30.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...ruby 1.8.3 feature
*((<ruby 1.8 feature>))
*((<ruby 1.8.2 feature>))
ruby 1.8.2 から ruby 1.8.3 までの変更点です。
掲載方針
*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリ......ap4r-1.5.5がruby-1.8.3にbundleされています。
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-154>))
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-155>))
== 1.8.2 (2004-12-25) -> 1.8.3 (2005-09-21)
=== 2005-09-19
: FileUtils.remove_entry_secure [lib] [new]
: FileUtils.remove_entry......=== 2005-07-27
: Dir#each [ruby] [bug]
: Dir#entries [ruby] [bug]
1回メソッドを呼んでしまうと空になるバグを修正しました。
$ ruby-1.8.2 -e '
d = Dir.new("/")
d.entries
p d.entries
'
[]
$ ruby-1.8.3 -e '
d = Dir.new("/")
d.e... -
IO (24.0)
-
基本的な入出力機能のためのクラスです。
...動作します。
例:
f = File.open('t.txt', 'r+:euc-jp')
p f.getc.encoding #=> Encoding::EUC_JP
p f.read(1).encoding #=> Encoding::ASCII_8BIT
====[a:io_encoding] IO のエンコーディングとエンコーディングの変換
IO......le1')
p f.getc.encoding #=> Encoding::EUC_JP
例2:
f = File.open('t.txt', 'w+:shift_jis:euc-jp')
f.write "\xB4\xC1\xBB\xFA" # 文字列 "漢字" の EUC-JP リテラル
f.rewind
s = f.read(4)
puts s.dump #=> "\x8A\xBF\x8E\x9A"......ンコーディングは暗黙に変換されます(予定)。UNIX では変換されずそのままシステムコールに渡されます。
Dir.glob, Dir.foreach などが返すファイル名のエンコーディングも同様にプラットフォーム依存です。
UNIX では ASCII-8BIT... -
NEWS for Ruby 3
. 0 . 0 (24.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...o keywords.
16166
//emlist[][ruby]{
pr = proc{|*a, **kw| [a, kw]}
pr.call([1])
# 2.7 => [[1], {}]
# 3.0 => [[[1]], {}]
pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}
* Arguments forwarding (`...`) now supports leading arguments.
16378
//......ENTAL]
* `=>` is added. It can be used like a rightward assignment.
17260
* `in` is changed to return `true` or `false`. 17371
//emlist{
0 => a
p a #=> 0
{b: 0, c: 1} => {b:}
p b #=> 0
//}
//emlist{
# version 3.0
0 in 1 #=> false
# version 2.7
0 in 1 #=> raise NoMatchingP......q
* Array#*
* Can be sliced with Enumerator::ArithmeticSequence
//emlist[][ruby]{
dirty_data = ['--', 'data1', '--', 'data2', '--', 'data3']
dirty_data[(1..).step(2)] # take each second element
# => ["data1", "data2", "data3"]
//}
* Binding
* Binding#eval when called with one argum... -
NEWS for Ruby 2
. 4 . 0 (18.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...m 12217
Enumerable#sum と違って each メソッドに依存しません。
* Comparable
* Comparable#clamp を追加 10594
* Dir
* Dir.empty? を追加 10121
* Enumerable
* Enumerable#chunk ブロックを省略した場合 Enumerator を返すようになりました......字として許可しなくなりました 12791
* csv
* liberal_parsing オプションを追加 11839
* ipaddr
* IPAddr#==, IPAddr#<=> で引数のオブジェクトを IPAddr に変換する処理に失敗しても例外が発生しなくなりました
12799
* irb
* Bi......場合、
コンパイルエラーになります。
//emlist{
# 0のクラスはInteger
0.class # => Integer
Fixnum # => Integer
Bignum # => Integer
# 以下の2つは同じ
obj.kind_of?(Fixnum)
obj.kind_of?(Integer)
/* Cレベ... -
Rake
. application=(app) (18.0) -
現在の Rake アプリケーションをセットします。
...end
# => #<Rake::Application:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoader:0x00005624e6c30cd8>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x00005624e6c30bc0>,
# ".rf"=>#<Rake::DefaultLoader:0x00005624e6c30b48>,
#......".rake"=>#<Rake::DefaultLoader:0x00005624e6c30a80>},
# @name="rake",
# @options=
# #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=false, load_system=false, nosearch=false, rakelib=["rakelib"]......show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=20, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile=nil,
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"... -
rubygems
/ commands / generate _ index _ command (12.0) -
ある Gem サーバに対するインデックスを作成するためのライブラリです。
...スを作成するためのライブラリです。
Usage: gem generate_index [options]
Options:
-d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-h, --help このコマンドのヘルプを表示します......:
Generates the index files for a gem server directory
Description:
The generate_index command creates a set of indexes for serving gems
statically. The command expects a 'gems' directory under the path given to
the --directory option. When done, it will generate a set......# quick index manifest
quick/<gemname>.gemspec.rz # legacy YAML quick index
file
quick/Marshal.<version>/<gemname>.gemspec.rz # Marshal quick index file
Marshal.<version>
Marshal.<version>.Z # Marshal full index
yaml
yaml....