tienda 2.1.1 → 2.1.2

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: 933f506f2bd775ae3c0f5d799a27d41d29d55c6e
4
- data.tar.gz: 3f7b45825520d4627b312ec2961d5582d766625d
3
+ metadata.gz: edf111d05bb6bea52a0e5cbe91c43f8616d359d1
4
+ data.tar.gz: 7c59e4ea1357e278c4b8641775ba5861f89d8230
5
5
  SHA512:
6
- metadata.gz: 0cfa436a52083dec422649329cd0ce7850773e97b79e4ccc70437f4ed77eb0aef9a97c79967bbaa8ca25031d23ad972e38ec89387b6baaed9d21b21299ffc2cb
7
- data.tar.gz: af034953e10a3b0f96f64939001ea0a42abb4b4e844ebbb187ffdde2ed37d6bb3af20edc30a843ec93c7bf91cc8806a9bba1a0c831561635c5e240b133f44b11
6
+ metadata.gz: 71f53bf4675bb97b2ee8e413eca9ddbdd6c1bd7de7148f56b3942fd4f49b70298e7815c216213cacf8a3c9fae79a25d1dfa9a58a812b1b647bd40d9e5e8d39d2
7
+ data.tar.gz: 146f2925b2d153afd168b8c95c1ce3ef6aac3c7e91440efb9a6bd94c203e7f2e42177d22ad34a8a21b2cbd1e76cc19b5feb38547c54e5f95cfe0b8a9dcdd279d
@@ -42,7 +42,7 @@ module Tienda
42
42
  private
43
43
 
44
44
  def safe_params
45
- params[:product_category].permit(:name, :permalink, :description, :image_file, :parent_id)
45
+ params[:product_category].permit(:name, :permalink, :description, :image, :parent_id)
46
46
  end
47
47
 
48
48
  end
@@ -15,30 +15,6 @@ module Tienda
15
15
  content_tag :span, t("tienda.orders.statuses.#{status}"), :class => "status-tag #{status}"
16
16
  end
17
17
 
18
- def attachment_preview(attachment, options = {})
19
- if attachment
20
- String.new.tap do |s|
21
- if attachment.mounted_as == :image
22
- style = "style='background-image:url(#{attachment.url})'"
23
- else
24
- style = ''
25
- end
26
- s << "<div class='attachmentPreview #{attachment.mounted_as == :image ? 'image' : 'doc'}'>"
27
- s << "<div class='imgContainer'><div class='img' #{style}></div></div>"
28
- s << "<div class='desc'>"
29
- s << "<span class='filename'>#{link_to File.basename(attachment.path), attachment.url}</span>"
30
- # s << "<span class='filename'><a href='#{attachment_path(attachment)}'>#{attachment.file_name}</a></span>"
31
- s << "<span class='delete'>"
32
- s << link_to(t('helpers.attachment_preview.delete', :default => 'Delete this file?'), attachment_path(attachment), :method => :delete, :data => {:confirm => t('helpers.attachment_preview.delete_confirm', :default => "Are you sure you wish to remove this attachment?")})
33
- s << "</span>"
34
- s << "</div>"
35
- s << "</div>"
36
- end.html_safe
37
- elsif !options[:hide_if_blank]
38
- "<div class='attachmentPreview'><div class='imgContainer'><div class='img none'></div></div><div class='desc none'>#{t('helpers.attachment_preview.no_attachment')}</div></div>".html_safe
39
- end
40
- end
41
-
42
18
  def settings_label(field, html_class)
43
19
  "<label for='settings_#{field}' class='#{html_class}'>#{t("tienda.settings.labels.#{field}")}</label>".html_safe
44
20
  end
@@ -29,10 +29,11 @@
29
29
  .panel-body
30
30
  .row
31
31
  .col-md-12
32
- = f.label :image_file, t('tienda.product_category.image')
32
+ = f.label :image, t('tienda.product_category.image')
33
33
  %div
34
- = attachment_preview @product_category.image
35
- %p= f.file_field :image_file, class: 'form-control'
34
+ - unless @product_category.image.blank?
35
+ = image_tag @product_category.image.url
36
+ %p= f.file_field :image, class: 'form-control'
36
37
 
37
38
  .panel.panel-default
38
39
  .panel-body
@@ -0,0 +1 @@
1
+ Mime::Type.register "application/vnd.ms-excel", :xls
@@ -1,3 +1,3 @@
1
1
  module Tienda
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tienda
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Robaina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -202,6 +202,9 @@ dependencies:
202
202
  name: carrierwave
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: '0.10'
205
208
  - - ">="
206
209
  - !ruby/object:Gem::Version
207
210
  version: 0.10.0
@@ -209,6 +212,9 @@ dependencies:
209
212
  prerelease: false
210
213
  version_requirements: !ruby/object:Gem::Requirement
211
214
  requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: '0.10'
212
218
  - - ">="
213
219
  - !ruby/object:Gem::Version
214
220
  version: 0.10.0
@@ -216,6 +222,9 @@ dependencies:
216
222
  name: carrierwave-aws
217
223
  requirement: !ruby/object:Gem::Requirement
218
224
  requirements:
225
+ - - "~>"
226
+ - !ruby/object:Gem::Version
227
+ version: '0.5'
219
228
  - - ">="
220
229
  - !ruby/object:Gem::Version
221
230
  version: 0.5.0
@@ -223,6 +232,9 @@ dependencies:
223
232
  prerelease: false
224
233
  version_requirements: !ruby/object:Gem::Requirement
225
234
  requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: '0.5'
226
238
  - - ">="
227
239
  - !ruby/object:Gem::Version
228
240
  version: 0.5.0
@@ -230,6 +242,9 @@ dependencies:
230
242
  name: mini_magick
231
243
  requirement: !ruby/object:Gem::Requirement
232
244
  requirements:
245
+ - - "~>"
246
+ - !ruby/object:Gem::Version
247
+ version: '4.2'
233
248
  - - ">="
234
249
  - !ruby/object:Gem::Version
235
250
  version: 4.2.7
@@ -237,6 +252,9 @@ dependencies:
237
252
  prerelease: false
238
253
  version_requirements: !ruby/object:Gem::Requirement
239
254
  requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: '4.2'
240
258
  - - ">="
241
259
  - !ruby/object:Gem::Version
242
260
  version: 4.2.7
@@ -541,6 +559,7 @@ files:
541
559
  - app/views/tienda/variants/index.html.haml
542
560
  - config/initializers/assets.rb
543
561
  - config/initializers/carrierwave.rb
562
+ - config/initializers/mime_types.rb
544
563
  - config/locales/en.yml
545
564
  - config/locales/pl.yml
546
565
  - config/locales/pt-BR.yml