gopher2000 0.5.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +19 -0
- data/.gitignore +3 -0
- data/.ruby-version +1 -1
- data/Dockerfile +17 -0
- data/LICENSE.txt +669 -9
- data/README.markdown +30 -3
- data/bin/gopher2000 +1 -1
- data/examples/simple.rb +4 -2
- data/lib/gopher2000/base.rb +63 -21
- data/lib/gopher2000/dispatcher.rb +10 -4
- data/lib/gopher2000/rendering/base.rb +17 -2
- data/lib/gopher2000/request.rb +12 -3
- data/lib/gopher2000/server.rb +10 -3
- data/lib/gopher2000/version.rb +1 -1
- data/spec/dispatching_spec.rb +21 -0
- data/spec/dsl_spec.rb +76 -67
- data/spec/rendering/base_spec.rb +14 -2
- data/spec/rendering/menu_spec.rb +19 -3
- data/spec/request_spec.rb +6 -0
- data/spec/server_spec.rb +17 -1
- metadata +8 -23
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19b561b19d0fa24ac49b9a81f574ac7ace0e765c7a3a3c2bb78696ae5ee16c3b
|
4
|
+
data.tar.gz: ea4649778687da99f0379887f8ed14b01e86b9261ce14fd07ae36bf28847e741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54ff0399db699bd72306db078ec6dbad629d4404ffb26516bc086ef0f9db4b6c34a094add87449c0b21eaf7b6d46cb351a6c555a15083a2155d8f123038e85c
|
7
|
+
data.tar.gz: c8e3b3eea78ed4faae68f7c2399dbfafce3097430e0e5c873fd201664c6b909e9c1bfd3541dc5778d134607c18e649397b7f2d7fb1db01749330926b09e6b522
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
name: Run tests
|
3
|
+
on: [push, pull_request]
|
4
|
+
jobs:
|
5
|
+
build:
|
6
|
+
strategy:
|
7
|
+
fail-fast: false
|
8
|
+
matrix:
|
9
|
+
os: [ubuntu-latest]
|
10
|
+
ruby: [2.5, 2.6, 2.7]
|
11
|
+
runs-on: ${{ matrix.os }}
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: ${{ matrix.ruby }}
|
17
|
+
bundler-cache: true
|
18
|
+
- name: rspec
|
19
|
+
run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.5
|
data/Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
FROM ruby:2.6.5
|
2
|
+
MAINTAINER Colin Mitchell <colin@muffinlabs.com>
|
3
|
+
|
4
|
+
ENV GOPHER_ADDRESS localhost
|
5
|
+
ENV GOPHER_PORT 70
|
6
|
+
|
7
|
+
EXPOSE $GOPHER_PORT
|
8
|
+
|
9
|
+
RUN mkdir /app
|
10
|
+
WORKDIR /app
|
11
|
+
|
12
|
+
COPY . /app
|
13
|
+
|
14
|
+
RUN gem install bundler && bundle install
|
15
|
+
|
16
|
+
CMD ["bundle", "exec", "gopher2000"]
|
17
|
+
|