comfortable_mexican_sofa 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
@@ -1,6 +1,6 @@
1
1
  <div id='file_uploads' class='box'>
2
2
 
3
- <%= form_for :file, :url => cms_admin_site_files_path(@site) do |form| %>
3
+ <%= form_for :file, :url => cms_admin_site_files_path(@site), :html => {:multipart => true} do |form| %>
4
4
  <a id='uploader_button' href='#' class='big button'><%= t('.button') %></a>
5
5
  <%= form.file_field :file, :multiple => true %>
6
6
  <% end %>
@@ -1,4 +1,4 @@
1
- <h1><%= t('.title')%></h1>
1
+ <h1><%= t('.title') %></h1>
2
2
 
3
3
  <%= cms_form_for @file, :as => :file, :url => {:action => :update} do |form| %>
4
4
  <%= render :partial => 'form', :object => form %>
@@ -1,5 +1,5 @@
1
1
  <h1><%= t('.title') %></h1>
2
2
 
3
- <%= cms_form_for @file, :as => :file, :url => {:action => :create} do |form| %>
3
+ <%= cms_form_for @file, :as => :file, :url => {:action => :create}, :html => {:multipart => true} do |form| %>
4
4
  <%= render :partial => 'form', :object => form %>
5
5
  <% end %>
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{comfortable_mexican_sofa}
8
- s.version = "1.4.1"
8
+ s.version = "1.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov", "The Working Group Inc"]
@@ -37,7 +37,7 @@ class CmsAdmin::FilesControllerTest < ActionController::TestCase
37
37
  assert_response :success
38
38
  assert assigns(:file)
39
39
  assert_template :new
40
- assert_select "form[action=/cms-admin/sites/#{site.id}/files]"
40
+ assert_select "form[action=/cms-admin/sites/#{site.id}/files][enctype=multipart/form-data]"
41
41
  end
42
42
 
43
43
  def test_get_edit
@@ -70,7 +70,7 @@ class CmsCategorizationTest < ActiveSupport::TestCase
70
70
  new_category = Cms::Category.create!(:label => 'Test Category', :categorized_type => 'Cms::File')
71
71
  new_category.categorizations.create!(:categorized => cms_files(:default))
72
72
  assert_equal 1, Cms::File.for_category(category.label, new_category.label).all.size
73
- assert_equal 1, Cms::File.for_category(category.label, new_category.label).count(:distinct => true)
73
+ assert_equal 1, Cms::File.for_category(category.label, new_category.label).count('cms_files.id', :distinct => true)
74
74
  end
75
75
 
76
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfortable_mexican_sofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &70180998071960 !ruby/object:Gem::Requirement
18
+ requirement: &70159786788480 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 3.0.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70180998071960
26
+ version_requirements: *70159786788480
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: active_link_to
29
- requirement: &70180998071480 !ruby/object:Gem::Requirement
29
+ requirement: &70159786786900 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70180998071480
37
+ version_requirements: *70159786786900
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: paperclip
40
- requirement: &70180998071000 !ruby/object:Gem::Requirement
40
+ requirement: &70159786785480 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: 2.3.14
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70180998071000
48
+ version_requirements: *70159786785480
49
49
  description: ''
50
50
  email: oleg@theworkinggroup.ca
51
51
  executables: []
@@ -344,7 +344,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
344
344
  version: '0'
345
345
  segments:
346
346
  - 0
347
- hash: 1934197326104432102
347
+ hash: -2300960589873991041
348
348
  required_rubygems_version: !ruby/object:Gem::Requirement
349
349
  none: false
350
350
  requirements: