360_services 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/360_services.gemspec CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{360_services}
5
- s.version = "1.0.4"
5
+ s.version = "1.0.5"
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-11}
9
+ s.date = %q{2010-03-16}
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"]
13
- s.files = ["360_services.gemspec", "HOW_TO_BUILD.txt", "Manifest", "README.rdoc", "Rakefile", "features/manage_accounts.feature", "features/manage_assets.feature", "features/manage_categories.feature", "features/manage_flags.feature", "features/manage_group_assets.feature", "features/manage_groups.feature", "features/manage_metadata.feature", "features/manage_metrics.feature", "features/manage_sites.feature", "features/manage_tags.feature", "features/mange_rate_plan.feature", "features/step_definitions/manage_accounts_steps.rb", "features/step_definitions/manage_assets_steps.rb", "features/step_definitions/manage_categories_steps.rb", "features/step_definitions/manage_flags_steps.rb", "features/step_definitions/manage_group_assets_steps.rb", "features/step_definitions/manage_groups_steps.rb", "features/step_definitions/manage_metadata_steps.rb", "features/step_definitions/manage_metrics_steps.rb", "features/step_definitions/manage_sites_steps.rb", "features/step_definitions/manage_tags_steps.rb", "features/step_definitions/mange_rate_plan_steps.rb", "features/step_definitions/utility_steps.rb", "features/step_definitions/web_steps.rb", "features/support/document_steps.rb", "features/support/env.rb", "features/support/netrecorder.rb", "features/support/paths.rb", "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"]
13
+ s.files = ["HOW_TO_BUILD.txt", "Manifest", "README.rdoc", "Rakefile", "features/manage_accounts.feature", "features/manage_assets.feature", "features/manage_categories.feature", "features/manage_flags.feature", "features/manage_group_assets.feature", "features/manage_groups.feature", "features/manage_metadata.feature", "features/manage_metrics.feature", "features/manage_sites.feature", "features/manage_tags.feature", "features/mange_rate_plan.feature", "features/step_definitions/manage_accounts_steps.rb", "features/step_definitions/manage_assets_steps.rb", "features/step_definitions/manage_categories_steps.rb", "features/step_definitions/manage_flags_steps.rb", "features/step_definitions/manage_group_assets_steps.rb", "features/step_definitions/manage_groups_steps.rb", "features/step_definitions/manage_metadata_steps.rb", "features/step_definitions/manage_metrics_steps.rb", "features/step_definitions/manage_sites_steps.rb", "features/step_definitions/manage_tags_steps.rb", "features/step_definitions/mange_rate_plan_steps.rb", "features/step_definitions/utility_steps.rb", "features/step_definitions/web_steps.rb", "features/support/document_steps.rb", "features/support/env.rb", "features/support/netrecorder.rb", "features/support/paths.rb", "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", "360_services.gemspec"]
14
14
  s.homepage = %q{http://github.com/sorenson/360_services}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "360_services", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{360_services}
18
- s.rubygems_version = %q{1.3.6}
18
+ s.rubygems_version = %q{1.3.5}
19
19
  s.summary = %q{Ruby bindings for Sorenson 360}
20
20
 
21
21
  if s.respond_to? :specification_version then
data/HOW_TO_BUILD.txt CHANGED
@@ -1,8 +1,8 @@
1
- (MAKE SURE YOU INCREMENT THE VERSION NUMBER in the Rakefile)
2
-
3
1
  1. GET INTO THIS DIRECTORY
4
2
  cd 360_services_gem
5
3
 
4
+ 1.5. MAKE SURE YOU INCREMENT THE VERSION NUMBER in the Rakefile!!:);)!!!!!
5
+
6
6
  2. BUILD THE MANIFEST FILE
7
7
  rake manifest
8
8
 
@@ -20,7 +20,7 @@ cd pkg
20
20
 
21
21
  7. PUSH GEM TO GEMCUTTER (MAKE SURE GEMCUTTER GEM IS INSTALLED)
22
22
  gem install gemcutter (IF NEEDED)
23
- gem push 360_services-0.0.5.gem (MAKE SURE YOU INCREMENTED THE VERSION NUMBER in the Rakefile!!!)
23
+ gem push 360_services-0.0.XXXXXXXXXX.gem (MAKE SURE YOU INCREMENTED THE VERSION NUMBER in the Rakefile!!!)
24
24
 
25
25
  8. INSTALL THE FINISHED GEM LOCALLY
26
26
  gem install 360_services
