tumblr-oauth 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "http://rubygems.org"
3
3
  gem 'faraday', '~> 0.7.4'
4
4
  gem 'faraday_middleware', '~> 0.7.0'
5
5
  gem 'multi_json', '~> 1.0.0'
6
- gem 'hashie', '~> 1.0.0'
6
+ gem 'hashie', '~> 1.1.0'
7
7
  gem 'simple_oauth', '~> 0.1.5'
8
8
 
9
9
  # Add dependencies to develop your gem here.
@@ -3,27 +3,27 @@ GEM
3
3
  specs:
4
4
  addressable (2.2.6)
5
5
  diff-lcs (1.1.2)
6
- faraday (0.6.1)
7
- addressable (~> 2.2.4)
6
+ faraday (0.7.4)
7
+ addressable (~> 2.2.6)
8
8
  multipart-post (~> 1.1.0)
9
- rack (>= 1.1.0, < 2)
10
- faraday_middleware (0.6.5)
11
- faraday (~> 0.6.0)
9
+ rack (< 2, >= 1.1.0)
10
+ faraday_middleware (0.7.0)
11
+ faraday (~> 0.7.3)
12
12
  git (1.2.5)
13
- guard (0.5.1)
13
+ guard (0.6.2)
14
14
  thor (~> 0.14.6)
15
- guard-rspec (0.4.0)
15
+ guard-rspec (0.4.2)
16
16
  guard (>= 0.4.0)
17
- hashie (1.0.0)
17
+ hashie (1.1.0)
18
18
  jeweler (1.6.4)
19
19
  bundler (~> 1.0)
20
20
  git (>= 1.2.5)
21
21
  rake
22
22
  multi_json (1.0.3)
23
- multipart-post (1.1.2)
24
- rack (1.3.1)
23
+ multipart-post (1.1.3)
24
+ rack (1.3.2)
25
25
  rake (0.9.2)
26
- rb-fsevent (0.4.1)
26
+ rb-fsevent (0.4.3.1)
27
27
  rspec (2.3.0)
28
28
  rspec-core (~> 2.3.0)
29
29
  rspec-expectations (~> 2.3.0)
@@ -40,11 +40,11 @@ PLATFORMS
40
40
 
41
41
  DEPENDENCIES
42
42
  bundler (~> 1.0.0)
43
- faraday (~> 0.6.0)
44
- faraday_middleware (~> 0.6.0)
43
+ faraday (~> 0.7.4)
44
+ faraday_middleware (~> 0.7.0)
45
45
  guard
46
46
  guard-rspec
47
- hashie (~> 1.0.0)
47
+ hashie (~> 1.1.0)
48
48
  jeweler (~> 1.6.4)
49
49
  multi_json (~> 1.0.0)
50
50
  rb-fsevent
data/README.md CHANGED
@@ -8,14 +8,17 @@ It's very raw and unstable version.
8
8
  Install
9
9
  ------
10
10
 
11
+ From Rubygems (may not be up-to-date):
11
12
  ```
12
- gem 'tumblr-oauth'
13
+ gem install 'tumblr-oauth'
13
14
  ```
14
15
 
15
16
  Usage
16
17
  -----
17
18
 
18
19
  ```ruby
20
+
21
+ # Setting up a client
19
22
  TumblrOAuth.configure do |config|
20
23
  config.consumer_key = 'consumer_key'
21
24
  config.consumer_secret = 'consumer_secret'
@@ -26,8 +29,15 @@ tumblr_client = TumblrOAuth::Client(
26
29
  :oauth_token_secret => 'oauth_secret',
27
30
  :blog_host => 'blog_host_name' # For example "test.tumblr.com"
28
31
  )
32
+
33
+ # Getting user info
34
+ tumblr_client.user_info
35
+
36
+ # Getting user primary blog host name:
37
+ tumblr_client.primary_blog
29
38
  ```
30
39
 
40
+
31
41
  Copyright
32
42
  =========
33
43
 
@@ -0,0 +1,4 @@
1
+ module TumblrOAuth
2
+ # The version of the gem
3
+ VERSION = '0.1.1'.freeze unless defined?(::TumblrOAuth::VERSION)
4
+ end
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ require File.expand_path('../lib/tumblr-oauth/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.add_dependency 'hashie', '~> 1.1.0'
6
+ gem.add_dependency 'faraday', '~> 0.7.4'
7
+ gem.add_dependency 'faraday_middleware', '~> 0.7.0'
8
+ gem.add_dependency 'multi_json', '~> 1.0.0'
9
+ gem.add_dependency 'simple_oauth', '~> 0.1.5'
10
+ gem.add_development_dependency 'guard'
11
+ gem.add_development_dependency 'rake', '~> 0.9'
12
+ gem.add_development_dependency 'rspec', '~> 2.3.0'
13
+ gem.authors = ["Ildar Shaynurov"]
14
+ gem.summary = %Q{Tumblr library with OAuth support}
15
+ gem.description = %q{A Ruby wrapper for Tumblr AOuth API}
16
+ gem.email = "shaynurov@gmail.com"
17
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
18
+ gem.files = `git ls-files`.split("\n")
19
+ gem.homepage = 'https://github.com/shir/tumblr-oauth'
20
+ gem.name = 'tumblr-oauth'
21
+ gem.require_paths = ['lib']
22
+ gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
23
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
24
+ gem.version = TumblrOAuth::VERSION.dup
25
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tumblr-oauth
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ildar Shaynurov
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.0
23
+ version: 1.1.0
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
@@ -129,11 +129,13 @@ files:
129
129
  - lib/tumblr-oauth/connection.rb
130
130
  - lib/tumblr-oauth/error.rb
131
131
  - lib/tumblr-oauth/request.rb
132
+ - lib/tumblr-oauth/version.rb
132
133
  - spec/spec_helper.rb
133
134
  - spec/tumblr-oauth/client/blog_spec.rb
134
135
  - spec/tumblr-oauth/client_spec.rb
135
136
  - spec/tumblr-oauth/configuration_spec.rb
136
137
  - spec/tumblr-oauth_spec.rb
138
+ - tumblr-oauth.gemspec
137
139
  homepage: https://github.com/shir/tumblr-oauth
138
140
  licenses: []
139
141