twitter 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,11 @@
1
+ 4.1.2
2
+ -----
3
+ * [Add abort_on_exception to threaded_map](https://github.com/sferik/twitter/commit/15c9a7c221f24226c1003b76b287d2b2ed9306cb)
4
+
1
5
  4.1.1
2
6
  -----
3
- * [Fix bug in `Twitter::Tweet#full_text`](https://github.com/sferik/twitter/commit/cc432b68c7487c7e946298a1ba07e6206b83086b)
4
- * [Add `Twitter::Tweet#favouriters`, `Twitter::User#favoriters_count`, and `Twitter::User#favouriters_count` aliases](https://github.com/sferik/twitter/commit/9e00a7459e9a276a978d2945b5e1cdaa9e02a46f)
7
+ * [Fix bug in `Twitter::Tweet#full_text`](https://github.com/sferik/twitter/commit/9646a5bed6d2d119b1cc1d5757113988de2516d6)
8
+ * [Add `Twitter::Tweet#favouriters`, `Twitter::User#favoriters_count`, and `Twitter::User#favouriters_count` aliases](https://github.com/sferik/twitter/commit/60fce1ea0cdf8239262ca46588b4fe766f07288e)
5
9
 
6
10
  4.1.0
7
11
  -----
@@ -1,11 +1,15 @@
1
1
  module Enumerable
2
2
 
3
3
  def threaded_map
4
+ initial_abort_on_exception = Thread.abort_on_exception
5
+ Thread.abort_on_exception ||= true
4
6
  threads = []
5
7
  each do |object|
6
- threads << Thread.new{yield object}
8
+ threads << Thread.new { yield object }
7
9
  end
8
- threads.map(&:value)
10
+ values = threads.map(&:value)
11
+ Thread.abort_on_exception = initial_abort_on_exception
12
+ values
9
13
  end
10
14
 
11
15
  end
@@ -2,7 +2,7 @@ module Twitter
2
2
  class Version
3
3
  MAJOR = 4 unless defined? Twitter::MAJOR
4
4
  MINOR = 1 unless defined? Twitter::MINOR
5
- PATCH = 1 unless defined? Twitter::PATCH
5
+ PATCH = 2 unless defined? Twitter::PATCH
6
6
  PRE = nil unless defined? Twitter::PRE
7
7
 
8
8
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-10-18 00:00:00.000000000 Z
15
+ date: 2012-10-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: faraday