dry-web-roda 0.13.1 → 0.14.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.
File without changes
data/dry-web-roda.gemspec CHANGED
@@ -1,35 +1,36 @@
1
- lib = File.expand_path("../lib", __FILE__)
1
+ # frozen_string_literal: true
2
+ # this file is managed by dry-rb/devtools project
3
+
4
+ lib = File.expand_path('lib', __dir__)
2
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "dry/web/roda/version"
6
+ require 'dry/web/roda/version'
4
7
 
5
8
  Gem::Specification.new do |spec|
6
- spec.name = "dry-web-roda"
7
- spec.version = Dry::Web::Roda::VERSION
9
+ spec.name = 'dry-web-roda'
8
10
  spec.authors = ["Piotr Solnica"]
9
11
  spec.email = ["piotr.solnica@gmail.com"]
12
+ spec.license = 'MIT'
13
+ spec.version = Dry::Web::Roda::VERSION.dup
14
+
10
15
  spec.summary = "Roda integration for dry-web apps"
11
16
  spec.description = spec.summary
12
- spec.homepage = "https://github.com/dry-rb/dry-web-roda"
13
- spec.license = "MIT"
17
+ spec.homepage = 'https://dry-rb.org/gems/dry-web-roda'
18
+ spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-web-roda.gemspec", "lib/**/*"]
19
+ spec.bindir = 'bin'
20
+ spec.executables = ["dry-web-roda"]
21
+ spec.require_paths = ['lib']
14
22
 
15
- spec.files = `git ls-files -z`.split("\x0")
16
- spec.bindir = "exe"
17
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
23
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
24
+ spec.metadata['changelog_uri'] = 'https://github.com/dry-rb/dry-web-roda/blob/master/CHANGELOG.md'
25
+ spec.metadata['source_code_uri'] = 'https://github.com/dry-rb/dry-web-roda'
26
+ spec.metadata['bug_tracker_uri'] = 'https://github.com/dry-rb/dry-web-roda/issues'
20
27
 
21
- spec.required_ruby_version = '>= 2.3.0'
28
+ spec.required_ruby_version = ">= 2.4.0"
22
29
 
30
+ # to update dependencies edit project.yml
23
31
  spec.add_runtime_dependency "dry-configurable", "~> 0.2"
24
32
  spec.add_runtime_dependency "dry-inflector", "~> 0.2"
25
33
  spec.add_runtime_dependency "roda", "~> 3.0"
26
34
  spec.add_runtime_dependency "roda-flow", "~> 0.4"
27
- spec.add_runtime_dependency "thor", "~> 0.19"
28
-
29
- spec.add_development_dependency "aruba"
30
- spec.add_development_dependency "bundler", ">= 1.7"
31
- spec.add_development_dependency "rake", "~> 11.0"
32
- spec.add_development_dependency "rspec", "~> 3.4"
33
- spec.add_development_dependency "capybara", "~> 2.5"
34
- spec.add_development_dependency "waitutil"
35
+ spec.add_runtime_dependency "thor", "~> 1.0"
35
36
  end
@@ -5,9 +5,6 @@ require "dry/system/components"
5
5
  module <%= config[:camel_cased_umbrella_name] %>
6
6
  module <%= config[:camel_cased_app_name] %>
7
7
  class Container < Dry::Web::Container
8
- require root.join("system/<%= config[:underscored_umbrella_name] %>/container")
9
- import core: <%= config[:camel_cased_umbrella_name] %>::Container
10
-
11
8
  configure do |config|
12
9
  config.root = Pathname(__FILE__).join("../../..").realpath.dirname.freeze
13
10
  config.logger = <%= config[:camel_cased_umbrella_name] %>::Container[:logger]
@@ -15,6 +12,9 @@ module <%= config[:camel_cased_umbrella_name] %>
15
12
  config.auto_register = %w[lib/<%= config[:underscored_umbrella_name] %>/<%= config[:underscored_project_name] %>]
16
13
  end
17
14
 
15
+ require root.join("../../system/<%= config[:underscored_umbrella_name] %>/container").to_s
16
+ import core: <%= config[:camel_cased_umbrella_name] %>::Container
17
+
18
18
  load_paths! "lib"
19
19
  end
20
20
  end
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Web
3
3
  module Roda
4
- VERSION = "0.13.1".freeze
4
+ VERSION = "0.14.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.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-24 00:00:00.000000000 Z
11
+ date: 2021-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -72,98 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.19'
75
+ version: '1.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.19'
83
- - !ruby/object:Gem::Dependency
84
- name: aruba
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
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: bundler
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '1.7'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '1.7'
111
- - !ruby/object:Gem::Dependency
112
- name: rake
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '11.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '11.0'
125
- - !ruby/object:Gem::Dependency
126
- name: rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '3.4'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '3.4'
139
- - !ruby/object:Gem::Dependency
140
- name: capybara
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '2.5'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '2.5'
153
- - !ruby/object:Gem::Dependency
154
- name: waitutil
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
82
+ version: '1.0'
167
83
  description: Roda integration for dry-web apps
168
84
  email:
169
85
  - piotr.solnica@gmail.com
