sbag 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/lib/sbag/version.rb +1 -1
- data/lib/sbag.rb +12 -0
- data/sbag.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad4a9e504fbcefefb9798ee4e56aba72ee99f80d
|
4
|
+
data.tar.gz: afb49568a9193bc91de1a56bfb0132634ce5dc62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e038d32e267ab088ae1ee86a3786c35d1ed712057c16ec2c8be441a073bdafba7d336561e0420c8a4c970ce951b3a1b0a812ab58537290e04cf6dfc8e1eab787
|
7
|
+
data.tar.gz: 26450bc7d9b16f40018a4692bc94b58911a2e7948bd83d115d660290036af9b28937a03ae5a67f89c94df43fed8e4d5a353806ffbcbdac9d9cdf316c4918ae35
|
data/lib/sbag/version.rb
CHANGED
data/lib/sbag.rb
CHANGED
@@ -3,6 +3,8 @@ require 'thor'
|
|
3
3
|
module Sbag
|
4
4
|
|
5
5
|
class C < Thor
|
6
|
+
|
7
|
+
#Create Command
|
6
8
|
desc "create", "Create a new file"
|
7
9
|
method_option :create, :aliases => "-c" , :desc => "Use create command to create new file. Usage: [file_name].[file_extension]"
|
8
10
|
|
@@ -11,6 +13,7 @@ method_option :create, :aliases => "-c" , :desc => "Use create command to create
|
|
11
13
|
puts "New file created => *#{file}*"
|
12
14
|
end
|
13
15
|
|
16
|
+
#Delete Command
|
14
17
|
desc "delete", "Delete the existing file"
|
15
18
|
method_option :delete, :aliases => "-d", :desc => "Use create command to delete existing file. Usage: [file_name].[file_extension]"
|
16
19
|
|
@@ -18,5 +21,14 @@ method_option :delete, :aliases => "-d", :desc => "Use create command to delete
|
|
18
21
|
File.delete("#{file}")
|
19
22
|
puts "Existing file deleted => *#{file}*"
|
20
23
|
end
|
24
|
+
|
25
|
+
#Time Command
|
26
|
+
desc "time" , "Display current time"
|
27
|
+
method_option :time, :aliases => "-t", :desc => "Use time command to display the current time"
|
28
|
+
|
29
|
+
def time
|
30
|
+
time = Time.now
|
31
|
+
puts "Current time => *#{time}*"
|
32
|
+
end
|
21
33
|
end
|
22
34
|
end
|
data/sbag.gemspec
CHANGED
@@ -11,9 +11,9 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
spec.summary = %q{A command line tool developed by Infoir}
|
15
|
-
spec.description = %q{A
|
16
|
-
spec.homepage = "https://infoir.com/contribute/gems/
|
14
|
+
spec.summary = %q{A command line tool developed by Infoir.}
|
15
|
+
spec.description = %q{A private tool developed to create own terminal commands.}
|
16
|
+
spec.homepage = "https://infoir.com/contribute/gems/sbag"
|
17
17
|
spec.license = "MIT"
|
18
18
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sbag
|
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
|
- Shubham
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: A
|
55
|
+
description: A private tool developed to create own terminal commands.
|
56
56
|
email:
|
57
57
|
- shubham@infoir.com
|
58
58
|
executables:
|
@@ -76,7 +76,7 @@ files:
|
|
76
76
|
- sbag.gemspec
|
77
77
|
- spec/sbag_spec.rb
|
78
78
|
- spec/spec_helper.rb
|
79
|
-
homepage: https://infoir.com/contribute/gems/
|
79
|
+
homepage: https://infoir.com/contribute/gems/sbag
|
80
80
|
licenses:
|
81
81
|
- MIT
|
82
82
|
metadata: {}
|
@@ -99,5 +99,5 @@ rubyforge_project:
|
|
99
99
|
rubygems_version: 2.4.5
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
|
-
summary: A command line tool developed by Infoir
|
102
|
+
summary: A command line tool developed by Infoir.
|
103
103
|
test_files: []
|