cloudapp 2.0.0.beta.7 → 2.0.0.beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudapp (2.0.0.beta.7)
4
+ cloudapp (2.0.0.beta.8)
5
5
  leadlight (~> 0.0.7)
6
6
  mime-types (~> 1.19)
7
7
  netrc (~> 0.7.7)
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.7'
16
+ s.version = '2.0.0.beta.8'
17
17
  s.date = '2012-12-23'
18
18
  s.rubyforge_project = 'cloudapp'
19
19
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CloudApp
2
- VERSION = '2.0.0.beta.7'
2
+ VERSION = '2.0.0.beta.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta.7
4
+ version: 2.0.0.beta.8
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: