attache 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85ebe6d5e7f20fc66b50e38a9e15e6acf4b4619d
4
- data.tar.gz: 288bb5bb68f4e3a4785795c848ff1c63d16b1fc5
3
+ metadata.gz: 2706553dd6f29cd50139c99c9c1f662408357437
4
+ data.tar.gz: 9afa3085bf929946009ddd1b4e1cb5458714444a
5
5
  SHA512:
6
- metadata.gz: 95854fb3cff2a6b99e60c780e7dcb4c0bbf3d1b90cff4445ff1ca7875a2435619ae8f35c3e97f29acca983cc4975671cb7061d3122e51bc1c119f235deca14e6
7
- data.tar.gz: 247575dec9eecc61bf9120fc9f64c8409b9a33a273f10dbe294995eb9620984b4c3b2c78eda270255fadef8749f109bf6349800b7f662807fad4d754915cd1a6
6
+ metadata.gz: 334e5c96812d74e2a73338fe4a4604e061e236cde3e52df828d005fc9bda8f0af38989cbc8e0e2d0615fe5ad957c2f205d64b9b3731acce152e054514b649434
7
+ data.tar.gz: e90dbd37b852eca79015d27d4b7e5e7674a116a0ef7b7946eafcff2fba6127ff9e14446165ed50541bead307a8a38a798c5b0360c6312ee70f62804122fbcaa7
data/config/puma.rb ADDED
@@ -0,0 +1,8 @@
1
+ workers Integer(ENV['PUMA_WORKERS'] || 1)
2
+ threads Integer(ENV['MIN_THREADS'] || 1), Integer(ENV['MAX_THREADS'] || 16)
3
+
4
+ preload_app!
5
+
6
+ rackup DefaultRackup
7
+ port ENV['PORT'] || 3000
8
+ environment ENV['RACK_ENV'] || 'development'
@@ -0,0 +1,25 @@
1
+ # This is an example file. You can copy this file as `vhost.yml` and edit
2
+ # the content with the correct values.
3
+
4
+ # This section will only take effect if a request is made to `google.lvh.me:9292`
5
+ "google.lvh.me:9292":
6
+ "SECRET_KEY": CHANGEME # this is the shared secret between your app and this attache server
7
+ "REMOTE_DIR": CHANGEME # this is the root directory to use in the `bucket`; omit to use root
8
+ "FOG_CONFIG": #
9
+ "provider": Google # refer to `fog.io/storage` documentation
10
+ "google_storage_access_key_id": CHANGEME #
11
+ "google_storage_secret_access_key": CHANGEME #
12
+ "bucket": CHANGEME # This `bucket` key is not standard Fog config. BUT attache server needs it
13
+
14
+ # This section will only take effect if a request is made to `aws.example.com`
15
+ "aws.example.com":
16
+ "SECRET_KEY": CHANGEME
17
+ "FOG_CONFIG":
18
+ "provider": AWS
19
+ "aws_access_key_id": CHANGEME
20
+ "aws_secret_access_key": CHANGEME
21
+ "bucket": CHANGEME
22
+ "region": us-west-1
23
+
24
+ # This section will only take effect if a request is made to `localhost:9292`
25
+ "localhost:9292":
data/config.ru ADDED
@@ -0,0 +1,9 @@
1
+ require 'attache/boot'
2
+
3
+ use Attache::Delete
4
+ use Attache::Upload
5
+ use Attache::Download
6
+ use Attache::Tus::Upload
7
+ use Rack::Static, urls: ["/"], root: "public", index: "index.html"
8
+
9
+ run proc {|env| [200, {}, []] }
@@ -1,3 +1,3 @@
1
1
  module Attache
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - choonkeat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-22 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -230,6 +230,9 @@ extra_rdoc_files: []
230
230
  files:
231
231
  - README.md
232
232
  - Rakefile
233
+ - config.ru
234
+ - config/puma.rb
235
+ - config/vhost.example.yml
233
236
  - exe/attache
234
237
  - lib/attache.rb
235
238
  - lib/attache/base.rb