-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ruby versions to modern status, removed unsupported libraries
- Loading branch information
1 parent
88b2a68
commit afeae80
Showing
114 changed files
with
60,095 additions
and
23,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
source "https://rubygems.org" | ||
|
||
ruby "2.3.8" | ||
ruby "2.7.7" | ||
|
||
gem "sinatra", "1.4.8" | ||
gem "haml", "5.0.4" | ||
gem "rubyzip", "1.2.1" | ||
gem "json","1.8.6" | ||
gem "nokogiri", "1.8.1" | ||
gem "data_mapper", "1.2.0" | ||
gem "dm-sqlite-adapter", "1.2.0" | ||
gem "slim" | ||
gem "sinatra" | ||
gem "haml" | ||
gem "rubyzip" | ||
gem "json" | ||
gem "nokogiri" | ||
gem "sequel" | ||
gem "sqlite3" | ||
gem "rack" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,54 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.7.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
bcrypt (3.1.16) | ||
bcrypt-ruby (3.1.5) | ||
bcrypt (>= 3.1.3) | ||
data_mapper (1.2.0) | ||
dm-aggregates (~> 1.2.0) | ||
dm-constraints (~> 1.2.0) | ||
dm-core (~> 1.2.0) | ||
dm-migrations (~> 1.2.0) | ||
dm-serializer (~> 1.2.0) | ||
dm-timestamps (~> 1.2.0) | ||
dm-transactions (~> 1.2.0) | ||
dm-types (~> 1.2.0) | ||
dm-validations (~> 1.2.0) | ||
data_objects (0.10.17) | ||
addressable (~> 2.1) | ||
dm-aggregates (1.2.0) | ||
dm-core (~> 1.2.0) | ||
dm-constraints (1.2.0) | ||
dm-core (~> 1.2.0) | ||
dm-core (1.2.1) | ||
addressable (~> 2.3) | ||
dm-do-adapter (1.2.0) | ||
data_objects (~> 0.10.6) | ||
dm-core (~> 1.2.0) | ||
dm-migrations (1.2.0) | ||
dm-core (~> 1.2.0) | ||
dm-serializer (1.2.2) | ||
dm-core (~> 1.2.0) | ||
fastercsv (~> 1.5) | ||
json (~> 1.6) | ||
json_pure (~> 1.6) | ||
multi_json (~> 1.0) | ||
dm-sqlite-adapter (1.2.0) | ||
dm-do-adapter (~> 1.2.0) | ||
do_sqlite3 (~> 0.10.6) | ||
dm-timestamps (1.2.0) | ||
dm-core (~> 1.2.0) | ||
dm-transactions (1.2.0) | ||
dm-core (~> 1.2.0) | ||
dm-types (1.2.2) | ||
bcrypt-ruby (~> 3.0) | ||
dm-core (~> 1.2.0) | ||
fastercsv (~> 1.5) | ||
json (~> 1.6) | ||
multi_json (~> 1.0) | ||
stringex (~> 1.4) | ||
uuidtools (~> 2.1) | ||
dm-validations (1.2.0) | ||
dm-core (~> 1.2.0) | ||
do_sqlite3 (0.10.17) | ||
data_objects (= 0.10.17) | ||
fastercsv (1.5.5) | ||
haml (5.0.4) | ||
temple (>= 0.8.0) | ||
haml (6.1.1) | ||
temple (>= 0.8.2) | ||
thor | ||
tilt | ||
json (1.8.6) | ||
json_pure (1.8.6) | ||
mini_portile2 (2.3.0) | ||
multi_json (1.15.0) | ||
nokogiri (1.8.1) | ||
mini_portile2 (~> 2.3.0) | ||
public_suffix (4.0.6) | ||
rack (1.6.13) | ||
rack-protection (1.5.5) | ||
json (2.6.3) | ||
mini_portile2 (2.8.2) | ||
mustermann (3.0.0) | ||
ruby2_keywords (~> 0.0.1) | ||
nokogiri (1.14.3) | ||
mini_portile2 (~> 2.8.0) | ||
racc (~> 1.4) | ||
racc (1.6.2) | ||
rack (2.2.7) | ||
rack-protection (3.0.6) | ||
rack | ||
rubyzip (1.2.1) | ||
sinatra (1.4.8) | ||
rack (~> 1.5) | ||
rack-protection (~> 1.4) | ||
tilt (>= 1.3, < 3) | ||
stringex (1.5.1) | ||
temple (0.8.2) | ||
tilt (2.0.10) | ||
uuidtools (2.2.0) | ||
ruby2_keywords (0.0.5) | ||
rubyzip (2.3.2) | ||
sequel (5.68.0) | ||
sinatra (3.0.6) | ||
mustermann (~> 3.0) | ||
rack (~> 2.2, >= 2.2.4) | ||
rack-protection (= 3.0.6) | ||
tilt (~> 2.0) | ||
slim (5.1.0) | ||
temple (~> 0.10.0) | ||
tilt (>= 2.0.6, < 2.2) | ||
sqlite3 (1.6.2) | ||
mini_portile2 (~> 2.8.0) | ||
temple (0.10.0) | ||
thor (1.2.1) | ||
tilt (2.1.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
data_mapper (= 1.2.0) | ||
dm-sqlite-adapter (= 1.2.0) | ||
haml (= 5.0.4) | ||
json (= 1.8.6) | ||
nokogiri (= 1.8.1) | ||
rubyzip (= 1.2.1) | ||
sinatra (= 1.4.8) | ||
haml | ||
json | ||
nokogiri | ||
rack | ||
rubyzip | ||
sequel | ||
sinatra | ||
slim | ||
sqlite3 | ||
|
||
RUBY VERSION | ||
ruby 2.3.5p376 | ||
ruby 2.7.7p221 | ||
|
||
BUNDLED WITH | ||
1.16.0 | ||
2.1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: "2.2" | ||
|
||
services: | ||
|
||
web: | ||
build: . | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
require 'rubygems' | ||
require 'data_mapper' | ||
require 'digest/sha1' | ||
require 'dm-migrations' | ||
require 'sequel' | ||
|
||
# Initialize the Master DB | ||
DataMapper.setup(:default, "sqlite://#{Dir.pwd}/db/master.db") | ||
|
||
|
||
class Oxfile | ||
include DataMapper::Resource | ||
|
||
property :id, Serial | ||
property :filename, String, :length => 400 | ||
property :location, String, :length => 400 | ||
property :desc, String, :length => 500 | ||
property :type, String, :length => 15 | ||
DB = Sequel.sqlite("#{Dir.pwd}/db/master.db") | ||
|
||
class Oxfile < Sequel::Model(:oxfiles) | ||
set_columns :filename | ||
set_columns :id | ||
set_columns :location | ||
set_columns :desc | ||
set_columns :type | ||
set_columns :created_at | ||
end | ||
|
||
DataMapper.finalize | ||
|
||
# any differences between the data store and the data model should be fixed by this | ||
# As discussed in http://datamapper.org/why.html it is limited. Hopefully we never create conflicts. | ||
DataMapper.auto_upgrade! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.