truong_beauty 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/truong_beauty.rb +5 -6
  3. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc552d92f1e7f67f8cf589c279510064bd39b5b26b8d7eb3f0207e05f97f3832
4
- data.tar.gz: 432ffc78a9cdd142581cc0563dfd1c399012f301af6da1f5e096358bdf824803
3
+ metadata.gz: e45525ec0a532bb2bc9583d60aa330dd242f123f63d748ad0ed400085b13ec81
4
+ data.tar.gz: 16a3f154c0f9391651b84f1abfd7006320801cd5ef8569435eaaa629b221100d
5
5
  SHA512:
6
- metadata.gz: a2a7eab4f6dbf43b200de7211219d4cb8361c7ce7a2e2da0861085075f92dea9f0bb081604aa4634492dc4b3a43e50a65d645ef4026b82fd44806d396a310f4b
7
- data.tar.gz: 370e4c823fb9a8702e53434f217ccf1ed46464675003f02490487c1dac3dc609fa909e8e3dfe76a20c5d6c0c7d7d406767055c03d5399d9e2b550bc57610f0d6
6
+ metadata.gz: b2a0382a04a5dc5174f46be9a03e6977b9243d502bf9e6c78f060dde61cd6ce16ef455dccbb7bd4c19622f58d312f6a256047d15452767961b5a7b9c88135b96
7
+ data.tar.gz: eb0c285048d2635c14f36c4274a85370efa18b7af2bc460d620e3efba1d3c155e16e647fd42d4428d2dd63cb88b7173c4026669b2340e44535acba1787e2bf5b
data/lib/truong_beauty.rb CHANGED
@@ -1,15 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "truong_beauty/version"
4
-
5
- class TruongBeauty
3
+ module TruongBeauty
4
+ class Error < StandardError; end
6
5
  def self.process
7
6
  current_project = `pwd`
8
7
  current_project = current_project.gsub(/\n/,"")
9
8
  content = File.read(current_project + "/Gemfile")
10
- content = content.gsub(/\#\s.*\s*/,"")
11
- content = content.gsub(/'/, '"')
12
- content = content.gsub(/\s*^group/, "\n\ngroup")
9
+ content = content.gsub(/\#\s.*\s*/,"") # Xóa các dòng comment
10
+ content = content.gsub(/'/, '"') # Thay thế dấu ' bằng "
11
+ content = content.gsub(/\s*^group/, "\n\ngroup") # Remove các dòng trống
13
12
  content = content.gsub(/\s*^\s+^gem/, "\n\ngem")
14
13
  File.open(current_project + "/Gemfile", "w") do |file|
15
14
  file.puts content
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truong_beauty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David
@@ -20,8 +20,7 @@ files:
20
20
  - bin/truong_beauty
21
21
  - lib/truong_beauty.rb
22
22
  homepage:
23
- licenses:
24
- - MIT
23
+ licenses: []
25
24
  metadata: {}
26
25
  post_install_message:
27
26
  rdoc_options: []