twitter 5.5.0 → 5.5.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: baa0ce3302ef65ee7f6c6472b847ce5c71ce005a
4
- data.tar.gz: 8933bed1f45fd295836a0cd4b75873f41aee8189
3
+ metadata.gz: 9bfdd02a5944df78afbf1124d926c9091e45664b
4
+ data.tar.gz: 0d13ee7c160b20d5b6574e124695ee1ea11303d1
5
5
  SHA512:
6
- metadata.gz: b3a5cb3b3259de32cd96dd7e913b816b3c063230d64c375e53cb9e9b84cdd22856c75b575b98c2fd3d99dc22d438a634a3f38739b0992703a9d11750e84ee713
7
- data.tar.gz: cbf5b4fb759e16ae6c6146a2081e479533ea11a640270b153d86d25478e688e5b910410c06c19711436acf7151b340275777d077609776afe6902b33b43bdb98
6
+ metadata.gz: c17c71d6fa3c510d6891ddf7005bf0c3e035261a8b9b9d807e5c049b318cf1dfe0f2bb26e5a9a9857e3be988876eadce3fb3c5d848c972bfb2868e55423652f1
7
+ data.tar.gz: c94ba75414df2d149705bfc83a1e38372336505dd4caa4b38232797e90e72c000a0651a662ead16032a51d3c0fd1b56b72f02aeaf5cac246c48f6afe7469cbd7
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- y�;6���_��ætB��#���K%C-��@�5^B 'd0E���F����$��#P-��7)�9u�������X���35�� v
1
+ Sm� ��@8��_�5�d�Oi"��0�sD��D����l���b�(��)�H�$O�+To/{���,�R��Eܖ0PD��ZߜPn��6�7s�0[Wb:V
2
+ {��$�qL�*|o���X=��q��ہ�;�?)��X`�Y2"}� �[�4(�:���#��C��S�^�l��\&`:i���u�u��?��Q>�j��̧�>�i`#�}��s���v���h����W|�x�u�n`b�۟�%���sR���A�
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 5.5.1
2
+ -----
3
+ * [Fix bug where `Twitter::Error::AlreadyFavorited` would never be raised](https://github.com/sferik/twitter/issues/512) ([@polestarw](https://twitter.com/polestarw))
4
+ * [Fix bug where `Twitter::Error::AlreadyPosted` would never be raised](https://github.com/sferik/twitter/commit/e6b37b930c056a88d8ee1477246635caf579111d)
5
+ * [Restore `Twitter::Entities#entities?` as a public method](https://github.com/sferik/twitter/commit/234a9e3134eeee072bd511e1c1f1823ceb1531a2)
6
+
1
7
  5.5.0
2
8
  -----
3
9
  * [Add entities to `Twitter::DirectMessage`](https://github.com/sferik/twitter/commit/d911deb456cb2da6e14d0b3c69ba4d068ca85868)
@@ -9,6 +9,12 @@ module Twitter
9
9
  module Entities
10
10
  include Memoizable
11
11
 
12
+ # @return [Boolean]
13
+ def entities?
14
+ !@attrs[:entities].nil? && @attrs[:entities].any? { |_, array| !array.empty? }
15
+ end
16
+ memoize :entities?
17
+
12
18
  # @note Must include entities in your request for this method to work
13
19
  # @return [Array<Twitter::Entity::Hashtag>]
14
20
  def hashtags
@@ -47,12 +53,6 @@ module Twitter
47
53
 
48
54
  private
49
55
 
50
- # @return [Boolean]
51
- def entities?
52
- !@attrs[:entities].nil? && @attrs[:entities].any? { |_, array| !array.empty? }
53
- end
54
- memoize :entities?
55
-
56
56
  # @param klass [Class]
57
57
  # @param key [Symbol]
58
58
  def entities(klass, key)
@@ -4,7 +4,7 @@ module Twitter
4
4
  class Error
5
5
  # Raised when a Tweet has already been favorited
6
6
  class AlreadyFavorited < Twitter::Error::Forbidden
7
- MESSAGE = 'You have already favorited this status'
7
+ MESSAGE = 'You have already favorited this status.'
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Twitter
4
4
  class Error
5
5
  # Raised when a Tweet has already been posted
6
6
  class AlreadyPosted < Twitter::Error::Forbidden
7
- MESSAGE = 'Status is a duplicate'
7
+ MESSAGE = 'Status is a duplicate.'
8
8
  end
9
9
  end
10
10
  end
@@ -144,8 +144,8 @@ module Twitter
144
144
  end
145
145
 
146
146
  def handle_forbidden_error(klass, error)
147
- error = error.message == klass::MESSAGE ? klass.new : error
148
- fail error
147
+ error = klass.new(error) if error.message == klass::MESSAGE
148
+ fail(error)
149
149
  end
150
150
 
151
151
  def merge_default_cursor!(options)
@@ -2,7 +2,7 @@ module Twitter
2
2
  class Version
3
3
  MAJOR = 5
4
4
  MINOR = 5
5
- PATCH = 0
5
+ PATCH = 1
6
6
  PRE = nil
7
7
 
8
8
  class << self
@@ -1 +1 @@
1
- {"errors":[{"message":"You have already favorited this status","code":139}]}
1
+ {"errors":[{"message":"You have already favorited this status.","code":139}]}
@@ -1 +1 @@
1
- {"errors":"Status is a duplicate"}
1
+ {"errors":"Status is a duplicate."}
@@ -52,6 +52,30 @@ describe Twitter::DirectMessage do
52
52
  end
53
53
  end
54
54
 
55
+ describe '#entities?' do
56
+ it 'returns false if there are no entities set' do
57
+ tweet = Twitter::DirectMessage.new(:id => 1_825_786_345)
58
+ expect(tweet.entities?).to be false
59
+ end
60
+
61
+ it 'returns false if there are blank lists of entities set' do
62
+ tweet = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:urls => []})
63
+ expect(tweet.entities?).to be false
64
+ end
65
+ it 'returns true if there are entities set' do
66
+ urls_array = [
67
+ {
68
+ :url => 'http://example.com/t.co',
69
+ :expanded_url => 'http://example.com/expanded',
70
+ :display_url => 'example.com/expandedâ¦',
71
+ :indices => [10, 33],
72
+ }
73
+ ]
74
+ tweet = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:urls => urls_array})
75
+ expect(tweet.entities?).to be true
76
+ end
77
+ end
78
+
55
79
  describe '#recipient' do
