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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d20405b454bfa2076a2b9af3df3f6e0cd7f864df681bc6aeb55975779e32e41
4
- data.tar.gz: 92cadf1af6d1f69721697279393ddadde6aa8382cc1b563be2700813a8bd4c19
3
+ metadata.gz: bf8c01be2c2f9360d4ba614213eb25c956abcecf64c349b8a88818cd9a6df279
4
+ data.tar.gz: 7b4cb88cbed516a0dc34e9a0efa144616d7e6a71c73a44e10022bd865c6068bf
5
5
  SHA512:
6
- metadata.gz: ad20bf6ea501cc36c5e88f1fff6dfa7d367003976f9ebc2916b9cb0027a545951645e31eed7847ba0904ee000c12ede3e8d982c32f4263c60e7b7a07e0f38eb3
7
- data.tar.gz: 88ad3c979c2be0ad4b3ada569ce34f3eb6ca540060920e1cbae39dd7765ac4c85f67896759e0e4ddf5f4df2aa50a88c7ef21a8124165dfe42d8cd276c487f217
6
+ metadata.gz: c0bf24223f3250249a997011dc838586ae828a2a57e15a538498acf355df5cb4bb36d4cf73e1e955e41f3cc28a0a04cb794230a222e5ffa5c75ef6d8c4a9578e
7
+ data.tar.gz: f18867aba3ff810b0e5c15d47fab30210cfc3b2cad5e5a2123c84a7e243f4afc6ceb5b60c8386b39a7fd0ff8c8f922bb7fcc683d242f00dc44ec8a0d9862f7c8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.4.0
2
+ - Reintroduce `# frozen_string_literal` comments.
3
+
1
4
  # 1.3.0
2
5
  - Bump dependencies and Ruby version to 3.4.5.
3
6
  - Read locally installed Ruby implementation and version (Ruby, TruffleRuby,
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Create Ruby App
2
2
  ![CI](https://github.com/majjoha/create-ruby-app/workflows/CI/badge.svg)
3
- [![Gem Version](https://badge.fury.io/rb/create-ruby-app.svg)](http://badge.fury.io/rb/create-ruby-app)
3
+ [![Gem Version](https://badge.fury.io/rb/create-ruby-app.svg)](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
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # frozen_string_literal: true
4
+
3
5
  require_relative "../lib/create_ruby_app"
4
6
 
5
7
  CreateRubyApp::CLI.call
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "fileutils"
2
4
  require "pathname"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "erb"
2
4
  require "pathname"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CreateRubyApp
2
4
  module Actions
3
5
  class InstallGems
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "fileutils"
2
4
 
3
5
  module CreateRubyApp
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "open3"
2
4
 
3
5
  module CreateRubyApp
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "logger"
2
4
 
3
5
  module CreateRubyApp
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "dry/cli"
2
4
 
3
5
  module CreateRubyApp
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
5
  group :test, :development do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module <%= locals[:app] %>
2
4
  class <%= locals[:app] %>
3
5
  end
@@ -1 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "rspec"
2
4
  require_relative "../lib/<%= locals[:app] %>"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CreateRubyApp
2
- VERSION = "1.3.0"
4
+ VERSION = "1.4.0"
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "create_ruby_app/app"
2
4
  require_relative "create_ruby_app/cli"
3
5
  require_relative "create_ruby_app/version"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "../spec_helper"
2
4
  require "tmpdir"
3
5
  require "fileutils"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "../../../spec_helper"
2
4
 
3
5
  RSpec.describe CreateRubyApp::Actions::CreateDirectories do
@@ -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
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "../../../spec_helper"
2
4
 
3
5
  RSpec.describe CreateRubyApp::Actions::InstallGems do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "../../../spec_helper"
2
4
 
3
5
  RSpec.describe CreateRubyApp::Actions::MakeScriptExecutable do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "../../../spec_helper"
2
4
 
3
5
  RSpec.describe CreateRubyApp::Actions::SetRubyImplementation do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "../../spec_helper"
2
4
 
3
5
  RSpec.describe CreateRubyApp::App do
@@ -5,7 +5,7 @@ RSpec.describe CreateRubyApp::Commands do
5
5
  let(:command) { described_class.new }
6
6
 
7
7
  it "outputs the current version" do
8
- expect { command.call }.to output("1.3.0\n").to_stdout
8
+ expect { command.call }.to output("1.4.0\n").to_stdout
9
9
  end
10
10
  end
11
11
 
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "simplecov"
2
4
 
3
5
  SimpleCov.start do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: create-ruby-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Jean Johansen