別のキーワード
ライブラリ
- e2mmap (12)
- logger (1)
- rubygems (60)
-
rubygems
/ command (12) -
rubygems
/ exceptions (96) -
rubygems
/ installer (24) -
rubygems
/ package (24) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ user _ interaction (24) -
rubygems
/ validator (24)
クラス
-
Gem
:: Command (12) -
Gem
:: Installer (12) -
Gem
:: LoadError (48) -
Gem
:: RemoteFetcher :: FetchError (24) -
Gem
:: StreamUI (12) -
Gem
:: Validator (24)
モジュール
- Exception2MessageMapper (12)
-
Gem
:: UserInteraction (12)
キーワード
- Application (1)
- CommandLineError (12)
- DependencyError (12)
- DocumentError (12)
- ErrorData (12)
- ExtensionBuildError (12)
- FetchError (12)
- FilePermissionError (12)
- FormatError (12)
- InstallError (12)
- LoadError (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - OperationNotSupportedError (12)
- RemoteError (12)
- VerificationError (12)
-
alert
_ error (24) - alien (12)
-
def
_ exception (12) - install (12)
-
minitest
/ unit (1) - name (12)
- name= (12)
- new (12)
-
rubygems
/ security (12) -
show
_ lookup _ failure (12) -
test
/ unit (1) - uri (12)
-
version
_ requirement (12) -
version
_ requirement= (12)
検索結果
先頭5件
- Gem
:: Installer # install -> Gem :: Specification - Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class - Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class - NEWS for Ruby 3
. 1 . 0 - NEWS for Ruby 2
. 0 . 0
-
Gem
:: Installer # install -> Gem :: Specification (3189.0) -
Gem をインストールします。
...
Gem をインストールします。
以下のディレクトリ構造で Gem をインストールします。
@gem_home/
cache/<gem-version>.gem #=> インストールした Gem のコピー
gems/<gem-version>/... #=> インストール時に展開した......<gem-version>.gemspec #=> gemspec ファイル
@return ロードされた Gem::Specification のインスタンスを返します。
@raise Gem::InstallError 要求された Ruby のバージョンを満たしていない場合に発生します。
@raise Gem::InstallError 要求された RubyGem......s のバージョンを満たしていない場合に発生します。
@raise Gem::InstallError Zlib::GzipFile::Error が発生した場合に発生します。... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (3100.0) -
exception_name という名前の例外クラスを定義します。
...ion_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。... -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (3100.0) -
exception_name という名前の例外クラスを定義します。
...el.#sprintf のフォーマット文字列と同じ形式を使用できます。
@param superklass 定義する例外クラスのスーパークラスを指定します。
省略すると StandardError を使用します。
@return 定義した例外クラスを返します。... -
NEWS for Ruby 3
. 1 . 0 (60.0) -
NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...te def foo = puts "Hello" はパースされないことに注意してください。 17398
== コマンドラインオプション
* --disable-gems は"デバッグ専用"として明示的に宣言されました。デバッグ専用以外のコードでは使用しないでください。 17......を開始するための offset: キーワード引数を渡せるようになりました。 offset が文字列の範囲外の場合、 ArgumentError 例外が発生します。 18254
* Thread
* 新規メソッド
* Thread#native_thread_id が追加されました。 17853
* Thread......されるようになりました。
//emlist[Time.new][ruby]{
Time.new(2021, 12, 25, "+07:30")
#=> invalid value for Integer(): "+07:30" (ArgumentError)
//}
* Ruby 3.0 以前では、予期しない結果の 2021-12-25 07:00:00 が返されました。 2021-12-25 07:30:00 や 2021-12-25 00:... -
NEWS for Ruby 2
. 0 . 0 (36.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...換: Object#inspect は #to_s を呼び出さなくなりました。再定義された #to_s を呼び出すためです。
* LoadError
* 追加: LoadError#path ロードできなかったファイルのパスを返します
* Module
* 追加: Module#prepend 指定したモジュー......ry_lock, Mutex#synchronize, Mutex#sleep
はトラップハンドラの中では使えなくなりました。そのようなときは ThreadError が発生します
* Mutex#sleep may spurious wakeup. Check after wakeup.
* NilClass
* 追加: NilClass#to_h 空のハッシュを返......とんどのユーザーに影響はないでしょう。
* 注目すべき変更
* riがページをサポートしました。これはGemでも動作します。
//emlist{
# ruby に含まれるページリストを表示する
$ ri ruby:
# リテラルに関する文法を表示... -
NEWS for Ruby 2
. 3 . 0 (36.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...--debug または --debug=frozen-string-literal を付けて実行すると、
freeze された文字列を操作しようとして RuntimeError が発生したときにそのオブジェクトが生成された位置を表示します。
11725
* safe navigation operator (ぼっち......は文法的に必須であるという点が異なります。
11537
//emlist{
obj.try! {} # valid
obj&. {} # syntax error
//}
* 引数はメソッドが呼び出された場合のみ評価されます。
//emlist{
obj.try!(:foo, bar()) # bar() は常......obj&.attr += 1
//}
* did_you_mean gem:
* 名前のタイポによって NameError や NoMethodError が起きたときに、自動的に他の似た名前を提案してくれます。
//emlist{
"Yuki".starts_with?("Y")
# => NoMethodError: undefined method `starts_with?' for "... -
NEWS for Ruby 2
. 2 . 0 (24.0) -
NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...elf(Object#itself)
* 改善: Kernel.#throw は、対応する catch ブロックがないとき ArgumentError ではなく
ArgumentError のサブクラスである UncaughtThrowError を発生させるようになりました
* Process
* 拡張: Process.spawn のような外部プ......#fsync を使ってください。
* Math
* 非互換: Math.#log は 基底が 0 より小さいとき NaN を返すかわりに Math::DomainError を発生させます。
2つの引数に両方とも 0 が指定された場合、負の無限大ではなく NaN を返します。
*......tp://docs.seattlerb.org/rake/History_rdoc.html#label-10.4.0
* rubygems
* RubyGems 2.4.2 になりました。リリースノートの全てはリンク先を参照してください。
http://docs.seattlerb.org/rubygems/History_txt.html#label-2.4.2+%2F+2014-10-01
* tsort
* TSort.... -
minitest
/ unit (24.0) -
ユニットテストを行うためのライブラリです。
...n 0.000940 seconds.
1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb -n test_bar
Loade......n 0.000820 seconds.
1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
コンソールを使った testrunner のみ提供されています。
またヘルプを表示することもできません。
===......ます。
そうではなくて require 'minitest/unit' する場合は、テストクラスの定義時に親クラスを
MiniTest::Unit::TestCase にしなければなりません。
=== 注意
このライブラリは 2.2.0 で bundled gem(gemファイルのみを同梱)になりました。... -
test
/ unit (24.0) -
ユニットテストを行うためのライブラリです。
...ユニットテストを行うためのライブラリです。
このライブラリは 2.2.0 からbundled gem(gemファイルのみを同梱)になりまし
た。詳しい内容は下記のプロジェクトページを参照してください。
* Test::Unit - Ruby用単体テストフレ......Failure:
test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">.
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb --name test_b......Failure:
test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">.
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
--name=test_barのような指定は行えません。
以下のようにすると help も表示されます。
$ ruby test_foo.rb... -
Logger
:: Application (18.0) -
ユーザ定義のアプリケーションにログ機能を簡単に追加することができます。
...@log.error('my_method2') { 'Error!' }
...
end
end
status = FooApp.new(....).start
=== 注意
このクラスは 2.2.0 で gem ライブラリとして切り離されました。2.2.0
以降ではそちらを利用してください。
* https://rubygems.org/gems/logger-ap... -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...rd arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches......st{
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 NoMatchingPatternError
//}
* Find-pattern is added. [EXPERIMENTAL]
16828
//emlist{
case ["a", 1, "b", "c", 2, "d", "e", "f", 3]
in [*pre, String => x, String =>......patible.
* Psych
* Update to Psych 3.3.0
* This version is Ractor compatible.
* Reline
* Update to Reline 0.1.5
* RubyGems
* Update to RubyGems 3.2.3
* StringIO
* Update to StringIO 3.0.0
* This version is Ractor compatible.
* StringScanner
* Update to StringSca...