@@ -172,25 +88,11 @@ executables:
172
88
  extensions: []
173
89
  extra_rdoc_files: []
174
90
  files:
175
- - ".codeclimate.yml"
176
- - ".github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md"
177
- - ".github/ISSUE_TEMPLATE/---bug-report.md"
178
- - ".github/ISSUE_TEMPLATE/---feature-request.md"
179
- - ".github/workflows/custom_ci.yml"
180
- - ".github/workflows/docsite.yml"
181
- - ".github/workflows/sync_configs.yml"
182
- - ".gitignore"
183
- - ".rspec"
184
- - ".rubocop.yml"
185
91
  - CHANGELOG.md
186
- - CODE_OF_CONDUCT.md
187
- - CONTRIBUTING.md
188
- - Gemfile
189
92
  - LICENSE
190
93
  - README.md
191
- - Rakefile
94
+ - bin/dry-web-roda
192
95
  - dry-web-roda.gemspec
193
- - exe/dry-web-roda
194
96
  - lib/dry-web-roda.rb
195
97
  - lib/dry/web/roda/application.rb
196
98
  - lib/dry/web/roda/cli.rb
@@ -203,11 +105,6 @@ files:
203
105
  - lib/dry/web/roda/generators/sub_app.rb
204
106
  - lib/dry/web/roda/generators/umbrella_project.rb
205
107
  - lib/dry/web/roda/inflector.rb
206
- - lib/dry/web/roda/templates/.env.test.tt
207
- - lib/dry/web/roda/templates/.env.tt
208
- - lib/dry/web/roda/templates/.gitignore
209
- - lib/dry/web/roda/templates/.keep
210
- - lib/dry/web/roda/templates/.rspec
211
108
  - lib/dry/web/roda/templates/Gemfile
212
109
  - lib/dry/web/roda/templates/README.md.tt
213
110
  - lib/dry/web/roda/templates/Rakefile.tt
@@ -251,26 +148,15 @@ files:
251
148
  - lib/dry/web/roda/templates/welcome.rb.tt
252
149
  - lib/dry/web/roda/version.rb
253
150
  - lib/roda/plugins/dry_view.rb
254
- - script/ci
255
- - script/setup
256
- - script/teardown
257
- - spec/integration/new_app_spec.rb
258
- - spec/spec_helper.rb
259
- - spec/support/app.rb
260
- - spec/support/bundler.rb
261
- - spec/support/cli.rb
262
- - spec/support/directories.rb
263
- - spec/support/env.rb
264
- - spec/support/files.rb
265
- - spec/support/project.rb
266
- - spec/support/requests.rb
267
- - spec/support/silently.rb
268
- - spec/unit/generators/inflections_spec.rb
269
- homepage: https://github.com/dry-rb/dry-web-roda
151
+ homepage: https://dry-rb.org/gems/dry-web-roda
270
152
  licenses:
271
153
  - MIT
272
- metadata: {}
273
- post_install_message:
154
+ metadata:
155
+ allowed_push_host: https://rubygems.org
156
+ changelog_uri: https://github.com/dry-rb/dry-web-roda/blob/master/CHANGELOG.md
157
+ source_code_uri: https://github.com/dry-rb/dry-web-roda
158
+ bug_tracker_uri: https://github.com/dry-rb/dry-web-roda/issues
159
+ post_install_message:
274
160
  rdoc_options: []
275
161
  require_paths:
276
162
  - lib
@@ -278,27 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
278
164
  requirements:
279
165
  - - ">="
280
166
  - !ruby/object:Gem::Version
281
- version: 2.3.0
167
+ version: 2.4.0
282
168
  required_rubygems_version: !ruby/object:Gem::Requirement
283
169
  requirements:
284
170
  - - ">="
285
171
  - !ruby/object:Gem::Version
286
172
  version: '0'
287
173
  requirements: []
288
- rubygems_version: 3.0.3
289
- signing_key:
174
+ rubygems_version: 3.2.3
175
+ signing_key:
290
176
  specification_version: 4
291
177
  summary: Roda integration for dry-web apps
292
- test_files:
293
- - spec/integration/new_app_spec.rb
294
- - spec/spec_helper.rb
295
- - spec/support/app.rb
296
- - spec/support/bundler.rb
297
- - spec/support/cli.rb
298
- - spec/support/directories.rb
299
- - spec/support/env.rb
300
- - spec/support/files.rb
301
- - spec/support/project.rb
302
- - spec/support/requests.rb
303
- - spec/support/silently.rb
304
- - spec/unit/generators/inflections_spec.rb
178
+ test_files: []
data/.codeclimate.yml DELETED
@@ -1,12 +0,0 @@
1
- # this file is managed by dry-rb/devtools project
2
-
3
- version: "2"
4
-
5
- exclude_patterns:
6
- - "benchmarks/"
7
- - "examples/"
8
- - "spec/"
9
-
10
- plugins:
11
- rubocop:
12
- enabled: true
@@ -1,10 +0,0 @@
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
-
@@ -1,30 +0,0 @@
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: ...
@@ -1,18 +0,0 @@
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.
@@ -1,50 +0,0 @@
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
@@ -1,34 +0,0 @@
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