aliyunoss-activestorage-adapter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -1
- data/README.md +8 -0
- data/activestorage-aliyunoss.gemspec +1 -2
- data/lib/active_storage/service/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7757febf237bc442aba6646fabf093c891422b5252f343c8d6d90cfe6c4fc1f
|
4
|
+
data.tar.gz: a25d1df2f441e883795119f9961df5d6ba004ebaa4ac1782840d41a7ad5fe2ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d6a9976e6133bd972088b730b19e15aa5330fdad96dbae6a60159d76315e2d8c5377b593f11380862f6e324f1254dae28113c554a3bbf1a675482024dc8ed56
|
7
|
+
data.tar.gz: 3b720d6374c8eef6dd35c0b8dc34d3d5b576a9f011796ce4c6aa434e73792494a2b6f60a683d0a1db62029001cd0b763a7d2ea492e1d79e162965aafbd50aa4a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -39,6 +39,14 @@ Active Storage的配置文件在/config/storage.yml文件中,请添加以下
|
|
39
39
|
|
40
40
|
配置完成后,可以按照[Active Storage](https://edgeguides.rubyonrails.org/active_storage_overview.html)手册调用。
|
41
41
|
|
42
|
+
## 运行测试用例
|
43
|
+
|
44
|
+
下载源代码后,可以使用如下方法运行测试用例:
|
45
|
+
|
46
|
+
ALI_ACCESS_KEY="[阿里云开发者信息]" ALI_ACCESS_SECRET="[阿里云开发者信息]" bundle exec rspec
|
47
|
+
|
48
|
+
测试运行前,请手动创建一个名为active-storage-spec的Bucket,Bucket所在地区为oss-cn-beijing。
|
49
|
+
|
42
50
|
## 开发
|
43
51
|
|
44
52
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -31,8 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
|
-
|
35
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
34
|
+
spec.add_dependency "aliyunoss", "~> 0.2"
|
36
35
|
|
37
36
|
# For more information and examples about making a new gem, check out our
|
38
37
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aliyunoss-activestorage-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yiiecc
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-12-18 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aliyunoss
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.2'
|
13
27
|
description: A plugin that enables Rails App using Aliyun OSS, this gem depends on
|
14
28
|
aliyunoss gem.
|
15
29
|
email:
|