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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 398b74aea3f3460273038c346516d11ee67c2365
4
- data.tar.gz: 5263c1dfb5a5f60fc0c52ab278704b271b7eba4d
3
+ metadata.gz: 2f3d9f97afd7407dc1763039d4ab2521da30106c
4
+ data.tar.gz: f52c72b35bfc7fe456e4c196ebf23117abdf2059
5
5
  SHA512:
6
- metadata.gz: 7d60d66f14819d8a069a862b1fcadece4f98511943491df532169bf6bc81e2e0da2b47ffd43f8843e89f08a8ca7e70a1d6fa23c2385dbb433b1ceb72b6597357
7
- data.tar.gz: a5c3f1d502911ab286f284eed72bf40c3690ad67ba63811320a988de02d220019f4d7a978d56b1522f6d597211c2a38d41650c8bd7d4a8fa486f0922d68eb9eb
6
+ metadata.gz: 87efb293f0552754bb779f6f5667507d7a86ffc0a413659a215f0a4696be920a60ae5ede31f063d7a285aabf98a188e2621e770ac16872658b21a85753ebfe81
7
+ data.tar.gz: 3e8fa2b71c9a351811efd7d36137fbbd01c24406b1ac589df9cffbd5f8ae3bcb56eef456c89462c2e11cd0a422985e168bdfc0f53de4c7ba4657da3f8c135271
data/README.md CHANGED
@@ -7,7 +7,7 @@ This small utility will create a .wtf file containing a txt description of the c
7
7
 
8
8
  ## Installation
9
9
 
10
- Iinstall it yourself as:
10
+ Install it yourself as:
11
11
 
12
12
  $ gem install wtf
13
13
 
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
@@ -1,3 +1,3 @@
1
1
  module Wtf
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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 into a folder to know that is inside}
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.2
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 into a folder to know that is inside
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: []