weibo 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
@@ -60,6 +60,11 @@ if File.exists?('config/weibo.yml')
60
60
  weibo_oauth = YAML.load_file('config/weibo.yml')[Rails.env || env || 'development']
61
61
  Weibo::Config.api_key = weibo_oauth["api_key"]
62
62
  Weibo::Config.api_secret = weibo_oauth["api_secret"]
63
+ else
64
+ puts "\n\n=========================================================\n\n" +
65
+ " You haven't made a config/weibo.yml file.\n\n You should. \n\n The weibo gem will work much better if you do\n\n" +
66
+ " Please set Weibo::Config.api_key and \n Weibo::Config.api_secret\n somewhere in your initialization process\n\n" +
67
+ "=========================================================\n\n"
63
68
  end
64
69
 
65
70
  begin
@@ -1,3 +1,4 @@
1
+ require 'crack'
1
2
  module Weibo
2
3
  class Request
3
4
  extend Forwardable
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{weibo}
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Ballantyne"]
@@ -41,7 +41,8 @@ Gem::Specification.new do |s|
41
41
  "spec/spec_helper.rb",
42
42
  "spec/weibo/base_spec.rb",
43
43
  "spec/weibo_spec.rb",
44
- "weibo.gemspec"
44
+ "weibo.gemspec",
45
+ "weibo.yml.example"
45
46
  ]
46
47
  s.homepage = %q{http://github.com/ballantyne/weibo}
47
48
  s.require_paths = ["lib"]
@@ -0,0 +1,9 @@
1
+ development:
2
+ api_key: api_key
3
+ api_secret: api_secret
4
+ test``:
5
+ api_key: api_key
6
+ api_secret: api_secret
7
+ production:
8
+ api_key: api_key
9
+ api_secret: api_secret
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weibo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Ballantyne
@@ -282,6 +282,7 @@ files:
282
282
  - spec/weibo/base_spec.rb
283
283
  - spec/weibo_spec.rb
284
284
  - weibo.gemspec
285
+ - weibo.yml.example
285
286
  has_rdoc: true
286
287
  homepage: http://github.com/ballantyne/weibo
287
288
  licenses: []