twitter 5.1.0 → 5.1.1

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.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,7 @@
1
+ 5.1.1
2
+ -----
3
+ * [Custom equalizer for `Twitter::Place`](https://github.com/sferik/twitter/commit/79c76a9bed4f0170c8c09fe38ad4f0ee6aa4505e)
4
+
1
5
  5.1.0
2
6
  -----
3
7
  * [Use `Addressable::URI` everywhere](https://github.com/sferik/twitter/commit/97d7c68900c9974a1f6841f6eed2706df9030d64) ([@matthewrudy](https://twitter.com/matthewrudy))
@@ -3,7 +3,6 @@ require 'twitter/base'
3
3
 
4
4
  module Twitter
5
5
  class Place < Twitter::Base
6
- include Equalizer.new(:woeid)
7
6
  attr_reader :attributes, :country, :full_name, :name, :woeid
8
7
  alias woe_id woeid
9
8
  object_attr_reader :GeoFactory, :bounding_box
@@ -11,6 +10,19 @@ module Twitter
11
10
  alias contained? contained_within?
12
11
  uri_attr_reader :uri
13
12
 
13
+ # @param other [Twitter::Place]
14
+ # @return [Boolean]
15
+ def eql?(other)
16
+ super || instance_of?(other.class) && !woeid.nil? && other.respond_to?(:woeid) && woeid.eql?(other.woeid)
17
+ end
18
+
19
+ # @param other [Twitter::Place]
20
+ # @return [Boolean]
21
+ def ==(other)
22
+ other = coerce(other) if respond_to?(:coerce, true)
23
+ super || kind_of?(self.class) && !woeid.nil? && other.respond_to?(:woeid) && woeid == other.woeid
24
+ end
25
+
14
26
  # @return [String]
15
27
  def country_code
16
28
  @attrs[:country_code] || @attrs[:countryCode]
@@ -2,7 +2,7 @@ module Twitter
2
2
  class Version
3
3
  MAJOR = 5
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
  PRE = nil
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: 5.1.0
4
+ version: 5.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
metadata.gz.sig CHANGED
@@ -1,3 +1 @@
1
- �zR
2
- �)�D� &���� W����k�B)Y�II4��LD��E���3��j �i���^�g5����W�����<`�E�l={_L�,y�3dZR�xPg�b�)/�wR�#�ve�@�%L{�Z� �����>�Q�{)C�5��e�1T=�5����i =Æ�1qz�!|����;(/(Ĩ��GTl����G,@��OCcGo�Mal�&F��L�
3
- ������IN����D���pB�rx�4��L����wO�a�p
1
+ xQ�L%�w���FG�ZŸ���.J