rsodx 0.0.2 → 0.0.3

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: e597582f9546c2f9eeae72b3d5605f12fc2798eb6fbc586d84d56d4890d1e208
4
- data.tar.gz: 1cb3fcab36673ab9e96249bdc26b34740ef3dc13592ba98ffe016bbfcbf863c3
3
+ metadata.gz: 74be3af36e2f6319995f69ec786e1067923306f658d57147902cbaca1e285387
4
+ data.tar.gz: 8434da27ab813e8b757f4d5a3c6acc71cf9b9522987aea52b119c97aa8dcfda6
5
5
  SHA512:
6
- metadata.gz: aa4517d6f008b5462c6aad80deed051513b2b0e63d30db3aefad8f1a72d8e7bbc9967b3d3083edb6b0620c2dc4900d5249795b187a3ac42a7b25924f085b9239
7
- data.tar.gz: 880e4fa94b68cddd88babc46ae5fe1821bcf2b0c27038c664f281a385b1728db2251ba10195d700562a5020f6d7dc677a61abc590402ff8e729382a21979b219
6
+ metadata.gz: 40244cd860d2e0e3f9010a2abca202c3c4f87720b2f99122071c240330e9d54ad82398c0f78fef94388ed6336dbdd162c0956bb24ba847c5270966488539b21a
7
+ data.tar.gz: 72f2e95d4a9ed42bbe82f3c013471a9b3aa4789568013dcb038edf9e514249e2b06591cfa99be7c14408c1a6f7b5bded9fa99118cfbaf430157bc37568d990d3
data/bin/console CHANGED
@@ -3,10 +3,12 @@
3
3
 
4
4
  require "bundler/setup"
5
5
  require "rsodx"
6
- require_relative '../lib/config/environment'
6
+ puts Rsodx::LOGO
7
7
 
8
- # You can add fixtures and/or initialization code here to make experimenting
9
- # with your gem easier. You can also use a different console, if you like.
8
+ def reload!
9
+ puts "♻️ Reloading lib/rsodx..."
10
+ load File.expand_path("../lib/rsodx.rb", __dir__)
11
+ end
10
12
 
11
13
  require "irb"
12
- IRB.start(__FILE__)
14
+ IRB.start
@@ -12,12 +12,17 @@ module Rsodx::Cli::Commands
12
12
  @name = arg[:name]
13
13
  @app_path = File.join(Dir.pwd, @name)
14
14
 
15
- puts "🚀 Creating project: #{@name}"
15
+ puts Rsodx::LOGO
16
+
17
+ puts "\e[33m🛤️ Initializing Transport Empire for '#{@name}'...\e[0m"
18
+ puts "\e[34m📦 Creating files and folders...\e[0m"
19
+
16
20
  create_folders
17
21
  create_files
18
- puts "✅ Done! Your project is ready at #{@app_path}"
22
+
23
+ puts "\e[32m✅ Done! Your microservice has been scaffolded at the '#{@app_path}' railway!\e[0m"
19
24
  rescue => e
20
- abort "❌ Failed to scaffold: #{e.message}"
25
+ abort "\e[31m❌ Failed to scaffold: #{e.message}\e[0m"
21
26
  end
22
27
 
23
28
  private
@@ -0,0 +1,16 @@
1
+ module Rsodx::Constants
2
+ ASCII_LOGO = <<~ASCII.freeze
3
+ \e[36m _____ _____ ____ _____ __ __
4
+ | __ \\ / ____| / __ \\ | __ \\ \\ \\ / /
5
+ | |__) | | (___ | | | | | | | | \\ V /
6
+ | _ / \\___ \\ | | | | | | | | \e[35m> <\e[0m\e[36m
7
+ | | \\ \\ ____) | | |__| | | |__| | / \e[35m.\e[0m\e[36m \\
8
+ |_| \\_\\ |_____/ \\____/ |_____/ /_/ \\_\\ \e[33mv__VERSION__\e[0m
9
+ ASCII
10
+
11
+ LOGO = ASCII_LOGO.sub("__VERSION__", Rsodx::VERSION).freeze
12
+ end
13
+
14
+ module Rsodx
15
+ include Rsodx::Constants
16
+ end
data/lib/rsodx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rsodx
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
data/lib/rsodx.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'rsodx/version'
3
4
  require_relative 'rsodx/delegate'
4
5
  require_relative 'rsodx/service'
5
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsodx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Pervushin
@@ -191,34 +191,6 @@ dependencies:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
193
  version: '1.2'
194
- - !ruby/object:Gem::Dependency
195
- name: rspec
196
- requirement: !ruby/object:Gem::Requirement
197
- requirements:
198
- - - "~>"
199
- - !ruby/object:Gem::Version
200
- version: '3.0'
201
- type: :development
202
- prerelease: false
203
- version_requirements: !ruby/object:Gem::Requirement
204
- requirements:
205
- - - "~>"
206
- - !ruby/object:Gem::Version
207
- version: '3.0'
208
- - !ruby/object:Gem::Dependency
209
- name: rubocop
210
- requirement: !ruby/object:Gem::Requirement
211
- requirements:
212
- - - "~>"
213
- - !ruby/object:Gem::Version
214
- version: '1.75'
215
- type: :development
216
- prerelease: false
217
- version_requirements: !ruby/object:Gem::Requirement
218
- requirements:
219
- - - "~>"
220
- - !ruby/object:Gem::Version
221
- version: '1.75'
222
194
  description: Rsodx is a lightweight Ruby microframework designed for modular, service-oriented
223
195
  applications. Built with simplicity and performance in mind, it's perfect for small
224
196
  web apps, microservices, and CLI tools.
@@ -249,6 +221,7 @@ files:
249
221
  - lib/rsodx/cli/commands/scaffold_common.rb
250
222
  - lib/rsodx/cli/commands/server.rb
251
223
  - lib/rsodx/connect.rb
224
+ - lib/rsodx/constants.rb
252
225
  - lib/rsodx/contract.rb
253
226
  - lib/rsodx/controller.rb
254
227
  - lib/rsodx/delegate.rb