sinatra-rider 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c503098ce34a4437ca8808342f6c34cf9c7025a0
4
+ data.tar.gz: d5eb30b067e8efe855112401ed80065b4aa3f807
5
+ SHA512:
6
+ metadata.gz: 5d1bdc2b3947aa0383f438887150b7360095e7345867418456087dc0bb17e8391d02c16a77049967372275e6040a39138a4ff9a98f8c1fc1cc0ea52a9fe88e87
7
+ data.tar.gz: 62b13d210df49ee04123ddc683173113fe97d6522964c34f483a1bf09f39de5e7d5ac912eee245132a42ee37874bd73905eb6e9cdef10123beb77197389584c5
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.0.0
5
+ before_install: gem install bundler -v 1.13.7
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at m@mjw.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sinatra-rider.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Matthew Werner
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,119 @@
1
+ # Sinatra::Rider
2
+
3
+ All the nice extras Sinatra likes to have when he's on the road.
4
+
5
+ ## Including:
6
+
7
+ - ActiveRecord
8
+ - Warden
9
+ - Sass
10
+ - Dotenv
11
+ - Better Errors
12
+ - Autoloading `app` and `lib` directories
13
+ - ~One dozen blue M&Ms~
14
+
15
+ ## Installation
16
+
17
+ Add this line to your application's Gemfile:
18
+
19
+ ```ruby
20
+ gem 'sinatra-rider'
21
+ ```
22
+
23
+ Then require it at the top of your server file and register the rider in Sinatra.
24
+
25
+ ```
26
+ require 'sinatra/rider'
27
+ class Server < Sinatra::Base
28
+ register Sinatra::Rider
29
+
30
+ get '/' do
31
+ authorize!
32
+ erb :index
33
+ end
34
+ end
35
+
36
+ run Server
37
+ ```
38
+
39
+ That's it!
40
+
41
+ ## Usage
42
+
43
+ `Sinatra::Rider` provides a quite a few small conveniences.
44
+
45
+ ### ActiveRecord
46
+
47
+ Activerecord is included and integrated into Sinatra. `Sinatra::Rider` looks for your `database.yml` file in the top level `config` directory. By default Sinatra::Rider uses postgres as its data store via the `pg` gem. This can be changed by including the necessary gem for your data store of choice and configuring your `database.yml` accordingly.
48
+
49
+ [More Information](https://github.com/janko-m/sinatra-activerecord)
50
+
51
+ ### Warden
52
+
53
+ Warden is used for authentication. `Sinatra::Rider` sets up Sinatra with `/login` and `/logout` routes. Make sure to set a `SESSION_SECRET` environment variable to properly handle session data.
54
+
55
+ You can require authentication for an endpoint by including `authorize!` in sinatra's endpoint block
56
+
57
+ ```
58
+ get '/' do
59
+ authorize!
60
+ erb :index
61
+ end
62
+ ```
63
+
64
+ [More Information](https://github.com/jsmestad/sinatra_warden)
65
+
66
+ ### Sass
67
+
68
+ Sass is handled by Sprockets. `Sinatra::Rider` looks for any assets in `assets/stylesheets` and `assets/javascripts` and compiles them as requested.
69
+
70
+ ```
71
+ # assets/stylesheets/application.scss
72
+ //= require_tree ./vendor
73
+ //= require base
74
+
75
+ # views/layout.erb
76
+ <!DOCTYPE html>
77
+ <html>
78
+ <head>
79
+ <link rel="stylesheet" type="text/css" href="/assets/application.css">
80
+ </head>
81
+ <body>
82
+
83
+ </body>
84
+ </html>
85
+ ```
86
+
87
+ More Information: [Sass](http://sass-lang.com/) & [Sprockets](https://github.com/rails/sprockets)
88
+
89
+ ### Dotenv
90
+
91
+ `Sinatra::Rider` will load any environment variables you have present in a top level `.env` file. This is very useful when using secrets or configuration if you're aiming for [12factor](https://12factor.net/).
92
+
93
+ [More Information](https://github.com/bkeepers/dotenv)
94
+
95
+ ### Better Errors
96
+
97
+ Better Errors are included in the Sinatra configuration when `RACK_ENV` is in development mode. This makes debugging much easier as it provides better context as well as a REPL at the point of the error.
98
+
99
+
100
+ [More Information](https://github.com/charliesome/better_errors)
101
+
102
+ ### Autoloading `app` and `lib`
103
+
104
+ Any ruby files present in `app` or `lib` as siblings in the root directory of your `config.ru` will be automatically required.
105
+
106
+ ```
107
+ - app # Autoloaded
108
+ - config
109
+ - lib # Autoloaded
110
+ - views
111
+ .ruby-version
112
+ config.ru
113
+ Gemfile
114
+ ```
115
+
116
+ ## License
117
+
118
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
119
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sinatra/rider"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
Binary file
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'sinatra-rider'
@@ -0,0 +1,28 @@
1
+ require 'digest/sha1'
2
+
3
+ class User < ActiveRecord::Base
4
+ def self.signup(attrs)
5
+ User.where(username: attrs[:username]).first_or_initialize.tap do |u|
6
+ u.name = attrs[:name]
7
+ u.password = attrs[:password]
8
+ u.save!
9
+ end
10
+ end
11
+
12
+ def self.authenticate(name, pass)
13
+ user = self.where(username: name).first
14
+ user if user && user.valid_password?(pass)
15
+ end
16
+
17
+ def password
18
+ encrypted_password
19
+ end
20
+
21
+ def password=(pass)
22
+ self.encrypted_password = Digest::SHA1.hexdigest(pass)
23
+ end
24
+
25
+ def valid_password?(pass)
26
+ encrypted_password == Digest::SHA1.hexdigest(pass)
27
+ end
28
+ end
@@ -0,0 +1 @@
1
+ //= require base
@@ -0,0 +1,4 @@
1
+ html, body {
2
+ background: #FAFAFA;
3
+ color: #333;
4
+ }
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'sinatra/rider'
3
+ class Server < Sinatra::Base
4
+ register Sinatra::Rider
5
+
6
+ get '/' do
7
+ authorize!
8
+ erb :index
9
+ end
10
+ end
11
+
12
+ run Server
@@ -0,0 +1 @@
1
+ Hello from Sinatra::Rider!
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Hello!</title>
5
+ <link rel="stylesheet" type="text/css" href="/assets/application.css">
6
+ </head>
7
+ <body>
8
+ <%= yield %>
9
+ </body>
10
+ </html>
@@ -0,0 +1,31 @@
1
+ ENV['RACK_ENV'] ||= 'development'
2
+ require 'dotenv'
3
+ Dotenv.load
4
+
5
+ require 'active_record'
6
+ require 'sinatra/base'
7
+ require 'sinatra/activerecord'
8
+
9
+ require 'sinatra/rider/assets'
10
+ require 'sinatra/rider/authentication'
11
+ require 'sinatra/rider/configuration'
12
+ require 'sinatra/rider/pathing'
13
+ require 'sinatra/rider/version'
14
+
15
+ module Sinatra
16
+ module Rider
17
+ def self.registered(app)
18
+ app.set :database_file, File.join(app.root, "config/database.yml").to_s
19
+
20
+ %w(app lib).map do |path|
21
+ Dir.glob("#{File.join(app.root, path)}/*.rb").each { |file| require file }
22
+ end
23
+
24
+ app.register Sinatra::ActiveRecordExtension
25
+ app.register Sinatra::Rider::Assets
26
+ app.register Sinatra::Rider::Authentication
27
+ app.register Sinatra::Rider::Configuration
28
+ app.register Sinatra::Rider::Pathing
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,23 @@
1
+ require 'sprockets'
2
+ require 'uglifier'
3
+ require 'sass'
4
+ require 'execjs'
5
+
6
+ module Sinatra
7
+ module Rider
8
+ module Assets
9
+ def self.registered(app)
10
+ app.set :pipeline, Sprockets::Environment.new
11
+
12
+ app.pipeline.append_path "assets/stylesheets"
13
+ app.pipeline.js_compressor = :uglify
14
+ app.pipeline.css_compressor = :scss
15
+
16
+ app.get "/assets/*" do
17
+ env["PATH_INFO"].sub!("/assets", "")
18
+ settings.pipeline.call(env)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,48 @@
1
+ # Warden
2
+ require 'warden'
3
+ require 'sinatra_warden'
4
+
5
+ Warden::Manager.serialize_into_session{|user| user.id }
6
+ Warden::Manager.serialize_from_session{|id| User.find(id) }
7
+
8
+ Warden::Strategies.add(:password) do
9
+ def valid?
10
+ params["username"] || params["password"]
11
+ end
12
+
13
+ def authenticate!
14
+ auth = User.authenticate(params["username"], params["password"])
15
+ auth.nil? ? fail!("Could not log in") : success!(auth)
16
+ end
17
+ end
18
+
19
+ module Sinatra
20
+ module Rider
21
+ module Authentication
22
+ def self.registered(app)
23
+ app.register Sinatra::Warden
24
+ app.use Rack::Session::Cookie, secret: ENV['SESSION_SECRET'] || "I'm not a businessman. I'm a business, man."
25
+ app.use ::Warden::Manager do |manager|
26
+ manager.default_strategies :password
27
+ manager.failure_app = app
28
+ end
29
+
30
+ app.set :auth_template_renderer, :erb
31
+ app.set :auth_success_path, '/'
32
+ app.set :auth_failure_path, '/login'
33
+
34
+ app.get '/login' do
35
+ erb :login
36
+ end
37
+
38
+ app.post '/login' do
39
+ env['warden'].authenticate!
40
+ end
41
+
42
+ app.get '/logout' do
43
+ env['warden'].logout
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,25 @@
1
+ module Sinatra
2
+ module Rider
3
+ module Configuration
4
+ def self.registered(app)
5
+ app.configure :development do
6
+ require 'sinatra/rider/quiet_assets'
7
+ require 'sinatra/reloader'
8
+ require 'better_errors'
9
+
10
+ app.register Sinatra::Rider::QuietAssets
11
+ app.register Sinatra::Reloader
12
+
13
+ %w(app lib).each do |dir|
14
+ Dir.glob("#{File.join(app.root, dir)}/*.rb").each do |file|
15
+ app.also_reload file
16
+ end
17
+ end
18
+
19
+ app.use BetterErrors::Middleware
20
+ BetterErrors.application_root = app.root
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,15 @@
1
+ module Sinatra
2
+ module Rider
3
+ module Pathing
4
+ def self.registered(app)
5
+ app.set :views, [app.settings.views, File.join(File.dirname(__dir__), 'views')]
6
+
7
+ app.helpers do
8
+ def find_template(views, name, engine, &block)
9
+ [*views].each { |v| super(v, name, engine, &block) }
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ module Sinatra
2
+ module Rider
3
+ module QuietAssets
4
+ # images, fonts, stylesheets, scripts
5
+ @extensions = %w(png jpg jpeg ico gif woff ttf svg eot css js)
6
+
7
+ class << self
8
+ attr_accessor :extensions
9
+ end
10
+
11
+ def self.registered(app)
12
+ ::Rack::CommonLogger.class_eval <<-PATCH
13
+ alias_method :call_with_logging, :call
14
+
15
+ def call(env)
16
+ ext = env['REQUEST_PATH'].split('.').last
17
+ if #{extensions.inspect}.include? ext
18
+ @app.call env
19
+ else
20
+ call_with_logging env
21
+ end
22
+ end
23
+ PATCH
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,7 @@
1
+ require "sinatra/activerecord/rake"
2
+
3
+ namespace :db do
4
+ task :load_config do
5
+ require 'sinatra/rider'
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Sinatra
2
+ module Rider
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ <form action="/login" method="POST">
2
+ <div class="form-group">
3
+ <label for="username">Username</label>
4
+ <input type="text" name="username" class="form-control" id="login-username" placeholder="guest">
5
+ </div>
6
+
7
+ <div class="form-group">
8
+ <label for="password">Password</label>
9
+ <input type="password" name="password" class="form-control" id="login-password" placeholder="**********">
10
+ </div>
11
+
12
+ <button type="submit" class="btn btn-primary">Log In</button>
13
+ </form>
@@ -0,0 +1,41 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sinatra/rider/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sinatra-rider"
8
+ spec.version = Sinatra::Rider::VERSION
9
+ spec.authors = ["Matthew Werner"]
10
+ spec.email = ["m@mjw.io"]
11
+
12
+ spec.summary = %q{Sinatra's Rider}
13
+ spec.description = %q{All the extras that Sinatra prefers while performing}
14
+ spec.homepage = "https://github.com/mwerner/sinatra-rider"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency 'thin'
25
+ spec.add_dependency 'pg'
26
+ spec.add_dependency 'dotenv'
27
+ spec.add_dependency 'sinatra'
28
+ spec.add_dependency 'sinatra-contrib'
29
+ spec.add_dependency 'sinatra-activerecord'
30
+ spec.add_dependency 'sinatra_warden'
31
+ spec.add_dependency 'activerecord', '4.2.5'
32
+ spec.add_dependency 'sprockets'
33
+ spec.add_dependency 'uglifier'
34
+ spec.add_dependency 'sass'
35
+ spec.add_dependency 'better_errors'
36
+ spec.add_dependency 'binding_of_caller'
37
+
38
+ spec.add_development_dependency "bundler", "~> 1.13"
39
+ spec.add_development_dependency "rake", "~> 10.0"
40
+ spec.add_development_dependency "rspec", "~> 3.0"
41
+ end
metadata ADDED
@@ -0,0 +1,296 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sinatra-rider
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matthew Werner
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pg
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dotenv
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sinatra
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sinatra-contrib
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sinatra-activerecord
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sinatra_warden
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: activerecord
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '='
116
+ - !ruby/object:Gem::Version
117
+ version: 4.2.5
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '='
123
+ - !ruby/object:Gem::Version
124
+ version: 4.2.5
125
+ - !ruby/object:Gem::Dependency
126
+ name: sprockets
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: uglifier
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: sass
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: better_errors
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: binding_of_caller
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: bundler
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '1.13'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '1.13'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rake
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '10.0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '10.0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: rspec
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '3.0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '3.0'
237
+ description: All the extras that Sinatra prefers while performing
238
+ email:
239
+ - m@mjw.io
240
+ executables: []
241
+ extensions: []
242
+ extra_rdoc_files: []
243
+ files:
244
+ - ".gitignore"
245
+ - ".rspec"
246
+ - ".travis.yml"
247
+ - CODE_OF_CONDUCT.md
248
+ - Gemfile
249
+ - LICENSE.txt
250
+ - README.md
251
+ - Rakefile
252
+ - bin/console
253
+ - bin/setup
254
+ - example/.DS_Store
255
+ - example/myapp/Gemfile
256
+ - example/myapp/app/user.rb
257
+ - example/myapp/assets/stylesheets/application.scss
258
+ - example/myapp/assets/stylesheets/base.scss
259
+ - example/myapp/config.ru
260
+ - example/myapp/views/index.erb
261
+ - example/myapp/views/layout.erb
262
+ - lib/sinatra/rider.rb
263
+ - lib/sinatra/rider/assets.rb
264
+ - lib/sinatra/rider/authentication.rb
265
+ - lib/sinatra/rider/configuration.rb
266
+ - lib/sinatra/rider/pathing.rb
267
+ - lib/sinatra/rider/quiet_assets.rb
268
+ - lib/sinatra/rider/rake.rb
269
+ - lib/sinatra/rider/version.rb
270
+ - lib/sinatra/views/login.erb
271
+ - sinatra-rider.gemspec
272
+ homepage: https://github.com/mwerner/sinatra-rider
273
+ licenses:
274
+ - MIT
275
+ metadata: {}
276
+ post_install_message:
277
+ rdoc_options: []
278
+ require_paths:
279
+ - lib
280
+ required_ruby_version: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - ">="
283
+ - !ruby/object:Gem::Version
284
+ version: '0'
285
+ required_rubygems_version: !ruby/object:Gem::Requirement
286
+ requirements:
287
+ - - ">="
288
+ - !ruby/object:Gem::Version
289
+ version: '0'
290
+ requirements: []
291
+ rubyforge_project:
292
+ rubygems_version: 2.2.5
293
+ signing_key:
294
+ specification_version: 4
295
+ summary: Sinatra's Rider
296
+ test_files: []