Skip to content

Commit 8fac95d

Browse files
Josef HovadJosef Hovad
Josef Hovad
authored and
Josef Hovad
committed
init
1 parent b50446d commit 8fac95d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1523
-0
lines changed

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'aws-sdk', '~> 2.4'

Gemfile.lock

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
aws-sdk (2.4.4)
5+
aws-sdk-resources (= 2.4.4)
6+
aws-sdk-core (2.4.4)
7+
jmespath (~> 1.0)
8+
aws-sdk-resources (2.4.4)
9+
aws-sdk-core (= 2.4.4)
10+
jmespath (1.3.1)
11+
12+
PLATFORMS
13+
ruby
14+
15+
DEPENDENCIES
16+
aws-sdk (~> 2.4)
17+
18+
BUNDLED WITH
19+
1.12.5

LICENSE

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2012 for the original project are held by Christopher Dell (https://github.com/tigrish)
4+
Copyright (c) 2016 Andrey Koleshko for their respective contributions
5+
Copyright (c) 2016 Lucas Jenß
6+
Copyright (c) 2020 Josef Hovad
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11+
12+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

assets/javascripts/redmine_s3.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This script handles thumbnail image missing errors
3+
*/
4+
5+
$(function() {
6+
$('.attachments .thumbnails img').one('error', function() {
7+
$.ajax({
8+
dataType: 'JSON',
9+
url: $(this).attr('data-thumbnail') + '?update_thumb=true',
10+
context: this
11+
}).done(function(data, status, response) {
12+
$(this).attr('src', response.responseJSON.src);
13+
});
14+
});
15+
});

config/amazon_s3.example.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
production:
2+
3+
# AWS access key (required)
4+
access_key_id:
5+
6+
# AWS secret key (required)
7+
secret_access_key:
8+
9+
# Bucket name (required)
10+
bucket:
11+
12+
# Identifier for the region in which the bucket was created (required)
13+
region:
14+
15+
# Folder name inside bucket where uploaded files should be stored (e.g. 'attachments')
16+
# The default behavior is to store data in the bucket's root directory
17+
# attachments_folder:
18+
19+
# Folder where attachment thumbnails are stored
20+
# thumbnails_folder: thumbnails/
21+
22+
development:
23+
# Copy configuration from `production` if desired
24+
25+
test:
26+
# Copy configuration from `production` if desired

docs/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
.jekyll-metadata

docs/Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "github-pages", group: :jekyll_plugins

docs/Gemfile.lock

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.2.7)
5+
i18n (~> 0.7)
6+
json (~> 1.7, >= 1.7.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.3, >= 0.3.4)
9+
tzinfo (~> 1.1)
10+
addressable (2.4.0)
11+
coffee-script (2.4.1)
12+
coffee-script-source
13+
execjs
14+
coffee-script-source (1.10.0)
15+
colorator (1.1.0)
16+
ethon (0.9.1)
17+
ffi (>= 1.3.0)
18+
execjs (2.7.0)
19+
faraday (0.9.2)
20+
multipart-post (>= 1.2, < 3)
21+
ffi (1.9.14)
22+
forwardable-extended (2.6.0)
23+
gemoji (2.1.0)
24+
github-pages (98)
25+
activesupport (= 4.2.7)
26+
github-pages-health-check (= 1.2.0)
27+
jekyll (= 3.2.1)
28+
jekyll-coffeescript (= 1.0.1)
29+
jekyll-feed (= 0.5.1)
30+
jekyll-gist (= 1.4.0)
31+
jekyll-github-metadata (= 2.1.1)
32+
jekyll-mentions (= 1.2.0)
33+
jekyll-paginate (= 1.1.0)
34+
jekyll-redirect-from (= 0.11.0)
35+
jekyll-sass-converter (= 1.3.0)
36+
jekyll-seo-tag (= 2.0.0)
37+
jekyll-sitemap (= 0.10.0)
38+
jekyll-swiss (= 0.4.0)
39+
jemoji (= 0.7.0)
40+
kramdown (= 1.11.1)
41+
liquid (= 3.0.6)
42+
listen (= 3.0.6)
43+
mercenary (~> 0.3)
44+
minima (= 1.2.0)
45+
rouge (= 1.11.1)
46+
terminal-table (~> 1.4)
47+
github-pages-health-check (1.2.0)
48+
addressable (~> 2.3)
49+
net-dns (~> 0.8)
50+
octokit (~> 4.0)
51+
public_suffix (~> 1.4)
52+
typhoeus (~> 0.7)
53+
html-pipeline (2.4.2)
54+
activesupport (>= 2)
55+
nokogiri (>= 1.4)
56+
i18n (0.7.0)
57+
jekyll (3.2.1)
58+
colorator (~> 1.0)
59+
jekyll-sass-converter (~> 1.0)
60+
jekyll-watch (~> 1.1)
61+
kramdown (~> 1.3)
62+
liquid (~> 3.0)
63+
mercenary (~> 0.3.3)
64+
pathutil (~> 0.9)
65+
rouge (~> 1.7)
66+
safe_yaml (~> 1.0)
67+
jekyll-coffeescript (1.0.1)
68+
coffee-script (~> 2.2)
69+
jekyll-feed (0.5.1)
70+
jekyll-gist (1.4.0)
71+
octokit (~> 4.2)
72+
jekyll-github-metadata (2.1.1)
73+
jekyll (~> 3.1)
74+
octokit (~> 4.0)
75+
jekyll-mentions (1.2.0)
76+
activesupport (~> 4.0)
77+
html-pipeline (~> 2.3)
78+
jekyll (~> 3.0)
79+
jekyll-paginate (1.1.0)
80+
jekyll-redirect-from (0.11.0)
81+
jekyll (>= 2.0)
82+
jekyll-sass-converter (1.3.0)
83+
sass (~> 3.2)
84+
jekyll-seo-tag (2.0.0)
85+
jekyll (~> 3.1)
86+
jekyll-sitemap (0.10.0)
87+
jekyll-swiss (0.4.0)
88+
jekyll-watch (1.5.0)
89+
listen (~> 3.0, < 3.1)
90+
jemoji (0.7.0)
91+
activesupport (~> 4.0)
92+
gemoji (~> 2.0)
93+
html-pipeline (~> 2.2)
94+
jekyll (>= 3.0)
95+
json (1.8.3)
96+
kramdown (1.11.1)
97+
liquid (3.0.6)
98+
listen (3.0.6)
99+
rb-fsevent (>= 0.9.3)
100+
rb-inotify (>= 0.9.7)
101+
mercenary (0.3.6)
102+
mini_portile2 (2.1.0)
103+
minima (1.2.0)
104+
minitest (5.9.1)
105+
multipart-post (2.0.0)
106+
net-dns (0.8.0)
107+
nokogiri (1.6.8.1)
108+
mini_portile2 (~> 2.1.0)
109+
octokit (4.3.0)
110+
sawyer (~> 0.7.0, >= 0.5.3)
111+
pathutil (0.14.0)
112+
forwardable-extended (~> 2.6)
113+
public_suffix (1.5.3)
114+
rb-fsevent (0.9.7)
115+
rb-inotify (0.9.7)
116+
ffi (>= 0.5.0)
117+
rouge (1.11.1)
118+
safe_yaml (1.0.4)
119+
sass (3.4.22)
120+
sawyer (0.7.0)
121+
addressable (>= 2.3.5, < 2.5)
122+
faraday (~> 0.8, < 0.10)
123+
terminal-table (1.7.3)
124+
unicode-display_width (~> 1.1.1)
125+
thread_safe (0.3.5)
126+
typhoeus (0.8.0)
127+
ethon (>= 0.8.0)
128+
tzinfo (1.2.2)
129+
thread_safe (~> 0.1)
130+
unicode-display_width (1.1.1)
131+
132+
PLATFORMS
133+
ruby
134+
135+
DEPENDENCIES
136+
github-pages
137+
138+
BUNDLED WITH
139+
1.13.5

