kadane_san 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # KadaneSan
2
2
 
3
- TODO: Write a gem description
3
+ [![Build Status](https://travis-ci.org/tsmsogn/kadane_san.svg?branch=master)](https://travis-ci.org/tsmsogn/kadane_san)
4
+
5
+ Solving maximum subarray problem with Kadane's algorithm
4
6
 
5
7
  ## Installation
6
8
 
@@ -20,7 +22,11 @@ Or install it yourself as:
20
22
 
21
23
  ## Usage
22
24
 
23
- TODO: Write usage instructions here
25
+ KadaneSan::max_subarray [-5, -1, 6, 4, 9, -6, -7]
26
+ => 19
27
+
28
+ KadaneSan.max_subarray [-4, -2, -3, -1]
29
+ => -1
24
30
 
25
31
  ## Contributing
26
32
 
data/kadane_san.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["tsmsogn@gmail.com"]
11
11
  spec.summary = %q{Solving maximum subarray problem with Kadane's algorithm}
12
12
  spec.description = ""
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/tsmsogn/kadane_san"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -1,3 +1,3 @@
1
1
  module KadaneSan
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kadane_san
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -78,7 +78,7 @@ files:
78
78
  - lib/kadane_san/version.rb
79
79
  - spec/kadane_san_spec.rb
80
80
  - spec/spec_helper.rb
81
- homepage: ''
81
+ homepage: https://github.com/tsmsogn/kadane_san
82
82
  licenses:
83
83
  - MIT
84
84
  post_install_message: