360_services 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/360_services.gemspec +2 -2
- data/Rakefile +1 -1
- data/lib/sorenson/services/base.rb +3 -3
- metadata +3 -3
data/360_services.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{360_services}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Sorenson Media"]
|
9
|
-
s.date = %q{2010-03-
|
9
|
+
s.date = %q{2010-03-11}
|
10
10
|
s.description = %q{Ruby bindings for Sorenson 360}
|
11
11
|
s.email = %q{video@sorensonmedia.com}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/sorenson/services.rb", "lib/sorenson/services/account.rb", "lib/sorenson/services/array.rb", "lib/sorenson/services/asset.rb", "lib/sorenson/services/base.rb", "lib/sorenson/services/category.rb", "lib/sorenson/services/core_ext.rb", "lib/sorenson/services/core_ext/attribute_accessors.rb", "lib/sorenson/services/core_ext/hash.rb", "lib/sorenson/services/core_ext/object.rb", "lib/sorenson/services/event.rb", "lib/sorenson/services/flag.rb", "lib/sorenson/services/group.rb", "lib/sorenson/services/metric.rb", "lib/sorenson/services/preset.rb", "lib/sorenson/services/rate_plan.rb", "lib/sorenson/services/site.rb", "lib/sorenson/services/subaccount.rb", "lib/sorenson/services/tag.rb"]
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'cucumber'
|
|
3
3
|
require 'cucumber/rake/task'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new('360_services', '1.0.
|
6
|
+
Echoe.new('360_services', '1.0.3') do |p|
|
7
7
|
p.description = "Ruby bindings for Sorenson 360"
|
8
8
|
p.url = "http://github.com/sorenson/360_services"
|
9
9
|
p.author = "Sorenson Media"
|
@@ -19,11 +19,11 @@ module Sorenson
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.login_no_resource(username, password)
|
22
|
-
RestClient.post(host + "/sessions", :username => username, :password => password)
|
22
|
+
RestClient.post(host + "/sessions", :username => username, :password => password).body
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.host
|
26
|
-
host = ['development', 'test', 'cucumber'].include?(
|
26
|
+
host = ['development', 'test', 'cucumber'].include?(RAILS_ENV) ? 'http://localhost:3001' : 'http://360services.sorensonmedia.com'
|
27
27
|
host
|
28
28
|
end
|
29
29
|
|
@@ -61,7 +61,7 @@ module Sorenson
|
|
61
61
|
|
62
62
|
def self.parse_response(response)
|
63
63
|
begin
|
64
|
-
JSON.parse(response)
|
64
|
+
JSON.parse(response.body)
|
65
65
|
rescue JSON::ParserError => e
|
66
66
|
raise InvalidServerResponse.new("Sorenson::Services::InvalidServerResponse: #{e.message}")
|
67
67
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 3
|
9
|
+
version: 1.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sorenson Media
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-11 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|