middleman-s3_redirect 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/middleman-s3_redirect/extension.rb +4 -2
- data/lib/middleman-s3_redirect/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcd8787009d0d07928f00c2e50c3af259d500171
|
4
|
+
data.tar.gz: 2b50f99b0090c863cee8ab03f4569236a660fdc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab44619dc6bdc05b5f245cc9c432191efe0e5811f17da029d5cc3e7e9941aab47994667f07291a4fecf338bcc27a17fdc1bcecbe37c0e943b00d20ca558ac014
|
7
|
+
data.tar.gz: c9110b42b1369b423b37df42e70a90ee6ffcb4a55d8638b18a3f967172d3f2c37df9d1017bca35cd115986e354a50e4bda881b00e116bd64e14a7b8686ef7d66
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ And then execute:
|
|
15
15
|
|
16
16
|
Or install it yourself as:
|
17
17
|
|
18
|
-
$ gem install middleman-
|
18
|
+
$ gem install middleman-s3_redirect
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
@@ -66,7 +66,7 @@ map to the following values:
|
|
66
66
|
|
67
67
|
| Setting | Environment Variable |
|
68
68
|
| --------------------- | ---------------------------------- |
|
69
|
-
| aws_access_key_id | ```ENV['AWS_ACCESS_KEY_ID```
|
69
|
+
| aws_access_key_id | ```ENV['AWS_ACCESS_KEY_ID']``` |
|
70
70
|
| aws_secret_access_key | ```ENV['AWS_SECRET_ACCESS_KEY']``` |
|
71
71
|
|
72
72
|
The environment is used when the credentials are not set in the activate
|
@@ -15,6 +15,9 @@ module Middleman
|
|
15
15
|
|
16
16
|
def initialize
|
17
17
|
self.read_config
|
18
|
+
|
19
|
+
self.aws_access_key_id ||= ENV['AWS_ACCESS_KEY_ID']
|
20
|
+
self.aws_secret_access_key ||= ENV['AWS_SECRET_ACCESS_KEY']
|
18
21
|
end
|
19
22
|
|
20
23
|
def redirect(from, to)
|
@@ -57,8 +60,7 @@ module Middleman
|
|
57
60
|
path << '/' unless path =~ /\/$/
|
58
61
|
path << 'index.html'
|
59
62
|
end
|
60
|
-
path
|
61
|
-
path
|
63
|
+
path.sub(/^\//, '')
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-s3_redirect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederic Jean
|
@@ -9,62 +9,62 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 3.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 3.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: fog
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 1.10.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 1.10.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: parallel
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
description: Generates redirects via S3 API.
|
@@ -74,8 +74,8 @@ executables: []
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
- .gitignore
|
78
|
-
- .s3_sync.sample
|
77
|
+
- ".gitignore"
|
78
|
+
- ".s3_sync.sample"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
81
81
|
- README.md
|
@@ -94,17 +94,17 @@ require_paths:
|
|
94
94
|
- lib
|
95
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.2.2
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Nothing to see here... Move along.
|