enumerable-statistics 0.1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +15 -0
  4. data/LICENSE +21 -0
  5. data/README.md +60 -4
  6. data/Rakefile +11 -0
  7. data/bench/mean.rb +27 -0
  8. data/bench/sum.rb +26 -0
  9. data/bench/variance.rb +30 -0
  10. data/enumerable-statistics.gemspec +1 -0
  11. data/ext/enumerable/statistics/extension/statistics.c +811 -46
  12. data/images/benchmark.png +0 -0
  13. data/lib/enumerable/statistics/version.rb +1 -1
  14. data/yard/templates/mathjax/class/dot/setup.rb +6 -0
  15. data/yard/templates/mathjax/class/dot/superklass.erb +3 -0
  16. data/yard/templates/mathjax/class/html/constructor_details.erb +8 -0
  17. data/yard/templates/mathjax/class/html/setup.rb +1 -0
  18. data/yard/templates/mathjax/class/html/subclasses.erb +4 -0
  19. data/yard/templates/mathjax/class/setup.rb +36 -0
  20. data/yard/templates/mathjax/class/text/setup.rb +11 -0
  21. data/yard/templates/mathjax/class/text/subclasses.erb +5 -0
  22. data/yard/templates/mathjax/constant/text/header.erb +11 -0
  23. data/yard/templates/mathjax/constant/text/setup.rb +3 -0
  24. data/yard/templates/mathjax/docstring/html/abstract.erb +4 -0
  25. data/yard/templates/mathjax/docstring/html/deprecated.erb +1 -0
  26. data/yard/templates/mathjax/docstring/html/index.erb +5 -0
  27. data/yard/templates/mathjax/docstring/html/note.erb +6 -0
  28. data/yard/templates/mathjax/docstring/html/private.erb +4 -0
  29. data/yard/templates/mathjax/docstring/html/returns_void.erb +1 -0
  30. data/yard/templates/mathjax/docstring/html/text.erb +1 -0
  31. data/yard/templates/mathjax/docstring/html/todo.erb +6 -0
  32. data/yard/templates/mathjax/docstring/setup.rb +51 -0
  33. data/yard/templates/mathjax/docstring/text/abstract.erb +2 -0
  34. data/yard/templates/mathjax/docstring/text/deprecated.erb +2 -0
  35. data/yard/templates/mathjax/docstring/text/index.erb +2 -0
  36. data/yard/templates/mathjax/docstring/text/note.erb +4 -0
  37. data/yard/templates/mathjax/docstring/text/private.erb +2 -0
  38. data/yard/templates/mathjax/docstring/text/returns_void.erb +1 -0
  39. data/yard/templates/mathjax/docstring/text/text.erb +1 -0
  40. data/yard/templates/mathjax/docstring/text/todo.erb +4 -0
  41. data/yard/templates/mathjax/fulldoc/html/css/common.css +1 -0
  42. data/yard/templates/mathjax/fulldoc/html/css/full_list.css +58 -0
  43. data/yard/templates/mathjax/fulldoc/html/css/style.css +481 -0
  44. data/yard/templates/mathjax/fulldoc/html/frames.erb +17 -0
  45. data/yard/templates/mathjax/fulldoc/html/full_list.erb +37 -0
  46. data/yard/templates/mathjax/fulldoc/html/full_list_class.erb +2 -0
  47. data/yard/templates/mathjax/fulldoc/html/full_list_file.erb +7 -0
  48. data/yard/templates/mathjax/fulldoc/html/full_list_method.erb +10 -0
  49. data/yard/templates/mathjax/fulldoc/html/js/app.js +243 -0
  50. data/yard/templates/mathjax/fulldoc/html/js/full_list.js +216 -0
  51. data/yard/templates/mathjax/fulldoc/html/js/jquery.js +4 -0
  52. data/yard/templates/mathjax/fulldoc/html/setup.rb +242 -0
  53. data/yard/templates/mathjax/layout/dot/header.erb +6 -0
  54. data/yard/templates/mathjax/layout/dot/setup.rb +14 -0
  55. data/yard/templates/mathjax/layout/html/breadcrumb.erb +11 -0
  56. data/yard/templates/mathjax/layout/html/files.erb +11 -0
  57. data/yard/templates/mathjax/layout/html/footer.erb +5 -0
  58. data/yard/templates/mathjax/layout/html/headers.erb +15 -0
  59. data/yard/templates/mathjax/layout/html/index.erb +2 -0
  60. data/yard/templates/mathjax/layout/html/layout.erb +38 -0
  61. data/yard/templates/mathjax/layout/html/listing.erb +4 -0
  62. data/yard/templates/mathjax/layout/html/objects.erb +32 -0
  63. data/yard/templates/mathjax/layout/html/script_setup.erb +4 -0
  64. data/yard/templates/mathjax/layout/html/search.erb +13 -0
  65. data/yard/templates/mathjax/layout/html/setup.rb +87 -0
  66. data/yard/templates/mathjax/method/html/header.erb +17 -0
  67. data/yard/templates/mathjax/method/setup.rb +3 -0
  68. data/yard/templates/mathjax/method/text/header.erb +1 -0
  69. data/yard/templates/mathjax/method_details/html/header.erb +3 -0
  70. data/yard/templates/mathjax/method_details/html/method_signature.erb +25 -0
  71. data/yard/templates/mathjax/method_details/html/source.erb +10 -0
  72. data/yard/templates/mathjax/method_details/setup.rb +10 -0
  73. data/yard/templates/mathjax/method_details/text/header.erb +10 -0
  74. data/yard/templates/mathjax/method_details/text/method_signature.erb +12 -0
  75. data/yard/templates/mathjax/method_details/text/setup.rb +10 -0
  76. data/yard/templates/mathjax/module/dot/child.erb +1 -0
  77. data/yard/templates/mathjax/module/dot/dependencies.erb +3 -0
  78. data/yard/templates/mathjax/module/dot/header.erb +6 -0
  79. data/yard/templates/mathjax/module/dot/info.erb +14 -0
  80. data/yard/templates/mathjax/module/dot/setup.rb +14 -0
  81. data/yard/templates/mathjax/module/html/attribute_details.erb +10 -0
  82. data/yard/templates/mathjax/module/html/attribute_summary.erb +8 -0
  83. data/yard/templates/mathjax/module/html/box_info.erb +43 -0
  84. data/yard/templates/mathjax/module/html/children.erb +8 -0
  85. data/yard/templates/mathjax/module/html/constant_summary.erb +11 -0
  86. data/yard/templates/mathjax/module/html/defines.erb +3 -0
  87. data/yard/templates/mathjax/module/html/header.erb +5 -0
  88. data/yard/templates/mathjax/module/html/inherited_attributes.erb +14 -0
  89. data/yard/templates/mathjax/module/html/inherited_constants.erb +8 -0
  90. data/yard/templates/mathjax/module/html/inherited_methods.erb +19 -0
  91. data/yard/templates/mathjax/module/html/item_summary.erb +40 -0
  92. data/yard/templates/mathjax/module/html/method_details_list.erb +9 -0
  93. data/yard/templates/mathjax/module/html/method_summary.erb +14 -0
  94. data/yard/templates/mathjax/module/html/methodmissing.erb +12 -0
  95. data/yard/templates/mathjax/module/html/pre_docstring.erb +1 -0
  96. data/yard/templates/mathjax/module/setup.rb +164 -0
  97. data/yard/templates/mathjax/module/text/children.erb +10 -0
  98. data/yard/templates/mathjax/module/text/class_meths_list.erb +8 -0
  99. data/yard/templates/mathjax/module/text/extends.erb +8 -0
  100. data/yard/templates/mathjax/module/text/header.erb +7 -0
  101. data/yard/templates/mathjax/module/text/includes.erb +8 -0
  102. data/yard/templates/mathjax/module/text/instance_meths_list.erb +8 -0
  103. data/yard/templates/mathjax/module/text/setup.rb +12 -0
  104. data/yard/templates/mathjax/onefile/html/files.erb +5 -0
  105. data/yard/templates/mathjax/onefile/html/headers.erb +6 -0
  106. data/yard/templates/mathjax/onefile/html/layout.erb +29 -0
  107. data/yard/templates/mathjax/onefile/html/readme.erb +3 -0
  108. data/yard/templates/mathjax/onefile/html/setup.rb +61 -0
  109. data/yard/templates/mathjax/root/dot/child.erb +3 -0
  110. data/yard/templates/mathjax/root/dot/setup.rb +5 -0
  111. data/yard/templates/mathjax/root/html/setup.rb +1 -0
  112. data/yard/templates/mathjax/tags/html/example.erb +11 -0
  113. data/yard/templates/mathjax/tags/html/index.erb +3 -0
  114. data/yard/templates/mathjax/tags/html/option.erb +24 -0
  115. data/yard/templates/mathjax/tags/html/overload.erb +14 -0
  116. data/yard/templates/mathjax/tags/html/see.erb +8 -0
  117. data/yard/templates/mathjax/tags/html/tag.erb +20 -0
  118. data/yard/templates/mathjax/tags/setup.rb +55 -0
  119. data/yard/templates/mathjax/tags/text/example.erb +12 -0
  120. data/yard/templates/mathjax/tags/text/index.erb +1 -0
  121. data/yard/templates/mathjax/tags/text/option.erb +20 -0
  122. data/yard/templates/mathjax/tags/text/overload.erb +19 -0
  123. data/yard/templates/mathjax/tags/text/see.erb +11 -0
  124. data/yard/templates/mathjax/tags/text/tag.erb +13 -0
  125. metadata +134 -2
