peeky 0.0.31 → 0.0.42

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.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peeky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-08 00:00:00.000000000 Z
11
+ date: 2021-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,10 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: |2
28
- Peeky is a Ruby GEM for peaking into ruby classes and extracting meta data.
29
- You can use this meta data to recreate classes, interfaces, documentation etc.
30
- or use it just to understand the internals of a class.
27
+ description: peeky
31
28
  email:
32
29
  - david@ideasmen.com.au
33
30
  executables: []
@@ -35,6 +32,7 @@ extensions: []
35
32
  extra_rdoc_files:
36
33
  - README.md
37
34
  - STORIES.md
35
+ - USAGE.md
38
36
  files:
39
37
  - ".github/workflows/ruby.yml"
40
38
  - ".gitignore"
@@ -49,6 +47,7 @@ files:
49
47
  - Rakefile
50
48
  - STORIES.md
51
49
  - USAGE.md
50
+ - USAGE2.md
52
51
  - bin/console
53
52
  - bin/k
54
53
  - bin/kgitsync
@@ -60,11 +59,11 @@ files:
60
59
  - lib/peeky/api.rb
61
60
  - lib/peeky/attr_info.rb
62
61
  - lib/peeky/class_info.rb
63
- - lib/peeky/example/yard_sample.rb
64
62
  - lib/peeky/method_info.rb
65
63
  - lib/peeky/parameter_info.rb
66
64
  - lib/peeky/predicates/attr_reader_predicate.rb
67
65
  - lib/peeky/predicates/attr_writer_predicate.rb
66
+ - lib/peeky/renderer/class_debug_render.rb
68
67
  - lib/peeky/renderer/class_interface_render.rb
69
68
  - lib/peeky/renderer/class_interface_yard_render.rb
70
69
  - lib/peeky/renderer/method_call_minimum_params_render.rb
@@ -93,14 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
92
  requirements:
94
93
  - - ">="
95
94
  - !ruby/object:Gem::Version
96
- version: '2.5'
95
+ version: 2.4.0
97
96
  required_rubygems_version: !ruby/object:Gem::Requirement
98
97
  requirements:
99
98
  - - ">="
100
99
  - !ruby/object:Gem::Version
101
100
  version: '0'
102
101
  requirements: []
103
- rubygems_version: 3.1.4
102
+ rubygems_version: 3.2.7
104
103
  signing_key:
105
104
  specification_version: 4
106
105
  summary: Take a peek into your ruby classes and extract useful meta data
@@ -1,124 +0,0 @@
1
- module Peeky
2
- module Example
3
- # Yard sample
4
- class YardSample
5
- # A read write1
6
- attr_accessor :a_read_write1
7
-
8
- # A read write2
9
- attr_accessor :a_read_write2
10
-
11
- # A read write3
12
- attr_accessor :a_read_write3
13
-
14
- # B reader1
15
- attr_reader :b_reader1
16
-
17
- # B reader2
18
- attr_reader :b_reader2
19
-
20
- # E looks like an attr reader
21
- attr_reader :e_looks_like_an_attr_reader
22
-
23
- # C writer1
24
- attr_writer :c_writer1
25
-
26
- # C writer2
27
- attr_writer :c_writer2
28
-
29
- # Alpha sort1
30
- def alpha_sort1
31
- end
32
-
33
- # Alpha sort2
34
- def alpha_sort2
35
- end
36
-
37
- # D do something method
38
- def d_do_something_method
39
- end
40
-
41
- # E method with required param
42
- #
43
- # @param first_name [String] first name (required)
44
- def e_method_with_required_param(first_name)
45
- end
46
-
47
- # F method with required param and optional param
48
- #
49
- # @param first_name [String] first name (required)
50
- # @param last_name [String] last name (optional)
51
- def f_method_with_required_param_and_optional_param(first_name, last_name = nil)
52
- end
53
-
54
- # G method with required param and two optional params
55
- #
56
- # @param first_name [String] first name (required)
57
- # @param last_name [String] last name (optional)
58
- # @param age [String] age (optional)
59
- def g_method_with_required_param_and_two_optional_params(first_name, last_name = nil, age = nil)
60
- end
61
-
62
- # H list of optional parameters
63
- #
64
- # @param command_args [Array<Object>] *command_args - list of command args
65
- def h_list_of_optional_parameters(*command_args)
66
- end
67
-
68
- # I method with two required params and list of optional params
69
- #
70
- # @param first_name [String] first name (required)
71
- # @param last_name [String] last name (required)
72
- # @param alias_names [Array<Object>] *alias_names - list of alias names
73
- def i_method_with_two_required_params_and_list_of_optional_params(first_name, last_name, *alias_names)
74
- end
75
-
76
- # J method with list of named arguments
77
- #
78
- # @param options [<key: value>...] **options - list of key/values
79
- def j_method_with_list_of_named_arguments(**options)
80
- end
81
-
82
- # K method with block
83
- #
84
- # @param code_block [Block] &code_block
85
- def k_method_with_block(&code_block)
86
- end
87
-
88
- # L method with key value param required
89
- #
90
- # @param name [String] name: <value for name> (required)
91
- def l_method_with_key_value_param_required(name:)
92
- end
93
-
94
- # N method with key value param required and optional key value
95
- #
96
- # @param last_name [String] last_name: <value for last name> (required)
97
- # @param salutation [String] salutation: <value for salutation> (optional)
98
- def n_method_with_key_value_param_required_and_optional_key_value(last_name:, salutation: nil)
99
- end
100
-
101
- # P available?
102
-
103
- # @return [Boolean] true when p available?
104
- def p_available?
105
- end
106
-
107
- # Q danger will robinson!
108
- def q_danger_will_robinson!
109
- end
110
-
111
- # Z complex
112
- #
113
- # @param aaa [String] aaa (required)
114
- # @param bbb [String] bbb (optional)
115
- # @param ccc [Array<Object>] *ccc - list of ccc
116
- # @param ddd [String] ddd: <value for ddd> (required)
117
- # @param eee [String] eee: <value for eee> (optional)
118
- # @param fff [<key: value>...] **fff - list of key/values
119
- # @param ggg [Block] &ggg
120
- def z_complex(aaa, bbb = nil, *ccc, ddd:, eee: nil, **fff, &ggg)
121
- end
122
- end
123
- end
124
- end