56
80
  it 'returns a User when recipient is set' do
57
81
  direct_message = Twitter::DirectMessage.new(:id => 1_825_786_345, :recipient => {:id => 7_505_382})
@@ -104,34 +128,34 @@ describe Twitter::DirectMessage do
104
128
  :indices => [10, 33],
105
129
  }
106
130
  ]
107
- hashtags = Twitter::DirectMessage.new(:id => 28_669_546_014, :entities => {:hashtags => hashtags_array}).hashtags
131
+ hashtags = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:hashtags => hashtags_array}).hashtags
108
132
  expect(hashtags).to be_an Array
109
133
  expect(hashtags.first).to be_a Twitter::Entity::Hashtag
110
134
  expect(hashtags.first.indices).to eq([10, 33])
111
135
  expect(hashtags.first.text).to eq('twitter')
112
136
  end
113
137
  it 'is empty when not set' do
114
- hashtags = Twitter::DirectMessage.new(:id => 28_669_546_014).hashtags
138
+ hashtags = Twitter::DirectMessage.new(:id => 1_825_786_345).hashtags
115
139
  expect(hashtags).to be_empty
116
140
  end
117
141
  it 'warns when not set' do
118
- Twitter::DirectMessage.new(:id => 28_669_546_014).hashtags
142
+ Twitter::DirectMessage.new(:id => 1_825_786_345).hashtags
119
143
  expect($stderr.string).to match(/To get hashtags, you must pass `:include_entities => true` when requesting the Twitter::DirectMessage\./)
120
144
  end
121
145
  end
122
146
 
123
147
  describe '#media' do
124
148
  it 'returns media' do
125
- media = Twitter::DirectMessage.new(:id => 28_669_546_014, :entities => {:media => [{:id => 1, :type => 'photo'}]}).media
149
+ media = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:media => [{:id => 1, :type => 'photo'}]}).media
126
150
  expect(media).to be_an Array
127
151
  expect(media.first).to be_a Twitter::Media::Photo
