rbforge 0.1.6 → 0.1.8

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: 8460c428c176c3e9333485247f77234fcc38045da3a2f6f851186d3f0b1837b5
4
- data.tar.gz: cd6a7f9a831715eb2f52922eb6058fb8c1853757d9ecebffef35a7b0f582eae1
3
+ metadata.gz: '07811f4475e27e0c4182cf7c1d3a5df44f1760e2a0483fa477ca95a96cd3600c'
4
+ data.tar.gz: 88c4ebe22c1184add0f4f0d6a337ebd6847db3b095e1903b2fb447a7f058b236
5
5
  SHA512:
6
- metadata.gz: 2f902fcae009a3c90a91c30179cf1109fb96e2ae9bd602f3f496a7d314c58d6b89c3cb6f62b6eaae4abfd5d8548903b3263aafa775f0ad6b807c63606fc2e7b1
7
- data.tar.gz: fec2db0646bf4bc94836fcc1fb12def411fa6e947a0cd84337dd0df4eb32cd154108d93e079c8a68a26fb50c8a86586debb70c26fa511b226721b32273298dc0
6
+ metadata.gz: a2a55f759ba795dfc14637e9358146c364d9a0f133feada3e47d4b35814b857e03175cde0555ac1293155c1b5efeac44f6e5610e134dc7115adb5df9006a9fae
7
+ data.tar.gz: e1464e261fb8ce3251b25a81da10b2e9a627e9f93b67c808318bc216044fc8ccb6b0bfef51aac485c2ea8e12a6bbe670eb3179ed7164c95dae3aa4a4675ee994
data/README.md CHANGED
@@ -1,39 +1,55 @@
1
1
  # Rbforge
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ Rbforge is a CLI gem that helps you quickly start Ruby projects by automatically generating essential files such as `README.md`, `Gemfile`, `src/`, and more.
4
4
 
5
- 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/rbforge`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Perfect for Ruby developers who want to standardize or accelerate the creation of new gems or plain Ruby projects.
6
6
 
7
- ## Installation
7
+ <br>
8
8
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
9
+ ## Features
10
10
 
11
- Install the gem and add to the application's Gemfile by executing:
11
+ - Automatically generates basic files:
12
+ `README.md`, `Gemfile`, `src/main.rb`
13
+ - Quick Ruby project scaffolding
14
+ - Terminal interface (`rbforge` command)
15
+
16
+ <br>
17
+
18
+ ## 💾 Installation
19
+
20
+ Add to your project with:
12
21
 
13
22
  ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
23
+ bundle add rbforge
15
24
  ```
16
25
 
17
- If bundler is not being used to manage dependencies, install the gem by executing:
26
+ Or install it directly:
18
27
 
19
28
  ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
29
+ gem install rbforge
21
30
  ```
22
31
 
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
32
+ Create a new Ruby project structure with inside of your project folder:
26
33
 
27
- ## Development
34
+ ```bash
35
+ rbforge init
36
+ ```
28
37
 
29
- 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.
38
+ This will create a project with the default starter structure:
30
39
 
31
- 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).
40
+ ```
41
+ my_project/
42
+ ├── .gitignore
43
+ ├── Gemfile
44
+ ├── README.md
45
+ └── src/
46
+ └── main.rb
47
+ ```
32
48
 
33
- ## Contributing
49
+ You can then edit the files as needed and begin development right away.
34
50
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rbforge.
51
+ <br>
36
52
 
37
- ## License
53
+ # License
54
+ This gem is available as open source under the terms of the MIT License.
38
55
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rbforge
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.8"
5
5
  end
data/lib/rbforge.rb CHANGED
@@ -18,17 +18,17 @@ module Rbforge
18
18
  def self.init_c
19
19
  puts "[*] - FORGING your ruby project..."
20
20
 
21
- FileUtils.mkdir_p('lib')
21
+ FileUtils.mkdir_p('src')
22
22
  FileUtils.touch('Gemfile')
23
23
  FileUtils.touch('README.md')
24
24
  FileUtils.touch('.gitignore')
25
- FileUtils.touch('lib/main.rb')
25
+ FileUtils.touch('src/main.rb')
26
26
 
27
27
  File.open('Gemfile', "w") do |g_file|
28
28
  g_file.puts 'source "https://rubygems.org"'
29
29
  end
30
30
 
31
- File.open('lib/main.rb', "w") do |m_file|
31
+ File.open('src/main.rb', "w") do |m_file|
32
32
  m_file.puts 'puts "Hello, world"'
33
33
  end
34
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbforge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - mvghasty