360_services 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/360_services.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{360_services}
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
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-02-24}
9
+ s.date = %q{2010-02-26}
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/rate_plan.rb", "lib/sorenson/services/site.rb", "lib/sorenson/services/tag.rb"]
13
- s.files = ["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/rate_plan.rb", "lib/sorenson/services/site.rb", "lib/sorenson/services/tag.rb", "360_services.gemspec"]
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/rate_plan.rb", "lib/sorenson/services/site.rb", "lib/sorenson/services/tag.rb", "360_services.gemspec"]
14
14
  s.homepage = %q{http://github.com/sorensonmedia/360_services}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "360_services", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
data/HOW_TO_BUILD.txt ADDED
@@ -0,0 +1,24 @@
1
+ 1. GET INTO THIS DIRECTORY
2
+ cd 360_services_gem
3
+
4
+ 2. BUILD THE MANIFEST FILE
5
+ rake manifest
6
+
7
+ 3. BUILD THE GEMSPEC (BE SURE TO INCREMENT THE VERSION # IN RAKEFILE)
8
+ rake build_gemspec
9
+
10
+ 4. INSTALL THE GEM LOCALLY TO TEST
11
+ rake install 360_services.gemspec
12
+
13
+ 5. CREATE THE GEM INTO PKG DIRECTORY
14
+ rake gem
15
+
16
+ 6. GET INTO PKG DIRECTOY
17
+ cd pkg
18
+
19
+ 7. PUSH GEM TO GEMCUTTER (MAKE SURE GEMCUTTER GEM IS INSTALLED)
20
+ gem install gemcutter (IF NEEDED)
21
+ gem push 360_services-0.0.1.gem (MAKE SURE VERSION NUMBER WAS INCREMENTED CORRECTLY)
22
+
23
+ 8. INSTALL THE FINISHED GEM LOCALLY
24
+ gem install 360_services
data/Manifest CHANGED
@@ -1,3 +1,4 @@
1
+ HOW_TO_BUILD.txt
1
2
  Manifest
2
3
  README.rdoc
3
4
  Rakefile
data/README.rdoc CHANGED
@@ -5,5 +5,3 @@
5
5
  Run all features
6
6
  rake cucumber
7
7
 
8
- Record all requests and responses (stub network calls)
9
- rake cucumber RECORD_WEB=true
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.3') do |p|
6
+ Echoe.new('360_services', '0.0.4') do |p|
7
7
  p.description = "Ruby bindings for Sorenson 360"
8
8
  p.url = "http://github.com/sorensonmedia/360_services"
9
9
  p.author = "Sorenson Media"
@@ -30,7 +30,7 @@ Scenario: Find all assets by flag
30
30
  And I get the first asset
31
31
  And I assign the flag "red" to the asset
32
32
  And I find all assets with the flag "red"
33
- Then the assets list should contain "6913b8ae-9b47-4487-87b2-d1d4d103f4de"
33
+ Then the assets list should contain "9cf8161e-dea5-40ec-990b-d5d24c0d4191"
34
34
 
35
35
  Scenario: Get asset flags
36
36
  Given I am logged in
@@ -25,12 +25,11 @@ module Sorenson
25
25
 
26
26
  # Get a list of asset guids by passing a tag name
27
27
  def self.find_all_by_tag(tag_name)
28
- p account_id
29
28
  get_from("/tags/#{tag_name}/assets", :account_id => account_id)
30
29
  end
31
30
 
32
31
  def self.find_all_by_flag(flag_name)
33
- get_from("/flags/#{flag_name}/assets?account_id=#{account_id}")
32
+ get_from("/flags/#{flag_name}/assets", :account_id => account_id)
34
33
  end
35
34
 
36
35
  def tags
@@ -71,6 +70,7 @@ module Sorenson
71
70
 
72
71
  def remove_category
73
72
  category = self.category
73
+ return true if category.nil?
74
74
  Base.delete_from("/assets/#{id}/categories/#{category.id}")
75
75
  end
76
76
 
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorenson Media
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-24 00:00:00 -07:00
12
+ date: 2010-02-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -78,6 +78,7 @@ extra_rdoc_files:
78
78
  - lib/sorenson/services/site.rb
79
79
  - lib/sorenson/services/tag.rb
80
80
  files:
81
+ - HOW_TO_BUILD.txt
81
82
  - Manifest
82
83
  - README.rdoc
83
84
  - Rakefile