hephaestus 0.1.2 → 0.1.3

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: 6eacb5eda2905ff001b436e12746ba6ce55eaa82347929f3420f35d3eddb0405
4
- data.tar.gz: c11836c0fdc2fd26c3623de1a1877aa0fb946a40d66b6e9f68847b021da08d3f
3
+ metadata.gz: ec50cd2cc85932b748a97df9741291de3651b88ab8d06584f96d2a03ad474a73
4
+ data.tar.gz: ade4d54823ec4a179234a259dd4ac1ae05f6e9228aa52955529043a473d35821
5
5
  SHA512:
6
- metadata.gz: 9bf06e9767c1cdfdfb8eff5a12b3711fb1ecf3b85618ef5f16f77d33754b23bc5103394a3a1581cb72b5a03a62f652386d5be23c38f040eea7ca41b0222908a5
7
- data.tar.gz: 498a5c55aabafd6a2419008c7f91e74d9f4b021a26964640c88a3ba6a05650867d469cfb48a7ec5aca10011212837faf800f3d831a4a22e9c6293d2008d6d1db
6
+ metadata.gz: 9c4c51dd65cb697d9eee304fd7a6915af8301cbf4fbab804fe17c06f0b50142f72d61914d2d10403f04de6f67b916f7f9b4b93b99d83833769fdf63860fa2fef
7
+ data.tar.gz: 4190712ab8505f2e450911a32bd860a0e811129934f817d1f3a6bb80297e0b9bc3b3fd2555a10df39a72c95548bfe044b974a75bf321b8ee51920b2f77401786
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.1.3](https://github.com/yettoapp/hephaestus/tree/v0.1.3) (2023-03-15)
4
+
5
+ [Full Changelog](https://github.com/yettoapp/hephaestus/compare/v0.1.2...v0.1.3)
6
+
3
7
  ## [v0.1.2](https://github.com/yettoapp/hephaestus/tree/v0.1.2) (2023-03-15)
4
8
 
5
9
  [Full Changelog](https://github.com/yettoapp/hephaestus/compare/v0.1.1...v0.1.2)
@@ -139,8 +139,8 @@ module Hephaestus
139
139
  end
140
140
 
141
141
  def replace_generic_variables
142
- replace_in_files(destination_root, "${APP}", short_appname.capitalize)
143
- replace_in_files(destination_root, "${app}", short_appname.downcase)
142
+ replace_in_files(destination_root, "${APP}", short_app_name.capitalize)
143
+ replace_in_files(destination_root, "${app}", short_app_name.downcase)
144
144
  replace_in_files(destination_root, "PlugApp", app_name.underscore.camelcase)
145
145
  replace_in_files(destination_root, "plug-app", app_name.dasherize)
146
146
  replace_in_files(destination_root, "PLUG_APP", app_name.underscore.upcase)
@@ -149,7 +149,7 @@ module Hephaestus
149
149
 
150
150
  private
151
151
 
152
- def short_appname
152
+ def short_app_name
153
153
  app_name.split("_").last
154
154
  end
155
155
 
@@ -37,7 +37,7 @@ module Hephaestus
37
37
  Rails.app_class.module_parent_name.demodulize.underscore.dasherize
38
38
  end
39
39
 
40
- def short_appname
40
+ def short_app_name
41
41
  app_name.sub(/plug-/i, "")
42
42
  end
43
43
 
@@ -24,7 +24,7 @@ module Hephaestus
24
24
 
25
25
  def libs
26
26
  copy_file("app/lib/body_parameter/yetto_parameters.rb", "app/lib/body_parameter/yetto_parameters.rb")
27
- copy_file("app/lib/constants/app.rb", "app/lib/constants/#{app_name}.rb")
27
+ copy_file("app/lib/constants/app.rb", "app/lib/constants/plug_#{short_app_name}.rb")
28
28
  copy_file("app/lib/headers/yetto.rb", "app/lib/headers/yetto.rb")
29
29
  copy_file("app/lib/path_parameter/yetto_parameters.rb", "app/lib/path_parameter/yetto_parameters.rb")
30
30
  directory("app/lib/plug_app", "app/lib/#{app_name.underscore}")
@@ -14,7 +14,7 @@ module Hephaestus
14
14
  end
15
15
 
16
16
  def plug_schema
17
- copy_file("lib/plug_app/schemas/api/2023-03-06/paths/plug.json", "lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/#{short_appname.underscore}.json")
17
+ copy_file("lib/plug_app/schemas/api/2023-03-06/paths/plug.json", "lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/#{short_app_name.underscore}.json")
18
18
  remove_file("lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/plug.json") # cleanup
19
19
  end
20
20
  end
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  RAILS_VERSION = "~> 7.0.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian