bitclust-core 0.9.5 → 0.9.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cc3a9cead692706d4769f8b73ca597465f0ac3e
4
- data.tar.gz: '0585fc204e24c9c589a70f439c337ba8690afc1e'
3
+ metadata.gz: 182720c18ba40a30b5a1cc7f4b0ed27077f22594
4
+ data.tar.gz: dc140809600cfdb08f95210013f78275c810fbdf
5
5
  SHA512:
6
- metadata.gz: 5c0e570e26f99c8184f2aece08cad507aab49e0f1f4f324062fa3e05d4cdbc5c460fbbcbc5413592fac0365ccf7eb5497031f5df28a71effaa6bf84998c0cf31
7
- data.tar.gz: f64b51da316330bf637e0c5372c6c0f45c485ab4281ba21ede5a82393197b0e4dce186d48a03f3bec442f70e97e099c4c0b7691a9c22743815b9a911323a5949
6
+ metadata.gz: 630b36a7e20bf61eca21e4cf4c179d60f989596830ccd8faa427ae84c8552bda6a782435a493195c614907ee6db06a46ed95ad87908d7b42bbec87b1d73b9664
7
+ data.tar.gz: b00aeb05e38c4eef6e02a1a1d33ce0aacd8867faa1c38d570022a675e3a89bbee9e0315d7be5758e4c3f8dc7eaa201425ae0034805fbce51ec59c3d624acbedb
@@ -1,6 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="ja-JP">
3
3
  <head>
4
+ <%= google_tag_manager %>
4
5
  <meta http-equiv="Content-Type" content="text/html; charset=<%=h charset() %>">
5
6
  <meta http-equiv="Content-Language" content="ja-JP">
6
7
  <link rel="stylesheet" type="text/css" href="<%=h css_url() %>">
@@ -1,6 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="ja-JP">
3
3
  <head>
4
+ <%= google_tag_manager %>
4
5
  <meta http-equiv="Content-Type" content="text/html; charset=<%=h charset() %>">
5
6
  <meta http-equiv="Content-Language" content="ja-JP">
6
7
  <link rel="stylesheet" type="text/css" href="<%=h css_url() %>">
@@ -1,6 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="ja-JP">
3
3
  <head>
4
+ <%= google_tag_manager %>
4
5
  <meta http-equiv="Content-Type" content="text/html; charset=<%=h charset() %>">
5
6
  <meta http-equiv="Content-Language" content="ja-JP">
6
7
  <link rel="stylesheet" type="text/css" href="<%=h css_url() %>">
@@ -528,6 +528,7 @@ module BitClust
528
528
  def rdoc_url(method_id, version)
529
529
  cname, tmark, mname, libname = methodid2specparts(method_id)
530
530
  tchar = typemark2char(tmark) == 'i' ? 'i' : 'c'
531
+ cname = cname.split(".").first
531
532
  cname = cname.gsub('::', '/')
532
533
  id = "method-#{tchar}-#{encodename_rdocurl(mname)}"
533
534
 
@@ -283,6 +283,22 @@ module BitClust
283
283
  @target_version || 'unknown'
284
284
  end
285
285
 
286
+ def google_tag_manager
287
+ tracking_id = @conf[:gtm_tracking_id]
288
+ return "" unless tracking_id
289
+ <<-HTML.chomp
290
+ <!-- Global Site Tag (gtag.js) - Google Analytics -->
291
+ <script async src="https://www.googletagmanager.com/gtag/js?id=#{tracking_id}"></script>
292
+ <script>
293
+ window.dataLayer = window.dataLayer || [];
294
+ function gtag(){dataLayer.push(arguments)};
295
+ gtag('js', new Date());
296
+
297
+ gtag('config', '#{tracking_id}');
298
+ </script>
299
+ HTML
300
+ end
301
+
286
302
  private
287
303
 
288
304
  def default_encoding
@@ -0,0 +1,9 @@
1
+
2
+ module BitClust
3
+ module Subcommands
4
+ class ReviewCommand < Subcommand
5
+ include NameUtils
6
+
7
+ end
8
+ end
9
+ end
@@ -98,6 +98,7 @@ module BitClust
98
98
  @templatedir = srcdir_root + "data/bitclust/template.offline"
