gisikw-lilypad 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/generators/lilypad/templates/lilypads_controller.rb +7 -7
- data/lilypad.gemspec +7 -6
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -23,7 +23,7 @@ class <%= controller_name %> < ApplicationController
|
|
23
23
|
|
24
24
|
def update
|
25
25
|
if @<%= object_name %>.update_attributes(params[:<%= object_name %>])
|
26
|
-
redirect_to <%=
|
26
|
+
redirect_to <%= object_name %>_url(@<%= object_name %>)
|
27
27
|
else
|
28
28
|
render :action => "edit"
|
29
29
|
end
|
@@ -37,12 +37,12 @@ class <%= controller_name %> < ApplicationController
|
|
37
37
|
def show
|
38
38
|
respond_to do |format|
|
39
39
|
format.html
|
40
|
-
format.
|
41
|
-
format.
|
42
|
-
format.
|
43
|
-
format.midi {send_file(@<%= object_name %>.to_midi)}
|
44
|
-
format.wav {send_file(@<%= object_name %>.to_wav)}
|
45
|
-
format.mp3 {send_file(@<%= object_name %>.to_mp3)}
|
40
|
+
format.ly {send_file(@<%= object_name %>.to_ly,:disposition=>"inline",:type=>"text/x-lilypond")}
|
41
|
+
format.png {send_file(@<%= object_name %>.to_png(params[:page]||1),:disposition=>"inline",:type=>"image/png"}
|
42
|
+
format.pdf {send_file(@<%= object_name %>.to_pdf,:disposition=>"inline",:type=>"application/pdf")}
|
43
|
+
format.midi {send_file(@<%= object_name %>.to_midi,:disposition=>"inline",:type=>"audio/midi")}
|
44
|
+
format.wav {send_file(@<%= object_name %>.to_wav,:disposition=>"inline",:type=>"audio/wav")}
|
45
|
+
format.mp3 {send_file(@<%= object_name %>.to_mp3,:disposition=>"inline",:type=>"audio/mpeg")}
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
data/lilypad.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{lilypad}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kevin W. Gisi"]
|
12
|
-
s.date = %q{2009-08-
|
12
|
+
s.date = %q{2009-08-11}
|
13
13
|
s.description = %q{TODO: longer description of your gem}
|
14
14
|
s.email = %q{kevin.gisi@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -39,19 +39,20 @@ Gem::Specification.new do |s|
|
|
39
39
|
"test/lilypad_test.rb",
|
40
40
|
"test/test_helper.rb"
|
41
41
|
]
|
42
|
+
s.has_rdoc = true
|
42
43
|
s.homepage = %q{http://github.com/gisikw/lilypad}
|
43
44
|
s.rdoc_options = ["--charset=UTF-8"]
|
44
45
|
s.require_paths = ["lib"]
|
45
|
-
s.rubygems_version = %q{1.3.
|
46
|
+
s.rubygems_version = %q{1.3.1}
|
46
47
|
s.summary = %q{TODO: one-line summary of your gem}
|
47
48
|
s.test_files = [
|
48
|
-
"test/
|
49
|
-
"test/
|
49
|
+
"test/test_helper.rb",
|
50
|
+
"test/lilypad_test.rb"
|
50
51
|
]
|
51
52
|
|
52
53
|
if s.respond_to? :specification_version then
|
53
54
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
54
|
-
s.specification_version =
|
55
|
+
s.specification_version = 2
|
55
56
|
|
56
57
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
57
58
|
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gisikw-lilypad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin W. Gisi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-11 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -53,7 +53,7 @@ files:
|
|
53
53
|
- lilypad.gemspec
|
54
54
|
- test/lilypad_test.rb
|
55
55
|
- test/test_helper.rb
|
56
|
-
has_rdoc:
|
56
|
+
has_rdoc: true
|
57
57
|
homepage: http://github.com/gisikw/lilypad
|
58
58
|
licenses:
|
59
59
|
post_install_message:
|
@@ -78,8 +78,8 @@ requirements: []
|
|
78
78
|
rubyforge_project:
|
79
79
|
rubygems_version: 1.3.5
|
80
80
|
signing_key:
|
81
|
-
specification_version:
|
81
|
+
specification_version: 2
|
82
82
|
summary: "TODO: one-line summary of your gem"
|
83
83
|
test_files:
|
84
|
-
- test/lilypad_test.rb
|
85
84
|
- test/test_helper.rb
|
85
|
+
- test/lilypad_test.rb
|