Skip to content

Commit c417e6f

Browse files
committed
[chore] Simplify sinatra example dependencies
(cherry picked from commit 2e62fb9)
1 parent 4cfad11 commit c417e6f

File tree

9 files changed

+5
-50
lines changed

9 files changed

+5
-50
lines changed

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ As an executable jar within Jetty:
3838
| Sinatra | Demo Index | http://localhost:8080/ | http://localhost:8080/sinatra |
3939
| Sinatra | Info | http://localhost:8080/info | http://localhost:8080/sinatra/info |
4040
| Sinatra | Snoop Dump | http://localhost:8080/env | http://localhost:8080/sinatra/env |
41+
| Sinatra | Streaming Demo | http://localhost:8080/stream | http://localhost:8080/sinatra/stream |
4142
| Camping | Demo Index | http://localhost:8080/ | http://localhost:8080/camping |
4243
| Camping | Snoop Dump | http://localhost:8080/snoop | http://localhost:8080/camping/snoop |

examples/sinatra/Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ source 'https://rubygems.org'
33
ruby '~> 3.1.0'
44

55
gem 'sinatra'
6-
gem 'webrick'
7-
gem 'rack', '~> 2.2.20'
6+
gem 'rack', '~> 2.2'
87

98
gem 'warbler', '~> 2.1'
109
gem 'jruby-jars', '< 10'

examples/sinatra/Gemfile.lock

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@ GEM
2828
rake (~> 13.0, >= 13.0.3)
2929
rexml (~> 3.0)
3030
rubyzip (>= 3.0.0)
31-
webrick (1.9.1)
3231

3332
PLATFORMS
3433
java
3534
x86_64-linux
3635

3736
DEPENDENCIES
3837
jruby-jars (< 10)
39-
rack (~> 2.2.20)
38+
rack (~> 2.2)
4039
sinatra
4140
warbler (~> 2.1)
42-
webrick
4341

4442
RUBY VERSION
4543
ruby 3.1.7p0 (jruby 9.4.14.0)

examples/sinatra/Kirkfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/sinatra/appengine-web.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

examples/sinatra/config.ru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require './lib/env'
77
require './lib/stream'
88

99
set :run, false
10-
set :public, './public'
10+
set :public_folder, './public'
1111
set :views, './views'
1212
set :environment, :production
1313
run Sinatra::Application

examples/sinatra/config/warble.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Warbler web application assembly configuration file
22
Warbler::Config.new do |config|
33
config.features += ['executable']
4-
config.includes = FileList["appengine-web.xml", "datastore-indexes.xml"]
54

65
if ENV['JRUBY_RACK_SRC']
76
config.java_libs.delete_if {|f| f =~ /jruby-rack[^\/]+\.jar/}

examples/sinatra/datastore-indexes.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/sinatra/views/stream.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<title>Sinatra JRuby-Rack Multipart/Streaming Demo</title>
6-
<link rel="stylesheet" href="http://yui.yahooapis.com/2.8.0r4/build/reset/reset-min.css" type="text/css" media="screen, projection">
76
<link rel="stylesheet" href="style.css" type="text/css" media="screen, projection">
87
<link rel="shortcut icon" href="favicon.ico">
9-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
8+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
109
<script type="text/javascript" src="js/DUI.js"></script>
1110
<script type="text/javascript" src="js/Stream.js"></script>
1211
</head>

0 commit comments

Comments
 (0)