360_services 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/360_services.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{360_services}
5
- s.version = "0.0.7"
5
+ s.version = "0.0.8"
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"]
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', '0.0.7') do |p|
6
+ Echoe.new('360_services', '0.0.8') 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"
@@ -23,7 +23,7 @@ module Sorenson
23
23
  end
24
24
 
25
25
  def self.host
26
- host = ['development', 'test', 'cucumber'].include?(ENV['RAILS_ENV']) ? 'http://localhost:3001' : 'http://360services.sorensonmedia.com'
26
+ host = ['development', 'test', 'cucumber'].include?(RAILS_ENV) ? 'http://localhost:3001' : 'http://360services.sorensonmedia.com'
27
27
  host
28
28
  end
29
29
 
@@ -13,8 +13,7 @@ module Sorenson
13
13
  end
14
14
 
15
15
  def self.update(name, attributes={})
16
- return nil if attributes[:preset_ids].nil?
17
- attributes[:preset_ids] = attributes[:preset_ids].join(",")
16
+ attributes[:preset_ids] = (attributes[:preset_ids] || []).join(",")
18
17
  guid = attributes.delete(:group_id)
19
18
  data = put_to("/groups/#{guid}", :group => attributes.merge({:name => name, :id => guid}))
20
19
  new(data['group'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 360_services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorenson Media