docs/_clarify-sources/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Clarify](http://www.clarify-it.com/) is the app with which the guides were created.
Binary file not shown.
Binary file not shown.

docs/_config.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
title: amazon_s3 for Redmine documentation
2+
email:
3+
description:
4+
baseurl: "" # the subpath of your site, e.g. /blog
5+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
6+
#twitter_username: jekyllrb
7+
#github_username: jekyll
8+
permalink: /:title.html
9+
10+
# Build settings
11+
markdown: kramdown
12+
theme: minima
13+
gems:
14+
- jekyll-feed
15+
exclude:
16+
- Gemfile
17+
- Gemfile.lock

docs/_includes/footer.html

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<div class="footer-col-wrapper">
6+
<div class="footer-col footer-col-1">
7+
<ul class="contact-list">
8+
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
9+
</ul>
10+
</div>
11+
12+
<div class="footer-col footer-col-2">
13+
<ul class="social-media-list">
14+
{% if site.github_username %}
15+
<li>
16+
<a href="https://github.com/{{ site.github_username }}">
17+
<span class="icon icon--github">
18+
<svg viewBox="0 0 16 16">
19+
<path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
20+
</svg>
21+
</span>
22+
23+
<span class="username">{{ site.github_username }}</span>
24+
</a>
25+
</li>
26+
{% endif %}
27+
28+
{% if site.twitter_username %}
29+
<li>
30+
<a href="https://twitter.com/{{ site.twitter_username }}">
31+
<span class="icon icon--twitter">
32+
<svg viewBox="0 0 16 16">
33+
<path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809
34+
c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
35+
</svg>
36+
</span>
37+
38+
<span class="username">{{ site.twitter_username }}</span>
39+
</a>
40+
</li>
41+
{% endif %}
42+
</ul>
43+
</div>
44+
45+
<div class="footer-col footer-col-3">
46+
<p class="text">{{ site.description }}</p>
47+
</div>
48+
</div>
49+
50+
</div>
51+
52+
</footer>

docs/_includes/head.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta name="viewport" content="width=device-width initial-scale=1" />
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
6+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7+
<meta name="description" content="{{ site.description }}">
8+
9+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11+
</head>

docs/_includes/header.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<header class="site-header">
2+
3+
<div class="wrapper">
4+
5+
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
6+
7+
<nav class="site-nav">
8+
<a href="#" class="menu-icon">
9+
<svg viewBox="0 0 18 15">
10+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
11+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
12+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
13+
</svg>
14+
</a>
15+
16+
<div class="trigger">
17+
{% for page in site.pages %}
18+
{% if page.title %}
19+
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
20+
{% endif %}
21+
{% endfor %}
22+
</div>
23+
</nav>
24+
25+
</div>
26+
27+
</header>
28+
29+
<a href="https://github.com/x3ro/redmine_amazon_s3" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
30+

docs/_layouts/default.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
<div class="page-content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</div>
15+
16+
{% include footer.html %}
17+
18+
</body>
19+
20+
</html>

docs/_layouts/page.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title }}</h1>
8+
</header>
9+
10+
<article class="post-content">
11+
{{ content }}
12+
</article>
13+
14+
</div>

docs/_layouts/post.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title }}</h1>
8+
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
9+
</header>
10+
11+
<article class="post-content">
12+
{{ content }}
13+
</article>
14+
15+
</div>

0 commit comments

Comments
 (0)