LiterateRuby 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/lruby +21 -0
- metadata +4 -3
- data/bin/literate-ruby +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b08338d5e80fbb76ac865adee47d0806f117b5c0
|
4
|
+
data.tar.gz: b9b722beadec98f4ec61129b27f48ba1837136b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 483c41a6bfcb163c678a6f80f2c743b7b4bb7c51f0bdf22ad03c1a8d289a533ace263d8d0f164269093442c56f4b6f2dbbf21c545e6672a9fc1a3f3226adf042
|
7
|
+
data.tar.gz: a56c1ecd7fb721ce91f4d89155f323bd8240d36d144ad94a0614cbc4c51cfb40ad62b84e14510db44d9e018c12a130d82f2ddb2843c5c1c76acc0feb0a2920bb
|
data/bin/lruby
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'literate-ruby'
|
3
|
+
|
4
|
+
outputs = []
|
5
|
+
exit_status = 0
|
6
|
+
|
7
|
+
ARGV.each do |f|
|
8
|
+
if f[-4..-1] != '.lrb'
|
9
|
+
STDERR.puts "Error: #{f} is not a literate ruby file."
|
10
|
+
exit_status = 1
|
11
|
+
else
|
12
|
+
j = LiterateRuby::File.new(f)
|
13
|
+
outputs << j.parse
|
14
|
+
j.rewind
|
15
|
+
outputs << j.to_markdown
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
puts "Files created:"
|
20
|
+
outputs.each{|i| puts " x - #{i}"}
|
21
|
+
exit exit_status
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: LiterateRuby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Sadoff
|
@@ -13,14 +13,15 @@ dependencies: []
|
|
13
13
|
description: "This gem is hightly inspired by literate haskell. It currently will
|
14
14
|
support \n\"bird style\" which is described in full [here](https://wiki.haskell.org/Literate_programming#Bird_Style).\n"
|
15
15
|
email: snood1205@gmail.com
|
16
|
-
executables:
|
16
|
+
executables:
|
17
|
+
- lruby
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files:
|
19
20
|
- README.md
|
20
21
|
files:
|
21
22
|
- README.md
|
22
23
|
- Rakefile
|
23
|
-
- bin/
|
24
|
+
- bin/lruby
|
24
25
|
- lib/literate-ruby.rb
|
25
26
|
- lib/literate-ruby/file.rb
|
26
27
|
- test/test_file.rb
|
data/bin/literate-ruby
DELETED
File without changes
|