scene7-wrapper 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/lib/scene7/asset.rb CHANGED
@@ -47,17 +47,6 @@ module Scene7
47
47
  }
48
48
 
49
49
  Client.perform_request(:submit_job, request)
50
-
51
- asset = nil
52
- 1.upto(20) do
53
- break if asset
54
- sleep 1
55
- asset = find_by_name(File.basename(dest_path, File.extname(dest_path)))
56
- end
57
-
58
- raise "Could not create asset" if asset.nil?
59
-
60
- asset
61
50
  end
62
51
 
63
52
  def job_name(name)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{scene7-wrapper}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Rose", "Jim Whiteman"]
12
- s.date = %q{2011-03-30}
12
+ s.date = %q{2011-04-07}
13
13
  s.description = %q{A Scene7 wrapper for Rails 3.x apps.}
14
14
  s.email = %q{brian.rose@factorylabs.com}
15
15
  s.extra_rdoc_files = [
@@ -108,11 +108,8 @@ describe Scene7::Asset do
108
108
  }).returns(:upload_urls_job_response)
109
109
  end
110
110
 
111
- it "returns once the image object exists" do
112
- asset_mock = mock()
113
- Scene7::Asset.stubs(:find_by_name).with("image").returns(nil, asset_mock)
114
- asset = subject.create(:source_url => "http://example.com/image.jpg", :dest_path => "SomeRoot/SomeDirectory/image.jpg")
115
- asset.should == asset_mock
111
+ it "makes the soap call to start the job" do
112
+ subject.create(:source_url => "http://example.com/image.jpg", :dest_path => "SomeRoot/SomeDirectory/image.jpg")
116
113
  end
117
114
  end
118
115
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scene7-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Rose
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-30 00:00:00 -06:00
19
+ date: 2011-04-07 00:00:00 -06:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency