markdown_tree 0.1.1 → 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/.rspec_status +4 -4
- data/directory_structure.md +2 -0
- data/lib/markdown_tree/railtie.rb +0 -5
- data/lib/markdown_tree/version.rb +1 -1
- data/lib/markdown_tree.rb +4 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1db86e02d38cfc713002f3b9ef738138d5f1b04f10f1f4568aa5b61fa9926639
|
4
|
+
data.tar.gz: e5c2d6f6b1d9a2610ec7125665d765737235993595684ae4f3dc28f375d25398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3098f070ed946404745f48476903bdff433b80164015b6b7f87bac77237008682275bb09bf620b4df71a680c1153fbae6d245a9427552e015121d2c7db69173d
|
7
|
+
data.tar.gz: d0648d939ab239a01c154c5a913220eec21f7e5bce99ee4eb076f92316a829986d1b21ad9f9dc142684368061d1ab4fd89f2f0451cac7a17eb1b86c82121cf31
|
data/.rspec_status
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
--------------------------------- | ------ | --------------- |
|
3
|
-
./spec/markdown_tree_spec.rb[1:1] | passed | 0.
|
4
|
-
./spec/markdown_tree_spec.rb[1:2] | passed | 0.
|
5
|
-
./spec/markdown_tree_spec.rb[1:3] | passed | 0.
|
6
|
-
./spec/markdown_tree_spec.rb[1:4] | passed | 0.
|
3
|
+
./spec/markdown_tree_spec.rb[1:1] | passed | 0.02121 seconds |
|
4
|
+
./spec/markdown_tree_spec.rb[1:2] | passed | 0.02174 seconds |
|
5
|
+
./spec/markdown_tree_spec.rb[1:3] | passed | 0.01095 seconds |
|
6
|
+
./spec/markdown_tree_spec.rb[1:4] | passed | 0.00157 seconds |
|
data/directory_structure.md
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
module MarkdownTree
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer "markdown_tree.configure" do |app|
|
4
|
-
MarkdownTree.configure do |config|
|
5
|
-
config.exclude_list ||= ["node_modules", ".git"]
|
6
|
-
config.root_directory ||= Rails.root.to_s
|
7
|
-
config.output_file ||= "directory_structure.md"
|
8
|
-
end
|
9
4
|
end
|
10
5
|
end
|
11
6
|
end
|
data/lib/markdown_tree.rb
CHANGED
@@ -4,6 +4,10 @@ require "markdown_tree/railtie" if defined?(Rails)
|
|
4
4
|
|
5
5
|
module MarkdownTree
|
6
6
|
class << self
|
7
|
+
def configuration
|
8
|
+
@configuration ||= Configuration.new
|
9
|
+
end
|
10
|
+
|
7
11
|
def generate_tree(directory = nil)
|
8
12
|
directory ||= configuration.root_directory || Dir.pwd
|
9
13
|
|
@@ -32,15 +36,5 @@ module MarkdownTree
|
|
32
36
|
end
|
33
37
|
end
|
34
38
|
end
|
35
|
-
|
36
|
-
def configuration
|
37
|
-
@configuration ||= Configuration.new
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
configure do |config|
|
42
|
-
config.exclude_list = ["node_modules", ".git", ".DS_Store"]
|
43
|
-
config.root_directory = Dir.pwd
|
44
|
-
config.output_file = "directory_structure.md"
|
45
39
|
end
|
46
40
|
end
|