markdown_tree 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 697bbfb2ab8c5a693fb8bf0b810749c7903a8ca765ef8f280441b0b3d5796453
4
- data.tar.gz: 3337778a064942b336507763e5dad0bb7fcdfc190525a864cc4a3a0a08b94bf4
3
+ metadata.gz: 1db86e02d38cfc713002f3b9ef738138d5f1b04f10f1f4568aa5b61fa9926639
4
+ data.tar.gz: e5c2d6f6b1d9a2610ec7125665d765737235993595684ae4f3dc28f375d25398
5
5
  SHA512:
6
- metadata.gz: cee484ce754952866c9a5c58ac7102c66840782d6941db63b56508b56cb1f2bfc632654103f14c31b9037f35451a0ea70b300796c5f109cabdd4040ae4035e05
7
- data.tar.gz: 5a4009c76689299a0a5d182ffa8bd7ddbfb9857f7946cd0ae932726bafb87f850115e9e7438b33aec43a0016d5d8f6eee9a6e74a05c6342c0c3298a3a76fcf43
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.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 |
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 |
@@ -12,8 +12,10 @@
12
12
  ├── spec
13
13
  │ ├── spec_helper.rb
14
14
  │ └── markdown_tree_spec.rb
15
+ ├── markdown_tree-0.1.2.gem
15
16
  ├── README.md
16
17
  ├── Rakefile
18
+ ├── markdown_tree-0.1.1.gem
17
19
  ├── .gitignore
18
20
  ├── markdown_tree-0.1.0.gem
19
21
  ├── .github
@@ -1,7 +1,6 @@
1
1
  module MarkdownTree
2
2
  class Railtie < Rails::Railtie
3
3
  initializer "markdown_tree.configure" do |app|
4
-
5
4
  end
6
5
  end
7
6
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MarkdownTree
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  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
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - aemabit