Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1062 Bytes
1 | namespace :radiant do |
2 | namespace :extensions do |
3 | namespace :<%= file_name %> do |
4 | |
5 | desc "Runs the migration of the <%= localization_name %> language pack" |
6 | task :migrate => :environment do |
7 | require 'radiant/extension_migrator' |
8 | if ENV["VERSION"] |
9 | <%= class_name %>.migrator.migrate(ENV["VERSION"].to_i) |
10 | else |
11 | <%= class_name %>.migrator.migrate |
12 | end |
13 | end |
14 | |
15 | desc "Copies public assets of the <%= localization_name %> language pack to the instance public/ directory." |
16 | task :update => :environment do |
17 | is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) } |
18 | puts "Copying assets from <%= class_name %>" |
19 | Dir[<%= class_name %>.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file| |
20 | path = file.sub(<%= class_name %>.root, '') |
21 | directory = File.dirname(path) |
22 | mkdir_p RAILS_ROOT + directory, :verbose => false |
23 | cp file, RAILS_ROOT + path, :verbose => false |
24 | end |
25 | end |
26 | end |
27 | end |
28 | end |