markdown_tree 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.rspec_status +6 -0
- data/directory_structure.md +31 -0
- data/lib/markdown_tree/configuration.rb +32 -0
- data/lib/markdown_tree/railtie.rb +7 -0
- data/lib/markdown_tree/version.rb +1 -1
- data/markdown_tree-0.1.0.gem +0 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 697bbfb2ab8c5a693fb8bf0b810749c7903a8ca765ef8f280441b0b3d5796453
|
4
|
+
data.tar.gz: 3337778a064942b336507763e5dad0bb7fcdfc190525a864cc4a3a0a08b94bf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee484ce754952866c9a5c58ac7102c66840782d6941db63b56508b56cb1f2bfc632654103f14c31b9037f35451a0ea70b300796c5f109cabdd4040ae4035e05
|
7
|
+
data.tar.gz: 5a4009c76689299a0a5d182ffa8bd7ddbfb9857f7946cd0ae932726bafb87f850115e9e7438b33aec43a0016d5d8f6eee9a6e74a05c6342c0c3298a3a76fcf43
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require spec_helper
|
data/.rspec_status
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
--------------------------------- | ------ | --------------- |
|
3
|
+
./spec/markdown_tree_spec.rb[1:1] | passed | 0.01178 seconds |
|
4
|
+
./spec/markdown_tree_spec.rb[1:2] | passed | 0.00844 seconds |
|
5
|
+
./spec/markdown_tree_spec.rb[1:3] | passed | 0.0079 seconds |
|
6
|
+
./spec/markdown_tree_spec.rb[1:4] | passed | 0.00104 seconds |
|
@@ -0,0 +1,31 @@
|
|
1
|
+
├── CODE_OF_CONDUCT.md
|
2
|
+
├── .rspec_status
|
3
|
+
├── .rspec
|
4
|
+
├── .standard.yml
|
5
|
+
├── markdown_tree.gemspec
|
6
|
+
├── bin
|
7
|
+
│ ├── setup
|
8
|
+
│ └── console
|
9
|
+
├── CHANGELOG.md
|
10
|
+
├── sig
|
11
|
+
│ └── markdown_tree.rbs
|
12
|
+
├── spec
|
13
|
+
│ ├── spec_helper.rb
|
14
|
+
│ └── markdown_tree_spec.rb
|
15
|
+
├── README.md
|
16
|
+
├── Rakefile
|
17
|
+
├── .gitignore
|
18
|
+
├── markdown_tree-0.1.0.gem
|
19
|
+
├── .github
|
20
|
+
│ └── workflows
|
21
|
+
│ └── main.yml
|
22
|
+
├── lib
|
23
|
+
│ ├── markdown_tree
|
24
|
+
│ │ ├── railtie.rb
|
25
|
+
│ │ ├── version.rb
|
26
|
+
│ │ └── configuration.rb
|
27
|
+
│ └── markdown_tree.rb
|
28
|
+
├── Gemfile
|
29
|
+
├── Gemfile.lock
|
30
|
+
├── LICENSE.txt
|
31
|
+
└── directory_structure.md
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module MarkdownTree
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :exclude_list, :root_directory, :output_file
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@exclude_list = ["node_modules", ".git", ".DS_Store"]
|
7
|
+
@root_directory = Dir.pwd
|
8
|
+
@output_file = "directory_structure.md"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
class << self
|
13
|
+
attr_accessor :configuration
|
14
|
+
|
15
|
+
def configure
|
16
|
+
self.configuration ||= Configuration.new
|
17
|
+
yield(configuration)
|
18
|
+
end
|
19
|
+
|
20
|
+
def exclude_list
|
21
|
+
configuration.exclude_list
|
22
|
+
end
|
23
|
+
|
24
|
+
def root_directory
|
25
|
+
configuration.root_directory
|
26
|
+
end
|
27
|
+
|
28
|
+
def output_file
|
29
|
+
configuration.output_file
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aemabit
|
@@ -25,14 +25,20 @@ executables: []
|
|
25
25
|
extensions: []
|
26
26
|
extra_rdoc_files: []
|
27
27
|
files:
|
28
|
+
- ".rspec"
|
29
|
+
- ".rspec_status"
|
28
30
|
- ".standard.yml"
|
29
31
|
- CHANGELOG.md
|
30
32
|
- CODE_OF_CONDUCT.md
|
31
33
|
- LICENSE.txt
|
32
34
|
- README.md
|
33
35
|
- Rakefile
|
36
|
+
- directory_structure.md
|
34
37
|
- lib/markdown_tree.rb
|
38
|
+
- lib/markdown_tree/configuration.rb
|
39
|
+
- lib/markdown_tree/railtie.rb
|
35
40
|
- lib/markdown_tree/version.rb
|
41
|
+
- markdown_tree-0.1.0.gem
|
36
42
|
- sig/markdown_tree.rbs
|
37
43
|
homepage: https://github.com/aemabit/markdown_tree
|
38
44
|
licenses:
|