mix-rails-songs 0.23.1 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3932328e2fc2bcd520a22be4276d4a37d8789f63
4
+ data.tar.gz: 661391cb5c56236637378051015fe58912c41e77
5
+ SHA512:
6
+ metadata.gz: 4b1d2626454efb960997dc327fb4d286bca04c258330763028a773acee22cb515b4aa8dd1e190c5fd0950407ea7f099dff56f98c081ba7cad4fcabcd1e8fdd75
7
+ data.tar.gz: 0e4d69544948fe610d054ec0551d1e2f0a7a964a8a66d5693394664d3a813d244f023226fb880f4f13ab56e9d23fe8fac7b5f4e90e556a68197d894477e117e2
@@ -0,0 +1,8 @@
1
+ - admix_tab t('songs.song') do |t|
2
+ - t.tab_content do
3
+ = f.input :title, as: 'string', input_html: {class: 'span12'}
4
+ = f.input :author, as: 'string', input_html: {class: 'span12'}
5
+ = f.input :mp3, as: 'file' , input_html: {class: 'span12'}
6
+
7
+ - content_for :form_options do
8
+ = f.input :status , input_html: {class: 'span12'}
@@ -0,0 +1,9 @@
1
+ - grid.column name: input_label(:defaults, :title), attribute: 'title' do |obj|
2
+ - obj.title
3
+ - grid.column name: input_label(:defaults, :author), attribute: 'author' do |obj|
4
+ - obj.author
5
+
6
+ - grid.column name: input_label(:defaults, :status), attribute: 'status',
7
+ custom_filter: {t('enumerize.status.published') => 'published', t('enumerize.status.unpublished') => 'unpublished'} do |obj|
8
+ - obj.status.text
9
+ - column_actions(grid)
@@ -1,8 +1,8 @@
1
1
  module MixRailsSongs
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 23
5
- TINY = 1
4
+ MINOR = 24
5
+ TINY = 0
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mix-rails-songs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
5
- prerelease:
4
+ version: 0.24.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sadjow Medeiros Leão
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-18 00:00:00.000000000 Z
11
+ date: 2013-03-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -37,11 +34,11 @@ files:
37
34
  - app/uploaders/songs/song_uploader.rb
38
35
  - app/controllers/admix/songs_controller.rb
39
36
  - app/controllers/songs_controller.rb
40
- - app/models/admix/songs_datagrid.rb
41
37
  - app/models/song.rb
42
38
  - app/views/admix/songs/_show.html.haml
43
39
  - app/views/admix/songs/_table_actions.html.haml
44
- - app/views/admix/songs/_form_fields.html.haml
40
+ - app/views/admix/songs/_grid_columns.haml
41
+ - app/views/admix/songs/_form_config.haml
45
42
  - app/views/songs/player.haml
46
43
  - config/locales/songs.pt-BR.yml
47
44
  - config/routes.rb
@@ -55,32 +52,25 @@ files:
55
52
  - README.rdoc
56
53
  homepage: https://github.com/mixinternet/mix-rails
57
54
  licenses: []
55
+ metadata: {}
58
56
  post_install_message:
59
57
  rdoc_options: []
60
58
  require_paths:
61
59
  - lib
62
60
  required_ruby_version: !ruby/object:Gem::Requirement
63
- none: false
64
61
  requirements:
65
- - - ! '>='
62
+ - - '>='
66
63
  - !ruby/object:Gem::Version
67
64
  version: '0'
68
- segments:
69
- - 0
70
- hash: -29050864375832947
71
65
  required_rubygems_version: !ruby/object:Gem::Requirement
72
- none: false
73
66
  requirements:
74
- - - ! '>='
67
+ - - '>='
75
68
  - !ruby/object:Gem::Version
76
69
  version: '0'
77
- segments:
78
- - 0
79
- hash: -29050864375832947
80
70
  requirements: []
81
71
  rubyforge_project:
82
- rubygems_version: 1.8.24
72
+ rubygems_version: 2.0.0
83
73
  signing_key:
84
- specification_version: 3
74
+ specification_version: 4
85
75
  summary: Songs module for mix-rails
86
76
  test_files: []
@@ -1,20 +0,0 @@
1
- class Admix::SongsDatagrid
2
-
3
- include Datagrid
4
-
5
- extend AdmixHelper
6
-
7
- scope do
8
- Song.order('id DESC')
9
- end
10
-
11
- column :title, header: input_label(:song, :title)
12
- column :author, header: input_label(:song, :author)
13
-
14
- column :status, header: input_label(:song, :status) do |record|
15
- record.status.text
16
- end
17
-
18
- include Admix::TableActions
19
-
20
- end
@@ -1,4 +0,0 @@
1
- = f.input :title, as: 'string'
2
- = f.input :author, as: 'string'
3
- = f.input :mp3, as: 'file'
4
- = f.input :status