128
152
  end
129
153
  it 'is empty when not set' do
130
- media = Twitter::DirectMessage.new(:id => 28_669_546_014).media
154
+ media = Twitter::DirectMessage.new(:id => 1_825_786_345).media
131
155
  expect(media).to be_empty
132
156
  end
133
157
  it 'warns when not set' do
134
- Twitter::DirectMessage.new(:id => 28_669_546_014).media
158
+ Twitter::DirectMessage.new(:id => 1_825_786_345).media
135
159
  expect($stderr.string).to match(/To get media, you must pass `:include_entities => true` when requesting the Twitter::DirectMessage\./)
136
160
  end
137
161
  end
@@ -142,7 +166,7 @@ describe Twitter::DirectMessage do
142
166
  {:text => 'PEP', :indices => [114, 118]},
143
167
  {:text => 'COKE', :indices => [128, 133]}
144
168
  ]
145
- symbols = Twitter::DirectMessage.new(:id => 28_669_546_014, :entities => {:symbols => symbols_array}).symbols
169
+ symbols = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:symbols => symbols_array}).symbols
146
170
  expect(symbols).to be_an Array
147
171
  expect(symbols.size).to eq(2)
148
172
  expect(symbols.first).to be_a Twitter::Entity::Symbol
@@ -150,11 +174,11 @@ describe Twitter::DirectMessage do
150
174
  expect(symbols.first.text).to eq('PEP')
151
175
  end
152
176
  it 'is empty when not set' do
153
- symbols = Twitter::DirectMessage.new(:id => 28_669_546_014).symbols
177
+ symbols = Twitter::DirectMessage.new(:id => 1_825_786_345).symbols
154
178
  expect(symbols).to be_empty
155
179
  end
156
180
  it 'warns when not set' do
157
- Twitter::DirectMessage.new(:id => 28_669_546_014).symbols
181
+ Twitter::DirectMessage.new(:id => 1_825_786_345).symbols
158
182
  expect($stderr.string).to match(/To get symbols, you must pass `:include_entities => true` when requesting the Twitter::DirectMessage\./)
159
183
  end
160
184
  end
@@ -169,7 +193,7 @@ describe Twitter::DirectMessage do
169
193
  :indices => [10, 33],
170
194
  }
171
195
  ]
172
- direct_message = Twitter::DirectMessage.new(:id => 28_669_546_014, :entities => {:urls => urls_array})
196
+ direct_message = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:urls => urls_array})
173
197
  expect(direct_message.uris).to be_an Array
174
198
  expect(direct_message.uris.first).to be_a Twitter::Entity::URI
175
199
  expect(direct_message.uris.first.indices).to eq([10, 33])
@@ -177,11 +201,11 @@ describe Twitter::DirectMessage do
177
201
  expect(direct_message.uris.first.display_uri).to eq('example.com/expanded…')
178
202
  end
179
203
  it 'is empty when not set' do
180
- direct_message = Twitter::DirectMessage.new(:id => 28_669_546_014)
204
+ direct_message = Twitter::DirectMessage.new(:id => 1_825_786_345)
181
205
  expect(direct_message.uris).to be_empty
182
206
  end
183
207
  it 'warns when not set' do
184
- Twitter::DirectMessage.new(:id => 28_669_546_014).urls
208
+ Twitter::DirectMessage.new(:id => 1_825_786_345).urls
185
209
  expect($stderr.string).to match(/To get urls, you must pass `:include_entities => true` when requesting the Twitter::DirectMessage\./)
186
210
  end
187
211
  it 'can handle strange urls' do
@@ -193,7 +217,7 @@ describe Twitter::DirectMessage do
193
217
  :indices => [10, 33],
194
218
  }
195
219
  ]
196
- direct_message = Twitter::DirectMessage.new(:id => 28_669_546_014, :entities => {:urls => urls_array})
220
+ direct_message = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:urls => urls_array})
197
221
  uri = direct_message.uris.first
198
222
  expect { uri.url }.not_to raise_error
199
223
  expect { uri.expanded_url }.not_to raise_error
@@ -212,18 +236,18 @@ describe Twitter::DirectMessage do
212
236
  :id => 7_505_382,
213
237
  }
214
238
  ]
