parklife 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/tests.yml +62 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/CHANGELOG.md +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +103 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/examples/rack/.gitignore +1 -0
- data/examples/rack/Gemfile +4 -0
- data/examples/rack/Gemfile.lock +47 -0
- data/examples/rack/Parkfile +23 -0
- data/examples/rails/.gitignore +26 -0
- data/examples/rails/Gemfile +5 -0
- data/examples/rails/Gemfile.lock +150 -0
- data/examples/rails/Parkfile +6 -0
- data/examples/rails/Rakefile +6 -0
- data/examples/rails/app/assets/config/manifest.js +2 -0
- data/examples/rails/app/assets/stylesheets/application.css +15 -0
- data/examples/rails/app/assets/stylesheets/global.css +4 -0
- data/examples/rails/app/controllers/application_controller.rb +2 -0
- data/examples/rails/app/controllers/posts_controller.rb +9 -0
- data/examples/rails/app/helpers/application_helper.rb +2 -0
- data/examples/rails/app/jobs/application_job.rb +2 -0
- data/examples/rails/app/models/application_record.rb +3 -0
- data/examples/rails/app/models/post.rb +5 -0
- data/examples/rails/app/views/layouts/application.html.erb +14 -0
- data/examples/rails/app/views/posts/index.html.erb +7 -0
- data/examples/rails/app/views/posts/show.html.erb +3 -0
- data/examples/rails/bin/bundle +3 -0
- data/examples/rails/bin/rails +4 -0
- data/examples/rails/bin/rake +4 -0
- data/examples/rails/bin/setup +33 -0
- data/examples/rails/bin/update +28 -0
- data/examples/rails/config/application.rb +35 -0
- data/examples/rails/config/boot.rb +3 -0
- data/examples/rails/config/database.yml +25 -0
- data/examples/rails/config/environment.rb +5 -0
- data/examples/rails/config/environments/development.rb +53 -0
- data/examples/rails/config/environments/production.rb +79 -0
- data/examples/rails/config/environments/test.rb +36 -0
- data/examples/rails/config/initializers/application_controller_renderer.rb +8 -0
- data/examples/rails/config/initializers/assets.rb +12 -0
- data/examples/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/examples/rails/config/initializers/content_security_policy.rb +25 -0
- data/examples/rails/config/initializers/cookies_serializer.rb +5 -0
- data/examples/rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/examples/rails/config/initializers/inflections.rb +16 -0
- data/examples/rails/config/initializers/mime_types.rb +4 -0
- data/examples/rails/config/initializers/wrap_parameters.rb +14 -0
- data/examples/rails/config/locales/en.yml +33 -0
- data/examples/rails/config/routes.rb +5 -0
- data/examples/rails/config.ru +5 -0
- data/examples/rails/data/1-hello-from-parklife.txt +3 -0
- data/examples/rails/data/2-hello-again.txt +3 -0
- data/examples/rails/data/3-magic-number.txt +3 -0
- data/examples/rails/db/migrate/20190507172823_create_posts.rb +11 -0
- data/examples/rails/db/schema.rb +24 -0
- data/examples/rails/db/seeds.rb +10 -0
- data/examples/rails/parklife-build +24 -0
- data/examples/rails/public/404.html +67 -0
- data/examples/rails/public/422.html +67 -0
- data/examples/rails/public/500.html +66 -0
- data/examples/rails/public/apple-touch-icon-precomposed.png +0 -0
- data/examples/rails/public/apple-touch-icon.png +0 -0
- data/examples/rails/public/favicon.ico +0 -0
- data/examples/rails/public/robots.txt +1 -0
- data/examples/sinatra/.gitignore +1 -0
- data/examples/sinatra/Gemfile +4 -0
- data/examples/sinatra/Gemfile.lock +56 -0
- data/examples/sinatra/Parkfile +21 -0
- data/exe/parklife +3 -0
- data/lib/parklife/application.rb +39 -0
- data/lib/parklife/cli.rb +36 -0
- data/lib/parklife/config.rb +14 -0
- data/lib/parklife/crawler.rb +104 -0
- data/lib/parklife/errors.rb +25 -0
- data/lib/parklife/rails.rb +12 -0
- data/lib/parklife/route.rb +23 -0
- data/lib/parklife/route_set.rb +36 -0
- data/lib/parklife/utils.rb +20 -0
- data/lib/parklife/version.rb +3 -0
- data/lib/parklife.rb +8 -0
- data/parklife.gemspec +38 -0
- metadata +217 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 902d8d8c29ef6c91bc880098ca694c7043d7f9dfb49bf350b4491acaac1cfc75
|
4
|
+
data.tar.gz: 590ad64613650428cc43d23746e5d4abb0fb6019da4789bd90f25eabca213ea2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b6130c966e9f07679ccb4ababebf7540d77a9519f5beb55215cab6c259a574155db50bb6e3d2cae65aea2e8caa0969c6c4bef587e70a4480a5a38bd1734242a3
|
7
|
+
data.tar.gz: e7da49b2c9cd4e1e5fadae8def1843bcfe7d5313a97fad7feb95fd41e8fe3e3697d145f76e98bb673b74d5db220f402df76587add7d8a76e8439ac8e8e1e4e61
|
@@ -0,0 +1,62 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on: push
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
example_rack:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
name: Rack example
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v3
|
11
|
+
- uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
bundler-cache: true
|
14
|
+
ruby-version: '2.7'
|
15
|
+
working-directory: examples/rack
|
16
|
+
- run: bundle exec parklife build
|
17
|
+
working-directory: examples/rack
|
18
|
+
|
19
|
+
example_rails:
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
name: Rails example
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v3
|
24
|
+
- uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
bundler-cache: true
|
27
|
+
ruby-version: '2.7'
|
28
|
+
working-directory: examples/rails
|
29
|
+
- run: ./parklife-build
|
30
|
+
working-directory: examples/rails
|
31
|
+
env:
|
32
|
+
SECRET_KEY_BASE: secret
|
33
|
+
|
34
|
+
example_sinatra:
|
35
|
+
runs-on: ubuntu-latest
|
36
|
+
name: Sinatra example
|
37
|
+
steps:
|
38
|
+
- uses: actions/checkout@v3
|
39
|
+
- uses: ruby/setup-ruby@v1
|
40
|
+
with:
|
41
|
+
bundler-cache: true
|
42
|
+
ruby-version: '2.7'
|
43
|
+
working-directory: examples/sinatra
|
44
|
+
- run: bundle exec parklife build
|
45
|
+
working-directory: examples/sinatra
|
46
|
+
|
47
|
+
rspec:
|
48
|
+
runs-on: ubuntu-latest
|
49
|
+
strategy:
|
50
|
+
matrix:
|
51
|
+
ruby:
|
52
|
+
- '2.7'
|
53
|
+
- '3.0'
|
54
|
+
- '3.1'
|
55
|
+
name: Ruby ${{ matrix.ruby }} RSpec
|
56
|
+
steps:
|
57
|
+
- uses: actions/checkout@v3
|
58
|
+
- uses: ruby/setup-ruby@v1
|
59
|
+
with:
|
60
|
+
bundler-cache: true
|
61
|
+
ruby-version: ${{ matrix.ruby }}
|
62
|
+
- run: bundle exec rspec
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
## Version 0.2.0 - 2023-02-21
|
2
|
+
|
3
|
+
- First official version hosted on [RubyGems.org](https://rubygems.org/gems/parklife).
|
4
|
+
- Provide alternatives to blowing up if a 404 is encountered.
|
5
|
+
- Add the ability to crawl a route by adding `crawl: true` to it.
|
6
|
+
|
7
|
+
## Version 0.1.0 - 2019-04-26
|
8
|
+
|
9
|
+
The day I started using Parklife in production for [my website](https://www.benpickles.com).
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 spideryoung@gmail.com. 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
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Ben Pickles
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
# Parklife
|
2
|
+
|
3
|
+
[![GitHub Actions status](https://github.com/benpickles/parklife/workflows/Tests/badge.svg)](https://github.com/benpickles/parklife)
|
4
|
+
|
5
|
+
[Parklife](https://github.com/benpickles/parklife) is a Ruby library to render a Rack app (Rails/Sinatra/etc) to a static site so it can be served by [Netlify](https://www.netlify.com), [Now](https://zeit.co/now), [GitHub Pages](https://pages.github.com), S3, or another static server.
|
6
|
+
|
7
|
+
## How to use Parklife with Rails
|
8
|
+
|
9
|
+
Parklife is configured with a file called `Parkfile` in the root of your project, here's an example `Parkfile` for an imaginary Rails app:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
# Load the Rails application, this gives you full access to the application's
|
13
|
+
# environment from this file - using models for example.
|
14
|
+
require_relative 'config/environment'
|
15
|
+
|
16
|
+
# Load Parklife and some Rails-specific settings allowing you to use URL
|
17
|
+
# helpers within the `routes` block below.
|
18
|
+
require 'parklife/rails'
|
19
|
+
|
20
|
+
Parkfile.application.routes do
|
21
|
+
# Start from the homepage and crawl all links.
|
22
|
+
root crawl: true
|
23
|
+
|
24
|
+
# Some extra paths that aren't discovered while crawling.
|
25
|
+
get feed_path(format: :atom)
|
26
|
+
get sitemap_path(format: :xml)
|
27
|
+
|
28
|
+
# A couple more hidden pages.
|
29
|
+
get easter_egg_path, crawl: true
|
30
|
+
get '404.html'
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
Listing the routes included in the above Parklife application with `parklife routes` would output the following:
|
35
|
+
|
36
|
+
```
|
37
|
+
$ bundle exec parklife routes
|
38
|
+
/ crawl=true
|
39
|
+
/feed.atom
|
40
|
+
/sitemap.xml
|
41
|
+
/easter_egg crawl=true
|
42
|
+
/404.html
|
43
|
+
```
|
44
|
+
|
45
|
+
Now you can run `parklife build` which will fetch all the routes and save them to the `build` directory ready to be served as a static site.
|
46
|
+
|
47
|
+
Parklife doesn't know about assets (images, CSS, etc) so you likely also need to generate those and copy them to the build directory, see the [Rails example's full build script](examples/rails/parklife-build) for how you might do this.
|
48
|
+
|
49
|
+
## More examples
|
50
|
+
|
51
|
+
Take a look at the [Rails](examples/rails/Parkfile), [Rack](examples/rack/Parkfile) and [Sinatra](examples/sinatra/Parkfile) working examples within this repository.
|
52
|
+
|
53
|
+
## Configuration
|
54
|
+
|
55
|
+
### Linking to full URLs
|
56
|
+
|
57
|
+
Sometimes you need to point to a link's full URL - maybe for a feed or a social tag URL. You can tell Parklife to make its mock requests with a particular protocol / host by setting its `base` so Rails `*_url` helpers will point to the correct host:
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
Parklife.application.config.base = 'https://foo.example.com'
|
61
|
+
```
|
62
|
+
|
63
|
+
### Dealing with trailing slashes <small>(turning off nested `index.html`)</small>
|
64
|
+
|
65
|
+
By default Parklife stores files in an `index.html` file nested in directory with the same name as the path - so the route `/my/nested/route` is stored in `/my/nested/route/index.html`. This is to make sure links within the app work without modification making it easier for any static server to host the build.
|
66
|
+
|
67
|
+
However, it's possible to turn this off so that `/my/nested/route` is stored in `/my/nested/route.html`. This allows you to serve trailing slash-less URLs by using [Netlify's Pretty URLs feature](https://www.netlify.com/docs/redirects/#trailing-slash) or with some custom nginx config.
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
Parklife.application.config.nested_index = false
|
71
|
+
```
|
72
|
+
|
73
|
+
### Changing the build output directory
|
74
|
+
|
75
|
+
The build directory shouldn't exist and is destroyed and recreated before each build.
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
Parklife.application.config.build_dir = 'my/build/dir'
|
79
|
+
```
|
80
|
+
|
81
|
+
### Handling a 404
|
82
|
+
|
83
|
+
By default if Parklife encounters a 404 response when fetching a route it will raise an exception (the `:error` setting). Other values are `:warn` which will output a message to `stderr` and `:skip` which will skip the response but continue processing other routes.
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
Parklife.application.config.on_404 = :warn
|
87
|
+
```
|
88
|
+
|
89
|
+
### Setting the Rack app
|
90
|
+
|
91
|
+
If you're not using the Rails configuration you'll need to define this yourself, see the [examples](examples).
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
Parklife.application.config.rack_app
|
95
|
+
```
|
96
|
+
|
97
|
+
## License
|
98
|
+
|
99
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
100
|
+
|
101
|
+
## Code of Conduct
|
102
|
+
|
103
|
+
Everyone interacting in the Parklife project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/benpickles/parklife/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'parklife'
|
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(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
build
|
@@ -0,0 +1,47 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
parklife (0.1.0)
|
5
|
+
capybara
|
6
|
+
nokogiri
|
7
|
+
thor
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
addressable (2.8.1)
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
14
|
+
capybara (3.38.0)
|
15
|
+
addressable
|
16
|
+
matrix
|
17
|
+
mini_mime (>= 0.1.3)
|
18
|
+
nokogiri (~> 1.8)
|
19
|
+
rack (>= 1.6.0)
|
20
|
+
rack-test (>= 0.6.3)
|
21
|
+
regexp_parser (>= 1.5, < 3.0)
|
22
|
+
xpath (~> 3.2)
|
23
|
+
matrix (0.4.2)
|
24
|
+
mini_mime (1.1.2)
|
25
|
+
mini_portile2 (2.8.1)
|
26
|
+
nokogiri (1.14.2)
|
27
|
+
mini_portile2 (~> 2.8.0)
|
28
|
+
racc (~> 1.4)
|
29
|
+
public_suffix (5.0.1)
|
30
|
+
racc (1.6.2)
|
31
|
+
rack (2.2.3)
|
32
|
+
rack-test (2.0.2)
|
33
|
+
rack (>= 1.3)
|
34
|
+
regexp_parser (2.7.0)
|
35
|
+
thor (1.2.1)
|
36
|
+
xpath (3.2.0)
|
37
|
+
nokogiri (~> 1.8)
|
38
|
+
|
39
|
+
PLATFORMS
|
40
|
+
ruby
|
41
|
+
|
42
|
+
DEPENDENCIES
|
43
|
+
parklife!
|
44
|
+
rack
|
45
|
+
|
46
|
+
BUNDLED WITH
|
47
|
+
1.17.2
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'parklife'
|
2
|
+
require 'rack'
|
3
|
+
|
4
|
+
app = Proc.new { |env|
|
5
|
+
request = Rack::Request.new(env)
|
6
|
+
|
7
|
+
[
|
8
|
+
200,
|
9
|
+
{ 'Content-Type' => 'text/html' },
|
10
|
+
["Served from #{request.path}"]
|
11
|
+
]
|
12
|
+
}
|
13
|
+
|
14
|
+
Parklife.application.configure do |config|
|
15
|
+
config.build_dir = 'build'
|
16
|
+
config.rack_app = app
|
17
|
+
end
|
18
|
+
|
19
|
+
Parklife.application.routes do
|
20
|
+
root
|
21
|
+
get 'foo'
|
22
|
+
get 'bar'
|
23
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config.
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the default SQLite database.
|
11
|
+
/db/*.sqlite3
|
12
|
+
/db/*.sqlite3-journal
|
13
|
+
|
14
|
+
# Ignore all logfiles and tempfiles.
|
15
|
+
/log/*
|
16
|
+
/tmp/*
|
17
|
+
|
18
|
+
|
19
|
+
/public/assets
|
20
|
+
.byebug_history
|
21
|
+
|
22
|
+
# Ignore master key for decrypting credentials and more.
|
23
|
+
/config/master.key
|
24
|
+
|
25
|
+
# Ignore Parklife build.
|
26
|
+
/build
|
@@ -0,0 +1,150 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
parklife (0.1.0)
|
5
|
+
capybara
|
6
|
+
nokogiri
|
7
|
+
thor
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actioncable (5.2.3)
|
13
|
+
actionpack (= 5.2.3)
|
14
|
+
nio4r (~> 2.0)
|
15
|
+
websocket-driver (>= 0.6.1)
|
16
|
+
actionmailer (5.2.3)
|
17
|
+
actionpack (= 5.2.3)
|
18
|
+
actionview (= 5.2.3)
|
19
|
+
activejob (= 5.2.3)
|
20
|
+
mail (~> 2.5, >= 2.5.4)
|
21
|
+
rails-dom-testing (~> 2.0)
|
22
|
+
actionpack (5.2.3)
|
23
|
+
actionview (= 5.2.3)
|
24
|
+
activesupport (= 5.2.3)
|
25
|
+
rack (~> 2.0)
|
26
|
+
rack-test (>= 0.6.3)
|
27
|
+
rails-dom-testing (~> 2.0)
|
28
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
29
|
+
actionview (5.2.3)
|
30
|
+
activesupport (= 5.2.3)
|
31
|
+
builder (~> 3.1)
|
32
|
+
erubi (~> 1.4)
|
33
|
+
rails-dom-testing (~> 2.0)
|
34
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
35
|
+
activejob (5.2.3)
|
36
|
+
activesupport (= 5.2.3)
|
37
|
+
globalid (>= 0.3.6)
|
38
|
+
activemodel (5.2.3)
|
39
|
+
activesupport (= 5.2.3)
|
40
|
+
activerecord (5.2.3)
|
41
|
+
activemodel (= 5.2.3)
|
42
|
+
activesupport (= 5.2.3)
|
43
|
+
arel (>= 9.0)
|
44
|
+
activestorage (5.2.3)
|
45
|
+
actionpack (= 5.2.3)
|
46
|
+
activerecord (= 5.2.3)
|
47
|
+
marcel (~> 0.3.1)
|
48
|
+
activesupport (5.2.3)
|
49
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
50
|
+
i18n (>= 0.7, < 2)
|
51
|
+
minitest (~> 5.1)
|
52
|
+
tzinfo (~> 1.1)
|
53
|
+
addressable (2.8.1)
|
54
|
+
public_suffix (>= 2.0.2, < 6.0)
|
55
|
+
arel (9.0.0)
|
56
|
+
builder (3.2.3)
|
57
|
+
capybara (3.38.0)
|
58
|
+
addressable
|
59
|
+
matrix
|
60
|
+
mini_mime (>= 0.1.3)
|
61
|
+
nokogiri (~> 1.8)
|
62
|
+
rack (>= 1.6.0)
|
63
|
+
rack-test (>= 0.6.3)
|
64
|
+
regexp_parser (>= 1.5, < 3.0)
|
65
|
+
xpath (~> 3.2)
|
66
|
+
concurrent-ruby (1.1.5)
|
67
|
+
crass (1.0.5)
|
68
|
+
erubi (1.8.0)
|
69
|
+
globalid (0.4.2)
|
70
|
+
activesupport (>= 4.2.0)
|
71
|
+
i18n (1.6.0)
|
72
|
+
concurrent-ruby (~> 1.0)
|
73
|
+
loofah (2.3.1)
|
74
|
+
crass (~> 1.0.2)
|
75
|
+
nokogiri (>= 1.5.9)
|
76
|
+
mail (2.7.1)
|
77
|
+
mini_mime (>= 0.1.1)
|
78
|
+
marcel (0.3.3)
|
79
|
+
mimemagic (~> 0.3.2)
|
80
|
+
matrix (0.4.2)
|
81
|
+
method_source (0.9.2)
|
82
|
+
mimemagic (0.3.10)
|
83
|
+
nokogiri (~> 1)
|
84
|
+
rake
|
85
|
+
mini_mime (1.0.1)
|
86
|
+
mini_portile2 (2.5.1)
|
87
|
+
minitest (5.11.3)
|
88
|
+
nio4r (2.3.1)
|
89
|
+
nokogiri (1.11.5)
|
90
|
+
mini_portile2 (~> 2.5.0)
|
91
|
+
racc (~> 1.4)
|
92
|
+
public_suffix (5.0.1)
|
93
|
+
racc (1.5.2)
|
94
|
+
rack (2.2.3)
|
95
|
+
rack-test (1.1.0)
|
96
|
+
rack (>= 1.0, < 3)
|
97
|
+
rails (5.2.3)
|
98
|
+
actioncable (= 5.2.3)
|
99
|
+
actionmailer (= 5.2.3)
|
100
|
+
actionpack (= 5.2.3)
|
101
|
+
actionview (= 5.2.3)
|
102
|
+
activejob (= 5.2.3)
|
103
|
+
activemodel (= 5.2.3)
|
104
|
+
activerecord (= 5.2.3)
|
105
|
+
activestorage (= 5.2.3)
|
106
|
+
activesupport (= 5.2.3)
|
107
|
+
bundler (>= 1.3.0)
|
108
|
+
railties (= 5.2.3)
|
109
|
+
sprockets-rails (>= 2.0.0)
|
110
|
+
rails-dom-testing (2.0.3)
|
111
|
+
activesupport (>= 4.2.0)
|
112
|
+
nokogiri (>= 1.6)
|
113
|
+
rails-html-sanitizer (1.0.4)
|
114
|
+
loofah (~> 2.2, >= 2.2.2)
|
115
|
+
railties (5.2.3)
|
116
|
+
actionpack (= 5.2.3)
|
117
|
+
activesupport (= 5.2.3)
|
118
|
+
method_source
|
119
|
+
rake (>= 0.8.7)
|
120
|
+
thor (>= 0.19.0, < 2.0)
|
121
|
+
rake (13.0.1)
|
122
|
+
regexp_parser (2.7.0)
|
123
|
+
sprockets (3.7.2)
|
124
|
+
concurrent-ruby (~> 1.0)
|
125
|
+
rack (> 1, < 3)
|
126
|
+
sprockets-rails (3.2.1)
|
127
|
+
actionpack (>= 4.0)
|
128
|
+
activesupport (>= 4.0)
|
129
|
+
sprockets (>= 3.0.0)
|
130
|
+
sqlite3 (1.4.1)
|
131
|
+
thor (0.20.3)
|
132
|
+
thread_safe (0.3.6)
|
133
|
+
tzinfo (1.2.5)
|
134
|
+
thread_safe (~> 0.1)
|
135
|
+
websocket-driver (0.7.0)
|
136
|
+
websocket-extensions (>= 0.1.0)
|
137
|
+
websocket-extensions (0.1.5)
|
138
|
+
xpath (3.2.0)
|
139
|
+
nokogiri (~> 1.8)
|
140
|
+
|
141
|
+
PLATFORMS
|
142
|
+
ruby
|
143
|
+
|
144
|
+
DEPENDENCIES
|
145
|
+
parklife!
|
146
|
+
rails
|
147
|
+
sqlite3
|
148
|
+
|
149
|
+
BUNDLED WITH
|
150
|
+
1.17.2
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|