Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming Updates for v6 #631

Closed
wants to merge 122 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
3c0ad08
Replace Faraday with the HTTP gem
sferik Nov 6, 2014
72ec1eb
Revert "Redefining unary ! is not allowed in Ruby 1.8.7 :frown:"
sferik Nov 8, 2014
70dce9d
Drop support for Ruby 1.8.7
sferik Nov 8, 2014
8173ca5
Reconfigure RuboCop for Ruby 1.9.3 and greater
sferik Nov 8, 2014
c73b54a
Convert hash rockets to colons
sferik Nov 8, 2014
cc06e21
Always return a valid JSON response
sferik Nov 8, 2014
08b9406
Remove deprecated aliases
sferik Nov 8, 2014
d739006
Update links for new Twitter Developer site [ci skip]
sferik Nov 8, 2014
4f4d3cd
Remove version specific content [ci skip]
sferik Nov 8, 2014
34d8104
Add new error codes
sferik Nov 8, 2014
fa2dd77
Replace send with public_send
sferik Nov 8, 2014
7bc6f59
Use Memoizable for memoization
sferik Nov 9, 2014
3c0ab6b
Cleanup for version 6
sferik Nov 9, 2014
f66dbb2
use --retry and --jobs to bundle install faster
joshk Nov 10, 2014
c326a83
Merge pull request #629 from joshk/patch-1
sferik Nov 10, 2014
d12fcd5
Delete .jrubyrc
sferik Nov 10, 2014
1a273fe
Use compact style for case statements
sferik Nov 10, 2014
cd32e31
Add Twitter::NullObject#respond_to?
sferik Nov 10, 2014
42e00f0
Return all times in UTC
sferik Nov 10, 2014
e24d24e
Pass options from initial request to each subsequent request
sferik Nov 10, 2014
78938e4
Perform multipart requests with multipart-post
sferik Nov 10, 2014
11c1cf3
Refactor indentation in erd.rb [ci skip]
sferik Nov 14, 2014
58646fa
Convert bitmap to vector ERD [ci skip]
sferik Nov 14, 2014
71cb8e0
Use external SVG server with correct Content-Type [ci skip]
sferik Nov 15, 2014
71f03bf
Store ERD output format in a constant [ci skip]
sferik Nov 15, 2014
798f024
Improve spec coverage
sferik Nov 15, 2014
84436d8
Remove emtpy lines from beginning and end of blocks in spec
sferik Dec 11, 2014
dd6c122
in_reply_to_status rules clarification
fields Dec 28, 2014
d5679cf
Merge pull request #634 from fields/master
sferik Dec 28, 2014
0499db9
Test against Ruby 2.2.x
stve Jan 6, 2015
c6b792f
add support for Ruby 2.2.x [ci skip]
stve Jan 6, 2015
42ef8bc
update copyrights to 2015 [ci skip]
stve Jan 6, 2015
8446f28
Update http dependency to version ~> 0.7.1
sferik Jan 13, 2015
faab818
Update docs badge in README
rrrene Jan 13, 2015
4857b55
Merge pull request #645 from rrrene/patch-4
sferik Jan 13, 2015
df533ad
fix rubocop warnings
stve Jan 22, 2015
d769570
rename spec to match class name
stve Jan 22, 2015
bf6a90d
Fix encoding issue that was causing the build to break
sferik Jan 22, 2015
158193f
add support for video entities
stve Jan 28, 2015
3566739
Merge pull request #651 from sferik/videos
sferik Jan 28, 2015
1ac62c4
Update entity-relationship diagram for video entities
sferik Jan 28, 2015
309c28b
remove Twitter::REST::Users#update_profile_colors
stve Jan 28, 2015
9da7275
Merge pull request #652 from sferik/remove-update-profile-colors
sferik Jan 29, 2015
f7401ae
add documentation on additional oembed parameters [ci skip]
stve Feb 6, 2015
1fa610a
update documentation for Twitter::REST::Tweets#update
stve Feb 10, 2015
9210e27
Add new specs including backported media entities and new media entit…
nidev Feb 6, 2015
d7aa5cf
Add Twitter::Media::AnimatedGif media entity.
nidev Feb 6, 2015
26d5471
Make Twitter::Media::AnimatedGif inherit Twitter::Media::Video
nidev Feb 6, 2015
474f394
Rename animatedgif to animated_gif
sferik Feb 13, 2015
887a9aa
Update ERD to add Twitter::Media::AnimatedGif
sferik Feb 13, 2015
145b7fc
Prepare for version 5.14.0 release
sferik Feb 13, 2015
43ed6b7
fix rdoc on Twitter::Error.from_response [ci skip]
stve Feb 16, 2015
8cb76b8
Add method to access the version number as an array
sferik Feb 24, 2015
ac202c2
Add method to access the version number as a hash
sferik Feb 24, 2015
e13d7a9
Add specs for Twitter::Version
sferik Feb 24, 2015
2d4aca6
Convert Twitter::Version class to a module
sferik Feb 24, 2015
115e800
Perform multipart posts with http.rb
sferik Feb 26, 2015
33847d2
Replace form_data with updated http-form_data gem
sferik Feb 27, 2015
3095d03
Remove development gems that aren't compatible with JRuby
sferik Feb 27, 2015
428722d
Fix documentation bugs [ci skip]
sferik Feb 27, 2015
cceef61
Cache bundle
sferik Mar 1, 2015
2caff0b
Empty commit to verify https://github.com/travis-ci/travis-build/pull…
sferik Mar 2, 2015
ef71f50
NullObject#as_json returns ‘null’
Mar 26, 2015
0c20995
Merge pull request #673 from lukevmorris/fix/null_object_as_json
sferik Mar 27, 2015
66e04a3
as_json api requires an option argument.
Mar 30, 2015
6750ece
Merge pull request #674 from lukevmorris/fix/null_object_as_json
sferik Mar 30, 2015
14bc41b
Fixed update links
yoshyosh Apr 15, 2015
05ffb2e
Merge pull request #680 from yoshyosh/patch-1
sferik Apr 15, 2015
10c9deb
Replace regular expressions with string manipulations
sferik Apr 15, 2015
2da3ccf
Update http dependency to ~> 0.8.4
sferik Apr 23, 2015
44d2ec6
Do not use parallel assignment
sferik May 6, 2015
5c0b092
Temporarily raise maximum module length
sferik May 6, 2015
60ca58f
Enable collection method enforcement in RuboCop
sferik May 6, 2015
b7527ce
Update link to Pessimistic Version Constraint
mortonfox May 8, 2015
943e4b8
Merge pull request #688 from mortonfox/patch-1
sferik May 8, 2015
d18ea1b
add proxy support to REST and Streaming clients
stve Feb 24, 2015
b299925
Merge pull request #663 from sferik/proxy-support
sferik May 12, 2015
e492a71
Add methods to get to parameters of quoted tweet.
couhie Jun 1, 2015
0552d36
Merge pull request #694 from couhie/master
sferik Jun 5, 2015
db536b7
Lower Yardstick threshold slightly to fix the build
sferik Jun 5, 2015
b1a9fe8
Document 140 character limitation removal for Direct Messages [ci skip]
stve Jun 19, 2015
058bd82
Merge pull request #700 from sferik/direct-messages
stve Jun 19, 2015
2667354
Fixed typo in site stream documentation
andrew Jun 30, 2015
a35bf7c
Merge pull request #707 from andrew/patch-1
stve Jun 30, 2015
3fc61e1
Remove unnecessary disabling of RuboCop
sferik Jul 19, 2015
e840e5f
add the ability for streaming clients to disconnect
stve Nov 26, 2014
61c15f0
more comprehensive tests for connection closing
stve Dec 23, 2014
a3e470f
add support for streaming disconnect messages
stve Jan 22, 2015
446eddc
add support for scrub_geo messages
stve Jan 22, 2015
b7b1a7e
add support for limit messages
stve Jan 22, 2015
f40b027
add support for status_withheld messages
stve Jan 22, 2015
0ebd2d4
add support for user_withheld messages
stve Jan 22, 2015
0955756
only return StallWarning when valid
stve Jan 22, 2015
96d2f8f
alphabetize message parser handling
stve Jan 22, 2015
bdc5e04
add support for Too Many Follows warning
stve Jan 22, 2015
a6e0b09
fix rubocop warnings in MessageParser and spec
stve Jan 22, 2015
e85d32d
add support for Site stream message envelopes
stve Jan 23, 2015
82ecb44
add support for site stream control messages
stve Jan 25, 2015
852ddae
add support for adding users to a site stream
stve Jan 25, 2015
8a0f8c1
add support for removing users from a site stream
stve Jan 25, 2015
c0da4b8
add support for obtaining site stream info
stve Jan 25, 2015
6ae5f6c
add support for site stream friend_ids
stve Jan 26, 2015
cf17dc9
add note about site stream authentication context
stve Jan 26, 2015
40c8efb
add support for retweeted_tweet event
stve Jan 29, 2015
ea783ba
add support for events without a target_object
stve Jan 29, 2015
e958869
small refactor in streaming connection state transitions
stve Jan 29, 2015
18e9cf0
move oauth credential has generation to Twitter::Headers
stve Jan 31, 2015
1fcf108
change credentials hash to match oauth attribute names
stve Jan 31, 2015
1b07b4c
allow the streaming message parser to be instantiated
stve Jan 31, 2015
161731a
update streaming client to use a message parser instance
stve Jan 31, 2015
d157754
expose the message parser so that it can be overridden
stve Jan 31, 2015
2fdb1d1
allow the message parser to be passed on instantiation
stve Jan 31, 2015
7bcf60f
use the JSON gem on 1.9.3
stve Jan 31, 2015
5da7873
move the BASE_URL constant from the Request to the Client
stve Feb 2, 2015
24058a4
fix direct message handling in streaming client, fixes #637
stve Feb 3, 2015
02ec9d7
additional tests and changes to support cursors in site stream friends
stve Feb 4, 2015
d9968e8
only generate a bearer token header when the client supports it
stve Feb 18, 2015
3a76d9e
Increase coverage threshold to 100%
sferik Mar 3, 2015
81abc2a
determine port from uri scheme, closes #709
stve Jul 24, 2015
5768bbb
update http dependency to 0.9
stve Jul 24, 2015
7fb4ad4
remove duplicate method definition in streaming client
stve Jul 24, 2015
1930a3a
address rubocop warnings
stve Jul 24, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .jrubyrc

