Giter Site home page Giter Site logo

sinatra.github.com's Introduction

Sinatra Website / Documentation

This repo contains the Sinatra website and documentation sources published at https://sinatra.github.com/.

Working Locally

Grab the sources from GitHub:

$ git clone git://github.com/sinatra/sinatra.github.com.git
$ cd sinatra.github.com

Make sure you have the bundler gem installed on your machine:

$ gem install bundler

Install dependencies:

$ bundle install

Run the test server:

$ rake server

Changes are immediately available at:

http://localhost:4000/sinatra.github.com/

Sass / CSS / Gulp

It would be appreciated if you could introduce your changes using the indented Sass syntax (.sass) in one of the existing Sass partials or if needed via new ones of your own. Not a friend of curlies and stuff.

Gulp was set up to streamline your build process. Simply run:

$ gulp watch

gulp watch triggers a couple of processes:

  • After changes have been introduced in the _sass directory, it first builds uncompressed .css files from the corresponding .sass files and puts them into /css/development.
  • Gulp also watches any changes made in the /css/development directory.
  • In turn, any changes in /css/development will get compressed, prefixed and purified of any obsolete style declarations before being placed in their final destination at /css.
  • Your site is reloaded automatically using Browsersync which watches any changes to .css files in /css. No need to install any additional gimmicks.

That means Gulp is configured so that you can either work on .sass files in the /_sass directory or on .css files directly in the /css/development directory. If you want to introduce changes in /css/development, you need to create new filenames to avoid being overwritten when new versions of Sass files get built.

Contributing

See GitHub's "Fork A Repo" for more information.

Creating Blog Posts

Blog posts are stored under the _posts directory. To create a new blog post and open your $EDITOR, use:

thor blog:new 'Blog Post Title'

This requires Thor:

$ gem install thor

Prebuilt Files

You will need thor, rdoc, haml and mislav's hanna gem to rebuild static files and the API docs:

$ gem install thor
$ gem install rdoc -v 2.3.0
$ gem install haml -v 2.0.4
$ gem install mislav-hanna --source=https://gems.github.com/

The prebuilt file sources are maintained under the sinatra and sinatra-book projects. To pull in the latest versions and build them:

rake pull build

The generated files under the "_includes" and "api" directories need to be committed after building. To regenerate and add those files to your index for the next commit:

rake regen

sinatra.github.com's People

Contributors

akahn avatar benpickles avatar bmizerany avatar cschneid avatar cypher avatar dentarg avatar dependabot[bot] avatar eddietejeda avatar foca avatar gnandretta avatar iffyuva avatar jkowens avatar karmi avatar kgrz avatar mattwildig avatar micahbrich avatar nakajima avatar namusyaka avatar nesquena avatar olleolleolle avatar randomecho avatar rkh avatar rtomayko avatar scudelletti avatar sr avatar syd avatar tannerburson avatar victori avatar vis-kid avatar zapnap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sinatra.github.com's Issues

Documentation changelog is out of date

The last time there was a changelog update, it was published on April 8th 2014. This could probably use some updating to reflect the current changelog and change logs leading up from that date to present.

site generation fails with ruby2.0.0

understandable that one might not support it yet, but as a heads up, generating the site fails using 2.0.0, when one follows the instructions in the readme.

short-term: mention 1.9.3 as a req in the readme
long-term: make it work (obvi)

logs:

