cloudapp 2.0.0.beta.7 → 2.0.0.beta.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/cloudapp.gemspec +1 -1
- data/lib/cloudapp/service.rb +3 -0
- data/lib/cloudapp.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/cloudapp.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'cloudapp'
|
16
|
-
s.version = '2.0.0.beta.
|
16
|
+
s.version = '2.0.0.beta.8'
|
17
17
|
s.date = '2012-12-23'
|
18
18
|
s.rubyforge_project = 'cloudapp'
|
19
19
|
|
data/lib/cloudapp/service.rb
CHANGED
@@ -6,6 +6,8 @@ require 'uri'
|
|
6
6
|
|
7
7
|
module CloudApp
|
8
8
|
class Service
|
9
|
+
USER_AGENT = "cloudapp-gem/#{CloudApp::VERSION} (#{RUBY_PLATFORM}) ruby/#{RUBY_VERSION}"
|
10
|
+
|
9
11
|
Leadlight.build_service self do
|
10
12
|
url 'https://api.getcloudapp.com'
|
11
13
|
tints << CloudApp::CollectionJson::Tint
|
@@ -13,6 +15,7 @@ module CloudApp
|
|
13
15
|
|
14
16
|
build_connection do |c|
|
15
17
|
c.adapter :typhoeus
|
18
|
+
c.headers[:user_agent] = CloudApp::Service::USER_AGENT
|
16
19
|
end
|
17
20
|
end
|
18
21
|
|
data/lib/cloudapp.rb
CHANGED