This file was deleted.

28 changes: 6 additions & 22 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Metrics/AbcSize:
Enabled: false

Metrics/BlockNesting:
Max: 2

Expand All @@ -10,7 +7,10 @@ Metrics/LineLength:

Metrics/MethodLength:
CountComments: false
Max: 15
Max: 10

Metrics/ModuleLength:
Max: 150 # TODO: Lower to 100

Metrics/ParameterLists:
Max: 4
Expand All @@ -20,36 +20,20 @@ Style/AccessModifierIndentation:
EnforcedStyle: outdent

Style/CollectionMethods:
Enabled: true
PreferredMethods:
map: 'collect'
map!: 'collect!'
reduce: 'inject'
find: 'detect'
find_all: 'select'

Style/Documentation:
Enabled: false

Style/DotPosition:
EnforcedStyle: trailing

Style/DoubleNegation:
Enabled: false

Style/EachWithObject:
Enabled: false

Style/Encoding:
Enabled: false

Style/HashSyntax:
EnforcedStyle: hash_rockets

Style/Lambda:
Enabled: false

Style/RaiseArgs:
EnforcedStyle: compact

Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Expand Down
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
bundler_args: --without development
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
cache: bundler

language: ruby

rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1
- jruby-18mode
- 2.2
- jruby-19mode
- jruby-head
- rbx-2
- ruby-head