ashleys-MacBook-Pro:sinatra.github.com ashleyashley$ rvm use 2.0.0
Using /Users/ashleyashley/.rvm/gems/ruby-2.0.0-p247
ashleys-MacBook-Pro:sinatra.github.com ashleyashley$ rake server
rake aborted!
uninitialized constant RDoc
/Users/ashleyashley/Projects/sinatra.github.com/Rakefile:3:in `<top (required)>'
/Users/ashleyashley/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
/Users/ashleyashley/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
ashleys-MacBook-Pro:sinatra.github.com ashleyashley$ rvm use 1.9.3
Using /Users/ashleyashley/.rvm/gems/ruby-1.9.3-p448
ashleys-MacBook-Pro:sinatra.github.com ashleyashley$ rake server
rm -rf _site
jekyll serve --watch
Configuration file: none
            Source: /Users/ashleyashley/Projects/sinatra.github.com
       Destination: /Users/ashleyashley/Projects/sinatra.github.com/_site
      Generating... 

Can't access Sinatra website

I try to access Sinatra website, http://sinatrarb.com. My browser (Mozilla Firefox 57.0) tells me that the website is not redirecting properly. The same issue happens when I access https://sinatra.github.io. I can't confirm this issue just happened to me or others.

This issue didn't happen when I accessed the website two days ago or so. Maybe this changes afdb541 affects the website or domain configuration.

span span span span

Somehow I'm screwing this up. When I go to update the docs to take into account a change in the reloader library, its page has all this extra markup in it now.

My commit seems innocent. sinatra/sinatra-contrib@49808be

Any ideas?

-<h1>Sinatra::Reloader</h1>
+<h1 id="label-Sinatra%3A%3AReloader">Sinatra::Reloader<span><a href="#label-Sinatra%3A%3AReloader">&para;</a> <a href="#documentation">&uarr;</a></span></h1>

image

sinatra v1.4.8 not picking right port from config

I am following a course around Puppet. The instructor sets up an application machine (fedora 31) installing the following

cowsay pasture thin sinatra......

I am really new to this and have no idea but Ok they work fine. The instructor suggest creating a service for pasture, so 2 files need to be created , 1st one

vim /etc/pasture_config.yaml

---
default_character: stegosaurus
default_message: Hello From Sierac
db: postgres://pasture:jura551c@myip/pasturedb
sinatra_settings:
  :port: 80
  :server: thin

The 2nd file is /etc/systemd/system/pasture.service with the following content

[Unit]
Description=Run the pasture service

[Service]
Environmenti=RACK_ENV-production
ExecStart=/usr/local/bin/pasture start --config_file /etc/pasture_config.yaml

[Install]
WantedBy=multi-user.target

When I run the service pasture.service, in the log it shows that Sinatra did not pick the right port 80, I tried another port it was the same result, here is the output when I run the service

sudo systemctl status pasture.service ● pasture.service - Run the pasture service Loaded: loaded (/etc/systemd/system/pasture.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2020-06-27 22:14:37 CEST; 7s ago Main PID: 1329023 (ruby-mri) Tasks: 1 (limit: 4610) Memory: 32.2M CGroup: /system.slice/pasture.service └─1329023 /usr/bin/ruby-mri /usr/local/bin/pasture start --config_file /etc/pasture_config.yaml

Jun 27 22:14:37 puppetmaster29 systemd[1]: Started Run the pasture service. Jun 27 22:14:38 puppetmaster29 pasture[1329023]: == Sinatra (v1.4.8) has taken the stage on 4567 for development with backup from Thin

As you can notice that Sinatra does not pick the port I indicated in the config file but rather it uses the default port 4567.

What is missing

Rack:Flash

It may be worth updating the FAQ to stop suggesting Rack::Flash, which doesn't work with modern versions of Rack.
http://stackoverflow.com/questions/9219390/when-i-try-adding-rack-flash-to-my-sinatra-app-it-stops-working

There's a logged bug on this, though github is throwing a 500 error currently:
nakajima/rack-flash#8

There's also a submitted patch, but it's been waiting for a month so far:
nakajima/rack-flash#9

Sinatra flash on the other hand, does appear to work:
https://github.com/SFEley/sinatra-flash

http://sinatrarb.com does not redirect to http://www.sinatrarb.com

http://sinatrarb.com/ does not automatically redirect to http://www.sinatrarb.com, but it could.

GitHub has a solid article explaining how to do this, and it is fairly simple to setup if someone with access to the domain can update the DNS records.

All it should take is creating two A records with the @ host pointing to GitHub Pages servers:

@   A   192.30.252.153
@   A   192.30.252.154

The current non-www URL, http://sinatrarb.com, shows the 'Site Disabled' message which may be misleading.

Hope this helps!

Site has a redirect loop

Tried from a couple different internet connections, just to make sure it wasn't the CDN thinking I was an attacker or something.

Bump up package.json dependencies

Most of the packages are very old and might need some upgrades. Bonus if the a lockfile is committed to the project (npm is preferable only because it's more widely available).

Design Tasks

Thought I’d open an issue to keep track of my tasks that are design related.

  • Fix broken menu for small devices
  • Improve code.highlighter-rogue (new Rake task for building proper syntax highlighting??)
  • Refactor styles
  • Update README
  • Extract older styles into Sass files
  • Remove mention of legacy styles and extractions in README after extractions
  • Identify and remove dead styles
  • Possibly replace Sinatra bg pic with svg
  • Tweak styles / typography for README code examples

[API documentation] clicking 'classes', 'methods' links resulted in "SQLite3::CorruptException: database disk image is malformed" message

location: https://rubydoc.info/gems/sinatra

When navigating to Class List - Classes and Class List - methods, it returns 'SQLite3::CorruptException: database disk image is malformed' error. Class List - Files is fine.

Image:
Screenshot from 2020-08-25 20-52-14

Full Error for Classes

SQLite3::CorruptException: database disk image is malformed
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/resultset.rb:108:in `step'
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/resultset.rb:108:in `next'
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/resultset.rb:133:in `each'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:334:in `block in fetch_rows'
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:339:in `query'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:200:in `block (2 levels) in _execute'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sequel.rb:22:in `block (2 levels) in log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb:180:in `block in instrument'
/usr/local/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/usr/local/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb:180:in `instrument'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sequel.rb:16:in `block in log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/database/logging.rb:38:in `log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sequel.rb:15:in `log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:200:in `block in _execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/connection_pool/threaded.rb:92:in `hold'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/database/connecting.rb:270:in `synchronize'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:193:in `_execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:139:in `execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:1089:in `execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:327:in `fetch_rows'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:940:in `with_sql_each'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:950:in `with_sql_first'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/placeholder_literalizer.rb:192:in `first'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:243:in `first'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/model/plugins.rb:33:in `first'
/app/lib/gem_store.rb:23:in `[]'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/router.rb:83:in `parse_library_from_path'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/router.rb:112:in `route'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/router.rb:56:in `call'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/rack_adapter.rb:52:in `call'
/app/app.rb:405:in `block (2 levels) in <class:DocServer>'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in `block in compile!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in `block (3 levels) in route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in `route_eval'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in `block (2 levels) in route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in `block in process_route'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in `catch'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in `process_route'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in `block in route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in `each'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in `route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in `block in dispatch!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `block in invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `catch'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in `dispatch!'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sinatra.rb:36:in `dispatch!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in `block in call!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `block in invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `catch'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in `call!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in `call'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/middleware.rb:84:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/common_logger.rb:38:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:231:in `call'
/app/app.rb:187:in `call'
/app/app.rb:30:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/null_logger.rb:11:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in `block in call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1728:in `synchronize'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1728:in `synchronize'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in `call'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/configuration.rb:228:in `call'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/server.rb:713:in `handle_request'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/server.rb:472:in `process_client'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/server.rb:328:in `block in run'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/thread_pool.rb:134:in `block in spawn_thread'

