markdown_tree 0.1.0 → 0.1.1

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: 80c589374873d6426d2de3a445ac43861cc2e6a9dc601aef2333bdad76b03569
4
- data.tar.gz: 1e3ff7583d53a28c58fde933d69f3cb3062d0c3ccb203c9faddf20821e8e682b
3
+ metadata.gz: 4b27c2d7d83621c5ff5f7fea7837d192efd6204eb8fc0ed0fc213104dfa7a810
4
+ data.tar.gz: be84afb5fcf4dfdba93fe236d64e1663734e1c112ed9fbdf32a720fe9d629439
5
5
  SHA512:
6
- metadata.gz: f15388e828bdc99e83670ae660d82d66b446d34ee0b3ce2405eaa2f311abab9a0d503ece311eb7e3a3d580449a2d9cafb700c6ffc60d8f801f88aece66c3010e
7
- data.tar.gz: 40bea3084e3fec4c7b1e6e474db49595dc66b1787b1d87713e96f10e76ede80609cf75cb0e63a8944de3efc6bb9691b7c2d6b9a13a0efb513769b14e4a258fda
6
+ metadata.gz: '08ae9e62ddd51e0b684cdb9dddc948251c493fd72a319d61657268526476ff048d96e00fbf32f639e7e29f54f52c30c7dcd5699f9204aaeffc8d7afa1014a7c6'
7
+ data.tar.gz: d71f5846421a61418ae0087fd241b1d8fb838d95a68ffbfed5828c9fd2ce72a47a9fda5428be7b0d53913009c280f1a0fde0778b9b5db575e0270166df8d083c
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
@@ -0,0 +1,11 @@
1
+ module MarkdownTree
2
+ class Railtie < Rails::Railtie
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
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MarkdownTree
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  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.0
4
+ version: 0.1.1
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: