lodf 0.1.0 → 0.1.2

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: 2176a756fb1e1af1c99bfa2cf9a26e98c0c6a73156f2305d98b7f92a9ece8629
4
- data.tar.gz: 5c951f906577dcfac996dd163ee81993401022e1c0c77f100cfe34e06180b3de
3
+ metadata.gz: eda6a9cf4c43912359886b898b42c9e38622822563a5de24cc46069ef9443431
4
+ data.tar.gz: b69e849f2739ea5fe9883111b2532bed1f2d026bb1afeb3e0dfa97b1203efd02
5
5
  SHA512:
6
- metadata.gz: e636fa42c319d0d69746dd23a6e22c2f32a272e87b62841f8da8731f0925475ca670348cbcedb5ad633b1d8b8cfa882de32626965cfcbe9e6a8ffc62b79dda62
7
- data.tar.gz: 54f354d8740458fcb4a152f5767883d55a7e9204325455bfdb8819a7976b94cc85dcc7346ecf7e2864bfb2a0c11d76fe505958363ce685ddf1dcb601a7e4ec8c
6
+ metadata.gz: 1a0297aae754ffe3f1284d9e2215edf0f4c57ff75f837539822ed6dc663fc469f1af4253788e4b49768044d298d8e7fefc6f62614189218199da4ee09e903eb6
7
+ data.tar.gz: c341e13189b8d78ad2013bec518674f31dea930d2061e76d7a9de583831c3765cd465dca24153646c93bd344cf591b9fbd9ac56b7cb6331537c90083ccd24d83
data/Gemfile CHANGED
@@ -5,8 +5,9 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in lodf.gemspec
6
6
  gemspec
7
7
 
8
+ gem "fileutils", "~> 1.7"
9
+ gem "pry", "~> 0.14.2"
8
10
  gem "rake", "~> 13.0"
9
-
10
11
  gem "rspec", "~> 3.0"
11
-
12
12
  gem "rubocop", "~> 1.21"
13
+ gem "thor", "~> 1.2"
data/Gemfile.lock CHANGED
@@ -1,17 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lodf (0.1.0)
4
+ lodf (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
+ coderay (1.1.3)
10
11
  diff-lcs (1.5.0)
12
+ fileutils (1.7.0)
11
13
  json (2.6.3)
14
+ method_source (1.0.0)
12
15
  parallel (1.22.1)
13
16
  parser (3.2.0.0)
14
17
  ast (~> 2.4.1)
18
+ pry (0.14.2)
19
+ coderay (~> 1.1)
20
+ method_source (~> 1.0)
15
21
  rainbow (3.1.1)
16
22
  rake (13.0.6)
17
23
  regexp_parser (2.6.2)
@@ -42,6 +48,7 @@ GEM
42
48
  rubocop-ast (1.24.1)
43
49
  parser (>= 3.1.1.0)
44
50
  ruby-progressbar (1.11.0)
51
+ thor (1.2.1)
45
52
  unicode-display_width (2.4.2)
46
53
 
47
54
  PLATFORMS
@@ -50,10 +57,13 @@ PLATFORMS
50
57
  x86_64-linux
51
58
 
52
59
  DEPENDENCIES
60
+ fileutils (~> 1.7)
53
61
  lodf!
62
+ pry (~> 0.14.2)
54
63
  rake (~> 13.0)
55
64
  rspec (~> 3.0)
56
65
  rubocop (~> 1.21)
66
+ thor (~> 1.2)
57
67
 
58
68
  BUNDLED WITH
59
69
  2.4.5
data/README.md CHANGED
@@ -1,24 +1,51 @@
1
1
  # Lodf
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ Local developer friendly platform gem.
4
+ Helps developers to do local development easily for ruby projects.
4
5
 
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/lodf`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+ Put your Ruby code in the file `lib/lodf`. To experiment with that code, run `bin/console` for an interactive prompt.
6
7
 
7
8
  ## Installation
8
9
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_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.
10
-
11
10
  Install the gem and add to the application's Gemfile by executing:
12
11
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
12
+ $ bundle add lodf
14
13
 
15
14
  If bundler is not being used to manage dependencies, install the gem by executing:
16
15
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
16
+ $ gem install lodf
18
17
 
19
18
  ## Usage
20
19
 
21
- TODO: Write usage instructions here
20
+ To setup a new ruby project locally run;
21
+
22
+ $ lodf new [project-name]
23
+
24
+ This will create a new ruby project that has a `lodf.yaml` file in the root folder.
25
+
26
+ To provision infrastructure, e.g. databases, message queues, for a new or an existing project do;
27
+
28
+ $ lodf init infra [project-name]
29
+
30
+ To setup initial settings, e.g. migrations, database seeds, for a new or an existing project do;
31
+
32
+ $ lodf init settings [project-name]
33
+
34
+ To run the server for a new or existing project do;
35
+
36
+ $ lodf run server [project-name]
37
+
38
+ To run the message queue for a new or existing project do;
39
+
40
+ $ lodf run mq [project-name]
41
+
42
+ To reset settings;
43
+
44
+ $ lodf reset settings [project-name]
45
+
46
+ To reset infra;
47
+
48
+ $ lodf reset infra [project-name]
22
49
 
23
50
  ## Development
24
51
 
@@ -28,8 +55,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
55
 
29
56
  ## Contributing
30
57
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lodf. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/lodf/blob/main/CODE_OF_CONDUCT.md).
58
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Sylvance/lodf. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Sylvance/lodf/blob/main/CODE_OF_CONDUCT.md).
32
59
 
33
60
  ## Code of Conduct
34
61
 
35
- Everyone interacting in the Lodf project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/lodf/blob/main/CODE_OF_CONDUCT.md).
62
+ Everyone interacting in the Lodf project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Sylvance/lodf/blob/main/CODE_OF_CONDUCT.md).
data/exe/lodf ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "lodf"
6
+
7
+ Lodf::Cli.start(ARGV)
data/lib/lodf/cli.rb ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Lodf
6
+ class Cli < Thor
7
+ desc "test", "Test command"
8
+ def test
9
+ # add commands here
10
+ puts :hello
11
+ end
12
+ end
13
+ end
data/lib/lodf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lodf
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/lodf.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lodf/version"
3
+ Dir[File.join(__dir__, "lodf", "*.rb")].sort.each { |file| require file }
4
4
 
5
5
  module Lodf
6
6
  class Error < StandardError; end
7
- # Your code goes here...
8
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lodf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvance
@@ -13,7 +13,8 @@ dependencies: []
13
13
  description: Helps developers to do local development easily for ruby projects.
14
14
  email:
15
15
  - kerandisylvance@gmail.com
16
- executables: []
16
+ executables:
17
+ - lodf
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
@@ -25,10 +26,11 @@ files:
25
26
  - Gemfile.lock
26
27
  - README.md
27
28
  - Rakefile
29
+ - exe/lodf
28
30
  - lib/lodf.rb
31
+ - lib/lodf/cli.rb
29
32
  - lib/lodf/version.rb
30
33
  - lodf.gemspec
31
- - sig/lodf.rbs
32
34
  homepage: https://github.com/Sylvance/lodf/blob/main/README.md
33
35
  licenses: []
34
36
  metadata:
data/sig/lodf.rbs DELETED
@@ -1,4 +0,0 @@
1
- module Lodf
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end