wtf-doc 0.1.2 → 0.1.3
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/README.md +1 -1
- data/lib/wtf/cli/here.rb +5 -2
- data/lib/wtf/core.rb +1 -1
- data/lib/wtf/version.rb +1 -1
- data/wtf.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f3d9f97afd7407dc1763039d4ab2521da30106c
|
|
4
|
+
data.tar.gz: f52c72b35bfc7fe456e4c196ebf23117abdf2059
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87efb293f0552754bb779f6f5667507d7a86ffc0a413659a215f0a4696be920a60ae5ede31f063d7a285aabf98a188e2621e770ac16872658b21a85753ebfe81
|
|
7
|
+
data.tar.gz: 3e8fa2b71c9a351811efd7d36137fbbd01c24406b1ac589df9cffbd5f8ae3bcb56eef456c89462c2e11cd0a422985e168bdfc0f53de4c7ba4657da3f8c135271
|
data/README.md
CHANGED
data/lib/wtf/cli/here.rb
CHANGED
|
@@ -5,22 +5,25 @@ module Wtf
|
|
|
5
5
|
class Application < Thor
|
|
6
6
|
|
|
7
7
|
desc "here", "This will read you the description of this folder"
|
|
8
|
+
|
|
8
9
|
def here
|
|
9
|
-
puts Wtf::Core.new.content
|
|
10
|
+
puts "DOC:" + Wtf::Core.new.content
|
|
10
11
|
end
|
|
12
|
+
|
|
11
13
|
default_task :here
|
|
12
14
|
|
|
13
15
|
desc "doc", "This will write the description of the current folder.
|
|
14
16
|
\n\n Usage:
|
|
15
17
|
\n\n wtf doc -c 'my documentation'"
|
|
16
18
|
option :c
|
|
19
|
+
|
|
17
20
|
def doc(*args)
|
|
18
21
|
if options[:c]
|
|
19
22
|
content = options[:c] + " " + args.join(" ")
|
|
20
23
|
Wtf::Core.new.write(content)
|
|
21
24
|
puts "Folder documentation added:"
|
|
22
25
|
end
|
|
23
|
-
puts Wtf::Core.new.content
|
|
26
|
+
puts "DOC:" + Wtf::Core.new.content
|
|
24
27
|
end
|
|
25
28
|
|
|
26
29
|
end
|
data/lib/wtf/core.rb
CHANGED
|
@@ -26,7 +26,7 @@ module Wtf
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def not_documented
|
|
29
|
-
"This folder is not documented yet. Add a documentation by running: \n\n wtf -c 'a description of the folder'"
|
|
29
|
+
"This folder is not documented yet. Add a documentation by running: \n\n wtf doc -c 'a description of the folder'"
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def write(data)
|
data/lib/wtf/version.rb
CHANGED
data/wtf.gemspec
CHANGED
|
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Lorenzo Sinisi"]
|
|
10
10
|
spec.email = ["lasslo.net@gmail.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{Command line utility to add descriptions to folders.}
|
|
13
|
-
spec.description = %q{Run wtf
|
|
12
|
+
spec.summary = %q{Command line utility to add descriptions to folders (.wtf files).}
|
|
13
|
+
spec.description = %q{Run $ wtf to read/write the documentation of the current folder}
|
|
14
14
|
spec.homepage = "https://github.com/lorenzosinisi/wtf"
|
|
15
15
|
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wtf-doc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lorenzo Sinisi
|
|
@@ -80,7 +80,7 @@ dependencies:
|
|
|
80
80
|
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
|
-
description: Run wtf
|
|
83
|
+
description: Run $ wtf to read/write the documentation of the current folder
|
|
84
84
|
email:
|
|
85
85
|
- lasslo.net@gmail.com
|
|
86
86
|
executables:
|
|
@@ -125,5 +125,5 @@ rubyforge_project:
|
|
|
125
125
|
rubygems_version: 2.2.2
|
|
126
126
|
signing_key:
|
|
127
127
|
specification_version: 4
|
|
128
|
-
summary: Command line utility to add descriptions to folders.
|
|
128
|
+
summary: Command line utility to add descriptions to folders (.wtf files).
|
|
129
129
|
test_files: []
|