dry-web-roda 0.13.0 → 0.13.1

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: ea4bad268488dec3416cdbdb47e448ebba3ae608e851a2d585cb547b0b13c0ef
4
- data.tar.gz: 2e32170e43a7ce30e52943ce126fbc3652eb66a8e0de9f2c103a421d6239bc36
3
+ metadata.gz: 937c5398a402b7cfe263e1fb3c1bfc40fa66a6b58896fe7543717316ed8a2ef4
4
+ data.tar.gz: c967c101b4ffa3c24d503f99bc2af3f936e73b749f898c33ce5cb7376f505d15
5
5
  SHA512:
6
- metadata.gz: bbe8674f9ebe070b648973738130b5c4c712b40e1272a293098babb800d4eded8d35576584bd79d2032c495d693a652dd3f81f8865c2fefdb391c76dc3c16b94
7
- data.tar.gz: 7837026fae1d88978ac222863e17e7f312cce97a26a7bc5164206fb4a371babc1bc8400a2bf461a5c730eacf01808ae88e900f378276094c41eadaabc449a8a5
6
+ metadata.gz: 19166a6c0a89c759a29d75254e58221008d547d8b41f3390a64c36a0ec8d08fe7bcf9e6f44c51b214940d9411aad6daeeba0439578ed92ed2ad2a132ac41200b
7
+ data.tar.gz: a357f91ef7f805c7aced67e14b3c2563ad99b6f6a413c35895a7be0e38ae09d236121068efdbe7db0a163d36fb084f260a8c6e6d96091e043bc8e2c2e29f6691
@@ -0,0 +1,12 @@
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
data/.rspec CHANGED
@@ -1,2 +1,4 @@
1
1
  --color
2
2
  --require spec_helper
3
+ --order random
4
+
@@ -0,0 +1,95 @@
1
+ # this file is managed by dry-rb/devtools project
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.4
5
+
6
+ Style/EachWithObject:
7
+ Enabled: false
8
+
9
+ Style/StringLiterals:
10
+ Enabled: true
11
+ EnforcedStyle: single_quotes
12
+
13
+ Style/Alias:
14
+ Enabled: false
15
+
16
+ Style/LambdaCall:
17
+ Enabled: false
18
+
19
+ Style/StabbyLambdaParentheses:
20
+ Enabled: false
21
+
22
+ Style/FormatString:
23
+ Enabled: false
24
+
25
+ Style/Documentation:
26
+ Enabled: false
27
+
28
+ Layout/SpaceInLambdaLiteral:
29
+ Enabled: false
30
+
31
+ Layout/MultilineMethodCallIndentation:
32
+ Enabled: true
33
+ EnforcedStyle: indented
34
+
35
+ Metrics/LineLength:
36
+ Max: 100
37
+
38
+ Metrics/MethodLength:
39
+ Max: 22
40
+
41
+ Metrics/ClassLength:
42
+ Max: 150
43
+
44
+ Metrics/AbcSize:
45
+ Max: 20
46
+
47
+ Metrics/BlockLength:
48
+ Enabled: false
49
+
50
+ Metrics/CyclomaticComplexity:
51
+ Enabled: true
52
+ Max: 10
53
+
54
+ Lint/BooleanSymbol:
55
+ Enabled: false
56
+
57
+ Style/AccessModifierDeclarations:
58
+ Enabled: false
59
+
60
+ Style/BlockDelimiters:
61
+ Enabled: false
62
+
63
+ Layout/IndentFirstArrayElement:
64
+ EnforcedStyle: consistent
65
+
66
+ Style/ClassAndModuleChildren:
67
+ Exclude:
68
+ - "spec/**/*_spec.rb"
69
+
70
+ Lint/HandleExceptions:
71
+ Exclude:
72
+ - "spec/spec_helper.rb"
73
+
74
+ Naming/FileName:
75
+ Exclude:
76
+ - "lib/dry-*.rb"
77
+
78
+ Style/SymbolArray:
79
+ Exclude:
80
+ - "spec/**/*_spec.rb"
81
+
82
+ Style/ConditionalAssignment:
83
+ Enabled: false
84
+
85
+ Naming/MethodName:
86
+ Enabled: false
87
+
88
+ Style/AsciiComments:
89
+ Enabled: false
90
+
91
+ Style/DateTime:
92
+ Enabled: false
93
+
94
+ Style/IfUnlessModifier:
95
+ Enabled: false
@@ -1,10 +1,40 @@
1
+ # 0.13.1 - 2019-12-24
2
+
3
+ ## Changed
4
+
5
+ * Removed `inflecto` in favor of `dry-inflector` (@solnic)
6
+
7
+ [Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-web-roda/compare/v0.13.0...v0.13.1)
8
+
1
9
  # 0.13.0 - 2019-12-24
2
10
 
11
+ ## Fixed
12
+
13
+ * dry-monitor for rom is correctly configured in the generated boot file (@mlk-yozu)
14
+
3
15
  ## Changed
4
16
 
5
17
  * Updated generated Gemfile to use the latest dry-* and rom-* gems (@solnic)
6
18
  * Fixed dry-types warning from the generated `types.rb` (@solnic)
