rundoc 0.0.2 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/check_changelog.yml +13 -0
  3. data/.gitignore +7 -0
  4. data/.travis.yml +8 -0
  5. data/CHANGELOG.md +26 -0
  6. data/Dockerfile +24 -0
  7. data/Gemfile +1 -0
  8. data/README.md +261 -92
  9. data/bin/rundoc +4 -60
  10. data/lib/rundoc.rb +15 -1
  11. data/lib/rundoc/cli.rb +84 -0
  12. data/lib/rundoc/code_command.rb +20 -5
  13. data/lib/rundoc/code_command/background.rb +9 -0
  14. data/lib/rundoc/code_command/background/log/clear.rb +17 -0
  15. data/lib/rundoc/code_command/background/log/read.rb +16 -0
  16. data/lib/rundoc/code_command/background/process_spawn.rb +96 -0
  17. data/lib/rundoc/code_command/background/start.rb +38 -0
  18. data/lib/rundoc/code_command/background/stop.rb +17 -0
  19. data/lib/rundoc/code_command/background/wait.rb +19 -0
  20. data/lib/rundoc/code_command/bash.rb +1 -1
  21. data/lib/rundoc/code_command/bash/cd.rb +21 -3
  22. data/lib/rundoc/code_command/file_command/append.rb +2 -0
  23. data/lib/rundoc/code_command/no_such_command.rb +4 -0
  24. data/lib/rundoc/code_command/pipe.rb +17 -4
  25. data/lib/rundoc/code_command/raw.rb +18 -0
  26. data/lib/rundoc/code_command/rundoc/depend_on.rb +37 -0
  27. data/lib/rundoc/code_command/rundoc/require.rb +41 -0
  28. data/lib/rundoc/code_command/rundoc_command.rb +6 -2
  29. data/lib/rundoc/code_command/website.rb +7 -0
  30. data/lib/rundoc/code_command/website/driver.rb +111 -0
  31. data/lib/rundoc/code_command/website/navigate.rb +29 -0
  32. data/lib/rundoc/code_command/website/screenshot.rb +28 -0
  33. data/lib/rundoc/code_command/website/visit.rb +47 -0
  34. data/lib/rundoc/code_section.rb +34 -78
  35. data/lib/rundoc/parser.rb +4 -3
  36. data/lib/rundoc/peg_parser.rb +282 -0
  37. data/lib/rundoc/version.rb +1 -1
  38. data/rundoc.gemspec +9 -3
  39. data/test/fixtures/build_logs/rundoc.md +56 -0
  40. data/test/fixtures/depend_on/dependency/rundoc.md +5 -0
  41. data/test/fixtures/depend_on/main/rundoc.md +10 -0
  42. data/test/fixtures/java/rundoc.md +9 -0
  43. data/test/fixtures/rails_4/rundoc.md +1 -1
  44. data/test/fixtures/rails_5/rundoc.md +76 -74
  45. data/test/fixtures/{rails_5_beta → rails_6}/rundoc.md +93 -87
  46. data/test/fixtures/require/dependency/rundoc.md +5 -0
  47. data/test/fixtures/require/main/rundoc.md +10 -0
  48. data/test/fixtures/screenshot/rundoc.md +10 -0
  49. data/test/rundoc/code_commands/append_file_test.rb +2 -2
  50. data/test/rundoc/code_commands/background_test.rb +69 -0
  51. data/test/rundoc/code_commands/bash_test.rb +1 -1
  52. data/test/rundoc/code_commands/pipe_test.rb +12 -2
  53. data/test/rundoc/code_commands/remove_contents_test.rb +1 -1
  54. data/test/rundoc/code_section_test.rb +6 -5
  55. data/test/rundoc/parser_test.rb +2 -8
  56. data/test/rundoc/peg_parser_test.rb +391 -0
  57. data/test/rundoc/regex_test.rb +1 -1
  58. data/test/rundoc/test_parse_java.rb +1 -1
  59. data/test/test_helper.rb +1 -1
  60. metadata +120 -12
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class RegexTest < Test::Unit::TestCase
3
+ class RegexTest < Minitest::Test
4
4
 
5
5
  def setup
6
6
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class ParseJavaTest < Test::Unit::TestCase
3
+ class ParseJavaTest < Minitest::Test
4
4
 
5
5
  def setup
6
6
 
@@ -4,7 +4,7 @@ Bundler.require
4
4
 
5
5
 
6
6
  require 'rundoc'
7
- require 'test/unit'
7
+ require "minitest/autorun"
8
8
  require "mocha/setup"
9
9
  require 'tmpdir'
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rundoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-25 00:00:00.000000000 Z
11
+ date: 2020-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -38,6 +38,76 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: parslet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: selenium-webdriver
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: aws-sdk-s3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: dotenv
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
41
111
  - !ruby/object:Gem::Dependency
42
112
  name: rake
43
113
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +137,7 @@ dependencies:
67
137
  - !ruby/object:Gem::Version
68
138
  version: '0'
69
139
  - !ruby/object:Gem::Dependency
70
- name: test-unit
140
+ name: minitest
71
141
  requirement: !ruby/object:Gem::Requirement
72
142
  requirements:
73
143
  - - ">="
@@ -80,7 +150,7 @@ dependencies:
80
150
  - - ">="
81
151
  - !ruby/object:Gem::Version
82
152
  version: '0'
83
- description: runDOC turns docs to runable code
153
+ description: RunDOC turns docs to runable code
84
154
  email:
85
155
  - richard.schneeman+rubygems@gmail.com
86
156
  executables:
@@ -88,36 +158,66 @@ executables:
88
158
  extensions: []
89
159
  extra_rdoc_files: []
90
160
  files:
