truong_beauty 0.1.0 → 0.1.1
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/bin/truong_beauty +5 -0
- data/lib/truong_beauty.rb +4 -5
- metadata +9 -17
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -19
- data/README.md +0 -29
- data/Rakefile +0 -4
- data/lib/truong_beauty/version.rb +0 -5
- data/sig/truong_beauty.rbs +0 -4
- data/truong_beauty.gemspec +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc552d92f1e7f67f8cf589c279510064bd39b5b26b8d7eb3f0207e05f97f3832
|
4
|
+
data.tar.gz: 432ffc78a9cdd142581cc0563dfd1c399012f301af6da1f5e096358bdf824803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2a7eab4f6dbf43b200de7211219d4cb8361c7ce7a2e2da0861085075f92dea9f0bb081604aa4634492dc4b3a43e50a65d645ef4026b82fd44806d396a310f4b
|
7
|
+
data.tar.gz: 370e4c823fb9a8702e53434f217ccf1ed46464675003f02490487c1dac3dc609fa909e8e3dfe76a20c5d6c0c7d7d406767055c03d5399d9e2b550bc57610f0d6
|
data/bin/truong_beauty
ADDED
data/lib/truong_beauty.rb
CHANGED
@@ -2,15 +2,14 @@
|
|
2
2
|
|
3
3
|
require_relative "truong_beauty/version"
|
4
4
|
|
5
|
-
|
6
|
-
class Error < StandardError; end
|
5
|
+
class TruongBeauty
|
7
6
|
def self.process
|
8
7
|
current_project = `pwd`
|
9
8
|
current_project = current_project.gsub(/\n/,"")
|
10
9
|
content = File.read(current_project + "/Gemfile")
|
11
|
-
content = content.gsub(/\#\s.*\s*/,"")
|
12
|
-
content = content.gsub(/'/, '"')
|
13
|
-
content = content.gsub(/\s*^group/, "\n\ngroup")
|
10
|
+
content = content.gsub(/\#\s.*\s*/,"")
|
11
|
+
content = content.gsub(/'/, '"')
|
12
|
+
content = content.gsub(/\s*^group/, "\n\ngroup")
|
14
13
|
content = content.gsub(/\s*^\s+^gem/, "\n\ngem")
|
15
14
|
File.open(current_project + "/Gemfile", "w") do |file|
|
16
15
|
file.puts content
|
metadata
CHANGED
@@ -1,36 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: truong_beauty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple gem which will beautify your Gemfile
|
14
|
-
email:
|
15
|
-
|
16
|
-
|
14
|
+
email: truong.dohuy0501@gmail.com
|
15
|
+
executables:
|
16
|
+
- truong_beauty
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
-
|
21
|
-
- Gemfile.lock
|
22
|
-
- README.md
|
23
|
-
- Rakefile
|
20
|
+
- bin/truong_beauty
|
24
21
|
- lib/truong_beauty.rb
|
25
|
-
|
26
|
-
- sig/truong_beauty.rbs
|
27
|
-
- truong_beauty.gemspec
|
28
|
-
homepage: https://github.com/truongdohuy0501/david
|
22
|
+
homepage:
|
29
23
|
licenses:
|
30
24
|
- MIT
|
31
|
-
metadata:
|
32
|
-
allowed_push_host: https://rubygems.org
|
33
|
-
homepage_uri: https://github.com/truongdohuy0501/david
|
25
|
+
metadata: {}
|
34
26
|
post_install_message:
|
35
27
|
rdoc_options: []
|
36
28
|
require_paths:
|
@@ -39,7 +31,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
39
31
|
requirements:
|
40
32
|
- - ">="
|
41
33
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
34
|
+
version: '0'
|
43
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
36
|
requirements:
|
45
37
|
- - ">="
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
data/README.md
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# TruongBeauty
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/truong_beauty`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Install the gem and add to the application's Gemfile by executing:
|
10
|
-
|
11
|
-
$ bundle add truong_beauty
|
12
|
-
|
13
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
|
-
|
15
|
-
$ gem install truong_beauty
|
16
|
-
|
17
|
-
## Usage
|
18
|
-
|
19
|
-
TODO: Write usage instructions here
|
20
|
-
|
21
|
-
## Development
|
22
|
-
|
23
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
24
|
-
|
25
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
26
|
-
|
27
|
-
## Contributing
|
28
|
-
|
29
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/truong_beauty.
|
data/Rakefile
DELETED
data/sig/truong_beauty.rbs
DELETED
data/truong_beauty.gemspec
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/truong_beauty/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "truong_beauty"
|
7
|
-
spec.version = TruongBeauty::VERSION
|
8
|
-
spec.authors = ["David"]
|
9
|
-
spec.email = ["truong.dohuy0501@gmail.com"]
|
10
|
-
|
11
|
-
spec.summary = "Gemfile Beautify"
|
12
|
-
spec.description = "A simple gem which will beautify your Gemfile"
|
13
|
-
spec.homepage = "https://github.com/truongdohuy0501/david"
|
14
|
-
spec.required_ruby_version = ">= 2.6.0"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
18
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
|
20
|
-
# Specify which files should be added to the gem when it is released.
|
21
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
-
spec.files = Dir.chdir(__dir__) do
|
23
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
24
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
25
|
-
end
|
26
|
-
end
|
27
|
-
spec.bindir = "exe"
|
28
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ["lib"]
|
30
|
-
|
31
|
-
# Uncomment to register a new dependency of your gem
|
32
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
33
|
-
|
34
|
-
# For more information and examples about making a new gem, check out our
|
35
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
36
|
-
end
|