215
- user_mentions = Twitter::DirectMessage.new(:id => 28_669_546_014, :entities => {:user_mentions => user_mentions_array}).user_mentions
239
+ user_mentions = Twitter::DirectMessage.new(:id => 1_825_786_345, :entities => {:user_mentions => user_mentions_array}).user_mentions
216
240
  expect(user_mentions).to be_an Array
217
241
  expect(user_mentions.first).to be_a Twitter::Entity::UserMention
218
242
  expect(user_mentions.first.indices).to eq([0, 6])
219
243
  expect(user_mentions.first.id).to eq(7_505_382)
220
244
  end
221
245
  it 'is empty when not set' do
222
- user_mentions = Twitter::DirectMessage.new(:id => 28_669_546_014).user_mentions
246
+ user_mentions = Twitter::DirectMessage.new(:id => 1_825_786_345).user_mentions
223
247
  expect(user_mentions).to be_empty
224
248
  end
225
249
  it 'warns when not set' do
226
- Twitter::DirectMessage.new(:id => 28_669_546_014).user_mentions
250
+ Twitter::DirectMessage.new(:id => 1_825_786_345).user_mentions
227
251
  expect($stderr.string).to match(/To get user mentions, you must pass `:include_entities => true` when requesting the Twitter::DirectMessage\./)
228
252
  end
229
253
  end
@@ -7,23 +7,23 @@ describe Twitter::Error do
7
7
  end
8
8
 
9
9
  describe '#message' do
10
- it 'returns the message of the wrapped exception' do
10
+ it 'returns the message of the cause' do
11
11
  error = Twitter::Error.new(Faraday::Error::ClientError.new('Oops'))
12
12
  expect(error.message).to eq('Oops')
13
13
  end
14
14
  end
15
15
 
16
16
  describe '#rate_limit' do
17
- it 'returns the wrapped exception' do
17
+ it 'returns the cause' do
18
18
  error = Twitter::Error.new(Faraday::Error::ClientError.new('Oops'))
19
19
  expect(error.rate_limit).to be_a Twitter::RateLimit
20
20
  end
21
21
  end
22
22
 
23
- describe '#wrapped_exception' do
24
- it 'returns the wrapped exception' do
23
+ describe '#cause' do
24
+ it 'returns the cause' do
25
25
  error = Twitter::Error.new(Faraday::Error::ClientError.new('Oops'))
26
- expect(error.wrapped_exception.class).to eq(Faraday::Error::ClientError)
26
+ expect(error.cause.class).to eq(Faraday::Error::ClientError)
27
27
  end
28
28
  end
29
29
 
@@ -52,6 +52,30 @@ describe Twitter::Tweet do
52
52
  end
53
53
  end
54
54
 
55
+ describe '#entities?' do
56
+ it 'returns false if there are no entities set' do
57
+ tweet = Twitter::Tweet.new(:id => 28_669_546_014)
58
+ expect(tweet.entities?).to be false
59
+ end
60
+
61
+ it 'returns false if there are blank lists of entities set' do
62
+ tweet = Twitter::Tweet.new(:id => 28_669_546_014, :entities => {:urls => []})
63
+ expect(tweet.entities?).to be false
64
+ end
65
+ it 'returns true if there are entities set' do
66
+ urls_array = [
67
+ {
68
+ :url => 'http://example.com/t.co',
69
+ :expanded_url => 'http://example.com/expanded',
70
+ :display_url => 'example.com/expandedâ¦',
71
+ :indices => [10, 33],
72
+ }
73
+ ]
74
+ tweet = Twitter::Tweet.new(:id => 28_669_546_014, :entities => {:urls => urls_array})
75
+ expect(tweet.entities?).to be true
76
+ end
77
+ end
78
+
55
79
  describe '#filter_level' do
56
80
  it 'returns the filter level when filter_level is set' do
57
81
  tweet = Twitter::Tweet.new(:id => 28_669_546_014, :filter_level => 'high')
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.5.0
4
+ version: 5.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Michaels-Ober
@@ -39,160 +39,160 @@ dependencies:
39
39
  name: addressable
40
40
  requirement: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - ~>
42
+ - - "~>"
43
43
  - !ruby/object:Gem::Version
