gistim 0.2.0 → 0.2.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/Gemfile.lock +1 -1
- data/exe/gistim +0 -1
- data/lib/gistim/create.rb +8 -8
- data/lib/gistim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb80d72438685eaac9cefc6b2249fb8437db9a4e3fd5bd27e7af795d9676af54
|
|
4
|
+
data.tar.gz: 3ace84d0cc59dfe56f70aa1533df8eb4bbf2bcd9f2116247f259c869181cbc34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe5e5cb36b85ef295672310fc740b6b96b30d03770a7a031605612a26c47e208e866ad57a9ae8ba3be63dade1acec991b6879f954bfb1fbc030ceb2cfe676e87
|
|
7
|
+
data.tar.gz: 9face7f4744019ffb1aa52ff85f9ab7fb5499ca9bd8c1574ccd915b5aa7e0c675290413882255b8d9457c83ebe0801f1b45c89466761a48abb5390700ec070f1
|
data/Gemfile.lock
CHANGED
data/exe/gistim
CHANGED
|
@@ -15,7 +15,6 @@ elsif subcommand == 'clone'
|
|
|
15
15
|
elsif subcommand == 'create'
|
|
16
16
|
create = Gistim::Create.new(alias_name: ARGV[1]).implement
|
|
17
17
|
puts "#{create.directory}"
|
|
18
|
-
`cd #{create.directory}` if ARGV.include? ["--cd"]
|
|
19
18
|
elsif ['list', 'history'].include? subcommand
|
|
20
19
|
require 'json'
|
|
21
20
|
|
data/lib/gistim/create.rb
CHANGED
|
@@ -36,7 +36,15 @@ module Gistim
|
|
|
36
36
|
def url_file_path
|
|
37
37
|
"#{directory}/.url"
|
|
38
38
|
end
|
|
39
|
+
|
|
40
|
+
def directory
|
|
41
|
+
"#{Gistim::Command.home}/#{name}"
|
|
42
|
+
end
|
|
39
43
|
|
|
44
|
+
def name
|
|
45
|
+
alias_name || hash
|
|
46
|
+
end
|
|
47
|
+
|
|
40
48
|
private
|
|
41
49
|
|
|
42
50
|
def clone
|
|
@@ -53,13 +61,5 @@ module Gistim
|
|
|
53
61
|
def initialize_file_path
|
|
54
62
|
'GIST.md'
|
|
55
63
|
end
|
|
56
|
-
|
|
57
|
-
def directory
|
|
58
|
-
"#{Gistim::Command.home}/#{name}"
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
def name
|
|
62
|
-
alias_name || hash
|
|
63
|
-
end
|
|
64
64
|
end
|
|
65
65
|
end
|
data/lib/gistim/version.rb
CHANGED