dry-web-roda 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de59ba21d0b5c59a9a8292a73bb94b2101d135bb95d906bd560ef9dd625b613e
4
- data.tar.gz: f8f437a3077df4f3b4dc13e69fe47ca0d3338bdad3283b217b883d3fb8e5e96d
3
+ metadata.gz: ea4bad268488dec3416cdbdb47e448ebba3ae608e851a2d585cb547b0b13c0ef
4
+ data.tar.gz: 2e32170e43a7ce30e52943ce126fbc3652eb66a8e0de9f2c103a421d6239bc36
5
5
  SHA512:
6
- metadata.gz: f49bcbf08f9b51f870a1919029251eed84309f2b19e2db9868d784f576ed0b4dd151b6956a8b3bd0ee6a8b47e7803497623b3f6e3d5f644b0380415e3e748c2a
7
- data.tar.gz: b7a78d5ea09833ef49ffebcf409b0514ef96abee6b56e8548931cc3b2819ac181e5805319036bd26b4d913bf31658375404397ae953a8bbb51334592dc93467b
6
+ metadata.gz: bbe8674f9ebe070b648973738130b5c4c712b40e1272a293098babb800d4eded8d35576584bd79d2032c495d693a652dd3f81f8865c2fefdb391c76dc3c16b94
7
+ data.tar.gz: 7837026fae1d88978ac222863e17e7f312cce97a26a7bc5164206fb4a371babc1bc8400a2bf461a5c730eacf01808ae88e900f378276094c41eadaabc449a8a5
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: "⚠️ Please don't ask for support via issues"
3
+ about: See CONTRIBUTING.md for more information
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: "\U0001F41B Bug report"
3
+ about: See CONTRIBUTING.md for more information
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Before you submit this: WE ONLY ACCEPT BUG REPORTS AND FEATURE REQUESTS**
11
+
12
+ For more information see `CONTRIBUTING.md`.
13
+
14
+ **Describe the bug**
15
+
16
+ A clear and concise description of what the bug is.
17
+
18
+ **To Reproduce**
19
+
20
+ Provide detailed steps to reproduce, an executable script would be best.
21
+
22
+ **Expected behavior**
23
+
24
+ A clear and concise description of what you expected to happen.
25
+
26
+ **Your environment**
27
+
28
+ - Affects my production application: **YES/NO**
29
+ - Ruby version: ...
30
+ - OS: ...
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: "\U0001F6E0 Feature request"
3
+ about: See CONTRIBUTING.md for more information
4
+ title: ''
5
+ labels: feature
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ Summary of what the feature is supposed to do.
11
+
12
+ ## Examples
13
+
14
+ Code examples showing how the feature could be used.
15
+
16
+ ## Resources
17
+
18
+ Additional information, like a link to the discussion forum thread where the feature was discussed etc.
@@ -0,0 +1,50 @@
1
+ # this file is managed by dry-rb/devtools project
2
+
3
+ name: ci
4
+
5
+ on:
6
+ push:
7
+ paths:
8
+ - .github/workflows/custom_ci.yml
9
+ - lib/**
10
+ - spec/**
11
+ - Gemfile
12
+ - "*.gemspec"
13
+
14
+ jobs:
15
+ tests-mri:
16
+ runs-on: ubuntu-latest
17
+ services:
18
+ postgres_db:
19
+ image: postgres:10.8
20
+ env:
21
+ POSTGRES_USER: runner
22
+ POSTGRES_PASSWORD: ""
23
+ POSTGRES_DB: sandbox_development
24
+ ports:
25
+ - 5432:5432
26
+ # needed because the postgres container does not provide a healthcheck
27
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
28
+ strategy:
29
+ fail-fast: false
30
+ matrix:
31
+ ruby: ["2.6.x", "2.5.x", "2.4.x"]
32
+ include:
33
+ - ruby: "2.6.x"
34
+ coverage: "true"
35
+ steps:
36
+ - uses: actions/checkout@v1
37
+ - name: Install dependencies
38
+ run: sudo apt-get install -y --no-install-recommends libpq-dev
39
+ - name: Set up Ruby
40
+ uses: actions/setup-ruby@v1
41
+ with:
42
+ ruby-version: ${{matrix.ruby}}
43
+ - name: Bundle install
44
+ run: |
45
+ gem install bundler
46
+ bundle install --jobs 4 --retry 3 --without tools docs benchmarks
47
+ - name: Run all tests
48
+ env:
49
+ COVERAGE: ${{matrix.coverage}}
50
+ run: bundle exec rake
@@ -0,0 +1,34 @@
1
+ # this file is managed by dry-rb/devtools project
2
+
3
+ name: docsite
4
+
5
+ on:
6
+ push:
7
+ paths:
8
+ - docsite/**
9
+ - .github/workflows/docsite.yml
10
+ branches:
11
+ - master
12
+ - release-**
13
+ tags:
14
+
15
+ jobs:
16
+ update-docs:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v1
20
+ - name: Set up Ruby
21
+ uses: actions/setup-ruby@v1
22
+ with:
23
+ ruby-version: "2.6.x"
24
+ - name: Install dependencies
25
+ run: |
26
+ gem install bundler
27
+ bundle install --jobs 4 --retry 3 --without benchmarks sql
28
+ - name: Symlink ossy
29
+ run: mkdir -p bin && ln -sf "$(bundle show ossy)/bin/ossy" bin/ossy
30
+ - name: Trigger dry-rb.org deploy
31
+ env:
32
+ GITHUB_LOGIN: dry-bot
33
+ GITHUB_TOKEN: ${{ secrets.GH_PAT }}
34
+ run: bin/ossy github workflow dry-rb/dry-rb.org ci
@@ -0,0 +1,34 @@
1
+ # this file is managed by dry-rb/devtools project
2
+
3
+ name: sync_configs
4
+
5
+ on:
6
+ repository_dispatch:
7
+
8
+ jobs:
9
+ sync-configs:
10
+ runs-on: ubuntu-latest
11
+ if: github.event.action == 'sync_configs'
12
+ steps:
13
+ - uses: actions/checkout@v1
14
+ - name: Update configuration files from devtools
15
+ env:
16
+ GITHUB_LOGIN: dry-bot
17
+ GITHUB_TOKEN: ${{ secrets.GH_PAT }}
18
+ run: |
19
+ git clone https://github.com/dry-rb/devtools.git tmp/devtools
20
+
21
+ if [ -f ".github/workflows/custom_ci.yml" ]; then
22
+ rsync -av --exclude '.github/workflows/ci.yml' tmp/devtools/shared/ . ;
23
+ else
24
+ rsync -av tmp/devtools/shared/ . ;
25
+ fi
26
+
27
+ git config --local user.email "dry-bot@dry-rb.org"
28
+ git config --local user.name "dry-bot"
29
+ git add -A
30
+ git commit -m "[devtools] config sync" || echo "nothing changed"
31
+ - name: Push changes
32
+ uses: ad-m/github-push-action@master
33
+ with:
34
+ github_token: ${{ secrets.GH_PAT }}
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 0.13.0 - 2019-12-24
2
+
3
+ ## Changed
4
+
5
+ * Updated generated Gemfile to use the latest dry-* and rom-* gems (@solnic)
6
+ * Fixed dry-types warning from the generated `types.rb` (@solnic)
7
+ * Removed `inflecto` in favor of `dry-inflector` (@solnic)
8
+
9
+ [Compare v0.12.0...v0.13.0](https://github.com/dry-rb/dry-web-roda/compare/v0.12.0...v0.13.0)
10
+
1
11
  # 0.12.0 - 2019-04-16
2
12
 
3
13
  ### Changed
data/Gemfile CHANGED
@@ -12,18 +12,17 @@ gem "rack_csrf"
12
12
  gem "rerun"
13
13
  gem "rack", ">= 2.0"
14
14
  gem "pg"
15
- gem "rom", "~> 4.0"
16
- gem "rom-factory", "~> 0.5"
17
- gem "rom-sql", "~> 2.1"
18
- gem "dry-matcher", "~> 0.7"
19
- gem "dry-monads", "~> 1.2"
20
- gem "dry-struct", "~> 0.3"
21
- gem "dry-system", "~> 0.9"
22
- gem "dry-transaction", "~> 0.13"
23
- gem "dry-types", "~> 0.12"
24
- gem "dry-validation", "~> 0.11"
25
- gem "dry-view", "~> 0.7"
26
- gem "dry-web", "~> 0.8"
15
+ gem "rom", "~> 5.1"
16
+ gem "rom-factory", "~> 0.10"
17
+ gem "rom-sql", "~> 3.1"
18
+ gem "dry-matcher"
19
+ gem "dry-monads"
20
+ gem "dry-struct"
21
+ gem "dry-system"
22
+ gem "dry-types"
23
+ gem "dry-validation"
24
+ gem "dry-view"
25
+ gem "dry-web"
27
26
  gem "slim"
28
27
  gem "pry-byebug", platform: :mri
29
28
  gem "capybara"
data/README.md CHANGED
@@ -1,14 +1,13 @@
1
1
  [gem]: https://rubygems.org/gems/dry-web-roda
2
- [travis]: https://travis-ci.org/dry-rb/dry-web-roda
2
+ [actions]: https://github.com/rom-rb/rom/actions
3
3
  [codeclimate]: https://codeclimate.com/github/dry-rb/dry-web-roda
4
4
  [inchpages]: http://inch-ci.org/github/dry-rb/dry-web-roda/
5
5
 
6
6
  # dry-web-roda [![Join the chat at https://gitter.im/dry-rb/chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dry-rb/chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
7
 
8
8
  [![Gem Version](https://badge.fury.io/rb/dry-web-roda.svg)][gem]
9
- [![Build Status](https://travis-ci.org/dry-rb/dry-web-roda.svg?branch=master)][travis]
9
+ [![CI Status](https://github.com/rom-rb/rom/workflows/ci/badge.svg)][actions]
10
10
  [![Code Climate](https://codeclimate.com/github/dry-rb/dry-web-roda/badges/gpa.svg)][codeclimate]
11
- [![Test Coverage](https://codeclimate.com/github/dry-rb/dry-web-roda/badges/coverage.svg)][codeclimate]
12
11
  [![Inline docs](http://inch-ci.org/github/dry-rb/dry-web-roda.svg?branch=master&style=flat)][inchpages]
13
12
 
14
13
  Integration between [dry-web](https://github.com/dry-rb/dry-web) and [roda](https://github.com/jeremyevans/roda).
@@ -1,11 +1,14 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ # TODO: The original content of this Gemfile was generated by dry-web-roda.
4
+ # It is recommended to review the dependencies and define their version
5
+ # requirements for gems that miss them.
3
6
  gem "rake"
4
7
 
5
8
  # Web framework
6
- gem "dry-system", "~> 0.9"
7
- gem "dry-web", "~> 0.7"
8
- gem "dry-web-roda", "~> 0.11"
9
+ gem "dry-web-roda"
10
+ gem "dry-system"
11
+ gem "dry-web"
9
12
  gem "puma"
10
13
  gem "rack_csrf"
11
14
 
@@ -13,17 +16,16 @@ gem "rack", ">= 2.0"
13
16
 
14
17
  # Database persistence
15
18
  gem "pg"
16
- gem "rom", "~> 4.0"
17
- gem "rom-sql", "~> 2.1"
19
+ gem "rom", "~> 5.1"
20
+ gem "rom-sql", "~> 3.1"
18
21
 
19
22
  # Application dependencies
20
- gem "dry-matcher", "~> 0.7"
21
- gem "dry-monads", "~> 1.2"
22
- gem "dry-struct", "~> 0.3"
23
- gem "dry-transaction", "~> 0.13"
24
- gem "dry-types", "~> 0.12"
25
- gem "dry-validation", "~> 0.11"
26
- gem "dry-view", "~> 0.7"
23
+ gem "dry-matcher"
24
+ gem "dry-monads"
25
+ gem "dry-struct"
26
+ gem "dry-types"
27
+ gem "dry-validation"
28
+ gem "dry-view"
27
29
  gem "slim"
28
30
 
29
31
  group :development, :test do
@@ -40,5 +42,5 @@ group :test do
40
42
  gem "database_cleaner"
41
43
  gem "poltergeist"
42
44
  gem "rspec"
43
- gem "rom-factory", "~> 0.5"
45
+ gem "rom-factory", "~> 0.10"
44
46
  end
@@ -5,7 +5,9 @@ Welcome! You’ve generated an app using dry-web-roda.
5
5
  ## First steps
6
6
 
7
7
  1. Run `bundle`
8
- 2. Review `.env` & `.env.test` (and make a copy to e.g. `.example.env` if you want example settings checked in)
8
+ 2. Review `.env` & `.env.test` (and make a copy to e.g. `.example.env` if you want example settings checked in). In
9
+ particular, ensure that your PostgreSQL username and password are specified in the `DATABASE_URL` variable as follows:
10
+ `postgres://username:password@your_host/...`.
9
11
  3. Run `bundle exec rake db:create` to create the development database.
10
12
  4. Run `RACK_ENV=test bundle exec rake db:create` to create the test database.
11
13
  5. Add your own steps to `bin/setup`
@@ -1,10 +1,10 @@
1
1
  <%= config[:camel_cased_app_name] %>::Container.boot :monitor do
2
2
  init do
3
- require "dry/monitor"
4
- Dry::Monitor.load_extensions(:sql)
3
+ require "dry/monitor/sql/logger"
5
4
  end
6
5
 
7
6
  start do
7
+ notifications.register_event(:sql)
8
8
  Dry::Monitor::SQL::Logger.new(logger).subscribe(notifications)
9
9
  end
10
10
  end
@@ -1,6 +1,6 @@
1
- require "dry-struct"
2
- require "dry-types"
1
+ require "dry/struct"
2
+ require "dry/types"
3
3
 
4
4
  module Types
5
- include Dry::Types.module
5
+ include Dry.Types()
6
6
  end
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Web
3
3
  module Roda
4
- VERSION = "0.12.0".freeze
4
+ VERSION = "0.13.0".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-web-roda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-15 00:00:00.000000000 Z
11
+ date: 2019-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -172,9 +172,14 @@ executables:
172
172
  extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
+ - ".github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md"
176
+ - ".github/ISSUE_TEMPLATE/---bug-report.md"
177
+ - ".github/ISSUE_TEMPLATE/---feature-request.md"
178
+ - ".github/workflows/custom_ci.yml"
179
+ - ".github/workflows/docsite.yml"
180
+ - ".github/workflows/sync_configs.yml"
175
181
  - ".gitignore"
176
182
  - ".rspec"
177
- - ".travis.yml"
178
183
  - CHANGELOG.md
179
184
  - CONTRIBUTING.md
180
185
  - Gemfile
data/.travis.yml DELETED
@@ -1,32 +0,0 @@
1
- language: ruby
2
- dist: trusty
3
- services:
4
- - postgresql
5
- cache: bundler
6
- install: true
7
- before_install:
8
- - gem update --system
9
- before_script:
10
- - psql -c 'create database sandbox_test;' -U postgres
11
- script:
12
- - ./script/ci
13
- rvm:
14
- - 2.6.2
15
- - 2.5.5
16
- - 2.4.5
17
- - 2.3.8
18
- - jruby-9.2.6.0
19
- env:
20
- global:
21
- - JRUBY_OPTS='--dev -J-Xmx1024M'
22
- matrix:
23
- allow_failures:
24
- - rvm: jruby-9.2.6.0
25
- notifications:
26
- email: false
27
- webhooks:
28
- urls:
29
- - https://webhooks.gitter.im/e/19098b4253a72c9796db
30
- on_success: change # options: [always|never|change] default: always
31
- on_failure: always # options: [always|never|change] default: always
32
- on_start: false # default: false