Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit b7d2902

Browse files
authored
fix: remove subdomain identifier and updates deps
* fix: remove subdomain identifier * doc: update plan information * feat: update ruby version * feat: uncomment contacts route * fix: update ruby deps * fix: add missing dep
1 parent 66e1904 commit b7d2902

File tree

5 files changed

+55
-32
lines changed

5 files changed

+55
-32
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.2
1+
3.2.3

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://rubygems.org'
2-
ruby "3.1.2"
2+
ruby "3.2.3"
33

44
gem "sinatra"
55
gem "activerecord"
@@ -10,3 +10,5 @@ gem 'puma'
1010

1111
# a little console
1212
gem "tux"
13+
14+
gem "rackup", "~> 2.1"

Gemfile.lock

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activemodel (7.0.4)
5-
activesupport (= 7.0.4)
6-
activerecord (7.0.4)
7-
activemodel (= 7.0.4)
8-
activesupport (= 7.0.4)
9-
activesupport (7.0.4)
4+
activemodel (7.1.3)
5+
activesupport (= 7.1.3)
6+
activerecord (7.1.3)
7+
activemodel (= 7.1.3)
8+
activesupport (= 7.1.3)
9+
timeout (>= 0.4.0)
10+
activesupport (7.1.3)
11+
base64
12+
bigdecimal
1013
concurrent-ruby (~> 1.0, >= 1.0.2)
14+
connection_pool (>= 2.2.5)
15+
drb
1116
i18n (>= 1.6, < 2)
1217
minitest (>= 5.1)
18+
mutex_m
1319
tzinfo (~> 2.0)
20+
base64 (0.2.0)
21+
bigdecimal (3.1.6)
1422
bond (0.5.1)
15-
concurrent-ruby (1.1.10)
16-
i18n (1.12.0)
23+
concurrent-ruby (1.2.3)
24+
connection_pool (2.4.1)
25+
drb (2.2.0)
26+
ruby2_keywords
27+
i18n (1.14.1)
1728
concurrent-ruby (~> 1.0)
18-
minitest (5.16.3)
29+
minitest (5.22.2)
1930
mustermann (3.0.0)
2031
ruby2_keywords (~> 0.0.1)
21-
nio4r (2.5.8)
22-
pg (1.4.5)
23-
puma (6.0.0)
32+
mutex_m (0.2.0)
33+
nio4r (2.7.0)
34+
pg (1.5.4)
35+
puma (6.4.2)
2436
nio4r (~> 2.0)
25-
rack (2.2.4)
26-
rack-protection (3.0.4)
27-
rack
37+
rack (3.0.9)
38+
rack-protection (4.0.0)
39+
base64 (>= 0.1.0)
40+
rack (>= 3.0.0, < 4)
41+
rack-session (2.0.0)
42+
rack (>= 3.0.0)
2843
rack-test (0.6.3)
2944
rack (>= 1.0)
45+
rackup (2.1.0)
46+
rack (>= 3)
47+
webrick (~> 1.8)
3048
ripl (0.7.1)
3149
bond (~> 0.5.1)
3250
ripl-multi_line (0.3.1)
@@ -36,22 +54,25 @@ GEM
3654
rack-test (~> 0.6.2)
3755
ripl (>= 0.7.0)
3856
ruby2_keywords (0.0.5)
39-
sinatra (3.0.4)
57+
sinatra (4.0.0)
4058
mustermann (~> 3.0)
41-
rack (~> 2.2, >= 2.2.4)
42-
rack-protection (= 3.0.4)
59+
rack (>= 3.0.0, < 4)
60+
rack-protection (= 4.0.0)
61+
rack-session (>= 2.0.0, < 3)
4362
tilt (~> 2.0)
44-
sinatra-activerecord (2.0.26)
63+
sinatra-activerecord (2.0.27)
4564
activerecord (>= 4.1)
4665
sinatra (>= 1.0)
47-
tilt (2.0.11)
66+
tilt (2.3.0)
67+
timeout (0.4.1)
4868
tux (0.3.0)
4969
ripl (>= 0.3.5)
5070
ripl-multi_line (>= 0.2.4)
5171
ripl-rack (>= 0.2.0)
5272
sinatra (>= 1.2.1)
53-
tzinfo (2.0.5)
73+
tzinfo (2.0.6)
5474
concurrent-ruby (~> 1.0)
75+
webrick (1.8.1)
5576

5677
PLATFORMS
5778
ruby
@@ -60,12 +81,13 @@ DEPENDENCIES
6081
activerecord
6182
pg
6283
puma
84+
rackup (~> 2.1)
6385
sinatra
6486
sinatra-activerecord
6587
tux
6688

6789
RUBY VERSION
68-
ruby 3.1.2p20
90+
ruby 3.2.3p157
6991

7092
BUNDLED WITH
71-
2.3.11
93+
2.4.19

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The easiest way to deploy this is to push the button:
1414

1515
# Verified
1616

17-
If you are not yet a Heroku verified account holder, clicking the Heroku button will prompt you to sign up for Heroku first, and enter billing details. These details are required for abuse prevention - running this app in the standard configuration won't incur any costs.
17+
If you are not yet a Heroku verified account holder, clicking the Heroku button will prompt you to sign up for Heroku first, and enter billing details. Running this demo will incur in costs of [Eco](https://devcenter.heroku.com/articles/eco-dyno-hours) dynos, and Heroku Postgres [mini](https://elements.heroku.com/addons/heroku-postgresql).
1818

1919
# Running
2020

app.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
erb :home
1010
end
1111

12-
1312
class Contact < ActiveRecord::Base
1413
self.table_name = 'salesforce.contact'
1514
end
1615

17-
#get "/contacts" do
18-
# @contacts = Contact.all
19-
# erb :index
20-
#end
16+
get "/contacts" do
17+
@contacts = Contact.all
18+
erb :index
19+
end
2120

2221
get "/create" do
2322
dashboard_url = 'https://dashboard.heroku.com/'
24-
match = /(.*?)\.herokuapp\.com/.match(request.host)
23+
match = /(.*?)(-\w+)?\.herokuapp\.com/.match(request.host)
2524
dashboard_url << "apps/#{match[1]}/resources" if match && match[1]
2625
redirect to(dashboard_url)
2726
end

0 commit comments

Comments
 (0)