sudo: false

bundler_args: --without development --retry=3 --jobs=3

env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"

matrix:
allow_failures:
- rvm: jruby-head
- rvm: rbx-2
- rvm: ruby-head
fast_finish: true
sudo: false
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
5.14.0
------
* [Add `Twitter::NullObject#respond_to?`](https://github.com/sferik/twitter/commit/438e311d93f382960650e20898203c880ade6b25)
* [Add `Twitter::Media::Video`, `Twitter::Media::VideoInfo`, and `Twitter::Media::Variant`](https://github.com/sferik/twitter/commit/158193f85843ebac7b3188bbad26d73907577f6a)
* [Add `Twitter::Media::AnimatedGif` media entity](https://github.com/sferik/twitter/commit/76cb6645a54969edc7c9195e9e27e3728f5fd683) ([@nidev](https://twitter.com/nidev))

5.13.0
------
* [Deprecate `Twitter::REST::Client#get` and `Twitter::REST::Client#post`](https://github.com/sferik/twitter/commit/65773c7d741098490f4164fae9e4433365cd4292)
Expand Down
14 changes: 4 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
source 'https://rubygems.org'

gem 'jruby-openssl', :platforms => :jruby
gem 'jruby-openssl', platforms: :jruby
gem 'json', platforms: :mri_19
gem 'rake'
gem 'yard'

group :development do
gem 'pry'
platforms :ruby_19, :ruby_20, :ruby_21 do
gem 'pry-stack_explorer'
gem 'redcarpet'
end
end

group :test do
gem 'backports'
gem 'coveralls'
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
gem 'rspec', '>= 2.14'
gem 'rubocop', '>= 0.27', :platforms => [:ruby_19, :ruby_20, :ruby_21]
gem 'rubocop', '>= 0.27'
gem 'simplecov', '>= 0.9'
gem 'timecop', '0.6.1'
gem 'timecop'
gem 'webmock'
gem 'yardstick'
end
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2006-2013 Erik Michaels-Ober, John Nunemaker, Wynn Netherland, Steve Richert, Steve Agalloco
Copyright (c) 2006-2015 Erik Michaels-Ober, John Nunemaker, Wynn Netherland, Steve Richert, Steve Agalloco

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
Loading