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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +143 -64
- data/LICENSE +1 -1
- data/README.md +16 -41
- data/{exe → bin}/dry-web-roda +0 -0
- data/dry-web-roda.gemspec +21 -20
- data/lib/dry/web/roda/templates/subapp/container.rb.tt +3 -3
- data/lib/dry/web/roda/version.rb +1 -1
- metadata +18 -144
- data/.codeclimate.yml +0 -12
- data/.github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md +0 -10
- data/.github/ISSUE_TEMPLATE/---bug-report.md +0 -30
- data/.github/ISSUE_TEMPLATE/---feature-request.md +0 -18
- data/.github/workflows/custom_ci.yml +0 -50
- data/.github/workflows/docsite.yml +0 -34
- data/.github/workflows/sync_configs.yml +0 -34
- data/.gitignore +0 -37
- data/.rspec +0 -4
- data/.rubocop.yml +0 -95
- data/CODE_OF_CONDUCT.md +0 -13
- data/CONTRIBUTING.md +0 -29
- data/Gemfile +0 -32
- data/Rakefile +0 -6
- data/lib/dry/web/roda/templates/.gitignore +0 -11
- data/lib/dry/web/roda/templates/.keep +0 -0
- data/lib/dry/web/roda/templates/.rspec +0 -2
- data/script/ci +0 -67
- data/script/setup +0 -47
- data/script/teardown +0 -42
- data/spec/integration/new_app_spec.rb +0 -21
- data/spec/spec_helper.rb +0 -22
- data/spec/support/app.rb +0 -64
- data/spec/support/bundler.rb +0 -113
- data/spec/support/cli.rb +0 -47
- data/spec/support/directories.rb +0 -37
- data/spec/support/env.rb +0 -84
- data/spec/support/files.rb +0 -59
- data/spec/support/project.rb +0 -60
- data/spec/support/requests.rb +0 -5
- data/spec/support/silently.rb +0 -28
- data/spec/unit/generators/inflections_spec.rb +0 -33
data/spec/support/requests.rb
DELETED
data/spec/support/silently.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
require "tempfile"
|
2
|
-
|
3
|
-
module RSpec
|
4
|
-
module Support
|
5
|
-
def self.silently(cmd, via: :system)
|
6
|
-
out = Tempfile.new("dry-web-roda-out")
|
7
|
-
# RSpec::Support::Env.env
|
8
|
-
result = ::Kernel.__send__(via, cmd, out: out.path, err: out.path)
|
9
|
-
|
10
|
-
return if result
|
11
|
-
|
12
|
-
out.rewind
|
13
|
-
fail "#{cmd} failed:\n#{out.read}" # rubocop:disable Style/SignalException
|
14
|
-
end
|
15
|
-
|
16
|
-
module Silently
|
17
|
-
private
|
18
|
-
|
19
|
-
def silently(*args)
|
20
|
-
Support.silently(*args)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
RSpec.configure do |config|
|
27
|
-
config.include RSpec::Support::Silently, type: :cli
|
28
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require "dry/web/roda/generators/inflections"
|
2
|
-
|
3
|
-
RSpec.describe Dry::Web::Roda::Generators::Inflections do
|
4
|
-
subject(:inflections) { described_class }
|
5
|
-
|
6
|
-
describe ".underscored_name" do
|
7
|
-
it "leaves an already underscored name" do
|
8
|
-
expect(inflections.underscored_name("my_app")).to eq "my_app"
|
9
|
-
end
|
10
|
-
|
11
|
-
it "leaves a name without any sort of delimiters" do
|
12
|
-
expect(inflections.underscored_name("myapp")).to eq "myapp"
|
13
|
-
end
|
14
|
-
|
15
|
-
it "converts a dashed name" do
|
16
|
-
expect(inflections.underscored_name("my-app")).to eq "my_app"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
describe ".camel_cased_name" do
|
21
|
-
it "leaves an already camel cased name" do
|
22
|
-
expect(inflections.camel_cased_name("MyApp")).to eq "MyApp"
|
23
|
-
end
|
24
|
-
|
25
|
-
it "converts a dashed name" do
|
26
|
-
expect(inflections.camel_cased_name("my-app")).to eq "MyApp"
|
27
|
-
end
|
28
|
-
|
29
|
-
it "converts an underscored name" do
|
30
|
-
expect(inflections.camel_cased_name("my_app")).to eq "MyApp"
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|