@@ -0,0 +1,10 @@
1
+ Defined Under Namespace:
2
+ ------------------------
3
+
4
+ <% @inner.each do |name, list| %>
5
+ <% if list.size > 0 %>
6
+ <% text = list.map {|c| c.name }.join(", ") + " (#{name})" %>
7
+ <%= indent(wrap(text)) %>
8
+
9
+ <% end %>
10
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <% if class_meths.size > 0 %>
2
+ Class methods:
3
+ --------------
4
+
5
+ <%= indent wrap(class_meths.map {|o| o.name.to_s }.join(", "), 68) %>
6
+
7
+
8
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <% if object.mixins(:class).size > 0 %>
2
+ Extended by:
3
+ ------------
4
+
5
+ <%= indent wrap(object.mixins(:class).join(", "), 68) %>
6
+
7
+
8
+ <% end %>
@@ -0,0 +1,7 @@
1
+ <%= title_align_right format_object_title(object) %>
2
+
3
+ <%= yieldall %>
4
+
5
+ <%= hr %>
6
+
7
+
@@ -0,0 +1,8 @@
1
+ <% if object.mixins(:instance).size > 0 %>
2
+ Includes:
3
+ ---------
4
+
5
+ <%= indent wrap(object.mixins(:instance).join(", "), 68) %>
6
+
7
+
8
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <% if instance_meths.size > 0 %>
2
+ Instance methods:
3
+ -----------------
4
+
5
+ <%= indent wrap(instance_meths.map {|o| o.name.to_s }.join(", "), 68) %>
6
+
7
+
8
+ <% end %>
@@ -0,0 +1,12 @@
1
+ def init
2
+ sections :header, [T('docstring')], :children, :includes, :extends,
3
+ :class_meths_list, :instance_meths_list
4
+ end
5
+
6
+ def class_meths
7
+ @classmeths ||= method_listing.select {|o| o.scope == :class }
8
+ end
9
+
10
+ def instance_meths
11
+ @instmeths ||= method_listing.select {|o| o.scope == :instance }
12
+ end
@@ -0,0 +1,5 @@
1
+ <% @files.each do |file| %>
2
+ <% @file = file %>
3
+ <h2><%= file.title %></h2>
4
+ <%= diskfile %>
5
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <style type="text/css">
2
+ <%= @css_data %>
3
+ </style>
4
+ <script type="text/javascript" charset="utf-8">
5
+ <%= @js_data %>
6
+ </script>
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=<%= charset %>" />
6
+ <title><%= @title %></title>
7
+ <%= erb(:headers) %>
8
+ <script type="text/x-mathjax-config">
9
+ MathJax.Hub.Config({
10
+ tex2jax:{
11
+ inlineMath: [ ['$','$'], ["\\(","\\)"] ],
12
+ displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
13
+ }
14
+ });
15
+ </script>
16
+ <script type="text/javascript" async
17
+ src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
18
+ </script>
19
+ <meta http-equiv="X-UA-Compatible" CONTENT="IE=EmulateIE7" />
20
+ </head>
21
+ <body>
22
+ <div id="content">
23
+ <h1><%= @title %></h1>
24
+ <%= yieldall %>
25
+ </div>
26
+
27
+ <%= erb(:footer) %>
28
+ </body>
29
+ </html>
@@ -0,0 +1,3 @@
1
+ <div id="readme">
2
+ <%= htmlify(parse_top_comments_from_file) %>
3
+ </div>
@@ -0,0 +1,61 @@
1
+ include T('default/layout/html')
2
+ include YARD::Parser::Ruby::Legacy
3
+
4
+ def init
5
+ override_serializer
6
+ @object = YARD::Registry.root
7
+ @files.shift
8
+ @objects.delete(YARD::Registry.root)
9
+ @objects.unshift(YARD::Registry.root)
10
+ sections :layout, [:readme, :files, :all_objects]
11
+ end
12
+
13
+ def all_objects
14
+ @objects.map {|obj| obj.format(options) }.join("\n")
15
+ end
16
+
17
+ def layout
18
+ fulldoc = Object.new.extend(T('fulldoc'))
19
+ layout = Object.new.extend(T('layout'))
20
+ @css_data = layout.stylesheets.map {|sheet| read_asset(sheet) }.join("\n")
21
+ @js_data = layout.javascripts.map {|script| read_asset(script) }.join("")
22
+
23
+ erb(:layout)
24
+ end
25
+
26
+ def read_asset(file)
27
+ return unless file = T('fulldoc').find_file(file)
28
+ data = File.read(file)
29
+ superfile = self.class.find_nth_file('fulldoc', 2)
30
+ data.gsub!('{{{__super__}}}', superfile ? IO.read(superfile) : "")
31
+ data
32
+ end
33
+
34
+ private
35
+
36
+ def parse_top_comments_from_file
37
+ return unless @readme
38
+ return @readme.contents unless @readme.filename =~ /\.rb$/
39
+ data = ""
40
+ tokens = TokenList.new(@readme.contents)
41
+ tokens.each do |token|
42
+ break unless token.is_a?(RubyToken::TkCOMMENT) || token.is_a?(RubyToken::TkNL)
43
+ data << (token.text[/\A#\s{0,1}(.*)/, 1] || "\n")
44
+ end
45
+ YARD::Docstring.new(data)
46
+ end
47
+
48
+ def override_serializer
49
+ return if @serializer.nil?
50
+ class << @serializer
51
+ def serialize(object, data)
52
+ return unless object == 'index.html'
53
+ super
54
+ end
55
+
56
+ def serialized_path(object)
57
+ return object if object.is_a?(String)
58
+ return 'index.html'
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,3 @@
1
+ <% if inner = yieldall.gsub("\n", '') %>
2
+ Root [label="{<%= inner %>}" rank=sink];
3
+ <% end %>
@@ -0,0 +1,5 @@
1
+ include T('default/module/dot')
2
+
3
+ def format_path(object)
4
+ ""
5
+ end
@@ -0,0 +1 @@
1
+ include T('default/module/html')
@@ -0,0 +1,11 @@
1
+ <% if object.has_tag?(:example) %>
2
+ <div class="examples">
3
+ <p class="tag_title">Examples:</p>
4
+ <% object.tags(:example).each do |tag| %>
5
+ <% unless tag.name.empty? %>
6
+ <p class="example_title"><%= htmlify_line(tag.name) %></p>
7
+ <% end %>
8
+ <pre class="example code"><code><%= html_syntax_highlight(tag.text) %></code></pre>
9
+ <% end %>
10
+ </div>
11
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <div class="tags">
2
+ <%= yieldall %>
3
+ </div>
@@ -0,0 +1,24 @@
1
+ <% if object.has_tag?(:option) %>
2
+ <% object.parameters.each do |param, default| %>
3
+ <% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s.sub(/^\*+/, '') } %>
4
+ <% next if tags.empty? %>
5
+ <p class="tag_title">Options Hash (<tt><%= param %></tt>):</p>
6
+ <ul class="option">
7
+ <% for tag in tags %>
8
+ <li>
9
+ <span class="name"><%= tag.pair.name %></span>
10
+ <span class="type"><%= format_types(tag.pair.types || ['Object']) %></span>
11
+ <span class="default">
12
+ <% if tag.pair.defaults %>
13
+ &mdash; default:
14
+ <%= tag.pair.defaults.map {|t| "<tt>#{h t}</tt>" }.join(", ") %>
15
+ <% end %>
16
+ </span>
17
+ <% if tag.pair.text && tag.pair.text =~ /\S/ %>
18
+ &mdash; <%= htmlify_line(tag.pair.text) %>
19
+ <% end %>
20
+ </li>
21
+ <% end %>
22
+ </ul>
23
+ <% end %>
24
+ <% end %>
@@ -0,0 +1,14 @@
1
+ <% if object.tags(:overload).size == 1 %>
2
+ <%= yieldall :object => object.tag(:overload) %>
3
+ <% elsif object.has_tag?(:overload) && object.tags(:overload).any? {|o| !o.docstring.blank? } %>
4
+ <p class="tag_title">Overloads:</p>
5
+ <ul class="overload">
6
+ <% object.tags(:overload).each do |overload| %>
7
+ <% next if overload.docstring.blank? %>
8
+ <li class="overload_item">
9
+ <span class="signature"><%= signature(overload, false, false) %></span>
10
+ <%= yieldall :object => overload %>
11
+ </li>
12
+ <% end %>
13
+ </ul>
14
+ <% end %>
@@ -0,0 +1,8 @@
1
+ <% if object.has_tag?(:see) %>
2
+ <p class="tag_title">See Also:</p>
3
+ <ul class="see">
4
+ <% for tag in object.tags(:see) %>
5
+ <li><%= linkify(tag.name, tag.text) %></li>
6
+ <% end %>
7
+ </ul>
8
+ <% end %>
@@ -0,0 +1,20 @@
1
+ <p class="tag_title"><%= @label ? @label : YARD::Tags::Library.labels[@name] %>:</p>
2
+ <ul class="<%= @name %>">
3
+ <% object.tags(@name).each do |tag| %>
4
+ <li>
5
+ <% unless @no_names %>
6
+ <span class='name'><%= h tag.name %></span>
7
+ <% end %>
8
+ <% unless @no_types %>
9
+ <span class='type'><%= format_types(tag.types) %></span>
10
+ <% end %>
11
+ <% if @name == :param && (o=object.parameters.assoc(tag.name.to_s)) && o[1] %>
12
+ <em class="default">(defaults to: <tt><%= h o[1] %></tt>)</em>
13
+ <% end %>
14
+ <% if tag.text && !tag.text.empty? %>
15
+ <% unless (@no_types || tag.types.nil? || tag.types.empty?) && @no_names %>&mdash;<% end %>
16
+ <%= htmlify_line(tag.text) %>
17
+ <% end %>
18
+ </li>
19
+ <% end %>
20
+ </ul>
@@ -0,0 +1,55 @@
1
+ def init
2
+ tags = Tags::Library.visible_tags - [:abstract, :deprecated, :note, :todo]
3
+ create_tag_methods(tags - [:example, :option, :overload, :see])
4
+ sections :index, tags.map {|t| t.to_s.gsub('.', '_').to_sym }
5
+ sections.any(:overload).push(T('docstring'))
6
+ end
7
+
8
+ def return
9
+ if object.type == :method
10
+ return if object.constructor?
11
+ return if object.tags(:return).size == 1 && object.tag(:return).types == ['void']
12
+ end
13
+ tag(:return)
14
+ end
15
+
16
+ def param
17
+ tag(:param) if object.type == :method
18
+ end
19
+
20
+ private
21
+
22
+ def tag(name, opts = nil)
23
+ return unless object.has_tag?(name)
24
+ opts ||= options_for_tag(name)
25
+ @no_names = true if opts[:no_names]
26
+ @no_types = true if opts[:no_types]
27
+ @name = name
28
+ out = erb('tag')
29
+ @no_names, @no_types = nil, nil
30
+ out
31
+ end
32
+
33
+ def create_tag_methods(tags)
34
+ tags.each do |tag|
35
+ tag_meth = tag.to_s.gsub('.', '_')
36
+ next if respond_to?(tag_meth)
37
+ instance_eval(<<-eof, __FILE__, __LINE__ + 1)
38
+ def #{tag_meth}; tag(#{tag.inspect}) end
39
+ eof
40
+ end
41
+ end
42
+
43
+ def options_for_tag(tag)
44
+ opts = {:no_types => true, :no_names => true}
45
+ case Tags::Library.factory_method_for(tag)
46
+ when :with_types
47
+ opts[:no_types] = false
48
+ when :with_types_and_name
49
+ opts[:no_types] = false
50
+ opts[:no_names] = false
51
+ when :with_name
52
+ opts[:no_names] = false
53
+ end
54
+ opts
55
+ end
@@ -0,0 +1,12 @@
1
+ <% if object.has_tag?(:example) %>
2
+
3
+ Examples:
4
+ ---------
5
+
6
+ <% object.tags(:example).each_with_index do |tag, i| %>
7
+ <%= indent("# " + tag.name + "\n") if tag.name %>
8
+ <%= indent(format_source(tag.text)) + "\n" %>
9
+ <%= "\n" if i < object.tags(:example).size - 1 %>
10
+ <% end %>
11
+ <% end %>
12
+
@@ -0,0 +1 @@
1
+ <%= yieldall %>
@@ -0,0 +1,20 @@
1
+ <% if object.has_tag?(:option) %>
2
+ <% object.parameters.each do |param, default| %>
3
+ <% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s } %>
4
+ <% next if tags.empty? %>
5
+ Options Hash (<%= param %>):
6
+ --------------<%= hr(param.to_s.length) %>--
7
+
8
+ <% for tag in tags %>
9
+ <% text = "" %>
10
+ <% text += format_types(tag.pair.types || ['Object']) %>
11
+ <% text += " " + tag.pair.name.to_s %>
12
+ <% if tag.pair.defaults %>
13
+ <% text += " - default: " + tag.pair.defaults.join(", ") %>
14
+ <% end %>
15
+ <% text += " - " + tag.pair.text if tag.pair.text %>
16
+ <%= indent(wrap(text)) %>
17
+
18
+ <% end %>
19
+ <% end %>
20
+ <% end %>
@@ -0,0 +1,19 @@
1
+ <% if object.tags(:overload).size == 1 %>
2
+ <%= wrap(yieldall(:object => object.tag(:overload))) %>
3
+ <% elsif object.has_tag?(:overload) %>
4
+ Overloads:
5
+ ----------
6
+
7
+ <% object.tags(:overload).each do |overload| %>
8
+ <% if overload.tags.size > 0 %>
9
+ <%= hr %>
10
+
11
+ <%= indent signature(overload) %>
12
+
13
+ <%= hr %>
14
+
15
+ <%= indent(wrap(yieldall(:object => overload))) %>
16
+
17
+ <% end %>
18
+ <% end %>
19
+ <% end %>
@@ -0,0 +1,11 @@
1
+ <% if object.has_tag?(:see) %>
2
+ See Also:
3
+ ---------
4
+
5
+ <% for tag in object.tags(:see) %>
6
+ <% text = "- " + tag.name %>
7
+ <% text += " - " + tag.text if tag.text && !tag.text.empty? %>
8
+ <%= indent(wrap(text)) %>
9
+ <% end %>
10
+ <% end %>
11
+
@@ -0,0 +1,13 @@
1
+ <% title = @label ? @label : YARD::Tags::Library.labels[@name] %>
2
+ <%= title %>:
3
+ <%= hr(title.length) %>-
4
+
5
+ <% object.tags(@name).each do |tag| %>
6
+ <% text = "" %>
7
+ <% text += format_types(tag.types) + " " unless @no_types || tag.types.nil? %>
8
+ <% text += tag.name.to_s + " " unless @no_names %>
9
+ <% text += "- " unless @no_names && @no_types %>
10
+ <% text += tag.text if tag.text && !tag.text.empty? %>
11
+ <%= indent wrap(text) %>
12
+
13
+ <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enumerable-statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-01 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: benchmark-ips
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: This library provides statistics features for Enumerable
84
98
  email:
