Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 1749d71

Browse files
committed
Ported all changes since rails 1.2.6
Fixed unit tests Fixed casting of Time objects
1 parent cbbad6d commit 1749d71

File tree

6 files changed

+31
-0
lines changed

6 files changed

+31
-0
lines changed

Diff for: install.rb

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
require 'rbconfig'
2+
require 'find'
3+
require 'ftools'
4+
5+
include Config
6+
7+
# this was adapted from rdoc's install.rb by way of Log4r
8+
9+
$sitedir = CONFIG["sitelibdir"]
10+
unless $sitedir
11+
version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
12+
$libdir = File.join(CONFIG["libdir"], "ruby", version)
13+
$sitedir = $:.find {|x| x =~ /site_ruby/ }
14+
if !$sitedir
15+
$sitedir = File.join($libdir, "site_ruby")
16+
elsif $sitedir !~ Regexp.quote(version)
17+
$sitedir = File.join($sitedir, version)
18+
end
19+
end
20+
21+
# the acual gruntwork
22+
Dir.chdir("lib")
23+
24+
Find.find("action_web_service", "action_web_service.rb") { |f|
25+
if f[-3..-1] == ".rb"
26+
File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
27+
else
28+
File::makedirs(File.join($sitedir, *f.split(/\//)))
29+
end
30+
}

Diff for: lib/actionwebservice.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'action_web_service'

0 commit comments

Comments
 (0)