44
44
  version: '2.3'
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - ~>
49
+ - - "~>"
50
50
  - !ruby/object:Gem::Version
51
51
  version: '2.3'
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: buftok
54
54
  requirement: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - ~>
56
+ - - "~>"
57
57
  - !ruby/object:Gem::Version
58
58
  version: 0.2.0
59
59
  type: :runtime
60
60
  prerelease: false
61
61
  version_requirements: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - ~>
63
+ - - "~>"
64
64
  - !ruby/object:Gem::Version
65
65
  version: 0.2.0
66
66
  - !ruby/object:Gem::Dependency
67
67
  name: descendants_tracker
68
68
  requirement: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ~>
70
+ - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.0.3
73
73
  type: :runtime
74
74
  prerelease: false
75
75
  version_requirements: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ~>
77
+ - - "~>"
78
78
  - !ruby/object:Gem::Version
79
79
  version: 0.0.3
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: equalizer
82
82
  requirement: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - ~>
84
+ - - "~>"
85
85
  - !ruby/object:Gem::Version
86
86
  version: 0.0.9
87
87
  type: :runtime
88
88
  prerelease: false
89
89
  version_requirements: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ~>
91
+ - - "~>"
92
92
  - !ruby/object:Gem::Version
93
93
  version: 0.0.9
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: faraday
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '>='
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0.8'
101
- - - <
101
+ - - "<"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.10'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.8'
111
- - - <
111
+ - - "<"
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0.10'
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: http
116
116
  requirement: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - ~>
118
+ - - "~>"
119
119
  - !ruby/object:Gem::Version
120
120
  version: 0.5.0
121
121
  type: :runtime
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - ~>
125
+ - - "~>"
126
126
  - !ruby/object:Gem::Version
127
127
  version: 0.5.0
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: http_parser.rb
130
130
  requirement: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - ~>
132
+ - - "~>"
133
133
  - !ruby/object:Gem::Version
134
134
  version: 0.6.0
135
135
  type: :runtime
136
136
  prerelease: false
137
137
  version_requirements: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - ~>
139
+ - - "~>"
140
140
  - !ruby/object:Gem::Version
141
141
  version: 0.6.0
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: json
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ~>
146
+ - - "~>"
147
147
  - !ruby/object:Gem::Version
148
148
  version: '1.8'
149
149
  type: :runtime
150
150
  prerelease: false
151
151
  version_requirements: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - ~>
153
+ - - "~>"
154
154
  - !ruby/object:Gem::Version
155
155
  version: '1.8'
156
156
  - !ruby/object:Gem::Dependency
157
157
  name: memoizable
158
158
  requirement: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - ~>
160
+ - - "~>"
161
161
  - !ruby/object:Gem::Version
162
162
  version: 0.4.0
163
163
  type: :runtime
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ~>
167
+ - - "~>"
168
168
  - !ruby/object:Gem::Version
169
169
  version: 0.4.0
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: simple_oauth
172
172
  requirement: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - ~>
174
+ - - "~>"
175
175
  - !ruby/object:Gem::Version
176
176
  version: 0.2.0
177
177
  type: :runtime
178
178
  prerelease: false
179
179
  version_requirements: !ruby/object:Gem::Requirement
180
180
  requirements:
181
- - - ~>
181
+ - - "~>"
182
182
  - !ruby/object:Gem::Version
183
183
  version: 0.2.0
184
184
  - !ruby/object:Gem::Dependency
185
185
  name: bundler
186
186
  requirement: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - ~>
188
+ - - "~>"
189
189
  - !ruby/object:Gem::Version
190
190
  version: '1.0'
191
191
  type: :development
192
192
  prerelease: false
193
193
  version_requirements: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - ~>
195
+ - - "~>"
196
196
  - !ruby/object:Gem::Version
197
197
  version: '1.0'
198
198
  description: A Ruby interface to the Twitter API.
@@ -202,13 +202,13 @@ executables: []
202
202
  extensions: []
203
203
  extra_rdoc_files: []
204
204
  files:
205
- - .yardopts
205
+ - ".yardopts"
206
206
  - CHANGELOG.md
207
207
  - CONTRIBUTING.md
208
208
  - LICENSE.md
209
209
  - README.md
210
210
  - Rakefile
