mix-rails-songs 0.10.3 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/app/models/song.rb CHANGED
@@ -11,7 +11,7 @@ class Song
11
11
 
12
12
  mount_uploader :mp3, Songs::SongUploader
13
13
 
14
- validates_presence_of :name
14
+ validates_presence_of :title
15
15
  validates_presence_of :author
16
16
 
17
17
  scope :published, where(status: :published)
@@ -47,9 +47,9 @@ class Songs::SongUploader < CarrierWave::Uploader::Base
47
47
 
48
48
  # Add a white list of extensions which are allowed to be uploaded.
49
49
  # For images you might use something like this:
50
- # def extension_white_list
51
- # %w(jpg jpeg gif png)
52
- # end
50
+ def extension_white_list
51
+ %w(mp3)
52
+ end
53
53
 
54
54
  # Override the filename of the uploaded files:
55
55
  # Avoid using model.id or version_name here, see uploader/store.rb for details.
@@ -2,7 +2,7 @@ module MixRailsSongs
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 10
5
- TINY = 3
5
+ TINY = 4
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mix-rails-songs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: 656486252467569342
69
+ hash: -209093610267708910
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 656486252467569342
78
+ hash: -209093610267708910
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.24