rundoc 0.0.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +8 -0
  3. data/CHANGELOG.md +3 -0
  4. data/Gemfile +1 -0
  5. data/README.md +63 -15
  6. data/bin/rundoc +8 -0
  7. data/lib/rundoc.rb +14 -1
  8. data/lib/rundoc/code_command.rb +18 -4
  9. data/lib/rundoc/code_command/background.rb +9 -0
  10. data/lib/rundoc/code_command/background/log/clear.rb +17 -0
  11. data/lib/rundoc/code_command/background/log/read.rb +16 -0
  12. data/lib/rundoc/code_command/background/process_spawn.rb +70 -0
  13. data/lib/rundoc/code_command/background/start.rb +36 -0
  14. data/lib/rundoc/code_command/background/stop.rb +17 -0
  15. data/lib/rundoc/code_command/background/wait.rb +19 -0
  16. data/lib/rundoc/code_command/bash.rb +1 -1
  17. data/lib/rundoc/code_command/bash/cd.rb +1 -1
  18. data/lib/rundoc/code_command/file_command/append.rb +2 -0
  19. data/lib/rundoc/code_command/raw.rb +18 -0
  20. data/lib/rundoc/code_command/rundoc_command.rb +2 -1
  21. data/lib/rundoc/code_section.rb +21 -74
  22. data/lib/rundoc/peg_parser.rb +282 -0
  23. data/lib/rundoc/version.rb +1 -1
  24. data/rundoc.gemspec +2 -1
  25. data/test/fixtures/rails_5/rundoc.md +70 -74
  26. data/test/rundoc/code_commands/append_file_test.rb +2 -2
  27. data/test/rundoc/code_commands/background_test.rb +43 -0
  28. data/test/rundoc/code_commands/bash_test.rb +1 -1
  29. data/test/rundoc/code_commands/pipe_test.rb +1 -1
  30. data/test/rundoc/code_commands/remove_contents_test.rb +1 -1
  31. data/test/rundoc/code_section_test.rb +6 -5
  32. data/test/rundoc/parser_test.rb +2 -7
  33. data/test/rundoc/peg_parser_test.rb +348 -0
  34. data/test/rundoc/regex_test.rb +1 -1
  35. data/test/rundoc/test_parse_java.rb +1 -1
  36. data/test/test_helper.rb +1 -1
  37. metadata +33 -4
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.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-25 00:00:00.000000000 Z
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -38,6 +38,20 @@ 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'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +81,7 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: test-unit
84
+ name: minitest
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ">="
@@ -89,23 +103,34 @@ extensions: []
89
103
  extra_rdoc_files: []
90
104
  files:
91
105
  - ".gitignore"
106
+ - ".travis.yml"
107
+ - CHANGELOG.md
92
108
  - Gemfile
93
109
  - README.md
94
110
  - Rakefile
95
111
  - bin/rundoc
96
112
  - lib/rundoc.rb
97
113
  - lib/rundoc/code_command.rb
114
+ - lib/rundoc/code_command/background.rb
115
+ - lib/rundoc/code_command/background/log/clear.rb
116
+ - lib/rundoc/code_command/background/log/read.rb
117
+ - lib/rundoc/code_command/background/process_spawn.rb
118
+ - lib/rundoc/code_command/background/start.rb
119
+ - lib/rundoc/code_command/background/stop.rb
120
+ - lib/rundoc/code_command/background/wait.rb
98
121
  - lib/rundoc/code_command/bash.rb
99
122
  - lib/rundoc/code_command/bash/cd.rb
100
123
  - lib/rundoc/code_command/file_command/append.rb
101
124
  - lib/rundoc/code_command/file_command/remove.rb
102
125
  - lib/rundoc/code_command/no_such_command.rb
103
126
  - lib/rundoc/code_command/pipe.rb
127
+ - lib/rundoc/code_command/raw.rb
104
128
  - lib/rundoc/code_command/repl.rb
105
129
  - lib/rundoc/code_command/rundoc_command.rb
106
130
  - lib/rundoc/code_command/write.rb
107
131
  - lib/rundoc/code_section.rb
108
132
  - lib/rundoc/parser.rb
133
+ - lib/rundoc/peg_parser.rb
109
134
  - lib/rundoc/version.rb
110
135
  - rundoc.gemspec
111
136
  - test/fixtures/play/source.md
@@ -113,11 +138,13 @@ files:
113
138
  - test/fixtures/rails_5/rundoc.md
114
139
  - test/fixtures/rails_5_beta/rundoc.md
115
140
  - test/rundoc/code_commands/append_file_test.rb
141
+ - test/rundoc/code_commands/background_test.rb
116
142
  - test/rundoc/code_commands/bash_test.rb
117
143
  - test/rundoc/code_commands/pipe_test.rb
118
144
  - test/rundoc/code_commands/remove_contents_test.rb
119
145
  - test/rundoc/code_section_test.rb
120
146
  - test/rundoc/parser_test.rb
147
+ - test/rundoc/peg_parser_test.rb
121
148
  - test/rundoc/regex_test.rb
122
149
  - test/rundoc/test_parse_java.rb
123
150
  - test/test_helper.rb
@@ -141,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
168
  version: '0'
142
169
  requirements: []
143
170
  rubyforge_project:
144
- rubygems_version: 2.6.11
171
+ rubygems_version: 2.7.6
145
172
  signing_key:
146
173
  specification_version: 4
147
174
  summary: runDOC generates runable code from docs
@@ -151,11 +178,13 @@ test_files:
151
178
  - test/fixtures/rails_5/rundoc.md
152
179
  - test/fixtures/rails_5_beta/rundoc.md
153
180
  - test/rundoc/code_commands/append_file_test.rb
181
+ - test/rundoc/code_commands/background_test.rb
154
182
  - test/rundoc/code_commands/bash_test.rb
155
183
  - test/rundoc/code_commands/pipe_test.rb
156
184
  - test/rundoc/code_commands/remove_contents_test.rb
157
185
  - test/rundoc/code_section_test.rb
158
186
  - test/rundoc/parser_test.rb
187
+ - test/rundoc/peg_parser_test.rb
159
188
  - test/rundoc/regex_test.rb
160
189
  - test/rundoc/test_parse_java.rb
161
190
  - test/test_helper.rb