85
99
  - mrkn@mrkn.jp
@@ -91,17 +105,135 @@ files:
91
105
  - ".gitignore"
92
106
  - ".rspec"
93
107
  - ".travis.yml"
108
+ - ".yardopts"
109
+ - CHANGELOG.md
94
110
  - Gemfile
111
+ - LICENSE
95
112
  - README.md
96
113
  - Rakefile
114
+ - bench/mean.rb
115
+ - bench/sum.rb
116
+ - bench/variance.rb
97
117
  - bin/console
98
118
  - bin/rspec
99
119
  - bin/setup
100
120
  - enumerable-statistics.gemspec
101
121
  - ext/enumerable/statistics/extension/extconf.rb
102
122
  - ext/enumerable/statistics/extension/statistics.c
123
+ - images/benchmark.png
103
124
  - lib/enumerable/statistics.rb
104
125
  - lib/enumerable/statistics/version.rb
126
+ - yard/templates/mathjax/class/dot/setup.rb
127
+ - yard/templates/mathjax/class/dot/superklass.erb
128
+ - yard/templates/mathjax/class/html/constructor_details.erb
129
+ - yard/templates/mathjax/class/html/setup.rb
130
+ - yard/templates/mathjax/class/html/subclasses.erb
131
+ - yard/templates/mathjax/class/setup.rb
132
+ - yard/templates/mathjax/class/text/setup.rb
133
+ - yard/templates/mathjax/class/text/subclasses.erb
134
+ - yard/templates/mathjax/constant/text/header.erb
135
+ - yard/templates/mathjax/constant/text/setup.rb
136
+ - yard/templates/mathjax/docstring/html/abstract.erb
137
+ - yard/templates/mathjax/docstring/html/deprecated.erb
138
+ - yard/templates/mathjax/docstring/html/index.erb
139
+ - yard/templates/mathjax/docstring/html/note.erb
140
+ - yard/templates/mathjax/docstring/html/private.erb
141
+ - yard/templates/mathjax/docstring/html/returns_void.erb
142
+ - yard/templates/mathjax/docstring/html/text.erb
143
+ - yard/templates/mathjax/docstring/html/todo.erb
144
+ - yard/templates/mathjax/docstring/setup.rb
145
+ - yard/templates/mathjax/docstring/text/abstract.erb
146
+ - yard/templates/mathjax/docstring/text/deprecated.erb
147
+ - yard/templates/mathjax/docstring/text/index.erb
148
+ - yard/templates/mathjax/docstring/text/note.erb
149
+ - yard/templates/mathjax/docstring/text/private.erb
150
+ - yard/templates/mathjax/docstring/text/returns_void.erb
151
+ - yard/templates/mathjax/docstring/text/text.erb
152
+ - yard/templates/mathjax/docstring/text/todo.erb
153
+ - yard/templates/mathjax/fulldoc/html/css/common.css
154
+ - yard/templates/mathjax/fulldoc/html/css/full_list.css
155
+ - yard/templates/mathjax/fulldoc/html/css/style.css
156
+ - yard/templates/mathjax/fulldoc/html/frames.erb
157
+ - yard/templates/mathjax/fulldoc/html/full_list.erb
158
+ - yard/templates/mathjax/fulldoc/html/full_list_class.erb
159
+ - yard/templates/mathjax/fulldoc/html/full_list_file.erb
160
+ - yard/templates/mathjax/fulldoc/html/full_list_method.erb
161
+ - yard/templates/mathjax/fulldoc/html/js/app.js
162
+ - yard/templates/mathjax/fulldoc/html/js/full_list.js
163
+ - yard/templates/mathjax/fulldoc/html/js/jquery.js
164
+ - yard/templates/mathjax/fulldoc/html/setup.rb
165
+ - yard/templates/mathjax/layout/dot/header.erb
166
+ - yard/templates/mathjax/layout/dot/setup.rb
167
+ - yard/templates/mathjax/layout/html/breadcrumb.erb
168
+ - yard/templates/mathjax/layout/html/files.erb
169
+ - yard/templates/mathjax/layout/html/footer.erb
170
+ - yard/templates/mathjax/layout/html/headers.erb
171
+ - yard/templates/mathjax/layout/html/index.erb
172
+ - yard/templates/mathjax/layout/html/layout.erb
173
+ - yard/templates/mathjax/layout/html/listing.erb
174
+ - yard/templates/mathjax/layout/html/objects.erb
175
+ - yard/templates/mathjax/layout/html/script_setup.erb
176
+ - yard/templates/mathjax/layout/html/search.erb
177
+ - yard/templates/mathjax/layout/html/setup.rb
178
+ - yard/templates/mathjax/method/html/header.erb
179
+ - yard/templates/mathjax/method/setup.rb
180
+ - yard/templates/mathjax/method/text/header.erb
181
+ - yard/templates/mathjax/method_details/html/header.erb
182
+ - yard/templates/mathjax/method_details/html/method_signature.erb
183
+ - yard/templates/mathjax/method_details/html/source.erb
184
+ - yard/templates/mathjax/method_details/setup.rb
185
+ - yard/templates/mathjax/method_details/text/header.erb
186
+ - yard/templates/mathjax/method_details/text/method_signature.erb
187
+ - yard/templates/mathjax/method_details/text/setup.rb
188
+ - yard/templates/mathjax/module/dot/child.erb
189
+ - yard/templates/mathjax/module/dot/dependencies.erb
190
+ - yard/templates/mathjax/module/dot/header.erb
191
+ - yard/templates/mathjax/module/dot/info.erb
192
+ - yard/templates/mathjax/module/dot/setup.rb
193
+ - yard/templates/mathjax/module/html/attribute_details.erb
194
+ - yard/templates/mathjax/module/html/attribute_summary.erb
195
+ - yard/templates/mathjax/module/html/box_info.erb
196
+ - yard/templates/mathjax/module/html/children.erb
197
+ - yard/templates/mathjax/module/html/constant_summary.erb
198
+ - yard/templates/mathjax/module/html/defines.erb
199
+ - yard/templates/mathjax/module/html/header.erb
200
+ - yard/templates/mathjax/module/html/inherited_attributes.erb
201
+ - yard/templates/mathjax/module/html/inherited_constants.erb
202
+ - yard/templates/mathjax/module/html/inherited_methods.erb
203
+ - yard/templates/mathjax/module/html/item_summary.erb
204
+ - yard/templates/mathjax/module/html/method_details_list.erb
205
+ - yard/templates/mathjax/module/html/method_summary.erb
206
+ - yard/templates/mathjax/module/html/methodmissing.erb
207
+ - yard/templates/mathjax/module/html/pre_docstring.erb
208
+ - yard/templates/mathjax/module/setup.rb
209
+ - yard/templates/mathjax/module/text/children.erb
210
+ - yard/templates/mathjax/module/text/class_meths_list.erb
211
+ - yard/templates/mathjax/module/text/extends.erb
212
+ - yard/templates/mathjax/module/text/header.erb
213
+ - yard/templates/mathjax/module/text/includes.erb
214
+ - yard/templates/mathjax/module/text/instance_meths_list.erb
215
+ - yard/templates/mathjax/module/text/setup.rb
216
+ - yard/templates/mathjax/onefile/html/files.erb
217
+ - yard/templates/mathjax/onefile/html/headers.erb
218
+ - yard/templates/mathjax/onefile/html/layout.erb
219
+ - yard/templates/mathjax/onefile/html/readme.erb
220
+ - yard/templates/mathjax/onefile/html/setup.rb
221
+ - yard/templates/mathjax/root/dot/child.erb
222
+ - yard/templates/mathjax/root/dot/setup.rb
223
+ - yard/templates/mathjax/root/html/setup.rb
224
+ - yard/templates/mathjax/tags/html/example.erb
225
+ - yard/templates/mathjax/tags/html/index.erb
226
+ - yard/templates/mathjax/tags/html/option.erb
227
+ - yard/templates/mathjax/tags/html/overload.erb
228
+ - yard/templates/mathjax/tags/html/see.erb
229
+ - yard/templates/mathjax/tags/html/tag.erb
230
+ - yard/templates/mathjax/tags/setup.rb
231
+ - yard/templates/mathjax/tags/text/example.erb
232
+ - yard/templates/mathjax/tags/text/index.erb
233
+ - yard/templates/mathjax/tags/text/option.erb
234
+ - yard/templates/mathjax/tags/text/overload.erb
235
+ - yard/templates/mathjax/tags/text/see.erb
236
+ - yard/templates/mathjax/tags/text/tag.erb
105
237
  homepage: https://github.com/mrkn/enumerable-statistics
106
238
  licenses: []
107
239
  metadata: {}