data/Manifest CHANGED
@@ -1,4 +1,3 @@
1
- 360_services.gemspec
2
1
  HOW_TO_BUILD.txt
3
2
  Manifest
4
3
  README.rdoc
data/Rakefile CHANGED
@@ -3,7 +3,8 @@ require 'cucumber'
3
3
  require 'cucumber/rake/task'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('360_services', '1.0.4') do |p|
6
+
7
+ Echoe.new('360_services', '1.0.5') do |p|
7
8
  p.description = "Ruby bindings for Sorenson 360"
8
9
  p.url = "http://github.com/sorenson/360_services"
9
10
  p.author = "Sorenson Media"
@@ -60,8 +60,8 @@ module Sorenson
60
60
  Base.delete_from("/assets/#{id}")["status"]
61
61
  end
62
62
 
63
- def save
64
- Base.put_to("/assets/#{id}", :asset => {:name => name, :password => password, :description => description})
63
+ def save(attributes={})
64
+ Base.put_to("/assets/#{id}", :asset => {:name => name, :password => password, :description => description}.merge(attributes))
65
65
  end
66
66
 
67
67
  def add_category(name)
@@ -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'])
@@ -16,10 +16,6 @@ module Sorenson
16
16
  response['url']
17
17
  end
18
18
  end
19
-
20
- def self.create(name, group_id, file)
21
- post_to("/presets", :file_name => name, :group_guid => group_id, :file => file)
22
- end
23
19
  end
24
20
  end
25
21
  end
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 360_services
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 4
9
- version: 1.0.4
4
+ version: 1.0.5
10
5
  platform: ruby
11
6
  authors:
12
7
  - Sorenson Media
@@ -14,57 +9,49 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2010-03-11 00:00:00 -07:00
12
+ date: 2010-03-16 00:00:00 -07:00
18
13
  default_executable:
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: echoe
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
23
  version: "0"
30
- type: :development
31
- version_requirements: *id001
24
+ version:
32
25
  - !ruby/object:Gem::Dependency
33
26
  name: cucumber
34
- prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ">="
38
32
  - !ruby/object:Gem::Version
39
- segments:
40
- - 0
41
33
  version: "0"
42
- type: :development
43
- version_requirements: *id002
34
+ version:
44
35
  - !ruby/object:Gem::Dependency
45
36
  name: rspec
46
- prerelease: false
47
- requirement: &id003 !ruby/object:Gem::Requirement
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
48
40
  requirements:
49
41
  - - ">="
50
42
  - !ruby/object:Gem::Version
51
- segments:
52
- - 0
53
43
  version: "0"
54
- type: :development
55
- version_requirements: *id003
44
+ version:
56
45
  - !ruby/object:Gem::Dependency
57
46
  name: netrecorder
58
- prerelease: false
59
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
60
50
  requirements:
61
51
  - - ">="
62
52
  - !ruby/object:Gem::Version
63
- segments:
64
- - 0
65
53
  version: "0"
66
- type: :development
67
- version_requirements: *id004
54
+ version:
68
55
  description: Ruby bindings for Sorenson 360
69
56
  email: video@sorensonmedia.com
70
57
  executables: []
@@ -93,7 +80,6 @@ extra_rdoc_files:
93
80
  - lib/sorenson/services/subaccount.rb
94
81
  - lib/sorenson/services/tag.rb
95
82
  files:
96
- - 360_services.gemspec
97
83
  - HOW_TO_BUILD.txt
98
84
  - Manifest
99
85
  - README.rdoc
@@ -145,6 +131,7 @@ files:
145
131
  - lib/sorenson/services/site.rb
146
132
  - lib/sorenson/services/subaccount.rb
147
133
  - lib/sorenson/services/tag.rb
134
+ - 360_services.gemspec
148
135
  has_rdoc: true
149
136
  homepage: http://github.com/sorenson/360_services
150
137
  licenses: []
@@ -163,21 +150,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
150
  requirements:
164
151
  - - ">="
165
152
  - !ruby/object:Gem::Version
166
- segments:
167
- - 0
168
153
  version: "0"
154
+ version:
169
155
  required_rubygems_version: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - ">="
172
158
  - !ruby/object:Gem::Version
173
- segments:
174
- - 1
175
- - 2
176
159
  version: "1.2"
160
+ version:
177
161
  requirements: []
178
162
 
179
163
  rubyforge_project: 360_services
180
- rubygems_version: 1.3.6
164
+ rubygems_version: 1.3.5
181
165
  signing_key:
182
166
  specification_version: 3
183
167
  summary: Ruby bindings for Sorenson 360