madman 0.3.2 → 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: 2e38575c25d8a68e8c2c644837ef8acdf913fb93d6a794a5f99c996acddcde7b
4
- data.tar.gz: '093b0b31dc49d46397e386c2ea15701b56551f16f406bc1351f413d938683ddd'
3
+ metadata.gz: 9d86b3e20c48e1b0f777980889dd86de9835d89b3573e7273a484d4d2f0e17d9
4
+ data.tar.gz: 83ec7881c8d1fea4c17bf1cb77892f1eba75a75f4a7c9fe369965b993dc15010
5
5
  SHA512:
6
- metadata.gz: 177714039dd832d709041ec17f08e611931754cdc3367a6b13ce6aaf62c5c9c44a34800c399ccdae4ca04df66cef73191d19c7d709dd591c7a05e953e9056560
7
- data.tar.gz: c2d51ca5693486e173d92c6f13c76eaf207a389935661ed2a3b79bf46041188b8a428da65ac3081ee03aa16e4370c145682fa87473806174e22d9d4ca4716555
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.2'
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.2
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-20 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
46
  - !ruby/object:Gem::Version
47
- version: '0.7'
47
+ version: 0.8.1
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '2'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
- version: '0.7'
57
+ version: 0.8.1
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '2'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: commonmarker
57
63
  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