211
- - twitter.gemspec
211
+ - lib/twitter.rb
212
212
  - lib/twitter/arguments.rb
213
213
  - lib/twitter/base.rb
214
214
  - lib/twitter/basic_user.rb
@@ -218,12 +218,13 @@ files:
218
218
  - lib/twitter/cursor.rb
219
219
  - lib/twitter/direct_message.rb
220
220
  - lib/twitter/entities.rb
221
+ - lib/twitter/entity.rb
221
222
  - lib/twitter/entity/hashtag.rb
222
223
  - lib/twitter/entity/symbol.rb
223
224
  - lib/twitter/entity/uri.rb
224
225
  - lib/twitter/entity/user_mention.rb
225
- - lib/twitter/entity.rb
226
226
  - lib/twitter/enumerable.rb
227
+ - lib/twitter/error.rb
227
228
  - lib/twitter/error/already_favorited.rb
228
229
  - lib/twitter/error/already_posted.rb
229
230
  - lib/twitter/error/already_retweeted.rb
@@ -239,11 +240,10 @@ files:
239
240
  - lib/twitter/error/too_many_requests.rb
240
241
  - lib/twitter/error/unauthorized.rb
241
242
  - lib/twitter/error/unprocessable_entity.rb
242
- - lib/twitter/error.rb
243
243
  - lib/twitter/factory.rb
244
+ - lib/twitter/geo.rb
244
245
  - lib/twitter/geo/point.rb
245
246
  - lib/twitter/geo/polygon.rb
246
- - lib/twitter/geo.rb
247
247
  - lib/twitter/geo_factory.rb
248
248
  - lib/twitter/geo_results.rb
249
249
  - lib/twitter/identity.rb
@@ -303,7 +303,6 @@ files:
303
303
  - lib/twitter/user.rb
304
304
  - lib/twitter/utils.rb
305
305
  - lib/twitter/version.rb
306
- - lib/twitter.rb
307
306
  - spec/fixtures/already_favorited.json
308
307
  - spec/fixtures/already_posted.json
309
308
  - spec/fixtures/already_retweeted.json
@@ -426,6 +425,7 @@ files:
426
425
  - spec/twitter/trend_spec.rb
427
426
  - spec/twitter/tweet_spec.rb
428
427
  - spec/twitter/user_spec.rb
428
+ - twitter.gemspec
429
429
  homepage: http://sferik.github.com/twitter/
430
430
  licenses:
431
431
  - MIT
@@ -436,17 +436,17 @@ require_paths:
436
436
  - lib
437
437
  required_ruby_version: !ruby/object:Gem::Requirement
438
438
  requirements:
439
- - - '>='
439
+ - - ">="
440
440
  - !ruby/object:Gem::Version
441
441
  version: '0'
442
442
  required_rubygems_version: !ruby/object:Gem::Requirement
443
443
  requirements:
444
- - - '>='
444
+ - - ">="
445
445
  - !ruby/object:Gem::Version
446
446
  version: 1.3.5
447
447
  requirements: []
448
448
  rubyforge_project:
449
- rubygems_version: 2.0.14
449
+ rubygems_version: 2.2.0
450
450
  signing_key:
451
451
  specification_version: 4
452
452
  summary: A Ruby interface to the Twitter API.
metadata.gz.sig CHANGED
@@ -1,5 +1 @@
1
- ,㣯�I-qUVB[���!C��=
2
- ��u
3
- ���[�#�t�gx�E�
4
- ��x�H����UI�ەݟN�D�M![oS~���>&�%)۸ d�,���%�_
5
- I�~�Y�����F�:�Z卿�Q�gz7�1a {}u���L�MuR���4g� ���۵!��/c�&��7�wK��&�h �|}��;�(Ɛ����}3غ���d����]�)���X��ށ��M�
1
+ \�y$�1�WW^��1 ��\[��F#Yœ�2�_3Q�u��:�.P��˒��k[��Ogg�S�@2��×�I���rsLb�f�����Tp)��Rt�� ��D5\/VSġ������Ȣi���XB>bԫ�y�}��8lS��� �vʶA�� =�� �;!k�p]�Ċ�(���(D�i����2r��ت��/���^�@�ߖbM�n�~.c������q�d쁿�f�t�L�/ٶE��