datastructures 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -3,15 +3,25 @@ datastructures
3
3
 
4
4
  A collection of data structures in Ruby, made for my [data structures challenge](http://blahah.net/2013/08/18/algorithm-challenge)
5
5
 
6
+ [![Gem Version](https://badge.fury.io/rb/datastructures.png)][gem]
7
+ [![Build Status](https://secure.travis-ci.org/Blahah/datastructures.png?branch=master)][travis]
8
+ [![Dependency Status](https://gemnasium.com/Blahah/datastructures.png?travis)][gemnasium]
9
+ [![Code Climate](https://codeclimate.com/github/Blahah/datastructures.png)][codeclimate]
10
+ [![Coverage Status](https://coveralls.io/repos/Blahah/datastructures/badge.png?branch=master)][coveralls]
11
+
12
+ [gem]: https://badge.fury.io/rb/datastructures
13
+ [travis]: https://travis-ci.org/Blahah/datastructures
14
+ [gemnasium]: https://gemnasium.com/Blahah/datastructures
15
+ [codeclimate]: https://codeclimate.com/github/Blahah/datastructures
16
+ [coveralls]: https://coveralls.io/repo/Blahah/datastructures
17
+
6
18
  ## Installation
7
19
 
8
- ```bash
9
- gem install datastructures
10
- ```
20
+ `gem install datastructures`
11
21
 
12
22
  ## Day 1: Queue
13
23
 
14
- ```
24
+ ```ruby
15
25
  require 'datastructure'
16
26
  queue = DataStructures::Queue.new
17
27
  queue.enqueue('first')
@@ -23,4 +33,4 @@ queue.back # => 'second'
23
33
  queue.dequeue # => 'first'
24
34
  queue.dequeue # => 'second'
25
35
  queue.dequeue # => RuntimeError, "Queue underflow: nothing to dequeue"
26
- ```
36
+ ```
@@ -4,7 +4,7 @@ module DataStructures
4
4
  module VERSION
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- PATCH = 0
7
+ PATCH = 1
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.');
@@ -1,3 +1,5 @@
1
1
  require 'test/unit'
2
2
  require 'datastructures'
3
+ require 'coveralls'
3
4
 
5
+ Coveralls.wear!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datastructures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,22 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: coveralls
16
32
  requirement: !ruby/object:Gem::Requirement