merb_global 0.0.4.1 → 0.0.4.2
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/Rakefile +1 -1
- data/lib/merb_global/merbrake.rb +6 -2
- metadata +2 -2
data/Rakefile
CHANGED
|
@@ -5,7 +5,7 @@ require 'spec/rake/spectask'
|
|
|
5
5
|
|
|
6
6
|
PLUGIN = "merb_global"
|
|
7
7
|
NAME = "merb_global"
|
|
8
|
-
GEM_VERSION = "0.0.4.
|
|
8
|
+
GEM_VERSION = "0.0.4.2"
|
|
9
9
|
AUTHORS = ["Alex Coles", "Maciej Piechotka"]
|
|
10
10
|
EMAIL = "alex@alexcolesportfolio.com"
|
|
11
11
|
HOMEPAGE = "http://trac.ikonoklastik.com/merb_global/"
|
data/lib/merb_global/merbrake.rb
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
require 'fileutils'
|
|
2
2
|
|
|
3
3
|
namespace :merb_global do
|
|
4
|
+
|
|
4
5
|
task :merb_start do
|
|
5
6
|
Merb.start_environment :adapter => 'runner',
|
|
6
7
|
:environment => ENV['MERB_ENV'] || 'development'
|
|
7
8
|
end
|
|
9
|
+
|
|
8
10
|
desc 'Create migration'
|
|
9
11
|
task :migration => :merb_start do
|
|
10
12
|
Merb::Global::Providers.provider.create!
|
|
11
13
|
end
|
|
14
|
+
|
|
12
15
|
desc 'Transfer the translations from one provider to another'
|
|
13
16
|
task :transfer => :merb_start do
|
|
14
17
|
from = Merb::Global.config 'source', 'gettext'
|
|
15
18
|
into = Merb::Global.config 'provider', 'gettext'
|
|
16
19
|
if from == 'gettext' and into == 'gettext'
|
|
17
|
-
Dir[Merb::Global::Providers.localedir + '/*.po'] do |file|
|
|
20
|
+
Dir[Merb::Global::Providers.localedir + '/*.po'].each do |file|
|
|
18
21
|
lang = File.basename file, '.po'
|
|
19
22
|
lang_dir = File.join(Merb::Global::Providers.localedir,
|
|
20
23
|
lang, 'LC_MESSAGES')
|
|
@@ -30,4 +33,5 @@ namespace :merb_global do
|
|
|
30
33
|
Merb::Global::Provider.transfer from, into
|
|
31
34
|
end
|
|
32
35
|
end
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: merb_global
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.4.
|
|
4
|
+
version: 0.0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Coles
|
|
@@ -10,7 +10,7 @@ autorequire: merb_global
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2008-06-
|
|
13
|
+
date: 2008-06-24 00:00:00 +02:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|