bitclust-core 0.9.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitclust/rdcompiler.rb +1 -1
- data/lib/bitclust/version.rb +1 -1
- data/test/test_rdcompiler.rb +20 -20
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57ecbefe517245c38d624eba7c094b15dd74dd58
|
4
|
+
data.tar.gz: d14fb80a4c36eb4d31691e445cbae3b72c7640d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772d801368ebabf759e8ed938ad80f56ba26bfaa542bcd62a5bb7e4635b26032a6dd84b98c72f2fbe6d67e2baa559a838689c3f8155fe994a3b25a545cddc979
|
7
|
+
data.tar.gz: ef0bfae49465846e9e449ac3840148de2f630881048b768eaf345f42bf8f1d845b22d3e8ee8f9e7ef6f1181dd9e7210ea091ea3cc05a913013a488ecc2efa2a4
|
data/lib/bitclust/rdcompiler.rb
CHANGED
@@ -532,7 +532,7 @@ module BitClust
|
|
532
532
|
cname = cname.gsub('::', '/')
|
533
533
|
id = "method-#{tchar}-#{encodename_rdocurl(mname)}"
|
534
534
|
|
535
|
-
"
|
535
|
+
"https://docs.ruby-lang.org/en/#{version}/#{cname}.html##{id}"
|
536
536
|
end
|
537
537
|
|
538
538
|
def rdoc_link(method_id, version)
|
data/lib/bitclust/version.rb
CHANGED
data/test/test_rdcompiler.rb
CHANGED
@@ -187,7 +187,7 @@ bar
|
|
187
187
|
text
|
188
188
|
HERE
|
189
189
|
expected = <<'HERE'
|
190
|
-
<dt class="method-heading" id="dummy"><code>hoge</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
190
|
+
<dt class="method-heading" id="dummy"><code>hoge</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
191
191
|
<dd class="method-description">
|
192
192
|
<p>
|
193
193
|
foo
|
@@ -211,7 +211,7 @@ text
|
|
211
211
|
//}
|
212
212
|
HERE
|
213
213
|
expected = <<'HERE'
|
214
|
-
<dt class="method-heading" id="dummy"><code>self <=> </code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
214
|
+
<dt class="method-heading" id="dummy"><code>self <=> </code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
215
215
|
<dd class="method-description">
|
216
216
|
<p>
|
217
217
|
abs
|
@@ -232,7 +232,7 @@ HERE
|
|
232
232
|
dsc
|
233
233
|
HERE
|
234
234
|
expected = <<'HERE'
|
235
|
-
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
235
|
+
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
236
236
|
<dd class="method-description">
|
237
237
|
<dl>
|
238
238
|
<dt>word1</dt>
|
@@ -259,7 +259,7 @@ dsc
|
|
259
259
|
@see hoge
|
260
260
|
HERE
|
261
261
|
expected = <<'HERE'
|
262
|
-
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
262
|
+
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
263
263
|
<dd class="method-description">
|
264
264
|
<p>
|
265
265
|
dsc
|
@@ -296,7 +296,7 @@ HERE
|
|
296
296
|
dsc3
|
297
297
|
HERE
|
298
298
|
expected = <<'HERE'
|
299
|
-
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
299
|
+
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
300
300
|
<dd class="method-description">
|
301
301
|
<dl>
|
302
302
|
<dt class='method-param'>[PARAM] arg:</dt>
|
@@ -324,7 +324,7 @@ dsc3
|
|
324
324
|
//}
|
325
325
|
HERE
|
326
326
|
expected = <<'HERE'
|
327
|
-
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
327
|
+
<dt class="method-heading" id="dummy"><code>method</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
328
328
|
<dd class="method-description">
|
329
329
|
<dl>
|
330
330
|
<dt class='method-param'>[PARAM] arg:</dt>
|
@@ -350,7 +350,7 @@ bar
|
|
350
350
|
HERE
|
351
351
|
expected = <<'HERE'
|
352
352
|
<dl>
|
353
|
-
<dt class="method-heading" id="dummy"><code>hoge1</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
353
|
+
<dt class="method-heading" id="dummy"><code>hoge1</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
354
354
|
<dt class="method-heading"><code>hoge2</code></dt>
|
355
355
|
<dd class="method-description">
|
356
356
|
<p>
|
@@ -613,7 +613,7 @@ HERE
|
|
613
613
|
@see [[m:Array#*]], [[m:$,]]
|
614
614
|
HERE
|
615
615
|
expected = <<'HERE'
|
616
|
-
<dt class="method-heading" id="dummy"><code>join(sep = $,) -> String</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
616
|
+
<dt class="method-heading" id="dummy"><code>join(sep = $,) -> String</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
617
617
|
<dd class="method-description">
|
618
618
|
<p>
|
619
619
|
[SEE_ALSO] <a href="dummy/method/Array/i/=2a">Array#*</a>, <a href="dummy/method/Kernel/v/=2c">$,</a>
|
@@ -631,7 +631,7 @@ HERE
|
|
631
631
|
description
|
632
632
|
HERE
|
633
633
|
expected = <<'HERE'
|
634
|
-
<dt class="method-heading" id="dummy"><code>puts(str) -> String</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
634
|
+
<dt class="method-heading" id="dummy"><code>puts(str) -> String</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
635
635
|
<dd class="method-description">
|
636
636
|
<p class="todo">
|
637
637
|
[TODO]
|
@@ -652,7 +652,7 @@ HERE
|
|
652
652
|
description
|
653
653
|
HERE
|
654
654
|
expected = <<'HERE'
|
655
|
-
<dt class="method-heading" id="dummy"><code>puts(str) -> String</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="
|
655
|
+
<dt class="method-heading" id="dummy"><code>puts(str) -> String</code><span class="permalink">[<a href="dummy/method/String/i/index">permalink</a>][<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>]</span></dt>
|
656
656
|
<dd class="method-description">
|
657
657
|
<p class="todo">
|
658
658
|
[TODO] 1.9.2
|
@@ -700,47 +700,47 @@ HERE
|
|
700
700
|
data("String#index" => {
|
701
701
|
:method_id => "String/i.index._builtin",
|
702
702
|
:version => "2.0.0",
|
703
|
-
:expected => "
|
703
|
+
:expected => "https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index"
|
704
704
|
},
|
705
705
|
"String.new" => {
|
706
706
|
:method_id => "String/s.new._builtin",
|
707
707
|
:version => "2.0.0",
|
708
|
-
:expected => "
|
708
|
+
:expected => "https://docs.ruby-lang.org/en/2.0.0/String.html#method-c-new"
|
709
709
|
},
|
710
710
|
"String#<=>" => {
|
711
711
|
:method_id => "String/i.=3c=3d=3e._builtin",
|
712
712
|
:version => "2.0.0",
|
713
|
-
:expected => "
|
713
|
+
:expected => "https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-3C-3D-3E"
|
714
714
|
},
|
715
715
|
"String#empty?" => {
|
716
716
|
:method_id => "String/i.empty=3f._builtin",
|
717
717
|
:version => "2.0.0",
|
718
|
-
:expected => "
|
718
|
+
:expected => "https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-empty-3F"
|
719
719
|
},
|
720
720
|
"String#index v1.9.3" => {
|
721
721
|
:method_id => "String/i.index._builtin",
|
722
722
|
:version => "1.9.3",
|
723
|
-
:expected => "
|
723
|
+
:expected => "https://docs.ruby-lang.org/en/1.9.3/String.html#method-i-index"
|
724
724
|
},
|
725
725
|
"String#index v1.8.7" => {
|
726
726
|
:method_id => "String/i.index._builtin",
|
727
727
|
:version => "1.8.7",
|
728
|
-
:expected => "
|
728
|
+
:expected => "https://docs.ruby-lang.org/en/1.8.7/String.html#method-i-index"
|
729
729
|
},
|
730
730
|
"File::Stat#file?" => {
|
731
731
|
:method_id => "File=Stat/i.file=3f._builtin",
|
732
732
|
:version => "2.0.0",
|
733
|
-
:expected => "
|
733
|
+
:expected => "https://docs.ruby-lang.org/en/2.0.0/File/Stat.html#method-i-file-3F"
|
734
734
|
},
|
735
735
|
"Net::HTTP#get" => {
|
736
736
|
:method_id => "Net=HTTP/i.get.net.http",
|
737
737
|
:version => "2.0.0",
|
738
|
-
:expected => "
|
738
|
+
:expected => "https://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html#method-i-get"
|
739
739
|
},
|
740
740
|
"ARGF.class#binmode" => {
|
741
741
|
:method_id => "ARGF.class/i.binmode.argf._builtin",
|
742
742
|
:version => "2.0.0",
|
743
|
-
:expected => "
|
743
|
+
:expected => "https://docs.ruby-lang.org/en/2.0.0/ARGF.html#method-i-binmode"
|
744
744
|
})
|
745
745
|
def test_rdoc_url(data)
|
746
746
|
assert_equal(data[:expected], @c.rdoc_url(data[:method_id], data[:version]))
|
@@ -750,7 +750,7 @@ HERE
|
|
750
750
|
data("String#index" => {
|
751
751
|
:method_id => "String/i.index._builtin",
|
752
752
|
:version => "2.0.0",
|
753
|
-
:expected => %Q(<a href="
|
753
|
+
:expected => %Q(<a href="https://docs.ruby-lang.org/en/2.0.0/String.html#method-i-index">rdoc</a>)
|
754
754
|
})
|
755
755
|
def test_rdoc_link(data)
|
756
756
|
assert_equal(data[:expected], @c.rdoc_link(data[:method_id], data[:version]))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitclust-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/rurema
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -220,7 +220,7 @@ files:
|
|
220
220
|
- theme/lillia/rurema.png
|
221
221
|
- theme/lillia/style.css
|
222
222
|
- theme/lillia/test.css
|
223
|
-
homepage:
|
223
|
+
homepage: https://docs.ruby-lang.org/ja/
|
224
224
|
licenses: []
|
225
225
|
metadata: {}
|
226
226
|
post_install_message:
|