transloadit 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,8 +23,8 @@ Then create a Transloadit instance, which will maintain your authentication
23
23
  credentials and allow us to make requests to the API.
24
24
 
25
25
  transloadit = Transloadit.new(
26
- key: 'transloadit-auth-key',
27
- secret: 'transloadit-auth-secret'
26
+ :key => 'transloadit-auth-key',
27
+ :secret => 'transloadit-auth-secret'
28
28
  )
29
29
 
30
30
  ### 1. Resize and store an image
@@ -36,19 +36,19 @@ First, we create two steps: one to resize the image to 320x240, and another to
36
36
  store the image in our S3 bucket.
37
37
 
38
38
  resize = transloadit.step 'resize', '/image/resize',
39
- width: 320,
40
- height: 240
39
+ :width => 320,
40
+ :height => 240
41
41
 
42
42
  store = transloadit.step 'store', '/s3/store',
43
- key: 'aws-access-key-id',
44
- secret: 'aws-secret-access-key',
45
- bucket: 's3-bucket-name'
43
+ :key => 'aws-access-key-id',
44
+ :secret => 'aws-secret-access-key',
45
+ :bucket => 's3-bucket-name'
46
46
 
47
47
  Now that we have the steps, we create an assembly (which is just a request to
48
48
  process a file or set of files) and let Transloadit do the rest.
49
49
 
50
50
  assembly = transloadit.assembly(
51
- steps: [ resize, store ]
51
+ :steps => [ resize, store ]
52
52
  )
53
53
 
54
54
  response = assembly.submit! open('lolcat.jpg')
@@ -115,7 +115,7 @@ simply need to `use` other steps. Following
115
115
  export.use [ encode, thumbs ]
116
116
 
117
117
  transloadit.assembly(
118
- steps: [ encode, thumbs, export ]
118
+ :steps => [ encode, thumbs, export ]
119
119
  ).submit! open('ninja-cat.mpg')
120
120
 
121
121
  You can also tell a step to use the original uploaded file by passing the
@@ -194,7 +194,7 @@ class Transloadit::Request
194
194
  # @return [String] the HMAC signature for the params
195
195
  #
196
196
  def signature(params)
197
- self.class._hmac(self.secret, params.to_json) if self.secret
197
+ self.class._hmac(self.secret, params) if self.secret
198
198
  end
199
199
 
200
200
  private
@@ -1,4 +1,4 @@
1
1
  class Transloadit
2
2
  # The current version of Transloadit.
3
- VERSION = '0.9.0'
3
+ VERSION = '1.0.0'
4
4
  end
data/transloadit.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
9
9
 
10
10
  gem.authors = %w{ Stephen Touset }
11
11
  gem.email = %w{ stephen@touset.org }
12
- gem.homepage = 'http://github.com/stouset/transloadit/'
12
+ gem.homepage = 'http://github.com/transloadit/ruby-sdk/'
13
13
 
14
14
  gem.summary = 'Official Ruby gem for Transloadit'
15
15
  gem.description = 'The transloadit gem allows you to automate uploading files through the Transloadit REST API'
@@ -30,7 +30,7 @@ Gem::Specification.new do |gem|
30
30
 
31
31
  gem.add_development_dependency 'vcr'
32
32
  gem.add_development_dependency 'webmock'
33
-
33
+
34
34
  gem.add_development_dependency 'yard'
35
35
  gem.add_development_dependency 'rdiscount' # for YARD rdoc formatting
36
36
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: transloadit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.0
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stephen
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-02-21 00:00:00 -05:00
14
+ date: 2011-06-09 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -147,7 +147,7 @@ files:
147
147
  - test/unit/transloadit/test_step.rb
148
148
  - transloadit.gemspec
149
149
  has_rdoc: true
150
- homepage: http://github.com/stouset/transloadit/
150
+ homepage: http://github.com/transloadit/ruby-sdk/
151
151
  licenses: []
152
152
 
153
153
  post_install_message:
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements: []
171
171
 
172
172
  rubyforge_project: transloadit
173
- rubygems_version: 1.5.0
173
+ rubygems_version: 1.6.2
174
174
  signing_key:
175
175
  specification_version: 3
176
176
  summary: Official Ruby gem for Transloadit