omnifiles 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +72 -0
- data/Rakefile +1 -0
- data/bin/omnifiles +8 -0
- data/config/settings.yaml.example +5 -0
- data/config.ru +5 -0
- data/lib/omnifiles/app/css/app.css +7 -0
- data/lib/omnifiles/protectedapp.rb +90 -0
- data/lib/omnifiles/publicapp.rb +39 -0
- data/lib/omnifiles/server.rb +28 -0
- data/lib/omnifiles/settings.rb +12 -0
- data/lib/omnifiles/shortener.rb +36 -0
- data/lib/omnifiles/storage.rb +61 -0
- data/lib/omnifiles/version.rb +3 -0
- data/lib/omnifiles/views/stat.haml +19 -0
- data/lib/omnifiles.rb +7 -0
- data/omnifiles.gemspec +30 -0
- metadata +190 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6168535895fcefcd6125d84d87fd2deba8161d36
|
4
|
+
data.tar.gz: 435bc5685890875c42eeaaeb89a76b1f259da2c9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2d68c691076c59bc970367d9c8b325c15f38ce4f1b1f74bf757b0409bea74d6bce83089b6305e903a17b08e38b7f321b99c71b4f02d8c59591613b368fe3501c
|
7
|
+
data.tar.gz: 20146b39ff0cff35866da53a4c35492a1b9abf5df4b642cc50c4d2e146eda110ed7b5d01f0efde14b437cd63807854035f77cf3de90b2c0541f58616385038d2
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Eugene Seliverstov <theirix@gmail.com>
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# OmniFiles
|
2
|
+
|
3
|
+
File storage and shortener server.
|
4
|
+
|
5
|
+
OmniFiles is built with Sinatra and Rack and uses an sqlite database to store shortened
|
6
|
+
urls and statistics.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
OmniFiles is a Rack application and can be used as a gem or as a server in local directory.
|
11
|
+
|
12
|
+
### As a gem
|
13
|
+
|
14
|
+
1. Install a gem
|
15
|
+
|
16
|
+
gem install omnifiles
|
17
|
+
|
18
|
+
2. Create a settings file `/path/to/settings.yaml` by copying `config/settings.yaml.example`.
|
19
|
+
Location of file must be specified in env variable `OMNIFILES_SETTINGS`.
|
20
|
+
|
21
|
+
3. Start an app as a Thin server
|
22
|
+
|
23
|
+
OMNIFILES_SETTINGS=/path/to/settings.yaml omnifiles
|
24
|
+
Of course, you can provide any additional Thin options:
|
25
|
+
|
26
|
+
OMNIFILES_SETTINGS=/path/to/settings.yaml omnifiles -l /var/log/omnifiles.log -P /var/run/omnifiles.pid -d
|
27
|
+
|
28
|
+
## As a rack app
|
29
|
+
|
30
|
+
OmniFiles can be started using `config.ru` with you favourite Rack server.
|
31
|
+
|
32
|
+
1. Clone a git repo
|
33
|
+
|
34
|
+
2. Install dependencies
|
35
|
+
|
36
|
+
bundle install
|
37
|
+
|
38
|
+
3. Create a settings file `/path/to/settings.yaml` by copying `config/settings.yaml.example`.
|
39
|
+
Location of file must be specified in env variable `OMNIFILES_SETTINGS`.
|
40
|
+
|
41
|
+
4. Start Rack app
|
42
|
+
|
43
|
+
rackup
|
44
|
+
|
45
|
+
## Usage
|
46
|
+
|
47
|
+
1. Storing files.
|
48
|
+
OmniFiles can store files by issuing an authenticated POST request
|
49
|
+
|
50
|
+
% curl --digest -u user:secret -F "file=@/path/to/file.jpg" 'http://localhost:3000/store'
|
51
|
+
http://localhost:3000/f/e63A12
|
52
|
+
OmniFiles returns a short url in response so you can just issue following command to save URL in clipboard
|
53
|
+
|
54
|
+
% curl --digest -u user:secret -F "file=@/path/to/file.jpg" 'http://localhost:3000/store' | pbcopy
|
55
|
+
|
56
|
+
2. Accessing files.
|
57
|
+
Just access given URL:
|
58
|
+
|
59
|
+
% curl http://localhost:3000/f/e63A12
|
60
|
+
OmniFiles remembers MIME type and composes a correct typed response.
|
61
|
+
Header `X-Original-Filename` contains escaped original filename.
|
62
|
+
|
63
|
+
3. Viewing statistics.
|
64
|
+
OmniFiles provides file access statistics using authenticated requests.
|
65
|
+
Visit an url
|
66
|
+
|
67
|
+
http://localhost:3000/stat/e63A12
|
68
|
+
using web browser or curl
|
69
|
+
|
70
|
+
## License information
|
71
|
+
|
72
|
+
Please consult with the LICENSE.txt for license information.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/omnifiles
ADDED
data/config.ru
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'sinatra'
|
4
|
+
require 'filemagic'
|
5
|
+
require 'uri'
|
6
|
+
require 'settingslogic'
|
7
|
+
require 'haml'
|
8
|
+
require 'rack'
|
9
|
+
|
10
|
+
module OmniFiles
|
11
|
+
|
12
|
+
# Protected app for POST request
|
13
|
+
class ProtectedApp < BaseApp
|
14
|
+
|
15
|
+
register Sinatra::AssetPack
|
16
|
+
assets do
|
17
|
+
css :application, [
|
18
|
+
'/css/app.css'
|
19
|
+
]
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
use Rack::Auth::Digest::MD5, "OmniFiles Realm", Settings.auth_opaque do |_|
|
24
|
+
Settings.auth_password
|
25
|
+
end
|
26
|
+
|
27
|
+
# POST a file
|
28
|
+
post '/store/' do
|
29
|
+
store_file
|
30
|
+
end
|
31
|
+
|
32
|
+
post '/store' do
|
33
|
+
store_file
|
34
|
+
end
|
35
|
+
|
36
|
+
get '/stat/:name' do |name|
|
37
|
+
logger.info "Route GET stat #{name}"
|
38
|
+
|
39
|
+
halt 500, "Wrong URL" if name != BaseApp.sanitize(name)
|
40
|
+
|
41
|
+
data = @storage.get_file name
|
42
|
+
halt 404, "File not found" unless data
|
43
|
+
|
44
|
+
@url = url('/f/'+name)
|
45
|
+
@original_filename = URI.unescape data['original_filename']
|
46
|
+
@access_count = data['accessed']
|
47
|
+
@mime = data['mime']
|
48
|
+
@shortened = name
|
49
|
+
|
50
|
+
haml :stat
|
51
|
+
end
|
52
|
+
|
53
|
+
def store_file
|
54
|
+
logger.info "Route POST store"
|
55
|
+
begin
|
56
|
+
req = Rack::Request.new(env)
|
57
|
+
post_file = req.POST['file']
|
58
|
+
original_filename = URI.escape(File.basename(post_file[:filename]))
|
59
|
+
|
60
|
+
temp_file = post_file[:tempfile]
|
61
|
+
|
62
|
+
# Determine file mime and desired url
|
63
|
+
mime = FileMagic.mime.file temp_file.path
|
64
|
+
|
65
|
+
# Short URL is composed from escaped filename from form, mime type and leading file bytes
|
66
|
+
shortened = @storage.shorten_file temp_file.path, original_filename, mime
|
67
|
+
|
68
|
+
# Save file to storage
|
69
|
+
target_path = File.join(Settings.storage_dir, shortened)
|
70
|
+
raise "Not so unique id #{shortened}" if File.exists? target_path
|
71
|
+
FileUtils.cp temp_file.path, target_path
|
72
|
+
|
73
|
+
# Put record to storage
|
74
|
+
@storage.put_file shortened, original_filename, mime
|
75
|
+
short_url = url('/f/'+shortened)
|
76
|
+
|
77
|
+
logger.info "Stored file #{target_path} to shortened #{shortened}, magic '#{mime}'"
|
78
|
+
|
79
|
+
short_url
|
80
|
+
ensure
|
81
|
+
if temp_file
|
82
|
+
temp_file.close
|
83
|
+
temp_file.unlink
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'sinatra'
|
4
|
+
require 'filemagic'
|
5
|
+
require 'uri'
|
6
|
+
require 'settingslogic'
|
7
|
+
require 'rack'
|
8
|
+
|
9
|
+
module OmniFiles
|
10
|
+
|
11
|
+
# Public app for GET request
|
12
|
+
class PublicApp < BaseApp
|
13
|
+
|
14
|
+
# GET a file
|
15
|
+
get '/:name' do |name|
|
16
|
+
logger.info "GET by name #{name}"
|
17
|
+
|
18
|
+
halt 500, "Wrong URL" if name != BaseApp.sanitize(name)
|
19
|
+
|
20
|
+
data = @storage.get_file name
|
21
|
+
logger.info "Data #{data}"
|
22
|
+
halt 404, "File not found" unless data
|
23
|
+
|
24
|
+
path = File.join(Settings.storage_dir, name)
|
25
|
+
filename = data['original_filename']
|
26
|
+
halt 404, "File not found" unless File.exists?(path)
|
27
|
+
|
28
|
+
mime = data['mime']
|
29
|
+
mime = 'application/octet-stream' unless mime && mime != ''
|
30
|
+
|
31
|
+
logger.info "Data #{data}, file #{path}, was at #{filename}"
|
32
|
+
|
33
|
+
headers 'X-Original-Filename' => filename
|
34
|
+
send_file path, :type => mime
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'sinatra'
|
4
|
+
require 'sinatra/assetpack'
|
5
|
+
require 'settingslogic'
|
6
|
+
require 'rack'
|
7
|
+
|
8
|
+
module OmniFiles
|
9
|
+
|
10
|
+
# Common sinatra configuration
|
11
|
+
class BaseApp < Sinatra::Application
|
12
|
+
configure do
|
13
|
+
disable :show_exceptions
|
14
|
+
end
|
15
|
+
|
16
|
+
before do
|
17
|
+
logger.info "Fired " + self.class.to_s
|
18
|
+
FileUtils.mkdir_p(Settings.storage_dir)
|
19
|
+
FileUtils.mkdir_p(File.dirname(Settings.db))
|
20
|
+
@storage = Storage.new Settings.db, logger
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.sanitize s
|
24
|
+
s.gsub(/[^0-9A-z.\-]/, '_')
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'settingslogic'
|
2
|
+
|
3
|
+
module OmniFiles
|
4
|
+
|
5
|
+
class Settings < Settingslogic
|
6
|
+
settings_file = (ENV['OMNIFILES_SETTINGS'] or '')
|
7
|
+
raise "Please pecify a settings file in env OMNIFILES_SETTINGS" unless File.file?(settings_file)
|
8
|
+
source settings_file
|
9
|
+
namespace ENV['RACK_ENV'] || 'development'
|
10
|
+
load!
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'digest/md5'
|
5
|
+
|
6
|
+
module OmniFiles
|
7
|
+
|
8
|
+
class UrlShortener
|
9
|
+
def initialize salt, bytes_used=1
|
10
|
+
@salt = salt
|
11
|
+
@bytes_used = bytes_used
|
12
|
+
# base62
|
13
|
+
@symbols = (0..9).to_a.map(&:to_s) + ('a'..'z').to_a + ('A'..'Z').to_a
|
14
|
+
end
|
15
|
+
|
16
|
+
def shorten url
|
17
|
+
dig = Digest::MD5.digest(url+@salt.to_s)
|
18
|
+
dig_ints = dig.unpack('N*').first(@bytes_used)
|
19
|
+
dig_value = (0...dig_ints.length)
|
20
|
+
.map { |i| (dig_ints[i] << ((dig_ints.length-i-1)*32)) }
|
21
|
+
.reduce(:+)
|
22
|
+
encode dig_value
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
def encode(decimal)
|
27
|
+
result = ''
|
28
|
+
while decimal > 0
|
29
|
+
decimal, symbol = decimal.divmod(@symbols.size)
|
30
|
+
result << @symbols[symbol]
|
31
|
+
end
|
32
|
+
result.reverse
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'digest/md5'
|
5
|
+
require 'sqlite3'
|
6
|
+
|
7
|
+
module OmniFiles
|
8
|
+
|
9
|
+
class Storage
|
10
|
+
|
11
|
+
def initialize db_filename, logger
|
12
|
+
@logger = logger
|
13
|
+
@db = SQLite3::Database.new(db_filename, :results_as_hash => true)
|
14
|
+
if (@db.table_info('files') or []) == []
|
15
|
+
Storage.create_schema @db
|
16
|
+
end
|
17
|
+
@shortener = UrlShortener.new(SecureRandom.hex(8))
|
18
|
+
end
|
19
|
+
|
20
|
+
# returns shortened url
|
21
|
+
def shorten_file path, filename, mime
|
22
|
+
counter = 0
|
23
|
+
begin
|
24
|
+
hashing = [filename, mime, Digest::MD5.hexdigest(IO.binread(path, 0x100)), counter.to_s].join '|'
|
25
|
+
@logger.info "Hashing value " + hashing
|
26
|
+
shortened = @shortener.shorten hashing
|
27
|
+
counter += 1
|
28
|
+
unique_id = @db.get_first_row("SELECT COUNT(shortened) FROM files WHERE shortened = ?", [shortened])[0] == 0
|
29
|
+
end until unique_id
|
30
|
+
shortened
|
31
|
+
end
|
32
|
+
|
33
|
+
def put_file shortened, filename, mime
|
34
|
+
@db.execute("INSERT INTO files (original_filename, shortened, mime, accessed)"+
|
35
|
+
"VALUES ( ?, ?, ?, 0 )",
|
36
|
+
[filename, shortened, mime])
|
37
|
+
end
|
38
|
+
|
39
|
+
# returns full url
|
40
|
+
def get_file shortened
|
41
|
+
data = @db.get_first_row("SELECT * FROM files WHERE shortened = ?", [shortened])
|
42
|
+
if data
|
43
|
+
@db.execute("UPDATE files SET accessed = accessed + 1 WHERE shortened = ?", [shortened])
|
44
|
+
end
|
45
|
+
data
|
46
|
+
end
|
47
|
+
|
48
|
+
private
|
49
|
+
def self.create_schema db
|
50
|
+
db.execute <<-SQL
|
51
|
+
CREATE TABLE files (
|
52
|
+
shortened TEXT NOT NULL,
|
53
|
+
original_filename TEXT,
|
54
|
+
mime TEXT,
|
55
|
+
accessed INTEGER);
|
56
|
+
CREATE INDEX shortened_INDEX ON files (shortened);
|
57
|
+
SQL
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title OmniFiles statistics
|
5
|
+
= css :application
|
6
|
+
%body
|
7
|
+
%h1 Statistics for #{@shortened}
|
8
|
+
#container
|
9
|
+
.left
|
10
|
+
%p URL:
|
11
|
+
%p Original name:
|
12
|
+
%p Access count:
|
13
|
+
%p MIME:
|
14
|
+
.right
|
15
|
+
%p
|
16
|
+
%a(href=@url) #{@url}
|
17
|
+
%p=@original_filename
|
18
|
+
%p=@access_count
|
19
|
+
%p=@mime
|
data/lib/omnifiles.rb
ADDED
data/omnifiles.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'omnifiles/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "omnifiles"
|
8
|
+
spec.version = OmniFiles::VERSION
|
9
|
+
spec.authors = ["theirix"]
|
10
|
+
spec.email = ["theirix@gmail.com"]
|
11
|
+
spec.summary = %q{File storage and URL shortener.}
|
12
|
+
spec.description = %q{File storage and URL shortener.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "sinatra", "~> 1.4.5"
|
24
|
+
spec.add_development_dependency "sinatra-assetpack", "~> 0.3.3"
|
25
|
+
spec.add_development_dependency "ruby-filemagic", "~> 0.6.0"
|
26
|
+
spec.add_development_dependency "sqlite3", "~> 1.3.10"
|
27
|
+
spec.add_development_dependency "haml", "~> 4.0.0"
|
28
|
+
spec.add_development_dependency "settingslogic", "~> 2.0.0"
|
29
|
+
spec.add_development_dependency "thin", "~> 1.6.0"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: omnifiles
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- theirix
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sinatra
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.4.5
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.4.5
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sinatra-assetpack
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.3.3
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ruby-filemagic
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.6.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.6.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sqlite3
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.3.10
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.3.10
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: haml
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.0.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.0.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: settingslogic
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.0.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.0.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: thin
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.6.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.6.0
|
139
|
+
description: File storage and URL shortener.
|
140
|
+
email:
|
141
|
+
- theirix@gmail.com
|
142
|
+
executables:
|
143
|
+
- omnifiles
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- Gemfile
|
149
|
+
- LICENSE.txt
|
150
|
+
- README.md
|
151
|
+
- Rakefile
|
152
|
+
- bin/omnifiles
|
153
|
+
- config.ru
|
154
|
+
- config/settings.yaml.example
|
155
|
+
- lib/omnifiles.rb
|
156
|
+
- lib/omnifiles/app/css/app.css
|
157
|
+
- lib/omnifiles/protectedapp.rb
|
158
|
+
- lib/omnifiles/publicapp.rb
|
159
|
+
- lib/omnifiles/server.rb
|
160
|
+
- lib/omnifiles/settings.rb
|
161
|
+
- lib/omnifiles/shortener.rb
|
162
|
+
- lib/omnifiles/storage.rb
|
163
|
+
- lib/omnifiles/version.rb
|
164
|
+
- lib/omnifiles/views/stat.haml
|
165
|
+
- omnifiles.gemspec
|
166
|
+
homepage: ''
|
167
|
+
licenses:
|
168
|
+
- MIT
|
169
|
+
metadata: {}
|
170
|
+
post_install_message:
|
171
|
+
rdoc_options: []
|
172
|
+
require_paths:
|
173
|
+
- lib
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '0'
|
184
|
+
requirements: []
|
185
|
+
rubyforge_project:
|
186
|
+
rubygems_version: 2.4.5
|
187
|
+
signing_key:
|
188
|
+
specification_version: 4
|
189
|
+
summary: File storage and URL shortener.
|
190
|
+
test_files: []
|