99
99
  @themedir = srcdir_root + "theme/default"
100
100
  @suffix = ".html"
101
+ @gtm_tracking_id = nil
101
102
  @parser.banner = "Usage: #{File.basename($0, '.*')} statichtml [options]"
102
103
  @parser.on('-o', '--outputdir=PATH', 'Output directory') do |path|
103
104
  begin
@@ -125,6 +126,9 @@ module BitClust
125
126
  @parser.on('--canonical-base-url=URL', 'Canonical base URL') do |url|
126
127
  @canonical_base_url = url
127
128
  end
129
+ @parser.on('--tracking-id=ID', 'Google Tag Manager Tracking ID') do |id|
130
+ @gtm_tracking_id = id
131
+ end
128
132
  @parser.on('--[no-]quiet', 'Be quiet') do |quiet|
129
133
  @verbose = !quiet
130
134
  end
@@ -196,7 +200,8 @@ module BitClust
196
200
  :cgi_url => '',
197
201
  :tochm_mode => true,
198
202
  :fs_casesensitive => @fs_casesensitive,
199
- :canonical_base_url => @canonical_base_url
203
+ :canonical_base_url => @canonical_base_url,
204
+ :gtm_tracking_id => @gtm_tracking_id
200
205
  }
201
206
  @manager_config[:urlmapper] = URLMapperEx.new(@manager_config)
202
207
  @urlmapper = @manager_config[:urlmapper]
@@ -1,3 +1,3 @@
1
1
  module BitClust
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
@@ -736,6 +736,11 @@ HERE
736
736
  :method_id => "Net=HTTP/i.get.net.http",
737
737
  :version => "2.0.0",
738
738
  :expected => "http://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html#method-i-get"
739
+ },
740
+ "ARGF.class#binmode" => {
741
+ :method_id => "ARGF.class/i.binmode.argf._builtin",
742
+ :version => "2.0.0",
743
+ :expected => "http://docs.ruby-lang.org/en/2.0.0/ARGF.html#method-i-binmode"
739
744
  })
740
745
  def test_rdoc_url(data)
741
746
  assert_equal(data[:expected], @c.rdoc_url(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.9.5
4
+ version: 0.9.6
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-03-16 00:00:00.000000000 Z
11
+ date: 2017-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -191,6 +191,7 @@ files:
191
191
  - lib/bitclust/subcommands/preproc_command.rb
192
192
  - lib/bitclust/subcommands/property_command.rb
193
193
  - lib/bitclust/subcommands/query_command.rb
194
+ - lib/bitclust/subcommands/review_command.rb
194
195
  - lib/bitclust/subcommands/server_command.rb
195
196
  - lib/bitclust/subcommands/setup_command.rb
196
197
  - lib/bitclust/subcommands/statichtml_command.rb
@@ -238,23 +239,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
239
  version: '0'
239
240
  requirements: []
240
241
  rubyforge_project: ''
241
- rubygems_version: 2.6.8
242
+ rubygems_version: 2.6.11
242
243
  signing_key:
243
244
  specification_version: 4
244
245
  summary: BitClust is a rurema document processor.
245
246
  test_files:
246
- - test/test_preprocessor.rb
247
- - test/run_test.rb
248
- - test/test_entry.rb
249
- - test/test_methoddatabase.rb
250
- - test/test_functiondatabase.rb
247
+ - test/test_simplesearcher.rb
251
248
  - test/test_refsdatabase.rb
249
+ - test/test_runner.rb
250
+ - test/test_methoddatabase.rb
251
+ - test/test_nameutils.rb
252
+ - test/run_test.rb
253
+ - test/test_rrdparser.rb
252
254
  - test/test_bitclust.rb
253
- - test/test_functionreferenceparser.rb
254
255
  - test/test_methodsignature.rb
255
- - test/test_rrdparser.rb
256
- - test/test_simplesearcher.rb
257
- - test/test_nameutils.rb
256
+ - test/test_entry.rb
257
+ - test/test_functionreferenceparser.rb
258
258
  - test/test_rdcompiler.rb
259
- - test/test_runner.rb
259
+ - test/test_preprocessor.rb
260
+ - test/test_functiondatabase.rb
260
261
  - test/test_libraryentry.rb