Full error for Methods

SQLite3::CorruptException: database disk image is malformed
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/resultset.rb:108:in `step'
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/resultset.rb:108:in `next'
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/resultset.rb:133:in `each'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:334:in `block in fetch_rows'
/usr/local/bundle/ruby/2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:339:in `query'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:200:in `block (2 levels) in _execute'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sequel.rb:22:in `block (2 levels) in log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb:180:in `block in instrument'
/usr/local/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/usr/local/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb:180:in `instrument'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sequel.rb:16:in `block in log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/database/logging.rb:38:in `log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sequel.rb:15:in `log_connection_yield'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:200:in `block in _execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/connection_pool/threaded.rb:92:in `hold'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/database/connecting.rb:270:in `synchronize'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:193:in `_execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:139:in `execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:1089:in `execute'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/adapters/sqlite.rb:327:in `fetch_rows'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:940:in `with_sql_each'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:950:in `with_sql_first'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/placeholder_literalizer.rb:192:in `first'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/dataset/actions.rb:243:in `first'
/usr/local/bundle/ruby/2.7.0/gems/sequel-5.28.0/lib/sequel/model/plugins.rb:33:in `first'
/app/lib/gem_store.rb:23:in `[]'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/router.rb:83:in `parse_library_from_path'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/router.rb:112:in `route'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/router.rb:56:in `call'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/server/rack_adapter.rb:52:in `call'
/app/app.rb:405:in `block (2 levels) in <class:DocServer>'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in `block in compile!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in `block (3 levels) in route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in `route_eval'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in `block (2 levels) in route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in `block in process_route'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in `catch'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in `process_route'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in `block in route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in `each'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in `route!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in `block in dispatch!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `block in invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `catch'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in `dispatch!'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/probes/sinatra.rb:36:in `dispatch!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in `block in call!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `block in invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `catch'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `invoke'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in `call!'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in `call'
/usr/local/bundle/ruby/2.7.0/gems/skylight-core-4.2.0/lib/skylight/core/middleware.rb:84:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/common_logger.rb:38:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:231:in `call'
/app/app.rb:187:in `call'
/app/app.rb:30:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/null_logger.rb:11:in `call'
/usr/local/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in `call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in `block in call'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1728:in `synchronize'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1728:in `synchronize'
/usr/local/bundle/ruby/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in `call'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/configuration.rb:228:in `call'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/server.rb:713:in `handle_request'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/server.rb:472:in `process_client'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/server.rb:328:in `block in run'
/usr/local/bundle/ruby/2.7.0/gems/puma-4.3.5/lib/puma/thread_pool.rb:134:in `block in spawn_thread'


`rack-test` gem is also needed when testing Sinatra now

When I came to the testing section of Sinatra today, could't work out why none of the testing examples worked, until I saw that rack/test is no longer in the base Sinatra gem.

It would help others coming to Sinatra to know that they need to install rack-test individually, rather than rely on Sinatra having it included already.

Sinatra Book is terribly out-of-date

I was having issues with getting DataMapper to work, since the instructions in the Book are for a previous version. The nice fellows in #datamapper helped me out, and so I thought I'd go and update the docs accordingly. Lo and behold! There is a much more updated version of the book, and it's even hosted online for me to read.

So then, it seems that we can either:

There are a number of reasons that either could be preferred, so I leave it up to the powers that be to make the decision. Once that has been done, I'm willing to do the actual work (although it doesn't seem like it'd take too long). But whatever happens, the documentation currently is wrong, and that makes me sad :(.

Use https for links

This Issue signposts the fact that some of our links are pointing at http, not https.

Clean up gulp or perhaps consider better options (hint: parcel!)

I tried running the CSS compiler and ran into some inconveniences:

  • The browersync watcher starts up for every single invocation. Ideally it should only do that when the user runs watch or related commands

  • Move away from Gulp ruby and use node-sass. The latter is much better supported in the Node ecosystem and avoid the jump between ruby and node.

  • It's worthwhile to consider using a new configless bundler like parcel. I personally found it very simple to use. We can get rid of most of the gulp dependency and package.json also!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.