twitter 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -2
- data/lib/twitter/core_ext/enumerable.rb +6 -2
- data/lib/twitter/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -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/
|
4
|
-
* [Add `Twitter::Tweet#favouriters`, `Twitter::User#favoriters_count`, and `Twitter::User#favouriters_count` aliases](https://github.com/sferik/twitter/commit/
|
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
|
data/lib/twitter/version.rb
CHANGED
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.
|
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-
|
15
|
+
date: 2012-10-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: faraday
|