sinatra-rider 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -0
- data/lib/sinatra/rider/command.rb +8 -4
- data/lib/sinatra/rider/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fe3e9807e9553c0cd90b6fd69d777412c92cb97
|
4
|
+
data.tar.gz: d7891c8747eebabead03c2fd1825ea7e0d64467a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f9dc9a2e7342333a48658ec5300e2ec43e7c9358d73fdf113fc123ec3909554a52feaae1741ad6631a748cdb458bfabb58d3819901aed9eeebd3bf3c5b04c99
|
7
|
+
data.tar.gz: de7860ae34a1211a80eb9f5f983249df9f6872b07d0a0853a96e027ba1a8a2b9bd18985d718017910916be656806b7da88b9b1f520690b91dbc0c97a10362f26
|
data/README.md
CHANGED
@@ -9,6 +9,7 @@ All the nice extras Sinatra likes to have when he's on the road.
|
|
9
9
|
- Sass
|
10
10
|
- Dotenv
|
11
11
|
- Better Errors
|
12
|
+
- Local copy of bootstrap and font-awesome
|
12
13
|
- Autoloading `app` and `lib` directories
|
13
14
|
- ~~One dozen blue M&Ms~~
|
14
15
|
|
@@ -98,6 +99,25 @@ Better Errors are included in the Sinatra configuration when `RACK_ENV` is in de
|
|
98
99
|
|
99
100
|
[More Information](https://github.com/charliesome/better_errors)
|
100
101
|
|
102
|
+
### Locally available copies of bootstrap and font-awesome
|
103
|
+
|
104
|
+
`Sinatra::Rider` provides a copy of the latest Bootstrap and Font-Awesome libraries for your usage. Just add the `link` tag to your layout and you're styling!
|
105
|
+
|
106
|
+
```html
|
107
|
+
<head>
|
108
|
+
<title>My Sinatra::Rider App</title>
|
109
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
110
|
+
<link rel="stylesheet" type="text/css" href="/assets/bootstrap.css">
|
111
|
+
<link rel="stylesheet" type="text/css" href="/assets/font-awesome.css">
|
112
|
+
</head>
|
113
|
+
```
|
114
|
+
|
115
|
+
Current Versions:
|
116
|
+
- Bootstrap: 3.3.7
|
117
|
+
- Font-Awesome: 4.7.0
|
118
|
+
|
119
|
+
More Information: [Bootstrap](https://getbootstrap.com/) & [Font-Awesome](http://fontawesome.io/)
|
120
|
+
|
101
121
|
### Autoloading `app` and `lib`
|
102
122
|
|
103
123
|
Any ruby files present in `app` or `lib` as siblings in the root directory of your `config.ru` will be automatically required.
|
@@ -21,7 +21,7 @@ module Sinatra
|
|
21
21
|
|
22
22
|
def prepare_dotenv
|
23
23
|
create_file("#{path}/.env") { "SESSION_SECRET=super secret shh\n" }
|
24
|
-
create_file("#{path}/.gitignore") { ".env\n" }
|
24
|
+
create_file("#{path}/.gitignore") { ".env\ntmp/\n" }
|
25
25
|
end
|
26
26
|
|
27
27
|
def prepare_database
|
@@ -61,10 +61,14 @@ module Sinatra
|
|
61
61
|
run('bundle install')
|
62
62
|
run('bundle exec rake db:create db:migrate')
|
63
63
|
run('git init')
|
64
|
-
|
65
|
-
|
66
|
-
puts "\nYou can get setup with a user at http://localhost:9292/signup"
|
64
|
+
run('git add .')
|
65
|
+
run('git commit -m "Initial Commit"')
|
67
66
|
end
|
67
|
+
|
68
|
+
run("cd #{path}")
|
69
|
+
puts "You're all set up! Start your server like this:"
|
70
|
+
puts " bundle exec rackup config.ru"
|
71
|
+
puts "\nYou can get setup with a user at http://localhost:9292/signup"
|
68
72
|
end
|
69
73
|
|
70
74
|
def self.source_root
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-rider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Werner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thin
|