avatars_for_rails 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e413ca38ea46a304eb7bff50aa66199c65f7d47
4
- data.tar.gz: a4288018850f7e6d72cc7176d71669edecf36719
3
+ metadata.gz: 1ddf51fcec65d8b5962f5d790656d9dc58875a8b
4
+ data.tar.gz: 1a142e9d995a03c1f4043612e4f22ce1aedd6d72
5
5
  SHA512:
6
- metadata.gz: b4df168e35a65881395db019e06ac894776958ee550be777b95b2880ad17a6085f67e10c76aa6b997af85ea3439cf413f05d067e52997759cb7863e769c817b1
7
- data.tar.gz: 78d755cb48c728c5265f72566801a8fc70b021450537bdc160101b116b57b78bc2d3a052b599ea60a704fb019cd371f793f2bc310ad8e7903ef241fe55993acc
6
+ metadata.gz: 2eb3bb46ba20b9405216fc7680a2930c29c48c0b979dab52bfd3759592c73011d035ffdf7ab6c32da031f7a826c473a82f4a5343d50bce92aee22e22f6c76118
7
+ data.tar.gz: 17f5285c169b65cfa370a873c0d39f0fea41f2634889de80fd52beb57b9e139413aafe8bdc0697f458b610d3231c4bffc883fedcbeb6d74c5d7471458c5f5c5a
@@ -0,0 +1,5 @@
1
+ <div class="avatar-current">
2
+ <%= image_tag avatarable.logo.url(:medium) %>
3
+ </div>
4
+
5
+
@@ -1,4 +1,8 @@
1
1
  <div class="avatar-update">
2
+ <%= render partial: 'avatars/current',
3
+ object: avatarable,
4
+ as: :avatarable %>
5
+
2
6
  <%= form_for avatarable, url: avatar_path, multipart: true do |f| %>
3
7
  <%= f.file_field :logo, "data-url" => avatar_path %>
4
8
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module AvatarsForRails
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avatars_for_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Castro Montero
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-30 00:00:00.000000000 Z
12
+ date: 2013-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails
@@ -198,6 +198,7 @@ files:
198
198
  - app/assets/stylesheets/avatars_for_rails.css
199
199
  - app/controllers/avatars_controller.rb
200
200
  - app/views/avatars/_crop.html.erb
201
+ - app/views/avatars/_current.html.erb
201
202
  - app/views/avatars/_form.html.erb
202
203
  - app/views/avatars/_progress.html.erb
203
204
  - avatars_for_rails.gemspec
@@ -299,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
300
  version: '0'
300
301
  requirements: []
301
302
  rubyforge_project:
302
- rubygems_version: 2.0.0
303
+ rubygems_version: 2.0.6
303
304
  signing_key:
304
305
  specification_version: 4
305
306
  summary: Avatar manager for rails apps