ライブラリ
- ビルトイン (16)
- drb (120)
-
drb
/ extserv (12) -
drb
/ extservm (12) -
net
/ http (391) - open-uri (104)
-
rexml
/ document (180) -
rexml
/ parsers / sax2parser (60) -
rexml
/ sax2listener (48) -
rexml
/ streamlistener (24) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) -
rubygems
/ dependency _ installer (24) -
rubygems
/ format (24) -
rubygems
/ package / tar _ input (24) -
rubygems
/ remote _ fetcher (96) -
rubygems
/ security (324) -
rubygems
/ server (36) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache _ entry (12) -
rubygems
/ spec _ fetcher (12) - syslog (12)
- uri (936)
-
webrick
/ httpproxy (12) -
webrick
/ httprequest (36) -
webrick
/ httpresponse (12) -
webrick
/ httpserver (12) -
webrick
/ httpstatus (204) - win32ole (48)
クラス
-
DRb
:: DRbObject (48) -
DRb
:: DRbServer (36) -
DRb
:: ExtServ (12) -
DRb
:: ExtServManager (12) -
Gem
:: DependencyInstaller (24) -
Gem
:: Format (24) -
Gem
:: Package :: TarInput (24) -
Gem
:: RemoteFetcher (96) -
Gem
:: Security :: Policy (180) -
Gem
:: Security :: Signer (12) -
Gem
:: Server (36) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCacheEntry (12) -
Gem
:: SpecFetcher (12) -
Net
:: HTTP (60) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (48) - Object (16)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: Element (48) -
REXML
:: Entity (12) -
REXML
:: NotationDecl (24) -
REXML
:: Parsers :: SAX2Parser (60) -
Rinda
:: DRbObjectTemplate (12) -
URI
:: FTP (60) -
URI
:: Generic (432) -
URI
:: HTTP (36) -
URI
:: LDAP (156) -
URI
:: LDAPS (12) -
URI
:: MailTo (108) -
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServer (12) - WIN32OLE (12)
-
WIN32OLE
_ EVENT (24)
モジュール
- DRb (24)
-
Gem
:: LocalRemoteOptions (12) -
Gem
:: Security (120) - Kernel (28)
-
Net
:: HTTPHeader (228) - OpenURI (24)
-
OpenURI
:: Meta (24) -
OpenURI
:: OpenRead (24) -
REXML
:: SAX2Listener (48) -
REXML
:: Security (48) -
REXML
:: StreamListener (24) -
Syslog
:: Facility (12) - URI (76)
-
WEBrick
:: HTTPStatus (192)
キーワード
- + (12)
- == (24)
- AlmostNoSecurity (12)
- COMPONENT (12)
-
DEFAULT
_ PORT (24) - DRbProtocol (12)
- HTTPRequestURITooLarge (12)
- HTTPRequestURITooLong (12)
- HTTPURITooLong (7)
- HighSecurity (12)
- InvalidComponentError (12)
- InvalidURIError (12)
- LDAP (12)
- LDAPS (12)
-
LOG
_ SECURITY (12) - LowSecurity (12)
- MailTo (12)
- Marshal (12)
- MediumSecurity (12)
- NoSecurity (12)
- Policies (12)
- Policy (12)
-
RC
_ CONFLICT (12) -
RC
_ EXPECTATION _ FAILED (12) -
RC
_ INTERNAL _ SERVER _ ERROR (12) -
RC
_ LENGTH _ REQUIRED (12) -
RC
_ METHOD _ NOT _ ALLOWED (12) -
RC
_ MOVED _ PERMANENTLY (12) -
RC
_ MULTIPLE _ CHOICES (12) -
RC
_ NOT _ ACCEPTABLE (12) -
RC
_ NOT _ IMPLEMENTED (12) -
RC
_ PARTIAL _ CONTENT (12) -
RC
_ PRECONDITION _ FAILED (12) -
RC
_ REQUEST _ ENTITY _ TOO _ LARGE (12) -
RC
_ REQUEST _ RANGE _ NOT _ SATISFIABLE (12) -
RC
_ REQUEST _ URI _ TOO _ LARGE (12) -
RC
_ SERVICE _ UNAVAILABLE (12) -
RC
_ SWITCHING _ PROTOCOLS (12) - RequestURITooLarge (12)
- Security (12)
- TupleSpace (12)
-
WIN32OLE
_ EVENT (12) - [] (12)
- []= (12)
-
_ _ drbref (12) -
_ _ drburi (12) - absolute (12)
- absolute? (12)
-
accept
_ uri _ http (12) -
add
_ namespace (24) -
add
_ trusted _ cert (12) - attribute (12)
- attributes (12)
- attributes= (12)
- body (12)
- build (120)
- build2 (24)
-
build
_ cert (12) -
build
_ self _ signed _ cert (12) - charset (12)
- chunked? (12)
- component (24)
- connect (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
default
_ port (24) - delete (12)
- dn (12)
- dn= (12)
- doctype (24)
- download (12)
-
drb
/ ssl (12) - each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ value (12) -
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) -
end
_ element (12) - entity (12)
-
entity
_ expansion _ limit (12) -
entity
_ expansion _ limit= (12) -
entity
_ expansion _ text _ limit (12) -
entity
_ expansion _ text _ limit= (12) - eql? (12)
- extensions (12)
- extensions= (12)
- extract (24)
- fetch (12)
-
fetch
_ path (12) -
file
_ uri? (12) - filter (12)
- filter= (12)
-
find
_ gems _ with _ sources (12) -
find
_ proxy (12) -
find
_ spec _ by _ name _ and _ version (12) - fragment (12)
-
from
_ file _ by _ path (12) -
from
_ io (12) -
get
_ attribute _ ns (12) -
get
_ fields (12) -
get
_ file _ uri _ path (12) -
get
_ proxy _ from _ env (12) -
get
_ response (12) - handler= (12)
- headers (12)
- headers= (12)
- here? (24)
- hierarchical? (12)
- host (12)
- hostname (12)
- key (12)
- key? (12)
-
last
_ modified (12) -
latest
_ specs (12) - listen (60)
-
load
_ specs (12) -
main
_ type (12) - merge (12)
- merge! (12)
- namespace (24)
- namespaces (12)
- new (168)
- new2 (12)
- normalize (12)
- normalize! (12)
-
normalize
_ uri (12) - notationdecl (12)
-
only
_ signed (12) -
only
_ signed= (12) -
only
_ trusted (12) -
only
_ trusted= (12) - opaque (12)
- open (68)
-
open
_ uri (24) -
open
_ uri _ or _ path (12) - password (12)
- path (12)
-
path
_ info= (12) - port (12)
-
proxy
_ uri (12) - query (12)
-
query
_ string= (12) - range (12)
-
range
_ length (12) -
read
_ body (12) - ref (12)
- refresh (12)
- registry (12)
- relative? (12)
- request (12)
-
request
_ body _ permitted? (12) -
request
_ uri (12) -
response
_ body _ permitted? (12) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / ultralightparser (12) -
ruby 1
. 8 . 2 feature (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ security (12) - scheme (12)
- scope (12)
- scope= (12)
- select (12)
-
sign
_ cert (12) - split (12)
- ssl? (12)
- start (24)
-
start
_ element (12) -
start
_ prefix _ mapping (12) -
start
_ service (12) -
sub
_ type (12) - system (12)
- to (12)
- to= (12)
-
to
_ mailtext (12) -
to
_ rfc822text (12) -
trusted
_ cert _ path (12) - typecode (12)
- update (12)
- uri (24)
-
use
_ registry (12) - user (12)
- userinfo (12)
- value (12)
-
verify
_ chain (12) -
verify
_ chain= (12) -
verify
_ data (12) -
verify
_ data= (12) -
verify
_ gem (12) -
verify
_ root (12) -
verify
_ root= (12) -
verify
_ signer (12) -
verify
_ signer= (12) - yaml (12)
-
yield
_ self (16)
検索結果
先頭5件
-
URI
. split(url) -> [String | nil] (27140.0) -
URI を要素に分割した文字列の配列を返します。
...
URI を要素に分割した文字列の配列を返します。
各要素の種類と順番は以下のとおりです。
* scheme
* userinfo
* host
* port
* registry
* path
* opaque
* query
* fragment
@param url パースしたい URI を文字列として与えます。
@ra......ise URI::InvalidURIError パースに失敗した場合に発生します。
例:
require 'uri'
p URI.split("http://www.ruby-lang.org/")
#=> ["http", nil, "www.ruby-lang.org", nil, nil, "/", nil, nil, nil]... -
Kernel
. # URI(uri _ str) -> object (21274.0) -
与えられた URI から該当する URI::Generic のサブクラスのインスタンスを生成して 返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
... URI から該当する URI::Generic のサブクラスのインスタンスを生成して
返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
@param uri_str パースしたい URI を文字列として与えます。
@raise URI::InvalidU......RIError パースに失敗した場合に発生します。
@see URI.parse... -
URI
. extract(str) {|uri _ str| . . . } -> nil (21252.0) -
文字列 str に対してパターンマッチングを試み、 絶対URIにマッチした部分文字列からなる配列として返します。 抽出する URI がなければ空の配列を返します。
...文字列 str に対してパターンマッチングを試み、
絶対URIにマッチした部分文字列からなる配列として返します。
抽出する URI がなければ空の配列を返します。
第2引数に文字列の配列 schemes が与えられた場合は
そのスキー......tring#scan と同様で、
マッチした部分がみつかるたびに uri_str に
その部分を代入してブロックを評価します。
このときは nil を返します。
このメソッドは Ruby 2.2 から obsolete です。
@param str 文字列を与えます。
@param schemes......対象としたいスキームを、文字列の配列として与えます。
例:
require 'uri'
str = "
http://www.ruby-lang.org/
http://www.ruby-lang.org/man-1.6/
"
p URI.extract(str, ["http"])
=> ["http://www.ruby-lang.org/", "http://www.ruby-lang.org/man-1.6/"]... -
URI
. extract(str , schemes) {|uri _ str| . . . } -> nil (21252.0) -
文字列 str に対してパターンマッチングを試み、 絶対URIにマッチした部分文字列からなる配列として返します。 抽出する URI がなければ空の配列を返します。
...文字列 str に対してパターンマッチングを試み、
絶対URIにマッチした部分文字列からなる配列として返します。
抽出する URI がなければ空の配列を返します。
第2引数に文字列の配列 schemes が与えられた場合は
そのスキー......tring#scan と同様で、
マッチした部分がみつかるたびに uri_str に
その部分を代入してブロックを評価します。
このときは nil を返します。
このメソッドは Ruby 2.2 から obsolete です。
@param str 文字列を与えます。
@param schemes......対象としたいスキームを、文字列の配列として与えます。
例:
require 'uri'
str = "
http://www.ruby-lang.org/
http://www.ruby-lang.org/man-1.6/
"
p URI.extract(str, ["http"])
=> ["http://www.ruby-lang.org/", "http://www.ruby-lang.org/man-1.6/"]... -
URI
. open(name , mode = & # 39;r& # 39; , perm = nil , options = {}) {|ouri| . . . } -> object (21246.0) -
name が http:// や https://、ftp:// で始まっている文字列なら URI のリソースを 取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。 返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
...tp:// や https://、ftp:// で始まっている文字列なら URI のリソースを
取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。
返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
name......ている場合は、*rest を引数として渡し
name.open(*rest, &block) のように name の open メソッドが呼ばれます。
これ以外の場合は、name はファイル名として扱われ、従来の
Kernel.#open(name, *rest) が呼ばれます。
ブロックを与えた場合......:// で
始まっている文字列なら URI のリソースを取得した上で StringIO オブジェクト
または Tempfile オブジェクトを引数としてブロックを評価します。後は同様です。
引数のオブジェクトは OpenURI::Meta モジュールで extend され... -
URI
. open(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO | Tempfile | IO (21146.0) -
name が http:// や https://、ftp:// で始まっている文字列なら URI のリソースを 取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。 返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
...tp:// や https://、ftp:// で始まっている文字列なら URI のリソースを
取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。
返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
name......ている場合は、*rest を引数として渡し
name.open(*rest, &block) のように name の open メソッドが呼ばれます。
これ以外の場合は、name はファイル名として扱われ、従来の
Kernel.#open(name, *rest) が呼ばれます。
ブロックを与えた場合......:// で
始まっている文字列なら URI のリソースを取得した上で StringIO オブジェクト
または Tempfile オブジェクトを引数としてブロックを評価します。後は同様です。
引数のオブジェクトは OpenURI::Meta モジュールで extend され... -
URI
. encode _ www _ form(enum , enc=nil) -> String (21142.0) -
enum から URL-encoded form data を生成します。
...ら URL-encoded form data を生成します。
HTML5 で定義されている application/x-www-form-urlencoded 形式の
文字列を生成します。
enum には通常 [key, value] という形の配列の配列を渡します。
以下の例を見てください。
require 'uri'
URI.enco......# => "a=1&b=2&c=x+yz"
実際には、each のブロック呼び出しで [key, value] の形のデータを渡すものであれば
何でも渡すことができます(例えば Hash など)。
require 'uri'
URI.encode_www_form({"a"=>"1", "b"=>"2", "c"=>"x yz"})
# => "a=1&b=2&c=x+yz"
こ......め
送るデータのエンコーディングを変換したい場合はあらかじめ
変換しておいてください(例えば ASCII incompatible なものを
UTF-8 に変換する場合など)。
各要素のエンコーディングがばらばらの場合もあらかじめエンコーディ... -
URI
. encode _ www _ form _ component(str , enc=nil) -> String (21130.0) -
文字列を URL-encoded form data の1コンポーネント としてエンコードした文字列を返します。
...文字列を URL-encoded form data の1コンポーネント
としてエンコードした文字列を返します。
通常は URI.encode_www_form を使うほうがよいでしょう。
このメソッドでは *, -, ., 0-9, A-Z, _, a-z, は変換せず、
空白は + に変換し、その他......%XX に、変換します。
このメソッドは
https://www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
p URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%8......%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
//}
@param str エンコードする文字列
@param enc 指定された場合、パーセントエンコーディングする前に、strをこのエンコーディングに変換
@see URI.decode_www_form_component, URI.encode_www_form... -
Gem
:: Security :: AlmostNoSecurity -> Gem :: Security :: Policy (15300.0) -
ほとんどの検証を行わないポリシーです。
...んど役に立たない上、
簡単に騙すことができるので、使用しないでください。
:verify_data => true,
:verify_signer => false,
:verify_chain => false,
:verify_root => false,
:only_trusted => false,
:only_signed => false...