class_docu_shower 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGFkMzgxMzYwZGY5OTYxMmYzZjRkMzVhYmJlMGM0MWFjZDc0YjYwZA==
4
+ YjUwM2QwODFhMGY0YzAwZWVlYTNhMjNmZjY2N2JhNTViYjdiYTZjNA==
5
5
  data.tar.gz: !binary |-
6
- M2MyOTc1YzdkN2Y4OTZiMmE0MmUzYmIyOGViMjhjMzIxZjZkNzQ1OQ==
6
+ ZGY2ZWQ1ODY0YjIyYTMzZDg1NjZlZjExMTM1ZjljZGE2YjI3NTRiNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzRkZTVjNjNiMzQyODdlMjg0NmFmNDc4NDdmZWNhZTk2N2VhNjg1MGIyYTU3
10
- MWI1YzkzZWM3NmE3M2IzMGU2ODA3YTkxZmM0MWI5OTJjOGRjZTNiYmE5Yjlh
11
- MjY2ZmU1OGY1MTg5ZjgyMjA4ODk2Yzg5OTk0Yzk2NGFhOTA3NGI=
9
+ MzZiNWFjNWI0NTFjMjI2NTEzODFmZDIyYmM3NTU2NGVhNzEyMGIyM2VlMDBk
10
+ ZDdjM2FiNjA0OWU1OTRhMDc1ODQzNzYxOGY5MTc0MGUwM2I2NmY5YjYyNTVh
11
+ NWNjZGJlODE4MWQ1MmMyOGQ5N2NlZGFlYTk1YWJjNzgzN2QwMjU=
12
12
  data.tar.gz: !binary |-
13
- MDM4N2RiNGZmNmQ5NTJiYzBiY2FiNThjMmMyYTEyZDQyZTU4ZTdlNGRlMTYw
14
- MWI1YmUyMzNmOGYyYjhhZDA2NDUzYWZkOTMxYjk1YzQyNmVjYTg2Mzk0Yzg5
15
- NDdlYzliNDRhOGYwNjgxM2ExOTkzYTMzY2EwMDFkNWEzYTE2OWE=
13
+ ZmExNWMxNzdmNmRmYzgzNTMzOTljNDdlZWYxNzFiNmMyNTcxMzIxZDVlOWYw
14
+ ODY0OTE2NjMyZjQwMjRlZDgxMTcyNDk3OWVlZmNhNmM1YjNjZmZlMTY3NzAw
15
+ MTZjYzEwOTIwNjM2YTI1NjczZGNjZmIzNTMyNjg0N2Q5NGEwOTQ=
@@ -4,7 +4,7 @@
4
4
  Gem::Specification.new { |s|
5
5
 
6
6
  s.name = 'class_docu_shower'
7
- s.version = '1.0.0'
7
+ s.version = '1.0.1'
8
8
  s.date = Time.now.strftime('%Y-%m-%d')
9
9
 
10
10
  s.summary = <<-EOF
@@ -28,6 +28,7 @@ Gem::Specification.new { |s|
28
28
  s.required_ruby_version = '>= 1.8.7'
29
29
  s.homepage = 'http://rubygems.org/gems/class_docu_shower'
30
30
  s.rubygems_version = '2.1.11'
31
+
31
32
  s.add_dependency 'colours', '>= 0.0.12'
32
33
  s.add_dependency 'opn', '>= 1.0.0'
33
34
  s.add_dependency 'usher', '>= 0.0.6'
@@ -3,7 +3,7 @@
3
3
  # =========================================================================== #
4
4
  # This file will extract the comment from a class and return a
5
5
  # string about the docu. That comment must be padded inside lines
6
- # with '# ===' lines, like this file here.
6
+ # with '# ====' lines, like this file here.
7
7
  #
8
8
  # Usage example:
9
9
  # ClassDocuShower.new('file_location_comes_in_here')
@@ -20,6 +20,7 @@ class ClassDocuShower # require 'class_docu_shower'; ClassDocuShower.new
20
20
  attr_reader :file
21
21
 
22
22
  DEFAULT_FILE = '/Users/x/DATA/PROGRAMMING_LANGUAGES/RUBY/SRC/TOOLS/show_available_users.rb'
23
+ FORBIDDEN_CHARACTERS = '# ===='
23
24
 
24
25
  def initialize(i = nil, run_already = true)
25
26
  reset
@@ -36,11 +37,12 @@ class ClassDocuShower # require 'class_docu_shower'; ClassDocuShower.new
36
37
  run if run_already
37
38
  end
38
39
  def reset # (reset tag)
39
- @be_verbose = true
40
+ be_silent
40
41
  @usher = Usher.new
41
42
  @usher.allow_n_changes = 1
42
43
  end
43
- def be_silent; @be_verbose = false; end
44
+ def be_verbose; @be_verbose = true; end
45
+ def be_silent; @be_verbose = false; end
44
46
  def set_file(i = DEFAULT_FILE)
45
47
  i = i[0] if i.is_a? Array
46
48
  i = DEFAULT_FILE if i.nil?
@@ -57,7 +59,7 @@ class ClassDocuShower # require 'class_docu_shower'; ClassDocuShower.new
57
59
  end
58
60
  def process_dataset
59
61
  @data.each {|entry|
60
- if entry.include? '# ==='
62
+ if entry.include? FORBIDDEN_CHARACTERS
61
63
  @usher.toggle
62
64
  else
63
65
  @usher << entry.delete('#').lstrip
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: class_docu_shower
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Heiler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-02 00:00:00.000000000 Z
11
+ date: 2014-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colours