code_rippa 0.0.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +2 -2
- data/README.md +18 -1
- data/bin/code_rippa +15 -16
- data/code_rippa.gemspec +12 -10
- data/lib/code_rippa.rb +69 -51
- data/lib/code_rippa/syntax/actionscript.syntax +52 -52
- data/lib/code_rippa/syntax/active4d.syntax +226 -180
- data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
- data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
- data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
- data/lib/code_rippa/syntax/ada.syntax +19 -18
- data/lib/code_rippa/syntax/antlr.syntax +85 -85
- data/lib/code_rippa/syntax/apache.syntax +103 -109
- data/lib/code_rippa/syntax/applescript.syntax +244 -229
- data/lib/code_rippa/syntax/asp.syntax +41 -36
- data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
- data/lib/code_rippa/syntax/bibtex.syntax +88 -90
- data/lib/code_rippa/syntax/blog_html.syntax +17 -29
- data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
- data/lib/code_rippa/syntax/blog_text.syntax +15 -15
- data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
- data/lib/code_rippa/syntax/build.syntax +27 -27
- data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
- data/lib/code_rippa/syntax/c.syntax +31 -34
- data/lib/code_rippa/syntax/cake.syntax +27 -27
- data/lib/code_rippa/syntax/camlp4.syntax +23 -23
- data/lib/code_rippa/syntax/cm.syntax +19 -18
- data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
- data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
- data/lib/code_rippa/syntax/context_free.syntax +106 -106
- data/lib/code_rippa/syntax/cs.syntax +31 -34
- data/lib/code_rippa/syntax/css.syntax +112 -112
- data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
- data/lib/code_rippa/syntax/csv.syntax +40 -44
- data/lib/code_rippa/syntax/d.syntax +80 -84
- data/lib/code_rippa/syntax/diff.syntax +46 -45
- data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
- data/lib/code_rippa/syntax/dot.syntax +26 -26
- data/lib/code_rippa/syntax/doxygen.syntax +26 -26
- data/lib/code_rippa/syntax/dylan.syntax +35 -35
- data/lib/code_rippa/syntax/eiffel.syntax +39 -42
- data/lib/code_rippa/syntax/erlang.syntax +514 -511
- data/lib/code_rippa/syntax/f-script.syntax +44 -44
- data/lib/code_rippa/syntax/fortran.syntax +80 -76
- data/lib/code_rippa/syntax/fxscript.syntax +78 -77
- data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
- data/lib/code_rippa/syntax/gri.syntax +47 -47
- data/lib/code_rippa/syntax/groovy.syntax +105 -114
- data/lib/code_rippa/syntax/gtd.syntax +10 -10
- data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
- data/lib/code_rippa/syntax/haml.syntax +50 -50
- data/lib/code_rippa/syntax/haskell.syntax +47 -47
- data/lib/code_rippa/syntax/html-asp.syntax +15 -15
- data/lib/code_rippa/syntax/html_django.syntax +15 -14
- data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
- data/lib/code_rippa/syntax/html_mason.syntax +75 -74
- data/lib/code_rippa/syntax/html_rails.syntax +17 -27
- data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
- data/lib/code_rippa/syntax/icalendar.syntax +15 -15
- data/lib/code_rippa/syntax/inform.syntax +26 -26
- data/lib/code_rippa/syntax/ini.syntax +30 -30
- data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
- data/lib/code_rippa/syntax/io.syntax +49 -46
- data/lib/code_rippa/syntax/java.syntax +117 -126
- data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
- data/lib/code_rippa/syntax/javascript.syntax +141 -141
- data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
- data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
- data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
- data/lib/code_rippa/syntax/json.syntax +39 -39
- data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
- data/lib/code_rippa/syntax/lexflex.syntax +136 -136
- data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
- data/lib/code_rippa/syntax/lilypond.syntax +246 -337
- data/lib/code_rippa/syntax/lisp.syntax +32 -32
- data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
- data/lib/code_rippa/syntax/logo.syntax +13 -14
- data/lib/code_rippa/syntax/logtalk.syntax +81 -81
- data/lib/code_rippa/syntax/lua.syntax +50 -48
- data/lib/code_rippa/syntax/m.syntax +78 -78
- data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
- data/lib/code_rippa/syntax/makefile.syntax +19 -19
- data/lib/code_rippa/syntax/man.syntax +9 -9
- data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
- data/lib/code_rippa/syntax/mips.syntax +34 -34
- data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
- data/lib/code_rippa/syntax/modula-3.syntax +24 -24
- data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
- data/lib/code_rippa/syntax/mootools.syntax +283 -300
- data/lib/code_rippa/syntax/movable_type.syntax +91 -90
- data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
- data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
- data/lib/code_rippa/syntax/objective-c.syntax +134 -138
- data/lib/code_rippa/syntax/ocaml.syntax +455 -453
- data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
- data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
- data/lib/code_rippa/syntax/opengl.syntax +6 -6
- data/lib/code_rippa/syntax/pascal.syntax +43 -42
- data/lib/code_rippa/syntax/perl.syntax +612 -615
- data/lib/code_rippa/syntax/plain_text.syntax +17 -20
- data/lib/code_rippa/syntax/postscript.syntax +71 -69
- data/lib/code_rippa/syntax/processing.syntax +60 -60
- data/lib/code_rippa/syntax/prolog.syntax +17 -20
- data/lib/code_rippa/syntax/property_list.syntax +338 -359
- data/lib/code_rippa/syntax/python.syntax +487 -509
- data/lib/code_rippa/syntax/python_django.syntax +9 -10
- data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
- data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
- data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
- data/lib/code_rippa/syntax/r.syntax +42 -42
- data/lib/code_rippa/syntax/r_console.syntax +7 -8
- data/lib/code_rippa/syntax/ragel.syntax +109 -115
- data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
- data/lib/code_rippa/syntax/regexp.syntax +26 -26
- data/lib/code_rippa/syntax/release_notes.syntax +46 -26
- data/lib/code_rippa/syntax/remind.syntax +146 -146
- data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
- data/lib/code_rippa/syntax/rez.syntax +46 -45
- data/lib/code_rippa/syntax/ruby.syntax +533 -601
- data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
- data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
- data/lib/code_rippa/syntax/s5.syntax +35 -51
- data/lib/code_rippa/syntax/scheme.syntax +162 -260
- data/lib/code_rippa/syntax/scilab.syntax +18 -18
- data/lib/code_rippa/syntax/setext.syntax +82 -82
- data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
- data/lib/code_rippa/syntax/slate.syntax +91 -91
- data/lib/code_rippa/syntax/sql.syntax +137 -139
- data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
- data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
- data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
- data/lib/code_rippa/syntax/strings_file.syntax +20 -23
- data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
- data/lib/code_rippa/syntax/sweave.syntax +45 -45
- data/lib/code_rippa/syntax/swig.syntax +34 -33
- data/lib/code_rippa/syntax/tcl.syntax +87 -86
- data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
- data/lib/code_rippa/syntax/textile.syntax +111 -145
- data/lib/code_rippa/syntax/tsv.syntax +31 -33
- data/lib/code_rippa/syntax/twiki.syntax +141 -141
- data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
- data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
- data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
- data/lib/code_rippa/syntax/xml.syntax +95 -95
- data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
- data/lib/code_rippa/syntax/xsl.syntax +31 -31
- data/lib/code_rippa/syntax/yaml.syntax +86 -86
- data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
- data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
- data/lib/code_rippa/version.rb +2 -2
- data/test/fixtures/hello.rb +5 -3
- data/test/test_private_methods.rb +40 -40
- data/test/test_public_methods.rb +9 -18
- metadata +61 -63
data/lib/code_rippa/version.rb
CHANGED
data/test/fixtures/hello.rb
CHANGED
@@ -6,8 +6,10 @@ require 'ansi/progressbar'
|
|
6
6
|
require 'rainbow'
|
7
7
|
include ANSI
|
8
8
|
|
9
|
-
|
10
|
-
YAML::ENGINE.yamler = 'syck'
|
9
|
+
if defined? Syck
|
10
|
+
YAML::ENGINE.yamler = 'syck'
|
11
|
+
else
|
12
|
+
YAML::ENGINE.yamler = 'psych'
|
11
13
|
|
12
14
|
module CodeRippa
|
13
15
|
|
@@ -120,4 +122,4 @@ module CodeRippa
|
|
120
122
|
/([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/.match(f['listing']['begin'].split('\\')[2]).to_s
|
121
123
|
end
|
122
124
|
|
123
|
-
end
|
125
|
+
end
|
@@ -26,55 +26,55 @@ describe CodeRippa do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
|
29
|
-
describe ".rippable?" do
|
29
|
+
# describe ".rippable?" do
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
31
|
+
# it "should parse a file with an extension that is supported" do
|
32
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.rb", 'rubyblue')
|
33
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.c", 'rubyblue')
|
34
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.cpp", 'rubyblue')
|
35
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.m", 'rubyblue')
|
36
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.s", 'rubyblue')
|
37
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.txt", 'rubyblue')
|
38
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.haml", 'rubyblue')
|
39
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.json", 'rubyblue')
|
40
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.py", 'rubyblue')
|
41
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.sh", 'rubyblue')
|
42
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.groovy", 'rubyblue')
|
43
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.php", 'rubyblue')
|
44
|
+
# end
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
# it "should not parse a file with an extension that isn't supported" do
|
47
|
+
# assert_equal false, CodeRippa.rippable?("#{fixtures_path}/hello.vark", 'rubyblue')
|
48
|
+
# assert_equal false, CodeRippa.rippable?("#{fixtures_path}/hello.psd", 'rubyblue')
|
49
|
+
# assert_equal false, CodeRippa.rippable?("#{fixtures_path}/hello.ai", 'rubyblue')
|
50
|
+
# assert_equal false, CodeRippa.rippable?("#{fixtures_path}/hello.scala", 'rubyblue')
|
51
|
+
# end
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
# it "should not parse a directory" do
|
54
|
+
# assert_equal false, CodeRippa.rippable?("#{fixtures_path}/", 'rubyblue')
|
55
|
+
# end
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
57
|
+
# it "should not parse a file that has an excluded extension" do
|
58
|
+
# assert_equal false, CodeRippa.rippable?("#{fixtures_path}/hello.rb", 'rubyblue')
|
59
|
+
# assert_equal false, CodeRippa.rippable?("#{fixtures_path}/hello.c", 'rubyblue')
|
60
|
+
# assert_equal true, CodeRippa.rippable?("#{fixtures_path}/hello.cpp", 'rubyblue')
|
61
|
+
# end
|
62
62
|
|
63
|
-
end
|
63
|
+
# end
|
64
64
|
|
65
65
|
|
66
|
-
describe ".bookmarkable?" do
|
66
|
+
# describe ".bookmarkable?" do
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
# it "should bookmark a directory" do
|
69
|
+
# assert_equal true, CodeRippa.bookmarkable?("#{fixtures_path}/", 'rubyblue')
|
70
|
+
# end
|
71
71
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
72
|
+
# it "should not bookmark a file that has an excluded extension" do
|
73
|
+
# assert_equal false, CodeRippa.bookmarkable?("#{fixtures_path}/hello.rb", 'rubyblue', ['rb'])
|
74
|
+
# assert_equal false, CodeRippa.bookmarkable?("#{fixtures_path}/hello.c", 'rubyblue', ['c'])
|
75
|
+
# assert_equal true, CodeRippa.bookmarkable?("#{fixtures_path}/hello.cpp", 'rubyblue', ['rb'])
|
76
|
+
# end
|
77
77
|
|
78
|
-
end
|
78
|
+
# end
|
79
79
|
|
80
80
|
end
|
data/test/test_public_methods.rb
CHANGED
@@ -16,23 +16,14 @@ describe CodeRippa do
|
|
16
16
|
Dir.chdir("../..")
|
17
17
|
end
|
18
18
|
|
19
|
-
describe ".rip_file" do
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
describe ".rip_dir" do
|
30
|
-
it "should rip a directory that is supported" do
|
31
|
-
CodeRippa.rip_dir("ruby_proj/", "rubyblue", "ruby")
|
32
|
-
f1 = File.open("out.tex")
|
33
|
-
f2 = File.open("rip_dir.tex")
|
34
|
-
assert (f1.size - f2.size).abs < 300
|
35
|
-
end
|
36
|
-
end
|
19
|
+
# describe ".rip_file" do
|
20
|
+
# it "should rip a file that is supported" do
|
21
|
+
# puts File.expand_path(File.open("."))
|
22
|
+
# CodeRippa.rip_file(File.join("#{File.expand_path(File.open("."))}", "hello.rb"), "rubyblue", "ruby")
|
23
|
+
# f1 = File.open("out.tex")
|
24
|
+
# f2 = File.open("rip_file.tex")
|
25
|
+
# assert (f1.size - f2.size).abs < 300
|
26
|
+
# end
|
27
|
+
# end
|
37
28
|
|
38
29
|
end
|
metadata
CHANGED
@@ -1,156 +1,154 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_rippa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Benjamin Tan Wei Hao
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-02-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: psych
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
19
|
+
version: '2.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
26
|
+
version: '2.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: ansi
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: color
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
36
46
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
47
|
+
version: '1.5'
|
38
48
|
type: :runtime
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
|
-
- -
|
52
|
+
- - "~>"
|
44
53
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
54
|
+
version: '1.5'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: language_sniffer
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - "~>"
|
52
60
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
61
|
+
version: '1.0'
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - "~>"
|
60
67
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
68
|
+
version: '1.0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: ptools
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- - ~>
|
73
|
+
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.2
|
75
|
+
version: '1.2'
|
70
76
|
type: :runtime
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- - ~>
|
80
|
+
- - "~>"
|
76
81
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.2
|
82
|
+
version: '1.2'
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: rainbow
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- -
|
87
|
+
- - "~>"
|
84
88
|
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
89
|
+
version: '2.0'
|
86
90
|
type: :runtime
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- -
|
94
|
+
- - "~>"
|
92
95
|
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
96
|
+
version: '2.0'
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
98
|
name: spox-ultraviolet
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
|
-
- - ~>
|
101
|
+
- - "~>"
|
100
102
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.10
|
103
|
+
version: '0.10'
|
102
104
|
type: :runtime
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
|
-
- - ~>
|
108
|
+
- - "~>"
|
108
109
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.10
|
110
|
+
version: '0.10'
|
110
111
|
- !ruby/object:Gem::Dependency
|
111
112
|
name: rake
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '10.1'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
121
|
requirements:
|
123
|
-
- -
|
122
|
+
- - "~>"
|
124
123
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
124
|
+
version: '10.1'
|
126
125
|
- !ruby/object:Gem::Dependency
|
127
126
|
name: minitest
|
128
127
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
128
|
requirements:
|
131
|
-
- -
|
129
|
+
- - "~>"
|
132
130
|
- !ruby/object:Gem::Version
|
133
|
-
version: '
|
131
|
+
version: '5.2'
|
134
132
|
type: :development
|
135
133
|
prerelease: false
|
136
134
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
135
|
requirements:
|
139
|
-
- -
|
136
|
+
- - "~>"
|
140
137
|
- !ruby/object:Gem::Version
|
141
|
-
version: '
|
138
|
+
version: '5.2'
|
142
139
|
description: Converts source code into a (bookmarked, themed, and syntax highlighted!)
|
143
140
|
PDF.
|
144
141
|
email:
|
145
|
-
-
|
142
|
+
- benjamintanweihao@gmail.com
|
146
143
|
executables:
|
147
144
|
- code_rippa
|
148
145
|
extensions: []
|
149
146
|
extra_rdoc_files: []
|
150
147
|
files:
|
151
|
-
- .gitignore
|
152
|
-
- .travis.yml
|
148
|
+
- ".gitignore"
|
149
|
+
- ".travis.yml"
|
153
150
|
- Gemfile
|
151
|
+
- Gemfile.lock
|
154
152
|
- LICENSE
|
155
153
|
- README.md
|
156
154
|
- Rakefile
|
@@ -383,6 +381,7 @@ files:
|
|
383
381
|
- lib/code_rippa/syntax/xml_strict.syntax
|
384
382
|
- lib/code_rippa/syntax/xsl.syntax
|
385
383
|
- lib/code_rippa/syntax/yaml.syntax
|
384
|
+
- lib/code_rippa/syntax/yaml_converter.rb
|
386
385
|
- lib/code_rippa/syntax/yui_javascript.syntax
|
387
386
|
- lib/code_rippa/uv_overrides.rb
|
388
387
|
- lib/code_rippa/version.rb
|
@@ -398,7 +397,9 @@ files:
|
|
398
397
|
- test/test_private_methods.rb
|
399
398
|
- test/test_public_methods.rb
|
400
399
|
homepage: http://code-rippa.heroku.com
|
401
|
-
licenses:
|
400
|
+
licenses:
|
401
|
+
- MIT
|
402
|
+
metadata: {}
|
402
403
|
post_install_message:
|
403
404
|
rdoc_options: []
|
404
405
|
require_paths:
|
@@ -406,22 +407,20 @@ require_paths:
|
|
406
407
|
- lib/syntax
|
407
408
|
- lib/render
|
408
409
|
required_ruby_version: !ruby/object:Gem::Requirement
|
409
|
-
none: false
|
410
410
|
requirements:
|
411
|
-
- -
|
411
|
+
- - ">="
|
412
412
|
- !ruby/object:Gem::Version
|
413
413
|
version: 1.9.0
|
414
414
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
415
|
-
none: false
|
416
415
|
requirements:
|
417
|
-
- -
|
416
|
+
- - ">="
|
418
417
|
- !ruby/object:Gem::Version
|
419
418
|
version: '0'
|
420
419
|
requirements: []
|
421
420
|
rubyforge_project:
|
422
|
-
rubygems_version:
|
421
|
+
rubygems_version: 2.2.0
|
423
422
|
signing_key:
|
424
|
-
specification_version:
|
423
|
+
specification_version: 4
|
425
424
|
summary: CodeRippa takes your source code and turns it into a beautiful PDF file.
|
426
425
|
Currently, it supports 150 languages and 15 themes, all of which are available in
|
427
426
|
TextMate. More syntaxes and themes will be available soon.
|
@@ -437,4 +436,3 @@ test_files:
|
|
437
436
|
- test/fixtures/ruby_proj/folder_1/folder_2/5.rb
|
438
437
|
- test/test_private_methods.rb
|
439
438
|
- test/test_public_methods.rb
|
440
|
-
has_rdoc: false
|