taskbag 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6616c9985c2c790afcb154a3cbd4712c54486033
4
- data.tar.gz: 545ed492816ecc0247efec8950e66669e0d05174
3
+ metadata.gz: 0f21e0d5ed7ae4e6fed12ff2f68d4a80bccacd74
4
+ data.tar.gz: 683ba1b8deadb1587e7666e1fc5493b2185791be
5
5
  SHA512:
6
- metadata.gz: 458768e9b9c0c79797b690458a1cf82aacd8ebafcf6a55f3ed8c03479da40f84e7b597d0a063d513ee83b89f0ad049110eab2ce3bf74dbbce87d9f207f289831
7
- data.tar.gz: 5b2f71e994403c7bcc1046becdb7ca0d8c50e5fa59bde3a62a6d5cc07317384b6802105961b9670281c70de69ea71f84d5cec50f3a52066843fbfee141f2eab1
6
+ metadata.gz: bd2adb44d92b828dbf24882361579263326555eb23b8b0529dc102a25606998d1c1d3e422dcfd1228b8879f86f74fee4d576c8e00e2a1ec14aba17efae4ea914
7
+ data.tar.gz: 7a61b43162bafbcc727213337242367c42a4e2b3acd27cd4bae2c8fde413c15e00d6b362b9f2c4d5185a9882ffbf3814db089520437d4da9b21deea62f22f497
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
- bundler_args: --without development
3
2
  cache: bundler
4
3
  rvm:
5
4
  - "2.1.1"
@@ -7,3 +6,4 @@ rvm:
7
6
  - "1.9.3"
8
7
  - "1.9.2"
9
8
  script: bundle exec rspec
9
+
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # TaskBag
2
2
  [![Gem Version](https://badge.fury.io/rb/taskbag.png)](http://badge.fury.io/rb/taskbag)
3
+ [![Build Status](https://travis-ci.org/xjunior/taskbag.svg?branch=master)](https://travis-ci.org/xjunior/taskbag)
3
4
 
4
5
  A super simple implementation of the Bag-of-Tasks Paradigm [1].
5
6
 
@@ -27,6 +27,7 @@ module TaskBag
27
27
  def add(object)
28
28
  @jobs.push object
29
29
  end
30
+ alias :<< :add
30
31
 
31
32
  def closed?
32
33
  !!@closed
@@ -1,3 +1,3 @@
1
1
  module TaskBag
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
@@ -91,4 +91,10 @@ describe TaskBag::Bag do
91
91
  subject.next.should be 2
92
92
  subject.next.should be_nil
93
93
  end
94
+
95
+ it 'accepts << to add new jobs' do
96
+ subject << 1
97
+
98
+ subject.next.should be 1
99
+ end
94
100
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taskbag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-23 00:00:00.000000000 Z
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler