uploadcare-rails 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -82,7 +82,7 @@ If you need the unique identifier that Uploadcare uses to represent a file,
82
82
  it is available like so:
83
83
 
84
84
  ```erb
85
- UUID: <%= @post.file.uuid %>
85
+ UUID: <%= @post.file.file_id %>
86
86
  ```
87
87
 
88
88
  [Other information](https://uploadcare.com/documentation/rest/#file) about the file is accessed through the `api` method that makes a single HTTP request to Uploadcare servers **for each file**. Use cautiously or cache the returned information somewhere.
@@ -3,6 +3,7 @@ module Uploadcare
3
3
  class File
4
4
 
5
5
  attr_reader :uuid
6
+ alias_method :file_id, :uuid
6
7
 
7
8
  def initialize(api, cdn_url)
8
9
  @api = api
@@ -1,5 +1,5 @@
1
1
  module Uploadcare
2
2
  module Rails
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadcare-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: 589296094626255703
128
+ hash: 3635216388913281185
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: 589296094626255703
137
+ hash: 3635216388913281185
138
138
  requirements: []
139
139
  rubyforge_project:
140
140
  rubygems_version: 1.8.24