Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
ab321268
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ab321268
编写于
4月 22, 2009
作者:
J
Jeremy Kemper
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
No more free lunch
上级
42a06d2d
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
38 addition
and
21 deletion
+38
-21
actionpack/lib/action_controller.rb
actionpack/lib/action_controller.rb
+1
-0
actionpack/lib/action_dispatch.rb
actionpack/lib/action_dispatch.rb
+1
-0
actionpack/lib/action_view.rb
actionpack/lib/action_view.rb
+1
-0
activemodel/lib/active_model/core.rb
activemodel/lib/active_model/core.rb
+10
-5
activerecord/lib/active_record.rb
activerecord/lib/active_record.rb
+1
-0
activeresource/lib/active_resource.rb
activeresource/lib/active_resource.rb
+1
-0
activesupport/CHANGELOG
activesupport/CHANGELOG
+2
-0
activesupport/lib/active_support.rb
activesupport/lib/active_support.rb
+0
-3
activesupport/lib/active_support/core/all.rb
activesupport/lib/active_support/core/all.rb
+1
-0
activesupport/lib/active_support/core_ext/kernel/requires.rb
activesupport/lib/active_support/core_ext/kernel/requires.rb
+3
-1
railties/Rakefile
railties/Rakefile
+2
-2
railties/lib/rails/plugin.rb
railties/lib/rails/plugin.rb
+6
-4
railties/lib/rails/rack/metal.rb
railties/lib/rails/rack/metal.rb
+1
-0
railties/lib/rails_generator.rb
railties/lib/rails_generator.rb
+8
-6
未找到文件。
actionpack/lib/action_controller.rb
浏览文件 @
ab321268
...
...
@@ -30,6 +30,7 @@
require
'active_support'
end
end
require
'active_support/core/all'
require
File
.
join
(
File
.
dirname
(
__FILE__
),
"action_pack"
)
...
...
actionpack/lib/action_dispatch.rb
浏览文件 @
ab321268
...
...
@@ -30,6 +30,7 @@
require
'active_support'
end
end
require
'active_support/core/all'
$:
.
unshift
"
#{
File
.
dirname
(
__FILE__
)
}
/action_dispatch/vendor/rack-1.0"
begin
...
...
actionpack/lib/action_view.rb
浏览文件 @
ab321268
...
...
@@ -30,6 +30,7 @@
require
'active_support'
end
end
require
'active_support/core/all'
require
File
.
join
(
File
.
dirname
(
__FILE__
),
"action_pack"
)
...
...
activemodel/lib/active_model/core.rb
浏览文件 @
ab321268
# This file is required by each major ActiveModel component for the core requirements. This allows you to
# load individual pieces of ActiveModel as needed.
$LOAD_PATH
<<
File
.
join
(
File
.
dirname
(
__FILE__
),
'..'
,
'..'
,
'..'
,
'activesupport'
,
'lib'
)
begin
require
'active_support'
rescue
LoadError
activesupport_path
=
"
#{
File
.
dirname
(
__FILE__
)
}
/../../activesupport/lib"
if
File
.
directory?
(
activesupport_path
)
$:
.
unshift
activesupport_path
require
'active_support'
end
end
# premature optimization?
# So far, we only need the string inflections and not the rest of ActiveSupport.
require
'active_support/inflector'
\ No newline at end of file
require
'active_support/inflector'
activerecord/lib/active_record.rb
浏览文件 @
ab321268
...
...
@@ -30,6 +30,7 @@
require
'active_support'
end
end
require
'active_support/core/all'
module
ActiveRecord
# TODO: Review explicit loads to see if they will automatically be handled by the initilizer.
...
...
activeresource/lib/active_resource.rb
浏览文件 @
ab321268
...
...
@@ -30,6 +30,7 @@
require
'active_support'
end
end
require
'active_support/core/all'
require
'active_resource/formats'
require
'active_resource/base'
...
...
activesupport/CHANGELOG
浏览文件 @
ab321268
*Edge*
* require 'active_support' no longer orders the whole menu of core extensions. Ask for just what you need: e.g. require 'active_support/core/time' to use timezones, durations, and stdlib date/time extensions. [Jeremy Kemper]
* Removed rarely-used DRb cache store. [Jeremy Kemper]
* TimeWithZone.name returns 'Time', to further thwart type checking [Geoff Buesing]
...
...
activesupport/lib/active_support.rb
浏览文件 @
ab321268
...
...
@@ -50,10 +50,7 @@ def self.load_all!
autoload
:XmlMini
,
'active_support/xml_mini'
end
require
'active_support/core/all'
require
'active_support/vendor'
require
'active_support/core_ext'
require
'active_support/dependencies'
require
'active_support/json'
...
...
activesupport/lib/active_support/core/all.rb
浏览文件 @
ab321268
require
'active_support/core_ext'
require
'active_support/core'
Dir
[
"
#{
File
.
dirname
(
__FILE__
)
}
/*.rb"
].
sort
.
each
do
|
path
|
require
"active_support/core/
#{
File
.
basename
(
path
,
'.rb'
)
}
"
...
...
activesupport/lib/active_support/core_ext/kernel/requires.rb
浏览文件 @
ab321268
require
'active_support/core_ext/kernel/reporting'
module
Kernel
# Require a library with fallback to RubyGems. Warnings during library
# loading are silenced to increase signal/noise for application warnings.
...
...
@@ -21,4 +23,4 @@ def require_library_or_gem(library_name)
end
end
end
end
\ No newline at end of file
end
railties/Rakefile
浏览文件 @
ab321268
...
...
@@ -29,12 +29,12 @@ task :default => :test
task
:test
do
Dir
[
'test/**/*_test.rb'
].
all?
do
|
file
|
ruby
=
File
.
join
(
*
RbConfig
::
CONFIG
.
values_at
(
'bindir'
,
'RUBY_INSTALL_NAME'
))
system
(
ruby
,
'-Itest'
,
file
)
system
(
ruby
,
'-Itest'
,
"-I
#{
File
.
dirname
(
__FILE__
)
}
/../activesupport/lib"
,
file
)
end
or
raise
"Failures"
end
Rake
::
TestTask
.
new
(
"regular_test"
)
do
|
t
|
t
.
libs
<<
'test'
t
.
libs
<<
'test'
<<
"
#{
File
.
dirname
(
__FILE__
)
}
/../activesupport/lib"
t
.
pattern
=
'test/**/*_test.rb'
t
.
warning
=
true
t
.
verbose
=
true
...
...
railties/lib/rails/plugin.rb
浏览文件 @
ab321268
require
'active_support/core_ext/kernel/reporting'
module
Rails
# The Plugin class should be an object which provides the following methods:
#
...
...
@@ -35,10 +37,10 @@ def valid?
def
load_paths
report_nonexistant_or_empty_plugin!
unless
valid?
returning
[]
do
|
load_paths
|
load_paths
<<
lib_path
if
has_lib_directory?
load_paths
<<
app_paths
if
has_app_directory?
end
.
flatten
load_paths
=
[]
load_paths
<<
lib_path
if
has_lib_directory?
load_paths
<<
app_paths
if
has_app_directory?
load_paths
.
flatten
end
# Evaluates a plugin's init.rb file.
...
...
railties/lib/rails/rack/metal.rb
浏览文件 @
ab321268
require
'active_support/ordered_hash'
require
'active_support/core_ext/class/attribute_accessors'
module
Rails
module
Rack
...
...
railties/lib/rails_generator.rb
浏览文件 @
ab321268
...
...
@@ -21,16 +21,18 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
$:
.
unshift
(
File
.
dirname
(
__FILE__
))
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
"/../../activesupport/lib"
)
begin
require
'active_support'
require
'active_support'
rescue
LoadError
require
'rubygems'
gem
'activesupport'
activesupport_path
=
"
#{
File
.
dirname
(
__FILE__
)
}
/../../activesupport/lib"
if
File
.
directory?
(
activesupport_path
)
$:
.
unshift
activesupport_path
require
'active_support'
end
end
require
'active_support/core/all'
$:
.
unshift
(
File
.
dirname
(
__FILE__
))
require
'rails_generator/base'
require
'rails_generator/lookup'
require
'rails_generator/commands'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录