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.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/CHANGELOG.md +15 -0
- data/LICENSE +21 -0
- data/README.md +60 -4
- data/Rakefile +11 -0
- data/bench/mean.rb +27 -0
- data/bench/sum.rb +26 -0
- data/bench/variance.rb +30 -0
- data/enumerable-statistics.gemspec +1 -0
- data/ext/enumerable/statistics/extension/statistics.c +811 -46
- data/images/benchmark.png +0 -0
- data/lib/enumerable/statistics/version.rb +1 -1
- data/yard/templates/mathjax/class/dot/setup.rb +6 -0
- data/yard/templates/mathjax/class/dot/superklass.erb +3 -0
- data/yard/templates/mathjax/class/html/constructor_details.erb +8 -0
- data/yard/templates/mathjax/class/html/setup.rb +1 -0
- data/yard/templates/mathjax/class/html/subclasses.erb +4 -0
- data/yard/templates/mathjax/class/setup.rb +36 -0
- data/yard/templates/mathjax/class/text/setup.rb +11 -0
- data/yard/templates/mathjax/class/text/subclasses.erb +5 -0
- data/yard/templates/mathjax/constant/text/header.erb +11 -0
- data/yard/templates/mathjax/constant/text/setup.rb +3 -0
- data/yard/templates/mathjax/docstring/html/abstract.erb +4 -0
- data/yard/templates/mathjax/docstring/html/deprecated.erb +1 -0
- data/yard/templates/mathjax/docstring/html/index.erb +5 -0
- data/yard/templates/mathjax/docstring/html/note.erb +6 -0
- data/yard/templates/mathjax/docstring/html/private.erb +4 -0
- data/yard/templates/mathjax/docstring/html/returns_void.erb +1 -0
- data/yard/templates/mathjax/docstring/html/text.erb +1 -0
- data/yard/templates/mathjax/docstring/html/todo.erb +6 -0
- data/yard/templates/mathjax/docstring/setup.rb +51 -0
- data/yard/templates/mathjax/docstring/text/abstract.erb +2 -0
- data/yard/templates/mathjax/docstring/text/deprecated.erb +2 -0
- data/yard/templates/mathjax/docstring/text/index.erb +2 -0
- data/yard/templates/mathjax/docstring/text/note.erb +4 -0
- data/yard/templates/mathjax/docstring/text/private.erb +2 -0
- data/yard/templates/mathjax/docstring/text/returns_void.erb +1 -0
- data/yard/templates/mathjax/docstring/text/text.erb +1 -0
- data/yard/templates/mathjax/docstring/text/todo.erb +4 -0
- data/yard/templates/mathjax/fulldoc/html/css/common.css +1 -0
- data/yard/templates/mathjax/fulldoc/html/css/full_list.css +58 -0
- data/yard/templates/mathjax/fulldoc/html/css/style.css +481 -0
- data/yard/templates/mathjax/fulldoc/html/frames.erb +17 -0
- data/yard/templates/mathjax/fulldoc/html/full_list.erb +37 -0
- data/yard/templates/mathjax/fulldoc/html/full_list_class.erb +2 -0
- data/yard/templates/mathjax/fulldoc/html/full_list_file.erb +7 -0
- data/yard/templates/mathjax/fulldoc/html/full_list_method.erb +10 -0
- data/yard/templates/mathjax/fulldoc/html/js/app.js +243 -0
- data/yard/templates/mathjax/fulldoc/html/js/full_list.js +216 -0
- data/yard/templates/mathjax/fulldoc/html/js/jquery.js +4 -0
- data/yard/templates/mathjax/fulldoc/html/setup.rb +242 -0
- data/yard/templates/mathjax/layout/dot/header.erb +6 -0
- data/yard/templates/mathjax/layout/dot/setup.rb +14 -0
- data/yard/templates/mathjax/layout/html/breadcrumb.erb +11 -0
- data/yard/templates/mathjax/layout/html/files.erb +11 -0
- data/yard/templates/mathjax/layout/html/footer.erb +5 -0
- data/yard/templates/mathjax/layout/html/headers.erb +15 -0
- data/yard/templates/mathjax/layout/html/index.erb +2 -0
- data/yard/templates/mathjax/layout/html/layout.erb +38 -0
- data/yard/templates/mathjax/layout/html/listing.erb +4 -0
- data/yard/templates/mathjax/layout/html/objects.erb +32 -0
- data/yard/templates/mathjax/layout/html/script_setup.erb +4 -0
- data/yard/templates/mathjax/layout/html/search.erb +13 -0
- data/yard/templates/mathjax/layout/html/setup.rb +87 -0
- data/yard/templates/mathjax/method/html/header.erb +17 -0
- data/yard/templates/mathjax/method/setup.rb +3 -0
- data/yard/templates/mathjax/method/text/header.erb +1 -0
- data/yard/templates/mathjax/method_details/html/header.erb +3 -0
- data/yard/templates/mathjax/method_details/html/method_signature.erb +25 -0
- data/yard/templates/mathjax/method_details/html/source.erb +10 -0
- data/yard/templates/mathjax/method_details/setup.rb +10 -0
- data/yard/templates/mathjax/method_details/text/header.erb +10 -0
- data/yard/templates/mathjax/method_details/text/method_signature.erb +12 -0
- data/yard/templates/mathjax/method_details/text/setup.rb +10 -0
- data/yard/templates/mathjax/module/dot/child.erb +1 -0
- data/yard/templates/mathjax/module/dot/dependencies.erb +3 -0
- data/yard/templates/mathjax/module/dot/header.erb +6 -0
- data/yard/templates/mathjax/module/dot/info.erb +14 -0
- data/yard/templates/mathjax/module/dot/setup.rb +14 -0
- data/yard/templates/mathjax/module/html/attribute_details.erb +10 -0
- data/yard/templates/mathjax/module/html/attribute_summary.erb +8 -0
- data/yard/templates/mathjax/module/html/box_info.erb +43 -0
- data/yard/templates/mathjax/module/html/children.erb +8 -0
- data/yard/templates/mathjax/module/html/constant_summary.erb +11 -0
- data/yard/templates/mathjax/module/html/defines.erb +3 -0
- data/yard/templates/mathjax/module/html/header.erb +5 -0
- data/yard/templates/mathjax/module/html/inherited_attributes.erb +14 -0
- data/yard/templates/mathjax/module/html/inherited_constants.erb +8 -0
- data/yard/templates/mathjax/module/html/inherited_methods.erb +19 -0
- data/yard/templates/mathjax/module/html/item_summary.erb +40 -0
- data/yard/templates/mathjax/module/html/method_details_list.erb +9 -0
- data/yard/templates/mathjax/module/html/method_summary.erb +14 -0
- data/yard/templates/mathjax/module/html/methodmissing.erb +12 -0
- data/yard/templates/mathjax/module/html/pre_docstring.erb +1 -0
- data/yard/templates/mathjax/module/setup.rb +164 -0
- data/yard/templates/mathjax/module/text/children.erb +10 -0
- data/yard/templates/mathjax/module/text/class_meths_list.erb +8 -0
- data/yard/templates/mathjax/module/text/extends.erb +8 -0
- data/yard/templates/mathjax/module/text/header.erb +7 -0
- data/yard/templates/mathjax/module/text/includes.erb +8 -0
- data/yard/templates/mathjax/module/text/instance_meths_list.erb +8 -0
- data/yard/templates/mathjax/module/text/setup.rb +12 -0
- data/yard/templates/mathjax/onefile/html/files.erb +5 -0
- data/yard/templates/mathjax/onefile/html/headers.erb +6 -0
- data/yard/templates/mathjax/onefile/html/layout.erb +29 -0
- data/yard/templates/mathjax/onefile/html/readme.erb +3 -0
- data/yard/templates/mathjax/onefile/html/setup.rb +61 -0
- data/yard/templates/mathjax/root/dot/child.erb +3 -0
- data/yard/templates/mathjax/root/dot/setup.rb +5 -0
- data/yard/templates/mathjax/root/html/setup.rb +1 -0
- data/yard/templates/mathjax/tags/html/example.erb +11 -0
- data/yard/templates/mathjax/tags/html/index.erb +3 -0
- data/yard/templates/mathjax/tags/html/option.erb +24 -0
- data/yard/templates/mathjax/tags/html/overload.erb +14 -0
- data/yard/templates/mathjax/tags/html/see.erb +8 -0
- data/yard/templates/mathjax/tags/html/tag.erb +20 -0
- data/yard/templates/mathjax/tags/setup.rb +55 -0
- data/yard/templates/mathjax/tags/text/example.erb +12 -0
- data/yard/templates/mathjax/tags/text/index.erb +1 -0
- data/yard/templates/mathjax/tags/text/option.erb +20 -0
- data/yard/templates/mathjax/tags/text/overload.erb +19 -0
- data/yard/templates/mathjax/tags/text/see.erb +11 -0
- data/yard/templates/mathjax/tags/text/tag.erb +13 -0
- metadata +134 -2
@@ -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,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,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 @@
|
|
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,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
|
+
— 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
|
+
— <%= 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,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 %>—<% 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,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
|
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-
|
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: {}
|