rest-core 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # rest-core CHANGES
2
2
 
3
+ ## rest-core 0.2.3 -- 2011-08-27
4
+
5
+ * Adding rack as a runtime dependency for now.
6
+ To reduce frustration for new comer...
7
+
3
8
  ## rest-core 0.2.2 -- 2011-08-26
4
9
 
5
10
  * Adding rest-client as a runtime dependency for now.
data/README.md CHANGED
@@ -45,8 +45,8 @@ Or if you want development version, put this in Gemfile:
45
45
 
46
46
  require 'rest-core'
47
47
 
48
- RestCore::Twitter.new.statuses('godfat') # get user tweets
49
- RestCore::Github.new.get('users/godfat') # get user info
48
+ RestCore::Twitter.new.statuses('_cardinalblue') # get user tweets
49
+ RestCore::Github.new.get('users/cardinalblue') # get user info
50
50
 
51
51
  linkedin = RestCore::Linkedin.new(:consumer_key => '...',
52
52
  :consumer_secret => '...')
@@ -75,12 +75,12 @@ See [example][] for more complex examples.
75
75
  end
76
76
 
77
77
  client = YourClient.new
78
- client.get('godfat') # cache miss
79
- client.get('godfat') # cache hit
78
+ client.get('cardinalblue') # cache miss
79
+ client.get('cardinalblue') # cache hit
80
80
 
81
81
  client.site = 'http://github.com/api/v2/json/user/show/'
82
- client.get('godfat') # cache miss
83
- client.get('godfat') # cache hit
82
+ client.get('cardinalblue') # cache miss
83
+ client.get('cardinalblue') # cache hit
84
84
 
85
85
  See [built-in clients][] for more complex examples.
86
86
 
data/Rakefile CHANGED
@@ -14,8 +14,8 @@ task 'gem:spec' do
14
14
  s.homepage = 'https://github.com/cardinalblue/rest-core'
15
15
  # s.executables = [s.name]
16
16
 
17
- %w[rest-client].each{ |g| s.add_runtime_dependency(g) }
18
- %w[rack yajl-ruby json json_pure ruby-hmac
17
+ %w[rest-client rack].each{ |g| s.add_runtime_dependency(g) }
18
+ %w[yajl-ruby json json_pure ruby-hmac
19
19
  webmock bacon rr rake].each{ |g| s.add_development_dependency(g) }
20
20
 
21
21
  s.authors = ['Cardinal Blue', 'Lin Jen-Shin (godfat)']
@@ -1,4 +1,4 @@
1
1
 
2
2
  require 'rest-core'
3
3
 
4
- p RestCore::Github.new.get('users/godfat') # get user info
4
+ p RestCore::Github.new.get('users/cardinalblue') # get user info
@@ -1,6 +1,6 @@
1
1
 
2
2
  require 'rest-core'
3
- RestCore::Twitter.new.statuses('godfat') # get user tweets
3
+ RestCore::Twitter.new.statuses('_cardinalblue') # get user tweets
4
4
 
5
5
  twitter = RestCore::Twitter.new(:consumer_key => '...',
6
6
  :consumer_secret => '...')
@@ -49,10 +49,9 @@ module RestCore::Twitter::Client
49
49
 
50
50
  def tweet status, media=nil, opts={}
51
51
  if media
52
- post('1/statuses/update_with_media.json',
52
+ post('https://upload.twitter.com/1/statuses/update_with_media.json',
53
53
  {:status => status, 'media[]' => media},
54
- {},
55
- {:site => 'https://upload.twitter.com/'}.merge(opts))
54
+ {}, opts)
56
55
  else
57
56
  post('1/statuses/update.json', {:status => status}, opts)
58
57
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module RestCore
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
@@ -2,13 +2,13 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rest-core}
5
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [
9
9
  %q{Cardinal Blue},
10
10
  %q{Lin Jen-Shin (godfat)}]
11
- s.date = %q{2011-08-26}
11
+ s.date = %q{2011-08-27}
12
12
  s.description = %q{A modular Ruby REST client collection/infrastructure.
13
13
 
14
14
  In this era of web services and mashups, we have seen a blooming of REST
@@ -116,7 +116,7 @@ for any other REST APIs.
116
116
 
117
117
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
118
118
  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
119
- s.add_development_dependency(%q<rack>, [">= 0"])
119
+ s.add_runtime_dependency(%q<rack>, [">= 0"])
120
120
  s.add_development_dependency(%q<yajl-ruby>, [">= 0"])
121
121
  s.add_development_dependency(%q<json>, [">= 0"])
122
122
  s.add_development_dependency(%q<json_pure>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-08-26 00:00:00.000000000Z
13
+ date: 2011-08-27 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
17
- requirement: &2154116660 !ruby/object:Gem::Requirement
17
+ requirement: &2160958860 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,21 +22,21 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2154116660
25
+ version_requirements: *2160958860
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rack
28
- requirement: &2154116180 !ruby/object:Gem::Requirement
28
+ requirement: &2160958380 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2154116180
36
+ version_requirements: *2160958380
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: yajl-ruby
39
- requirement: &2154115700 !ruby/object:Gem::Requirement
39
+ requirement: &2160974260 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2154115700
47
+ version_requirements: *2160974260
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: json
50
- requirement: &2154131580 !ruby/object:Gem::Requirement
50
+ requirement: &2160973780 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2154131580
58
+ version_requirements: *2160973780
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: json_pure
61
- requirement: &2154131100 !ruby/object:Gem::Requirement
61
+ requirement: &2160973300 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2154131100
69
+ version_requirements: *2160973300
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: ruby-hmac
72
- requirement: &2154130620 !ruby/object:Gem::Requirement
72
+ requirement: &2160972820 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *2154130620
80
+ version_requirements: *2160972820
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: webmock
83
- requirement: &2154130140 !ruby/object:Gem::Requirement
83
+ requirement: &2160972340 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *2154130140
91
+ version_requirements: *2160972340
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: bacon
94
- requirement: &2154129660 !ruby/object:Gem::Requirement
94
+ requirement: &2160971860 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *2154129660
102
+ version_requirements: *2160971860
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rr
105
- requirement: &2154129180 !ruby/object:Gem::Requirement
105
+ requirement: &2160971380 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *2154129180
113
+ version_requirements: *2160971380
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: rake
116
- requirement: &2154128700 !ruby/object:Gem::Requirement
116
+ requirement: &2160970900 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,7 +121,7 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *2154128700
124
+ version_requirements: *2160970900
125
125
  description: ! 'A modular Ruby REST client collection/infrastructure.
126
126
 
127
127