alchemy-richmedia-essences 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +41 -0
  5. data/Rakefile +1 -0
  6. data/alchemy-richmedia-essences.gemspec +17 -0
  7. data/app/controllers/alchemy/admin/essence_audios_controller.rb +21 -0
  8. data/app/controllers/alchemy/admin/essence_flashes_controller.rb +21 -0
  9. data/app/controllers/alchemy/admin/essence_videos_controller.rb +21 -0
  10. data/app/models/alchemy/essence_audio.rb +20 -0
  11. data/app/models/alchemy/essence_flash.rb +19 -0
  12. data/app/models/alchemy/essence_video.rb +21 -0
  13. data/app/views/alchemy/admin/essence_audios/edit.html.erb +25 -0
  14. data/app/views/alchemy/admin/essence_flashes/edit.html.erb +21 -0
  15. data/app/views/alchemy/admin/essence_videos/edit.html.erb +29 -0
  16. data/app/views/alchemy/essences/_essence_audio_editor.html.erb +6 -0
  17. data/app/views/alchemy/essences/_essence_audio_view.html.erb +33 -0
  18. data/app/views/alchemy/essences/_essence_flash_editor.html.erb +6 -0
  19. data/app/views/alchemy/essences/_essence_flash_view.html.erb +26 -0
  20. data/app/views/alchemy/essences/_essence_video_editor.html.erb +6 -0
  21. data/app/views/alchemy/essences/_essence_video_view.html.erb +35 -0
  22. data/app/views/alchemy/essences/_richmedia_essence_editor.html.erb +65 -0
  23. data/config/authorization_rules.rb +9 -0
  24. data/config/routes.rb +7 -0
  25. data/db/migrate/20121113171023_create_alchemy_richmedia_essences.rb +42 -0
  26. data/lib/alchemy-richmedia-essences.rb +1 -0
  27. data/lib/alchemy-richmedia-essences/engine.rb +15 -0
  28. data/lib/alchemy-richmedia-essences/version.rb +7 -0
  29. metadata +75 -0
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in alchemy-richmedia-essences.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Thomas von Deyen
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Alchemy CMS Richmedia Essences
2
+
3
+ Adds EssenceAudio, EssenceFlash and EssenceVideo essences to your Alchemy CMS powered site.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'alchemy-richmedia-essences'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install alchemy-richmedia-essences
18
+
19
+ ## Usage
20
+
21
+ 1. After installing, prepare your database with:
22
+
23
+ $ rake alchemy_richmedia_essences:install:migrations db:migrate
24
+
25
+ 2. In your `elements.yml` add one of the shiny new essences to your element of choice.
26
+
27
+ # elements.yml
28
+ - name: video
29
+ contents:
30
+ - name: file
31
+ type: EssenceVideo
32
+
33
+ That's it!
34
+
35
+ ## Contributing
36
+
37
+ 1. Fork it
38
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
39
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
40
+ 4. Push to the branch (`git push origin my-new-feature`)
41
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'alchemy-richmedia-essences/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "alchemy-richmedia-essences"
8
+ gem.version = Alchemy::Richmedia::Essences::VERSION
9
+ gem.authors = ["Thomas von Deyen"]
10
+ gem.email = ["tvdeyen@gmail.com"]
11
+ gem.description = %q{EssenceAudio, EssenceFlash and EssenceVideo for Alchemy CMS}
12
+ gem.summary = %q{Adds EssenceAudio, EssenceFlash and EssenceVideo essences to your Alchemy CMS powered site.}
13
+ gem.homepage = "http://alchemy-cms.com"
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.require_paths = ["lib"]
17
+ end
@@ -0,0 +1,21 @@
1
+ module Alchemy
2
+ class Admin::EssenceAudiosController < Alchemy::Admin::BaseController
3
+
4
+ before_filter :load_essence
5
+
6
+ def edit
7
+ render :layout => false
8
+ end
9
+
10
+ def update
11
+ @essence_audio.update_attributes(params[:essence_audio])
12
+ end
13
+
14
+ private
15
+
16
+ def load_essence
17
+ @essence_audio = EssenceAudio.find(params[:id])
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Alchemy
2
+ class Admin::EssenceFlashesController < Alchemy::Admin::BaseController
3
+
4
+ before_filter :load_essence
5
+
6
+ def edit
7
+ render :layout => false
8
+ end
9
+
10
+ def update
11
+ @essence_flash.update_attributes(params[:essence_flash])
12
+ end
13
+
14
+ private
15
+
16
+ def load_essence
17
+ @essence_flash = EssenceFlash.find(params[:id])
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Alchemy
2
+ class Admin::EssenceVideosController < Alchemy::Admin::BaseController
3
+
4
+ before_filter :load_essence
5
+
6
+ def edit
7
+ render :layout => false
8
+ end
9
+
10
+ def update
11
+ @essence_video.update_attributes(params[:essence_video])
12
+ end
13
+
14
+ private
15
+
16
+ def load_essence
17
+ @essence_video = EssenceVideo.find(params[:id])
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,20 @@
1
+ module Alchemy
2
+ class EssenceAudio < ActiveRecord::Base
3
+
4
+ attr_accessible(
5
+ :width,
6
+ :height,
7
+ :show_eq,
8
+ :show_navigation,
9
+ :attachment_id
10
+ )
11
+
12
+ acts_as_essence(
13
+ :ingredient_column => :attachment,
14
+ :preview_text_method => :name
15
+ )
16
+
17
+ belongs_to :attachment
18
+
19
+ end
20
+ end
@@ -0,0 +1,19 @@
1
+ module Alchemy
2
+ class EssenceFlash < ActiveRecord::Base
3
+
4
+ attr_accessible(
5
+ :width,
6
+ :height,
7
+ :player_version,
8
+ :attachment_id
9
+ )
10
+
11
+ acts_as_essence(
12
+ :ingredient_column => :attachment,
13
+ :preview_text_method => :name
14
+ )
15
+
16
+ belongs_to :attachment
17
+
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ module Alchemy
2
+ class EssenceVideo < ActiveRecord::Base
3
+
4
+ attr_accessible(
5
+ :width,
6
+ :height,
7
+ :allow_fullscreen,
8
+ :auto_play,
9
+ :show_navigation,
10
+ :attachment_id
11
+ )
12
+
13
+ acts_as_essence(
14
+ :ingredient_column => :attachment,
15
+ :preview_text_method => :name
16
+ )
17
+
18
+ belongs_to :attachment
19
+
20
+ end
21
+ end
@@ -0,0 +1,25 @@
1
+ <%= form_for([:admin, @essence_audio], :remote => true) do |f| %>
2
+ <table>
3
+ <tr>
4
+ <td class="label"><%= f.label "width" %></td>
5
+ <td class="input"><%= f.text_field "width", :class => 'thin_border' %></td>
6
+ </tr>
7
+ <tr>
8
+ <td class="label"><%= f.label "height" %></td>
9
+ <td class="input"><%= f.text_field "height", :class => 'thin_border' %></td>
10
+ </tr>
11
+ <tr>
12
+ <td class="label"><%= f.label "show_eq" %></td>
13
+ <td class="checkbox"><%= f.check_box "show_eq" %></td>
14
+ </tr>
15
+ <tr>
16
+ <td class="label"><%= f.label "show_navigation" %></td>
17
+ <td class="checkbox"><%= f.check_box "show_navigation" %></td>
18
+ </tr>
19
+ <tr>
20
+ <td colspan="2" class="submit">
21
+ <%= f.button t("save"), :class => 'button' %>
22
+ </td>
23
+ </tr>
24
+ </table>
25
+ <% end %>
@@ -0,0 +1,21 @@
1
+ <%= form_for([:admin, @essence_flash], :remote => true) do |f| %>
2
+ <table>
3
+ <tr>
4
+ <td class="label"><%= f.label "width" %></td>
5
+ <td class="input"><%= f.text_field "width", :class => 'thin_border' %></td>
6
+ </tr>
7
+ <tr>
8
+ <td class="label"><%= f.label "height" %></td>
9
+ <td class="input"><%= f.text_field "height", :class => 'thin_border' %></td>
10
+ </tr>
11
+ <tr>
12
+ <td class="label"><%= f.label "player_version" %></td>
13
+ <td class="input"><%= f.text_field "player_version", :class => 'thin_border' %></td>
14
+ </tr>
15
+ <tr>
16
+ <td colspan="2" class="submit">
17
+ <%= f.button t("save"), :class => 'button' %>
18
+ </td>
19
+ </tr>
20
+ </table>
21
+ <% end %>
@@ -0,0 +1,29 @@
1
+ <%= form_for([:admin, @essence_video], :remote => true) do |f| %>
2
+ <table>
3
+ <tr>
4
+ <td class="label"><%= f.label "width" %></td>
5
+ <td class="input"><%= f.text_field "width", :class => 'thin_border' %></td>
6
+ </tr>
7
+ <tr>
8
+ <td class="label"><%= f.label "height" %></td>
9
+ <td class="input"><%= f.text_field "height", :class => 'thin_border' %></td>
10
+ </tr>
11
+ <tr>
12
+ <td class="label"><%= f.label "allow_fullscreen" %></td>
13
+ <td class="checkbox"><%= f.check_box "allow_fullscreen" %></td>
14
+ </tr>
15
+ <tr>
16
+ <td class="label"><%= f.label "auto_play" %></td>
17
+ <td class="checkbox"><%= f.check_box "auto_play" %></td>
18
+ </tr>
19
+ <tr>
20
+ <td class="label"><%= f.label "show_navigation" %></td>
21
+ <td class="checkbox"><%= f.check_box "show_navigation" %></td>
22
+ </tr>
23
+ <tr>
24
+ <td colspan="2" class="submit">
25
+ <%= f.button t("save"), :class => 'button' %>
26
+ </td>
27
+ </tr>
28
+ </table>
29
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <%= render(
2
+ "alchemy/essences/richmedia_essence_editor",
3
+ :options => options,
4
+ :content => content,
5
+ :controller => 'essence_audios'
6
+ ) %>
@@ -0,0 +1,33 @@
1
+ <%- unless content.essence.attachment.nil? -%>
2
+ <%- unless options[:player_cover_image].blank? -%>
3
+ <%- i_height = options[:player_cover_image].image_height.to_f -%>
4
+ <%- i_width = options[:player_cover_image].image_width.to_f -%>
5
+ <%- ratio = i_height / i_width -%>
6
+ <%- width = (options[:player_cover_image_width] rescue 320) -%>
7
+ <%- height = width * ratio -%>
8
+ <%- else -%>
9
+ <%- width = content.essence.width.blank? ? (options[:player_size].split('x')[0] rescue 320) : content.essence.width -%>
10
+ <%- height = content.essence.height.blank? ? (options[:player_size].split('x')[1] rescue 20) : content.essence.height -%>
11
+ <%- end -%>
12
+ <div id="alchemy_audio_player_<%= content.id %>">
13
+ To watch this video, you need the latest <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Flash-Player</a> and active javascript in your browser.
14
+ </div>
15
+ <script type="text/javascript" charset="utf-8">
16
+ //<!--[CDATA[
17
+ var alchemy_audio_player_<%= content.id %> = new SWFObject("/mediaplayer.swf", "mediaplayer", <%= width %>, <%= height %>, "8");
18
+ alchemy_audio_player_<%= content.id %>.addVariable("width", <%= width %>);
19
+ alchemy_audio_player_<%= content.id %>.addVariable("height", <%= height %>);
20
+ alchemy_audio_player_<%= content.id %>.addVariable("backcolor", '<%= options[:player_backcolor] || "0xFFFFFF" %>');
21
+ alchemy_audio_player_<%= content.id %>.addVariable("frontcolor", '<%= options[:player_frontcolor] || "0x000000" %>');
22
+ alchemy_audio_player_<%= content.id %>.addVariable("lightcolor", '<%= options[:player_lightcolor] || "0xEDEDED" %>');
23
+ alchemy_audio_player_<%= content.id %>.addVariable("screencolor", '<%= options[:player_screencolor] || "0x000000" %>');
24
+ alchemy_audio_player_<%= content.id %>.addVariable("showeq", '<%= content.essence.show_eq ? "true" : "false" %>');
25
+ alchemy_audio_player_<%= content.id %>.addVariable("shownavigation", '<%= content.essence.show_navigation ? "true" : "false" %>');
26
+ alchemy_audio_player_<%= content.id %>.addVariable("file", '<%= content.essence.attachment.public_filename %>');
27
+ <%- unless options[:player_cover_image].blank? -%>
28
+ alchemy_audio_player_<%= content.id %>.addVariable("image", '<%= "/" + options[:player_cover_image].file_name %>');
29
+ <%- end -%>
30
+ alchemy_audio_player_<%= content.id %>.write("alchemy_audio_player_<%= content.id %>");
31
+ //]]-->
32
+ </script>
33
+ <%- end -%>
@@ -0,0 +1,6 @@
1
+ <%= render(
2
+ "alchemy/essences/richmedia_essence_editor",
3
+ :options => options,
4
+ :content => content,
5
+ :controller => 'essence_flashes'
6
+ ) %>
@@ -0,0 +1,26 @@
1
+ <%- unless content.essence.attachment.nil? -%>
2
+ <%- width = content.essence.width.blank? ? (options[:flash_movie_size].split('x')[0] rescue 320) : content.essence.width -%>
3
+ <%- height = content.essence.height.blank? ? (options[:flash_movie_size].split('x')[1] rescue 200) : content.essence.height -%>
4
+ <%- player_version = content.essence.player_version.blank? ? "8" : content.essence.player_version -%>
5
+ <div class="flash_film">
6
+ <div id="swf_container_<%= content.id %>">
7
+ Sie brauchen den neusten <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Flash-Player</a> und Sie müssen JavaScript aktivieren.
8
+ </div>
9
+ <script type="text/javascript" charset="utf-8">
10
+ var flashvars = {};
11
+ var params = {};
12
+ var attributes = {};
13
+ swfobject.embedSWF(
14
+ "<%= content.essence.attachment.public_filename %>",
15
+ "swf_container_<%= content.id %>",
16
+ '<%= width %>',
17
+ '<%= height %>',
18
+ '<%= player_version %>',
19
+ false,
20
+ flashvars,
21
+ params,
22
+ attributes
23
+ );
24
+ </script>
25
+ </div>
26
+ <%- end -%>
@@ -0,0 +1,6 @@
1
+ <%= render(
2
+ "alchemy/essences/richmedia_essence_editor",
3
+ :options => options,
4
+ :content => content,
5
+ :controller => 'essence_videos'
6
+ ) %>
@@ -0,0 +1,35 @@
1
+ <%- unless content.essence.attachment.nil? -%>
2
+
3
+ <%- width = content.essence.width.blank? ? (options[:player_size].split('x')[0] rescue 480) : content.essence.width -%>
4
+ <%- height = content.essence.height.blank? ? (options[:player_size].split('x')[1] rescue 320) : content.essence.height -%>
5
+
6
+ <a href="<%= alchemy.show_attachment_path(content.essence.attachment) %>"
7
+ id="player_<%= content.id %>"
8
+ style="width: <%= width %>px; height: <%= height %>px; display: block">
9
+ </a>
10
+ <script type="text/javascript" charset="utf-8">
11
+ flowplayer("player_<%= content.id %>",
12
+ {
13
+ src: "/flowplayer-3.2.5.swf",
14
+ allowfullscreen: <%= content.essence.allow_fullscreen %>
15
+ },
16
+ {
17
+ clip: {
18
+ autoBuffering: true,
19
+ autoPlay: false,
20
+ scaling: 'fit'
21
+ },
22
+ plugins: {
23
+ controls:
24
+ <%- if content.essence.show_navigation -%>
25
+ {
26
+ fullscreen: <%= content.essence.allow_fullscreen %>
27
+ }
28
+ <%- else -%>
29
+ null
30
+ <%- end -%>
31
+ }
32
+ }
33
+ );
34
+ </script>
35
+ <%- end -%>
@@ -0,0 +1,65 @@
1
+ <div class="content_editor" id="<%= content_dom_id(content) %>">
2
+ <label style="display: inline">
3
+ <%= render_content_name(content) %>
4
+ <%= delete_content_link(content) %>
5
+ </label>
6
+ <div class="file" id="file_<%= content.id %>">
7
+ <div class="file_icon">
8
+ <% if content.ingredient.nil? %>
9
+ <%= link_to_overlay_window("",
10
+ alchemy.admin_attachments_path(
11
+ :content_id => content.id,
12
+ :only => options[:file_assign_show_only],
13
+ :except => options[:file_assign_do_not_show],
14
+ :options => options
15
+ ),
16
+ {
17
+ :title => t('assign_file'),
18
+ :size => '520x400',
19
+ :resizable => 'true'
20
+ },
21
+ :class => 'assign_file',
22
+ :title => t('assign_file')
23
+ ) %>
24
+ <% else %>
25
+ <%= render_icon(content.ingredient.icon_css_class) %>
26
+ <% end %>
27
+ </div>
28
+ <div class="file_name">
29
+ <%= content.ingredient.name rescue ("&#x2190;" + t('assign_file_from_archive')).html_safe %>
30
+ </div>
31
+ <% unless content.ingredient.nil? %>
32
+ <%= hidden_field_tag content.form_field_name(:attachment_id), content.ingredient.id %>
33
+ <div class="essence_file_tools">
34
+ <%= link_to_overlay_window("",
35
+ alchemy.admin_attachments_path(
36
+ :content_id => content.id,
37
+ :only => options[:file_assign_show_only],
38
+ :except => options[:file_assign_do_not_show],
39
+ :options => options
40
+ ),
41
+ {
42
+ :title => t('assign_file'),
43
+ :size => '520x400',
44
+ :resizable => 'true'
45
+ },
46
+ :class => 'assign_file',
47
+ :title => t('assign_file')
48
+ ) %>
49
+ <%= link_to_overlay_window("",
50
+ url_for(
51
+ :controller => controller,
52
+ :action => 'edit',
53
+ :id => content.essence.id
54
+ ),
55
+ {
56
+ :title => t('edit_file_properties'),
57
+ :size => '400x150'
58
+ },
59
+ :class => 'edit_file',
60
+ :title => t('edit_file_properties')
61
+ ) %>
62
+ </div>
63
+ <% end %>
64
+ </div>
65
+ </div>
@@ -0,0 +1,9 @@
1
+ authorization do
2
+
3
+ role :author do
4
+ has_permission_on :alchemy_admin_essence_audios, :to => [:edit, :update]
5
+ has_permission_on :alchemy_admin_essence_flashes, :to => [:edit, :update]
6
+ has_permission_on :alchemy_admin_essence_videos, :to => [:edit, :update]
7
+ end
8
+
9
+ end
data/config/routes.rb ADDED
@@ -0,0 +1,7 @@
1
+ Alchemy::Engine.routes.draw do
2
+ namespace :admin do
3
+ resources :essence_audios
4
+ resources :essence_flashes
5
+ resources :essence_videos
6
+ end
7
+ end
@@ -0,0 +1,42 @@
1
+ class CreateAlchemyRichmediaEssences < ActiveRecord::Migration
2
+ def change
3
+ return if table_exists?(:alchemy_essence_audios)
4
+
5
+ create_table "alchemy_essence_audios" do |t|
6
+ t.integer "attachment_id"
7
+ t.integer "width", :default => 400
8
+ t.integer "height", :default => 300
9
+ t.boolean "show_eq", :default => true
10
+ t.boolean "show_navigation", :default => true
11
+ t.integer "creator_id"
12
+ t.integer "updater_id"
13
+ t.datetime "created_at", :null => false
14
+ t.datetime "updated_at", :null => false
15
+ end
16
+
17
+ create_table "alchemy_essence_flashes" do |t|
18
+ t.integer "attachment_id"
19
+ t.integer "width", :default => 400
20
+ t.integer "height", :default => 300
21
+ t.string "player_version", :default => "9.0.28"
22
+ t.integer "creator_id"
23
+ t.integer "updater_id"
24
+ t.datetime "created_at", :null => false
25
+ t.datetime "updated_at", :null => false
26
+ end
27
+
28
+ create_table "alchemy_essence_videos" do |t|
29
+ t.integer "attachment_id"
30
+ t.integer "width"
31
+ t.integer "height"
32
+ t.boolean "allow_fullscreen", :default => true
33
+ t.boolean "auto_play", :default => false
34
+ t.boolean "show_navigation", :default => true
35
+ t.integer "creator_id"
36
+ t.integer "updater_id"
37
+ t.datetime "created_at", :null => false
38
+ t.datetime "updated_at", :null => false
39
+ end
40
+
41
+ end
42
+ end
@@ -0,0 +1 @@
1
+ require "alchemy-richmedia-essences/engine"
@@ -0,0 +1,15 @@
1
+ module Alchemy
2
+ module Richmedia
3
+ module Essences
4
+ class Engine < Rails::Engine
5
+ engine_name 'alchemy_richmedia_essences'
6
+ config.mount_at = '/'
7
+
8
+ initializer "alchemy_richmedia_essences.add_authorization_rules" do
9
+ Alchemy::AuthEngine.get_instance.load(File.join(File.dirname(__FILE__), '../..', 'config/authorization_rules.rb'))
10
+ end
11
+
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,7 @@
1
+ module Alchemy
2
+ module Richmedia
3
+ module Essences
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alchemy-richmedia-essences
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Thomas von Deyen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-13 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: EssenceAudio, EssenceFlash and EssenceVideo for Alchemy CMS
15
+ email:
16
+ - tvdeyen@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - alchemy-richmedia-essences.gemspec
27
+ - app/controllers/alchemy/admin/essence_audios_controller.rb
28
+ - app/controllers/alchemy/admin/essence_flashes_controller.rb
29
+ - app/controllers/alchemy/admin/essence_videos_controller.rb
30
+ - app/models/alchemy/essence_audio.rb
31
+ - app/models/alchemy/essence_flash.rb
32
+ - app/models/alchemy/essence_video.rb
33
+ - app/views/alchemy/admin/essence_audios/edit.html.erb
34
+ - app/views/alchemy/admin/essence_flashes/edit.html.erb
35
+ - app/views/alchemy/admin/essence_videos/edit.html.erb
36
+ - app/views/alchemy/essences/_essence_audio_editor.html.erb
37
+ - app/views/alchemy/essences/_essence_audio_view.html.erb
38
+ - app/views/alchemy/essences/_essence_flash_editor.html.erb
39
+ - app/views/alchemy/essences/_essence_flash_view.html.erb
40
+ - app/views/alchemy/essences/_essence_video_editor.html.erb
41
+ - app/views/alchemy/essences/_essence_video_view.html.erb
42
+ - app/views/alchemy/essences/_richmedia_essence_editor.html.erb
43
+ - config/authorization_rules.rb
44
+ - config/routes.rb
45
+ - db/migrate/20121113171023_create_alchemy_richmedia_essences.rb
46
+ - lib/alchemy-richmedia-essences.rb
47
+ - lib/alchemy-richmedia-essences/engine.rb
48
+ - lib/alchemy-richmedia-essences/version.rb
49
+ homepage: http://alchemy-cms.com
50
+ licenses: []
51
+ post_install_message:
52
+ rdoc_options: []
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubyforge_project:
69
+ rubygems_version: 1.8.24
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: Adds EssenceAudio, EssenceFlash and EssenceVideo essences to your Alchemy
73
+ CMS powered site.
74
+ test_files: []
75
+ has_rdoc: