markdown_tree 0.1.1 → 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: 4b27c2d7d83621c5ff5f7fea7837d192efd6204eb8fc0ed0fc213104dfa7a810
4
- data.tar.gz: be84afb5fcf4dfdba93fe236d64e1663734e1c112ed9fbdf32a720fe9d629439
3
+ metadata.gz: 1db86e02d38cfc713002f3b9ef738138d5f1b04f10f1f4568aa5b61fa9926639
4
+ data.tar.gz: e5c2d6f6b1d9a2610ec7125665d765737235993595684ae4f3dc28f375d25398
5
5
  SHA512:
6
- metadata.gz: '08ae9e62ddd51e0b684cdb9dddc948251c493fd72a319d61657268526476ff048d96e00fbf32f639e7e29f54f52c30c7dcd5699f9204aaeffc8d7afa1014a7c6'
7
- data.tar.gz: d71f5846421a61418ae0087fd241b1d8fb838d95a68ffbfed5828c9fd2ce72a47a9fda5428be7b0d53913009c280f1a0fde0778b9b5db575e0270166df8d083c
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,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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MarkdownTree
4
- VERSION = "0.1.1"
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - aemabit