omniauth-twitter 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ coverage
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour
@@ -0,0 +1,7 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - ruby-head
6
+ - ree
7
+
@@ -0,0 +1,45 @@
1
+ # OmniAuth Twitter
2
+
3
+ This gem contains the Twitter strategy for OmniAuth.
4
+
5
+ Twitter uses the OAuth 1.0a flow, you can read about it here: https://dev.twitter.com/docs/auth/oauth
6
+
7
+ ## How To Use It
8
+
9
+ Usage is as per any other OmniAuth 1.0 strategy. So let's say you're using Rails, you need to add the strategy to your `Gemfile` along side omniauth:
10
+
11
+ gem 'omniauth'
12
+ gem 'omniauth-twitter'
13
+
14
+ You can pull them in directly from github e.g.:
15
+
16
+ gem 'omniauth', :git => 'https://github.com/intridea/omniauth.git'
17
+ gem 'omniauth-twitter', :git => 'https://github.com/arunagw/omniauth-twitetr.git'
18
+
19
+ Once these are in, you need to add the following to your `config/initializers/omniauth.rb`:
20
+
21
+ Rails.application.config.middleware.use OmniAuth::Builder do
22
+ provider :twitter, "consumer_key", "consumer_secret"
23
+ end
24
+
25
+ You will obviously have to put in your key and secret, which you get when you register your app with Twitter (they call them API Key and Secret Key).
26
+
27
+ Now just follow the README at: https://github.com/intridea/omniauth
28
+
29
+ ## Note on Patches/Pull Requests
30
+
31
+ - Fork the project.
32
+ - Make your feature addition or bug fix.
33
+ - Add tests for it. This is important so I don’t break it in a future version unintentionally.
34
+ - Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
35
+ - Send me a pull request. Bonus points for topic branches.
36
+
37
+ ## License
38
+
39
+ Copyright (c) 2011 by Arun Agrawal
40
+
41
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
42
+
43
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Twitter
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -20,4 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_runtime_dependency 'omniauth-oauth', '~> 1.0.0.rc2'
22
22
  s.add_development_dependency 'rspec', '~> 2.7'
23
+ s.add_development_dependency 'rack-test'
24
+ s.add_development_dependency 'simplecov'
25
+ s.add_development_dependency 'webmock'
23
26
  end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe OmniAuth::Strategies::Twitter do
4
+ it 'should do some testing' do
5
+ pending
6
+ end
7
+ end
@@ -0,0 +1,16 @@
1
+ $:.unshift File.expand_path('..', __FILE__)
2
+ $:.unshift File.expand_path('../../lib', __FILE__)
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+ require 'rspec'
6
+ require 'rack/test'
7
+ require 'webmock/rspec'
8
+ require 'omniauth'
9
+ require 'omniauth-twitter'
10
+
11
+ RSpec.configure do |config|
12
+ config.include WebMock::API
13
+ config.include Rack::Test::Methods
14
+ config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
15
+ end
16
+
metadata CHANGED
@@ -1,104 +1,120 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: omniauth-twitter
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 4
10
- version: 0.0.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Arun Agrawal
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-11-05 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- type: :runtime
22
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2011-11-05 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: omniauth-oauth
16
+ requirement: &70117833266180 !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 15424049
28
- segments:
29
- - 1
30
- - 0
31
- - 0
32
- - rc
33
- - 2
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.0.0.rc2
35
- version_requirements: *id001
36
- name: omniauth-oauth
22
+ type: :runtime
37
23
  prerelease: false
38
- - !ruby/object:Gem::Dependency
39
- type: :development
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70117833266180
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70117833265100 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
29
+ requirements:
43
30
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 13
46
- segments:
47
- - 2
48
- - 7
49
- version: "2.7"
50
- version_requirements: *id002
51
- name: rspec
31
+ - !ruby/object:Gem::Version
32
+ version: '2.7'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70117833265100
36
+ - !ruby/object:Gem::Dependency
37
+ name: rack-test
38
+ requirement: &70117833264280 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70117833264280
47
+ - !ruby/object:Gem::Dependency
48
+ name: simplecov
49
+ requirement: &70117833263520 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70117833263520
58
+ - !ruby/object:Gem::Dependency
59
+ name: webmock
60
+ requirement: &70117833262880 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
52
67
  prerelease: false
68
+ version_requirements: *70117833262880
53
69
  description: OmniAuth strategy for Twitter
54
- email:
70
+ email:
55
71
  - arunagw@gmail.com
56
72
  executables: []
57
-
58
73
  extensions: []
59
-
60
74
  extra_rdoc_files: []
61
-
62
- files:
75
+ files:
63
76
  - .gitignore
77
+ - .rspec
78
+ - .travis.yml
64
79
  - Gemfile
80
+ - README.md
65
81
  - Rakefile
66
82
  - lib/omniauth-twitter.rb
67
83
  - lib/omniauth-twitter/version.rb
68
84
  - lib/omniauth/strategies/twitter.rb
69
85
  - omniauth-twitter.gemspec
86
+ - spec/omniauth/strategies/twitter_spec.rb
87
+ - spec/spec_helper.rb
70
88
  homepage: https://github.com/arunagw/omniauth-twitter
71
89
  licenses: []
72
-
73
90
  post_install_message:
74
91
  rdoc_options: []
75
-
76
- require_paths:
92
+ require_paths:
77
93
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
94
+ required_ruby_version: !ruby/object:Gem::Requirement
79
95
  none: false
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- hash: 3
84
- segments:
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ segments:
85
101
  - 0
86
- version: "0"
87
- required_rubygems_version: !ruby/object:Gem::Requirement
102
+ hash: -3282318844294778726
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
104
  none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 3
93
- segments:
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ segments:
94
110
  - 0
95
- version: "0"
111
+ hash: -3282318844294778726
96
112
  requirements: []
97
-
98
113
  rubyforge_project: omniauth-twitter
99
- rubygems_version: 1.8.10
114
+ rubygems_version: 1.8.6
100
115
  signing_key:
101
116
  specification_version: 3
102
117
  summary: OmniAuth strategy for Twitter
103
- test_files: []
104
-
118
+ test_files:
119
+ - spec/omniauth/strategies/twitter_spec.rb
120
+ - spec/spec_helper.rb