create-ruby-app 1.3.0 → 1.4.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 +3 -0
- data/README.md +1 -1
- data/bin/create-ruby-app +2 -0
- data/lib/create_ruby_app/actions/create_directories.rb +2 -0
- data/lib/create_ruby_app/actions/generate_files.rb +2 -0
- data/lib/create_ruby_app/actions/install_gems.rb +2 -0
- data/lib/create_ruby_app/actions/make_script_executable.rb +2 -0
- data/lib/create_ruby_app/actions/set_ruby_implementation.rb +2 -0
- data/lib/create_ruby_app/app.rb +2 -0
- data/lib/create_ruby_app/cli.rb +2 -0
- data/lib/create_ruby_app/templates/Gemfile.erb +2 -0
- data/lib/create_ruby_app/templates/lib_file.erb +2 -0
- data/lib/create_ruby_app/templates/script_file.erb +2 -0
- data/lib/create_ruby_app/templates/spec_helper.erb +2 -0
- data/lib/create_ruby_app/version.rb +3 -1
- data/lib/create_ruby_app.rb +2 -0
- data/spec/integration/app_creation_spec.rb +2 -0
- data/spec/lib/create_ruby_app/actions/create_directories_spec.rb +2 -0
- data/spec/lib/create_ruby_app/actions/generate_files_spec.rb +12 -0
- data/spec/lib/create_ruby_app/actions/install_gems_spec.rb +2 -0
- data/spec/lib/create_ruby_app/actions/make_script_executable_spec.rb +2 -0
- data/spec/lib/create_ruby_app/actions/set_ruby_implementation_spec.rb +2 -0
- data/spec/lib/create_ruby_app/app_spec.rb +2 -0
- data/spec/lib/create_ruby_app/cli_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf8c01be2c2f9360d4ba614213eb25c956abcecf64c349b8a88818cd9a6df279
|
|
4
|
+
data.tar.gz: 7b4cb88cbed516a0dc34e9a0efa144616d7e6a71c73a44e10022bd865c6068bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0bf24223f3250249a997011dc838586ae828a2a57e15a538498acf355df5cb4bb36d4cf73e1e955e41f3cc28a0a04cb794230a222e5ffa5c75ef6d8c4a9578e
|
|
7
|
+
data.tar.gz: f18867aba3ff810b0e5c15d47fab30210cfc3b2cad5e5a2123c84a7e243f4afc6ceb5b60c8386b39a7fd0ff8c8f922bb7fcc683d242f00dc44ec8a0d9862f7c8
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Create Ruby App
|
|
2
2
|

|
|
3
|
-
[](
|
|
3
|
+
[](https://badge.fury.io/rb/create-ruby-app)
|
|
4
4
|
|
|
5
5
|
`create-ruby-app` is an opinionated tool for scaffolding Ruby applications
|
|
6
6
|
effortlessly inspired by [Create React
|
data/bin/create-ruby-app
CHANGED
data/lib/create_ruby_app/app.rb
CHANGED
data/lib/create_ruby_app/cli.rb
CHANGED
data/lib/create_ruby_app.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require_relative "../../../spec_helper"
|
|
2
4
|
|
|
3
5
|
RSpec.describe CreateRubyApp::Actions::GenerateFiles do
|
|
@@ -7,6 +9,8 @@ RSpec.describe CreateRubyApp::Actions::GenerateFiles do
|
|
|
7
9
|
let(:action) { described_class.new(app) }
|
|
8
10
|
let(:gemfile) do
|
|
9
11
|
<<~GEMFILE
|
|
12
|
+
# frozen_string_literal: true
|
|
13
|
+
|
|
10
14
|
source "https://rubygems.org"
|
|
11
15
|
|
|
12
16
|
group :test, :development do
|
|
@@ -27,6 +31,8 @@ RSpec.describe CreateRubyApp::Actions::GenerateFiles do
|
|
|
27
31
|
let(:action) { described_class.new(app) }
|
|
28
32
|
let(:gemfile) do
|
|
29
33
|
<<~GEMFILE
|
|
34
|
+
# frozen_string_literal: true
|
|
35
|
+
|
|
30
36
|
source "https://rubygems.org"
|
|
31
37
|
|
|
32
38
|
group :test, :development do
|
|
@@ -71,6 +77,8 @@ RSpec.describe CreateRubyApp::Actions::GenerateFiles do
|
|
|
71
77
|
let(:action) { described_class.new(app) }
|
|
72
78
|
let(:lib_file) do
|
|
73
79
|
<<~LIB_FILE
|
|
80
|
+
# frozen_string_literal: true
|
|
81
|
+
|
|
74
82
|
module ThisIsAnApp
|
|
75
83
|
class ThisIsAnApp
|
|
76
84
|
end
|
|
@@ -92,6 +100,8 @@ RSpec.describe CreateRubyApp::Actions::GenerateFiles do
|
|
|
92
100
|
let(:action) { described_class.new(app) }
|
|
93
101
|
let(:spec_helper) do
|
|
94
102
|
<<~SPEC_HELPER
|
|
103
|
+
# frozen_string_literal: true
|
|
104
|
+
|
|
95
105
|
require "rspec"
|
|
96
106
|
require_relative "../lib/this_is_an_app"
|
|
97
107
|
|
|
@@ -118,6 +128,8 @@ RSpec.describe CreateRubyApp::Actions::GenerateFiles do
|
|
|
118
128
|
let(:script_file) do
|
|
119
129
|
<<~SCRIPT_FILE
|
|
120
130
|
#!/usr/bin/env ruby
|
|
131
|
+
|
|
132
|
+
# frozen_string_literal: true
|
|
121
133
|
SCRIPT_FILE
|
|
122
134
|
end
|
|
123
135
|
|
data/spec/spec_helper.rb
CHANGED