Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
3179f089
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,发现更多精彩内容 >>
提交
3179f089
编写于
8月 05, 2017
作者:
D
Dino Maric
提交者:
David Heinemeier Hansson
8月 04, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename Azure to AzureStorage (#30057)
上级
b9f0eb24
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
activestorage/lib/active_storage/service.rb
activestorage/lib/active_storage/service.rb
+1
-1
activestorage/lib/active_storage/service/azure_storage_service.rb
...orage/lib/active_storage/service/azure_storage_service.rb
+1
-1
activestorage/lib/active_storage/service/configurator.rb
activestorage/lib/active_storage/service/configurator.rb
+1
-1
activestorage/test/controllers/direct_uploads_controller_test.rb
...torage/test/controllers/direct_uploads_controller_test.rb
+2
-2
activestorage/test/service/azure_storage_service_test.rb
activestorage/test/service/azure_storage_service_test.rb
+1
-1
activestorage/test/service/configurations.yml
activestorage/test/service/configurations.yml
+2
-2
未找到文件。
activestorage/lib/active_storage/service.rb
浏览文件 @
3179f089
...
...
@@ -7,7 +7,7 @@
# * +Disk+, to manage attachments saved directly on the hard drive.
# * +GCS+, to manage attachments through Google Cloud Storage.
# * +S3+, to manage attachments through Amazon S3.
# * +Azure+, to manage attachments through Microsoft Azure Storage.
# * +Azure
Storage
+, to manage attachments through Microsoft Azure Storage.
# * +Mirror+, to be able to use several services to manage attachments.
#
# Inside a Rails application, you can set-up your services through the
...
...
activestorage/lib/active_storage/service/azure_service.rb
→
activestorage/lib/active_storage/service/azure_s
torage_s
ervice.rb
浏览文件 @
3179f089
...
...
@@ -4,7 +4,7 @@
# Wraps the Microsoft Azure Storage Blob Service as a Active Storage service.
# See `ActiveStorage::Service` for the generic API documentation that applies to all services.
class
ActiveStorage::Service::AzureService
<
ActiveStorage
::
Service
class
ActiveStorage::Service::AzureS
torageS
ervice
<
ActiveStorage
::
Service
attr_reader
:client
,
:path
,
:blobs
,
:container
,
:signer
def
initialize
(
path
:,
storage_account_name
:,
storage_access_key
:,
container
:)
...
...
activestorage/lib/active_storage/service/configurator.rb
浏览文件 @
3179f089
...
...
@@ -22,7 +22,7 @@ def config_for(name)
end
def
resolve
(
class_name
)
require
"active_storage/service/
#{
class_name
.
to_s
.
downcas
e
}
_service"
require
"active_storage/service/
#{
class_name
.
to_s
.
underscor
e
}
_service"
ActiveStorage
::
Service
.
const_get
(
:"
#{
class_name
}
Service"
)
end
end
activestorage/test/controllers/direct_uploads_controller_test.rb
浏览文件 @
3179f089
...
...
@@ -69,7 +69,7 @@ class ActiveStorage::GCSDirectUploadsControllerTest < ActionDispatch::Integratio
end
if
SERVICE_CONFIGURATIONS
[
:azure
]
class
ActiveStorage::AzureDirectUploadsControllerTest
<
ActionDispatch
::
IntegrationTest
class
ActiveStorage::Azure
Storage
DirectUploadsControllerTest
<
ActionDispatch
::
IntegrationTest
setup
do
@config
=
SERVICE_CONFIGURATIONS
[
:azure
]
...
...
@@ -99,7 +99,7 @@ class ActiveStorage::AzureDirectUploadsControllerTest < ActionDispatch::Integrat
end
end
else
puts
"Skipping Azure
Direct Upload tests because no Azur
e configuration was supplied"
puts
"Skipping Azure
Storage Direct Upload tests because no Azure Storag
e configuration was supplied"
end
class
ActiveStorage::DiskDirectUploadsControllerTest
<
ActionDispatch
::
IntegrationTest
...
...
activestorage/test/service/azure_service_test.rb
→
activestorage/test/service/azure_s
torage_s
ervice_test.rb
浏览文件 @
3179f089
...
...
@@ -2,7 +2,7 @@
require
"uri"
if
SERVICE_CONFIGURATIONS
[
:azure
]
class
ActiveStorage::Service::AzureServiceTest
<
ActiveSupport
::
TestCase
class
ActiveStorage::Service::AzureS
torageS
erviceTest
<
ActiveSupport
::
TestCase
SERVICE
=
ActiveStorage
::
Service
.
configure
(
:azure
,
SERVICE_CONFIGURATIONS
)
include
ActiveStorage
::
Service
::
SharedServiceTests
...
...
activestorage/test/service/configurations.yml
浏览文件 @
3179f089
...
...
@@ -21,9 +21,9 @@ s3:
# }
# project:
# bucket:
#
#
# azure:
# service: Azure
# service: Azure
Storage
# path: ""
# storage_account_name: ""
# storage_access_key: ""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录