madman 0.3.1 → 0.3.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: 990eb18407907bc63ad44f0142ce700ffe58eb404ce341343deea619d44d8707
4
- data.tar.gz: 8c4993192e48c280c09088809db9a48f313ab2b66194c8f17e0ac30ba4d6b962
3
+ metadata.gz: 9d86b3e20c48e1b0f777980889dd86de9835d89b3573e7273a484d4d2f0e17d9
4
+ data.tar.gz: 83ec7881c8d1fea4c17bf1cb77892f1eba75a75f4a7c9fe369965b993dc15010
5
5
  SHA512:
6
- metadata.gz: '093a28d6b1e7c35d3f84f54881784494c5836c1c6b11482adcfb95ca32ee6b7c3f6cc28296c56a6187b5952f04246a2dab8636dbc48e3a66e51a6c40119e5460'
7
- data.tar.gz: 95d7fb92f653302bece24f76bc0455c7055e4d84360938be302e0729bb7a4df605499a1130c358ad09afa60ec4b612c12594ebc253de25b5ab42e479dacbf245
6
+ metadata.gz: 31e1b77625e8ac5964befbaeabc52b53fff96b9537ee316f494a237a9a0f63586dc6237aa3d2742983b4dad75d5aaccd151031a01f196cade5fd9503b2aada6f
7
+ data.tar.gz: bd47aa12c0c2667295afd499473552443dc49256a8a5cf834846e7ab0175595e1f111aa9f3b263128399fdd809b07b8cae2a16ce109d1e58f75d1f2cfd50c4f5
data/bin/madman CHANGED
@@ -10,6 +10,6 @@ begin
10
10
  exit runner.run ARGV
11
11
  rescue => e
12
12
  puts e.backtrace.reverse if ENV['DEBUG']
13
- say! "!txtred!#{e.class}: #{e.message}"
13
+ say! "r`#{e.class}: #{e.message}`"
14
14
  exit 1
15
15
  end
@@ -40,14 +40,14 @@ module Madman
40
40
  end
41
41
 
42
42
  def update_file(file)
43
- say "Updating !txtgrn!#{file}"
43
+ say "Updating g`#{file}`"
44
44
  file_dir = File.dirname file
45
45
  toc = Madman::Navigation.new file_dir, depth: depth
46
46
  doc = Madman::Document.from_file file
47
47
  doc.inject toc.markdown, marker: marker, force: force?
48
48
 
49
49
  if verbose?
50
- say word_wrap " !txtblu!#{doc.text}"
50
+ say word_wrap " b`#{doc.text}`"
51
51
  say ''
52
52
  end
53
53
 
@@ -31,9 +31,9 @@ module Madman
31
31
  port = args['--port']
32
32
  bind = args['--bind']
33
33
 
34
- say "Starting server at !undblu!localhost:#{port}!txtrst!"
34
+ say "Starting server at bu`localhost:#{port}`"
35
35
  if ENV['GITHUB_ACCESS_TOKEN']
36
- say "To view the GitHub API version go to !undblu!localhost:#{port}/github!txtrst!"
36
+ say "To view the GitHub API version go to bu`localhost:#{port}/github`"
37
37
  end
38
38
  say ''
39
39
 
@@ -29,7 +29,7 @@ module Madman
29
29
  if File.exist? file
30
30
  say "Skipping #{file}"
31
31
  else
32
- say "Creating !txtgrn!#{file}"
32
+ say "Creating g`#{file}`"
33
33
  h1 = "# #{File.basename dir}\n\n"
34
34
  File.write file, h1 unless args['--dry']
35
35
  end
@@ -31,7 +31,7 @@ module Madman
31
31
 
32
32
  if outfile
33
33
  File.write outfile, output
34
- say "Saved !txtgrn!#{outfile}"
34
+ say "Saved g`#{outfile}`"
35
35
  else
36
36
  puts output
37
37
  end
@@ -26,7 +26,7 @@ module Madman
26
26
  bind = args['--bind']
27
27
  renderer = args['--github'] ? :github : :default
28
28
 
29
- say "Starting server at !undblu!localhost:#{port}!txtrst! using the !txtgrn!#{renderer}!txtrst! renderer\n"
29
+ say "Starting server at bu`localhost:#{port}` using the g`#{renderer}` renderer\n"
30
30
 
31
31
  Madman::DirServer.set bind: bind, port: port,
32
32
  dir: dir, renderer: renderer
@@ -1,3 +1,3 @@
1
1
  module Madman
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: colsole
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.1
48
+ - - "<"
46
49
  - !ruby/object:Gem::Version
47
- version: 0.7.0
50
+ version: '2'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 0.8.1
58
+ - - "<"
53
59
  - !ruby/object:Gem::Version
54
- version: 0.7.0
60
+ version: '2'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: commonmarker
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +84,14 @@ dependencies:
78
84
  requirements:
79
85
  - - "~>"
80
86
  - !ruby/object:Gem::Version
81
- version: 0.7.3
87
+ version: '0.7'
82
88
  type: :runtime
83
89
  prerelease: false
84
90
  version_requirements: !ruby/object:Gem::Requirement
85
91
  requirements:
86
92
  - - "~>"
87
93
  - !ruby/object:Gem::Version
88
- version: 0.7.3
94
+ version: '0.7'
89
95
  - !ruby/object:Gem::Dependency
90
96
  name: octokit
91
97
  requirement: !ruby/object:Gem::Requirement
@@ -166,16 +172,22 @@ dependencies:
166
172
  name: slim
167
173
  requirement: !ruby/object:Gem::Requirement
168
174
  requirements:
169
- - - "~>"
175
+ - - ">="
170
176
  - !ruby/object:Gem::Version
171
177
  version: '4.0'
178
+ - - "<"
179
+ - !ruby/object:Gem::Version
180
+ version: '6'
172
181
  type: :runtime
173
182
  prerelease: false
174
183
  version_requirements: !ruby/object:Gem::Requirement
175
184
  requirements:
176
- - - "~>"
185
+ - - ">="
177
186
  - !ruby/object:Gem::Version
178
187
  version: '4.0'
188
+ - - "<"
189
+ - !ruby/object:Gem::Version
190
+ version: '6'
179
191
  - !ruby/object:Gem::Dependency
180
192
  name: string-direction
181
193
  requirement: !ruby/object:Gem::Requirement
@@ -245,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
257
  - !ruby/object:Gem::Version
246
258
  version: '0'
247
259
  requirements: []
248
- rubygems_version: 3.4.3
260
+ rubygems_version: 3.4.5
249
261
  signing_key:
250
262
  specification_version: 4
251
263
  summary: The Markdown Swiss Army Knife