161
+ - ".github/workflows/check_changelog.yml"
91
162
  - ".gitignore"
163
+ - ".travis.yml"
164
+ - CHANGELOG.md
165
+ - Dockerfile
92
166
  - Gemfile
93
167
  - README.md
94
168
  - Rakefile
95
169
  - bin/rundoc
96
170
  - lib/rundoc.rb
171
+ - lib/rundoc/cli.rb
97
172
  - lib/rundoc/code_command.rb
173
+ - lib/rundoc/code_command/background.rb
174
+ - lib/rundoc/code_command/background/log/clear.rb
175
+ - lib/rundoc/code_command/background/log/read.rb
176
+ - lib/rundoc/code_command/background/process_spawn.rb
177
+ - lib/rundoc/code_command/background/start.rb
178
+ - lib/rundoc/code_command/background/stop.rb
179
+ - lib/rundoc/code_command/background/wait.rb
98
180
  - lib/rundoc/code_command/bash.rb
99
181
  - lib/rundoc/code_command/bash/cd.rb
100
182
  - lib/rundoc/code_command/file_command/append.rb
101
183
  - lib/rundoc/code_command/file_command/remove.rb
102
184
  - lib/rundoc/code_command/no_such_command.rb
103
185
  - lib/rundoc/code_command/pipe.rb
186
+ - lib/rundoc/code_command/raw.rb
104
187
  - lib/rundoc/code_command/repl.rb
188
+ - lib/rundoc/code_command/rundoc/depend_on.rb
189
+ - lib/rundoc/code_command/rundoc/require.rb
105
190
  - lib/rundoc/code_command/rundoc_command.rb
191
+ - lib/rundoc/code_command/website.rb
192
+ - lib/rundoc/code_command/website/driver.rb
193
+ - lib/rundoc/code_command/website/navigate.rb
194
+ - lib/rundoc/code_command/website/screenshot.rb
195
+ - lib/rundoc/code_command/website/visit.rb
106
196
  - lib/rundoc/code_command/write.rb
107
197
  - lib/rundoc/code_section.rb
108
198
  - lib/rundoc/parser.rb
199
+ - lib/rundoc/peg_parser.rb
109
200
  - lib/rundoc/version.rb
110
201
  - rundoc.gemspec
202
+ - test/fixtures/build_logs/rundoc.md
203
+ - test/fixtures/depend_on/dependency/rundoc.md
204
+ - test/fixtures/depend_on/main/rundoc.md
205
+ - test/fixtures/java/rundoc.md
111
206
  - test/fixtures/play/source.md
112
207
  - test/fixtures/rails_4/rundoc.md
113
208
  - test/fixtures/rails_5/rundoc.md
114
- - test/fixtures/rails_5_beta/rundoc.md
209
+ - test/fixtures/rails_6/rundoc.md
210
+ - test/fixtures/require/dependency/rundoc.md
211
+ - test/fixtures/require/main/rundoc.md
212
+ - test/fixtures/screenshot/rundoc.md
115
213
  - test/rundoc/code_commands/append_file_test.rb
214
+ - test/rundoc/code_commands/background_test.rb
116
215
  - test/rundoc/code_commands/bash_test.rb
117
216
  - test/rundoc/code_commands/pipe_test.rb
118
217
  - test/rundoc/code_commands/remove_contents_test.rb
119
218
  - test/rundoc/code_section_test.rb
120
219
  - test/rundoc/parser_test.rb
220
+ - test/rundoc/peg_parser_test.rb
121
221
  - test/rundoc/regex_test.rb
122
222
  - test/rundoc/test_parse_java.rb
123
223
  - test/test_helper.rb
@@ -125,7 +225,7 @@ homepage: https://github.com/schneems/rundoc
125
225
  licenses:
126
226
  - MIT
127
227
  metadata: {}
128
- post_install_message:
228
+ post_install_message:
129
229
  rdoc_options: []
130
230
  require_paths:
131
231
  - lib
@@ -140,22 +240,30 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
240
  - !ruby/object:Gem::Version
141
241
  version: '0'
142
242
  requirements: []
143
- rubyforge_project:
144
- rubygems_version: 2.6.11
145
- signing_key:
243
+ rubygems_version: 3.0.3
244
+ signing_key:
146
245
  specification_version: 4
147
- summary: runDOC generates runable code from docs
246
+ summary: RunDOC generates runable code from docs
148
247
  test_files:
248
+ - test/fixtures/build_logs/rundoc.md
249
+ - test/fixtures/depend_on/dependency/rundoc.md
250
+ - test/fixtures/depend_on/main/rundoc.md
251
+ - test/fixtures/java/rundoc.md
149
252
  - test/fixtures/play/source.md
150
253
  - test/fixtures/rails_4/rundoc.md
151
254
  - test/fixtures/rails_5/rundoc.md
152
- - test/fixtures/rails_5_beta/rundoc.md
255
+ - test/fixtures/rails_6/rundoc.md
256
+ - test/fixtures/require/dependency/rundoc.md
257
+ - test/fixtures/require/main/rundoc.md
258
+ - test/fixtures/screenshot/rundoc.md
153
259
  - test/rundoc/code_commands/append_file_test.rb
260
+ - test/rundoc/code_commands/background_test.rb
154
261
  - test/rundoc/code_commands/bash_test.rb
155
262
  - test/rundoc/code_commands/pipe_test.rb
156
263
  - test/rundoc/code_commands/remove_contents_test.rb
157
264
  - test/rundoc/code_section_test.rb
158
265
  - test/rundoc/parser_test.rb
266
+ - test/rundoc/peg_parser_test.rb
159
267
  - test/rundoc/regex_test.rb
160
268
  - test/rundoc/test_parse_java.rb
161
269
  - test/test_helper.rb