7
- * Removed `inflecto` in favor of `dry-inflector` (@solnic)
19
+ * ~~Removed `inflecto` in favor of `dry-inflector` (@solnic)~~ actually it was done in `0.13.1`
20
+
21
+ ## Changed
22
+
23
+ - Removed `inflecto` from runtime dependencies (@solnic)
24
+
25
+ [Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-web-roda/compare/v0.13.0...v0.13.1)
26
+
27
+ # 0.13.0 - 2019-12-24
28
+
29
+ ## Fixed
30
+
31
+ * dry-monitor for rom is correctly configured in the generated boot file (@mlk-yozu)
32
+
33
+ ## Changed
34
+
35
+ * Updated generated Gemfile to use the latest dry-* and rom-* gems (@solnic)
36
+ * Fixed dry-types warning from the generated `types.rb` (@solnic)
37
+ * ~~Removed `inflecto` in favor of `dry-inflector` (@solnic)~~
8
38
 
9
39
  [Compare v0.12.0...v0.13.0](https://github.com/dry-rb/dry-web-roda/compare/v0.12.0...v0.13.0)
10
40
 
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.4.0, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct)
@@ -6,11 +6,11 @@ If you found a bug, report an issue and describe what's the expected behavior ve
6
6
 
7
7
  ## Reporting feature requests
8
8
 
9
- Report a feature request **only after discussing it first on [discuss.dry-rb.org](https://discuss.dry-rb.org)** where it was accepted. Please provide a concise description of the feature, don't link to a discussion thread, and instead summarize what was discussed.
9
+ Report a feature request **only after discussing it first on [discourse.dry-rb.org](https://discourse.dry-rb.org)** where it was accepted. Please provide a concise description of the feature, don't link to a discussion thread, and instead summarize what was discussed.
10
10
 
11
11
  ## Reporting questions, support requests, ideas, concerns etc.
12
12
 
13
- **PLEASE DON'T** - use [discuss.dry-rb.org](http://discuss.dry-rb.org) instead.
13
+ **PLEASE DON'T** - use [discourse.dry-rb.org](http://discourse.dry-rb.org) instead.
14
14
 
15
15
  # Pull Request Guidelines
16
16
 
@@ -26,4 +26,4 @@ Other requirements:
26
26
 
27
27
  # Asking for help
28
28
 
29
- If these guidelines aren't helpful, and you're stuck, please post a message on [discuss.dry-rb.org](https://discuss.dry-rb.org).
29
+ If these guidelines aren't helpful, and you're stuck, please post a message on [discourse.dry-rb.org](https://discourse.dry-rb.org) or join [our chat](https://dry-rb.zulipchat.com).
data/LICENSE CHANGED
@@ -1,22 +1,20 @@
1
- Copyright (c) 2015-2016 dry-rb team
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2015-2019 dry-rb team
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
12
11
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
15
14
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 2.3.0'
22
22
 
23
23
  spec.add_runtime_dependency "dry-configurable", "~> 0.2"
24
- spec.add_runtime_dependency "inflecto", "~> 0.0"
24
+ spec.add_runtime_dependency "dry-inflector", "~> 0.2"
25
25
  spec.add_runtime_dependency "roda", "~> 3.0"
26
26
  spec.add_runtime_dependency "roda-flow", "~> 0.4"
27
27
  spec.add_runtime_dependency "thor", "~> 0.19"
@@ -1,4 +1,4 @@
1
- require "inflecto"
1
+ require 'dry/web/roda/inflector'
2
2
 
3
3
  module Dry
4
4
  module Web
@@ -8,11 +8,11 @@ module Dry
8
8
  module_function
9
9
 
10
10
  def underscored_name(name)
11
- Inflecto.underscore(name)
11
+ Inflector.underscore(name)
12
12
  end
13
13
 
14
14
  def camel_cased_name(name)
15
- Inflecto.camelize(underscored_name(name))
15
+ Inflector.camelize(underscored_name(name))
16
16
  end
17
17
  end
18
18
  end
@@ -0,0 +1,9 @@
1
+ require 'dry/inflector'
2
+
3
+ module Dry
4
+ module Web
5
+ module Roda
6
+ Inflector = Dry::Inflector.new
7
+ end
8
+ end
9
+ end
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Web
3
3
  module Roda
4
- VERSION = "0.13.0".freeze
4
+ VERSION = "0.13.1".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-web-roda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: inflecto
28
+ name: dry-inflector
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.0'
33
+ version: '0.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.0'
40
+ version: '0.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: roda
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -172,6 +172,7 @@ executables:
172
172
  extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
+ - ".codeclimate.yml"
175
176
  - ".github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md"
176
177
  - ".github/ISSUE_TEMPLATE/---bug-report.md"
177
178
  - ".github/ISSUE_TEMPLATE/---feature-request.md"
@@ -180,7 +181,9 @@ files:
180
181
  - ".github/workflows/sync_configs.yml"
181
182
  - ".gitignore"
182
183
  - ".rspec"
184
+ - ".rubocop.yml"
183
185
  - CHANGELOG.md
186
+ - CODE_OF_CONDUCT.md
184
187
  - CONTRIBUTING.md
185
188
  - Gemfile
186
189
  - LICENSE
@@ -199,6 +202,7 @@ files:
199
202
  - lib/dry/web/roda/generators/inflections.rb
200
203
  - lib/dry/web/roda/generators/sub_app.rb
201
204
  - lib/dry/web/roda/generators/umbrella_project.rb
205
+ - lib/dry/web/roda/inflector.rb
202
206
  - lib/dry/web/roda/templates/.env.test.tt
203
207
  - lib/dry/web/roda/templates/.env.tt
204
208
  - lib/dry/web/roda/templates/.gitignore