[ruby-oci8-commit] [385] web: * 02-make_html.rb: fix typo in URL.

nobody at rubyforge.org nobody at rubyforge.org
Tue Apr 13 10:02:36 EDT 2010


Revision: 385
Author:   kubo
Date:     2010-04-13 10:02:35 -0400 (Tue, 13 Apr 2010)

Log Message:
-----------
* 02-make_html.rb: fix typo in URL.
* hiki_src/plugin/99ruby-oci8.rb: add a plugin to insert
    latest ruby-oci8 version.
* hiki_src/style/default/hikidoc.rb: enable plugin support in
    pre-formatted text.
* hiki_data/*/text/*: delete a note that ruby-oci8-2.0 is unstable,
    update the Binary Package page to use gem packages and so on.

Modified Paths:
--------------
    web/02-make_html.rb
    web/ChangeLog
    web/hiki_data/en/info.db
    web/hiki_data/en/text/FAQ_proxy_auth
    web/hiki_data/en/text/FrontPage
    web/hiki_data/en/text/InstallBinaryPackage
    web/hiki_data/en/text/InstallForFullClient
    web/hiki_data/en/text/InstallForInstantClient
    web/hiki_data/ja/info.db
    web/hiki_data/ja/text/FAQ_proxy_auth
    web/hiki_data/ja/text/FrontPage
    web/hiki_data/ja/text/InstallBinaryPackage
    web/hiki_data/ja/text/InstallForFullClient
    web/hiki_data/ja/text/InstallForInstantClient
    web/hiki_src/plugin/99ruby-oci8.rb
    web/hiki_src/style/default/hikidoc.rb

Added Paths:
-----------
    web/hiki_data/en/text/News2_0

Modified: web/02-make_html.rb
===================================================================
--- web/02-make_html.rb	2010-03-07 12:10:11 UTC (rev 384)
+++ web/02-make_html.rb	2010-04-13 14:02:35 UTC (rev 385)
@@ -39,7 +39,7 @@
       last_mod = db[key][:last_modified].getgm
       f.write(<<EOS)
  <url>
-   <loc>http://ruby-oci8.rubyforge.org]/#{lang}/#{key}.html</loc>
+   <loc>http://ruby-oci8.rubyforge.org/#{lang}/#{key}.html</loc>
    <lastmod>#{last_mod.strftime('%Y-%m-%dT%H:%M:%S+00:00')}</lastmod>
  </url>
 EOS

Modified: web/ChangeLog
===================================================================
--- web/ChangeLog	2010-03-07 12:10:11 UTC (rev 384)
+++ web/ChangeLog	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,3 +1,12 @@
+2010-04-13  KUBO Takehiro  <kubo at jiubao.org>
+	* 02-make_html.rb: fix typo in URL.
+	* hiki_src/plugin/99ruby-oci8.rb: add a plugin to insert
+	    latest ruby-oci8 version.
+	* hiki_src/style/default/hikidoc.rb: enable plugin support in
+	    pre-formatted text.
+	* hiki_data/*/text/*: delete a note that ruby-oci8-2.0 is unstable,
+	    update the Binary Package page to use gem packages and so on.
+
 2009-05-08  KUBO Takehiro  <kubo at jiubao.org>
 	* hiki_data/(en|ja)/text/FAQ_proxy_auth:
 	    add proxy authentication sample codes.

Modified: web/hiki_data/en/info.db
===================================================================
--- web/hiki_data/en/info.db	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/en/info.db	2010-04-13 14:02:35 UTC (rev 385)
@@ -53,7 +53,7 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1241786075),
+:last_modified => Time.at(1241791585),
 :references => [
 ],
 :title => "Proxy authentication",
@@ -75,7 +75,7 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1234098068),
+:last_modified => Time.at(1256185375),
 :references => [
 "InstallForInstantClient",
 ],
@@ -101,7 +101,7 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1171256169),
+:last_modified => Time.at(1271166320),
 :references => [
 ],
 :title => "Binary Package",
@@ -112,8 +112,9 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1192083294),
+:last_modified => Time.at(1271166349),
 :references => [
+"InstallBinaryPackage",
 "ReportInstallProblem",
 ],
 :title => "Oracle Full Client",
@@ -124,8 +125,9 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1192083524),
+:last_modified => Time.at(1271166387),
 :references => [
+"InstallBinaryPackage",
 "ReportInstallProblem",
 ],
 :title => "Oracle Instant Client",

Modified: web/hiki_data/en/text/FAQ_proxy_auth
===================================================================
--- web/hiki_data/en/text/FAQ_proxy_auth	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/en/text/FAQ_proxy_auth	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,4 +1,4 @@
-Refer to "Client Access Through a Proxy" at the following URL for the sample codes in this page.
+Refer to "Client Access Through a Proxy" at the following URL with skipping over OCI specific sentences.
 * http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28395/oci02bas.htm#CHDJDICD
 
 !! Local user acting on behalf of a local user.
@@ -10,7 +10,7 @@
   OCI8.new('"Dilbert"["Joe"]/tiger123 at db1')
     or
   OCI8.new('"Dilbert"["Joe"]', 'tiger123', 'db1')
-Pass the username including double quotations.
+Pass the user names including double quotations.
 
 !! Local user dilbert[mybert] connecting to database.
   OCI8.new('"dilbert[mybert]"/tiger123')

Modified: web/hiki_data/en/text/FrontPage
===================================================================
--- web/hiki_data/en/text/FrontPage	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/en/text/FrontPage	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,10 +1,7 @@
 ! What is ruby-oci8
 
-ruby-oci8 is a ruby interface for [[Oracle Database]]. This is available with Oracle8, Oracle8i, Oracle9i, Oracle10g, [[Oracle XE]] and [[Oracle Instant Client]]
+Ruby-oci8 is a ruby interface for [[Oracle Database]]. This is available for all Oracle versions after Oracle 8 including [[Oracle XE]] and [[Oracle Instant Client]]
 
-ruby-oci8-1.0 is stable version. ruby-oci8-2.0-unstable is in development.
-Don't use 2.0-unstable for your projects.
-
 As for Oracle7, use [[Oracle7 Module for Ruby]] by Yoshida Masato.
 
 ! Sample one-liner

Modified: web/hiki_data/en/text/InstallBinaryPackage
===================================================================
--- web/hiki_data/en/text/InstallBinaryPackage	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/en/text/InstallBinaryPackage	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,13 +1,4 @@
-! 1. Check the Oracle client version.
+Download '''ruby-oci8-{{ruby_oci8_version}}-x86-mingw32.gem''' from 
+[[rubyforge|http://rubyforge.org/frs/?group_id=256]] and run the following command as follows to install it.
 
-Binary packages are available only for Oracle 8.1.5 or later.
-
-! 2. Download
-
-Download '''ruby-oci8-VERSION-mswin32.rb''' from 
-[[rubyforge|http://rubyforge.org/frs/?group_id=256]].
-
-note: 1.0 is stable version. 2.0-unstable is in development.
-
-! 3. Run the package.
-  C:> ruby ruby-oci8-VERSION-mswin32.rb
+  gem install ruby-oci8-{{ruby_oci8_version}}-x86-mingw32.gem

Modified: web/hiki_data/en/text/InstallForFullClient
===================================================================
--- web/hiki_data/en/text/InstallForFullClient	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/en/text/InstallForFullClient	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,9 +1,9 @@
 ! 1. Download source code
 
-Download '''ruby-oci8-VERSION.tar.gz''' from 
+Download '''ruby-oci8-{{ruby_oci8_version}}.tar.gz''' from 
 [[rubyforge|http://rubyforge.org/frs/?group_id=256]].
 
-note: 1.0 is stable version. 2.0-unstable is in development.
+Note: if you are using Windows and you have no special need to compile it by yourself, look at [[InstallBinaryPackage]].
 
 ! 2. Check whether '''ruby''' is in PATH.
 
@@ -65,8 +65,8 @@
 
 !! UNIX or Windows(cygwin, mingw32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   make
   make install
 
@@ -75,7 +75,7 @@
 
 !! Windows(mswin32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   nmake
   nmake install

Modified: web/hiki_data/en/text/InstallForInstantClient
===================================================================
--- web/hiki_data/en/text/InstallForInstantClient	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/en/text/InstallForInstantClient	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,9 +1,9 @@
 ! 1. Download source code
 
-Download '''ruby-oci8-VERSION.tar.gz''' from 
+Download '''ruby-oci8-{{ruby_oci8_version}}.tar.gz''' from 
 [[rubyforge|http://rubyforge.org/frs/?group_id=256]].
 
-note: 1.0 is stable version. 2.0-unstable is in development.
+Note: if you are using Windows and you have no special need to compile it by yourself, look at [[InstallBinaryPackage]].
 
 ! 2. Donwload Instant Client Packages.
 
@@ -89,8 +89,8 @@
 
 !! UNIX or Windows(cygwin, mingw32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   make
   make install
 
@@ -101,8 +101,8 @@
 
 !! Windows(mswin32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   nmake
   nmake install
 

Added: web/hiki_data/en/text/News2_0
===================================================================
--- web/hiki_data/en/text/News2_0	                        (rev 0)
+++ web/hiki_data/en/text/News2_0	2010-04-13 14:02:35 UTC (rev 385)
@@ -0,0 +1,93 @@
+'''NOTICE:''' This page is under construction.
+
+{{toc}}
+
+! New Features
+!! Object Type Support
+
+Ruby-OCI8 2.0 New Feature: Oracle Object Type support
+http://limlian.blogspot.com/2008/04/oracle-object-type-support-in-ruby-oci8.html
+
+
+Collection data types are also supported. Look at the following link.
+http://rubyforge.org/forum/message.php?msg_id=60632
+
+I'll rewrite the internal structure but the user interface won't be changed.
+
+!! Array DML
+
+Ruby-OCI8 2.0 New Feature: Array DML Support
+http://limlian.blogspot.com/2008/05/ruby-oci8-v20-new-feature-array-dml.html
+
+This feature is contributed by Oracle.
+
+!! Timstamp and interval data type
+
+The following data types are supported in 2.0.
+* timestamp
+* timestamp with time zone
+* timestamp with local time zone
+* interval year to month
+* interval day to second
+
+''Timestamp data types'' including 'with time zone' and 'with local time zone'
+are fetched as Time objects if the time zone part
+is same with the local time zone or utc. If not, they are fetched as
+DateTime objects. The time zone of ''timestamp'' and ''timestamp with local time zone''
+is the Oracle session time zone. It is same with the local time zone
+by default. You can change it by the following SQL statement.
+  ALTER SESSION SET TIME_ZONE='-05:00'
+
+Unlike ruby-oci8 1.0, the fractional seconds are set with a limitation
+that the fractional part of a millisecond is truncated when it is
+fetched as a Time on ruby 1.8. As for ruby 1.9 there are no limitation
+of the fractional seconds because the 1.9 Time class's resolution is
+nanosecond.
+
+''Interval year to month'' values are fetched as integer values
+which indicate number of months between two timestamps.
+
+''Interval day to second'' values are fetched as rational number
+values which indicate number of seconds between two timestamps.
+
+!! Tainted Strings and Safe Level
+
+String values retrieved from databases are tainted as well
+as values read from files are.
+
+If $SAFE >= 1, a SecurityError exception is raised when
+the following values are tainted.
+* SQL statement
+* connect string (username, password and database)
+* OCI8::LOB dir_aliases and filename
+
+Tainted values can be passed to bind variables and
+OCI8::LOB#write even though $SAFE >= 1, as well as
+File#write do.
+
+!! Ruby 1.9 encoding support
+
+OCI8.encoding is available when using ruby 1.9.
+The default value is determined from NLS_LANG.
+
+String values retrieved from databases are tagged by the encoding.
+String values passed to databases are converted to the encoding
+from the string encodings.
+
+The mapping table from Oracle character set name to
+ruby encoding name is listed in
+[[lib/oci8/encoding.yml|http://ruby-oci8.rubyforge.org/svn/trunk/ruby-oci8/lib/oci8/encoding.yml]].
+If it is not fit to your purpose or you want to save time
+to parse the yaml file, set the top-level constant DEFAULT_OCI8_ENCODING
+prior to 'require "oci8"'.
+
+!! Checking available Oracle client features at run-time
+
+! Improved features
+
+!! OraNumber as a numeric
+!! Non-blocking mode and ruby 1.9
+
+! Incompatible Changes between 1.0 and 2.0
+!! Low level API is obsoleted.
+!! conn.exec('pl/sql block') doesn't return bind variables any more.

Modified: web/hiki_data/ja/info.db
===================================================================
--- web/hiki_data/ja/info.db	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/ja/info.db	2010-04-13 14:02:35 UTC (rev 385)
@@ -52,7 +52,7 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1241786082),
+:last_modified => Time.at(1241791543),
 :references => [
 ],
 :title => "\343\203\227\343\203\255\343\202\255\343\202\267\350\252\215\350\250\274",
@@ -74,7 +74,7 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1234098048),
+:last_modified => Time.at(1256185906),
 :references => [
 "InstallForInstantClient",
 ],
@@ -100,7 +100,7 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1171256479),
+:last_modified => Time.at(1271166255),
 :references => [
 ],
 :title => "\343\203\220\343\202\244\343\203\212\343\203\252\343\203\221\343\203\203\343\202\261\343\203\274\343\202\270",
@@ -111,8 +111,9 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1192083462),
+:last_modified => Time.at(1271166130),
 :references => [
+"InstallBinaryPackage",
 "ReportInstallProblem",
 ],
 :title => "Oracle Full Client",
@@ -123,8 +124,9 @@
 :freeze => false,
 :keyword => [
 ],
-:last_modified => Time.at(1192083565),
+:last_modified => Time.at(1271166085),
 :references => [
+"InstallBinaryPackage",
 "ReportInstallProblem",
 ],
 :title => "Oracle Instant Client",

Modified: web/hiki_data/ja/text/FAQ_proxy_auth
===================================================================
--- web/hiki_data/ja/text/FAQ_proxy_auth	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/ja/text/FAQ_proxy_auth	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,4 +1,4 @@
-このページのサンプルの内容については、以下の URL の「プロキシ経由のクライアント・アクセス」を参照してください。
+OCI 固有の文章を読み飛ばしつつ、以下の URL の「プロキシ経由のクライアント・アクセス」を参照してください。
 * http://otndnld.oracle.co.jp/document/products/oracle11g/111/doc_dvd/appdev.111/E05677-02/oci02bas.htm#CHDJDICD
 
 ! ローカル・ユーザーを別のローカル・ユーザーの代理にする場合

Modified: web/hiki_data/ja/text/FrontPage
===================================================================
--- web/hiki_data/ja/text/FrontPage	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/ja/text/FrontPage	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,10 +1,7 @@
 ! What is ruby-oci8
 
-ruby-oci8 は[[Oracle Database]]用の ruby インターフェースです。Oracle8, Oracle8i, Oracle9i, Oracle10g, [[Oracle XE]], [[Oracle Instant Client]]で利用可能です。
+ruby-oci8 は[[Oracle Database]]用の ruby インターフェースです。Oracle8 以降の全 Oracle バージョン([[Oracle XE]], [[Oracle Instant Client]] も含む)で使用可能です。
 
-注意: ruby-oci8-1.0 は安定版です。一方、ruby-oci8-2.0-unstable は開発中のバージョンです。
-2.0-unstable は実際のアプリケーションには使用しないでください。
-
 Oracle7 を使用している場合は、吉田正人さんの[[Oracle7 Module for Ruby]]を使ってください。
 
 ! One-liner のサンプル

Modified: web/hiki_data/ja/text/InstallBinaryPackage
===================================================================
--- web/hiki_data/ja/text/InstallBinaryPackage	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/ja/text/InstallBinaryPackage	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,12 +1,3 @@
-! 1. Oracleクライアントのバージョンの確認
+[[rubyforge|http://rubyforge.org/frs/?group_id=256]]より ruby-oci8-{{ruby_oci8_version}}-x86-mingw32.gem をダウンロードして、以下のコマンドを実行してインストールしてください。
 
-バイナリパッケージは Oracle 8.1.5 以降でのみ利用可能です。
-
-! 2. ダウンロード
-
-[[rubyforge|http://rubyforge.org/frs/?group_id=256]]より ruby-oci8-VERSION-mswin32.rb をダウンロードしてください。
-
-注意: 1.0 は安定版ですが、2.0-unstable は開発中のバージョンです。
-
-! 3. パッケージを実行する。
-  C:> ruby ruby-oci8-VERSION-mswin32.rb
+  gem install ruby-oci8-{{ruby_oci8_version}}-x86-mingw32.gem

Modified: web/hiki_data/ja/text/InstallForFullClient
===================================================================
--- web/hiki_data/ja/text/InstallForFullClient	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/ja/text/InstallForFullClient	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,8 +1,8 @@
 ! 1. ソースコードのダウンロード
 
-[[rubyforge|http://rubyforge.org/frs/?group_id=256]]より ruby-oci8-VERSION.tar.gz をダウンロードしてください。
+[[rubyforge|http://rubyforge.org/frs/?group_id=256]]より ruby-oci8-{{ruby_oci8_version}}.tar.gz をダウンロードしてください。
 
-注意: 1.0 は安定版ですが、2.0-unstable は開発中のバージョンです。
+注意: Windows 版を自分でコンパイルしたいという奇特な方以外は、[[InstallBinaryPackage]]を使用してください。
 
 ! 2. '''ruby''' が PATH に入っているか確認
 
@@ -64,8 +64,8 @@
 
 !! UNIX or Windows(cygwin, mingw32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   make
   make install
 
@@ -74,7 +74,7 @@
 
 !! Windows(mswin32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   nmake
   nmake install

Modified: web/hiki_data/ja/text/InstallForInstantClient
===================================================================
--- web/hiki_data/ja/text/InstallForInstantClient	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_data/ja/text/InstallForInstantClient	2010-04-13 14:02:35 UTC (rev 385)
@@ -1,8 +1,8 @@
 ! 1. ソースコードのダウンロード
 
-[[rubyforge|http://rubyforge.org/frs/?group_id=256]]より ruby-oci8-VERSION.tar.gz をダウンロードしてください。
+[[rubyforge|http://rubyforge.org/frs/?group_id=256]]より ruby-oci8-{{ruby_oci8_version}}.tar.gz をダウンロードしてください。
 
-注意: 1.0 は安定版ですが、2.0-unstable は開発中のバージョンです。
+注意: Windows 版を自分でコンパイルしたいという奇特な方以外は、[[InstallBinaryPackage]]を使用してください。
 
 ! 2. Instant Client のダウンロード
 
@@ -90,8 +90,8 @@
 
 !! UNIX or Windows(cygwin, mingw32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   make
   make install
 
@@ -102,8 +102,8 @@
 
 !! Windows(mswin32)
 
-  gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
-  cd ruby-oci8-VERSION
+  gzip -dc ruby-oci8-{{ruby_oci8_version}}.tar.gz | tar xvf -
+  cd ruby-oci8-{{ruby_oci8_version}}
   nmake
   nmake install
 

Modified: web/hiki_src/plugin/99ruby-oci8.rb
===================================================================
--- web/hiki_src/plugin/99ruby-oci8.rb	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_src/plugin/99ruby-oci8.rb	2010-04-13 14:02:35 UTC (rev 385)
@@ -92,4 +92,8 @@
 EOS
 end
 
-export_plugin_methods(:logo, :link_to_japanese, :link_to_english, :search_by_google)
+def ruby_oci8_version
+  File.read(File.dirname(__FILE__) + '/../../../trunk/ruby-oci8/VERSION').chomp
+end
+
+export_plugin_methods(:logo, :link_to_japanese, :link_to_english, :search_by_google, :ruby_oci8_version)

Modified: web/hiki_src/style/default/hikidoc.rb
===================================================================
--- web/hiki_src/style/default/hikidoc.rb	2010-03-07 12:10:11 UTC (rev 384)
+++ web/hiki_src/style/default/hikidoc.rb	2010-04-13 14:02:35 UTC (rev 385)
@@ -143,7 +143,7 @@
 
   def restore_pre( text )
     ret = unescape_meta_char( text, true )
-    ret = restore_plugin_block( ret, true )
+    #ret = restore_plugin_block( ret, true )
   end
 
   ######################################################################




More information about the ruby-oci8-commit mailing list