hubber 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b97f1db41560e112c030bce62687023ceb72b017210f32f8371c46f2f9eb817
4
- data.tar.gz: c248ad5dafee0f697f34f302cce8b3f500fd4d57cd6330880ef2babc9f2d683a
3
+ metadata.gz: 0fda1cfc959553b1fa5aaa3024edceb199afc86e2e51fe4268646f0da271ecf7
4
+ data.tar.gz: 494b90b2bcb7afcce6c54a6d0fc1d62671a2d633d0faf629d245f0c522f66d9c
5
5
  SHA512:
6
- metadata.gz: e339d2f9ef9519ac64c5bb418d34baac8501428d67f1542c6cf63dd5f7c5b1a0cb55acb0b651c36efe9a7d61c0ca28a40aed9a6a0647d34bc99e200a5cba60a1
7
- data.tar.gz: 1661b9f02cb0e2de11ea34ee7027421cb34bf439923dfdc9bebcee517e4e11057954051513a62083972b959afba956ca4878db3fcf51dcbab9e1f241b60a5bf4
6
+ metadata.gz: 3452779411fcc8a3df645759ab586ac448ec8ce424d1db07efca73473574681c7d47089cf7bbd1c005dcebf25a9dac172e9a40d4d7c5cb2710840b5317aa7e08
7
+ data.tar.gz: 5f8e65dd14110d927e76d96a4c4a9d4c24f316ca3f0bd120e5f3145012b3665f58052edbb48af26537f745a8d20a2f58da9f49f98a30082915ceea85dabf0379
@@ -0,0 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ hubber (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.5.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 1.16)
16
+ hubber!
17
+ rake (~> 10.0)
18
+
19
+ BUNDLED WITH
20
+ 1.16.2
data/exe/hubber CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'irb'
3
+ git_path = File.expand_path("../.git", __dir__)
4
4
 
5
- IRB.start
5
+ if File.exist?(git_path)
6
+ railties_path = File.expand_path("../lib", __dir__)
7
+ $:.unshift(railties_path)
8
+ end
9
+ require "hubber/cli"
@@ -0,0 +1,3 @@
1
+ require "hubber/command"
2
+
3
+ Hubber::Command.invoke :application, ARGV
@@ -0,0 +1,20 @@
1
+ require "active_support"
2
+ require "active_support/dependencies/autoload"
3
+
4
+ require "thor"
5
+
6
+ module Hubber
7
+ module Command
8
+ extend ActiveSupport::Autoload
9
+
10
+ autoload :Base
11
+
12
+ class << self
13
+ def invoke(full_namespace, args = [], **config)
14
+ require_relative "commands/application/application_command"
15
+
16
+ ApplicationCommand.perform(:perform, args, config)
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,13 @@
1
+ require "thor"
2
+
3
+ module Hubber
4
+ module Command
5
+ class Base < Thor
6
+ class << self
7
+ def perform(command, args, config)
8
+ dispatch(command, args.dup, nil, config)
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ module Hubber
2
+ module Command
3
+ class ApplicationCommand < Base
4
+ desc "perform", "Generate new hubber project"
5
+
6
+ def perform(*args)
7
+ puts "Generate new hubber project"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Hubber
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubber
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
  - Jimmy Fan
@@ -49,6 +49,7 @@ files:
49
49
  - ".gitignore"
50
50
  - CODE_OF_CONDUCT.md
51
51
  - Gemfile
52
+ - Gemfile.lock
52
53
  - Hubber.gemspec
53
54
  - LICENSE.txt
54
55
  - README.md
@@ -57,6 +58,10 @@ files:
57
58
  - bin/setup
58
59
  - exe/hubber
59
60
  - lib/Hubber.rb
61
+ - lib/Hubber/cli.rb
62
+ - lib/Hubber/command.rb
63
+ - lib/Hubber/command/base.rb
64
+ - lib/Hubber/commands/application/application_command.rb
60
65
  - lib/Hubber/version.rb
61
66
  homepage: https://github.com/j105/hubber
62
67
  licenses: