ubiquo 0.9.0.b2 → 0.9.0.b3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ubiquo/template.erb +19 -4
- data/ubiquo.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.0.
|
1
|
+
0.9.0.b3
|
data/lib/ubiquo/template.erb
CHANGED
@@ -27,6 +27,22 @@ case choosen_plugin_set
|
|
27
27
|
else selected_plugins = minimal_plugins + rest_plugins
|
28
28
|
end
|
29
29
|
|
30
|
+
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 238
|
31
|
+
def file(*args, &block)
|
32
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
33
|
+
# Force overwrite of existent files
|
34
|
+
create_file(*args, {:force => true}.merge(config), &block)
|
35
|
+
end
|
36
|
+
|
37
|
+
# File 'railties/lib/rails/generators/actions.rb', line 227
|
38
|
+
def rake(command, options={})
|
39
|
+
log :rake, command
|
40
|
+
env = options[:env] || 'development'
|
41
|
+
sudo = options[:sudo] && RbConfig::CONFIG['host_os'] !~ /mswin|mingw/ ? 'sudo ' : ''
|
42
|
+
rvm = "<%= @opts[:rvm] ? "rvm @#{@opts[:app_name]} do " : '' %>"
|
43
|
+
in_root { run("#{sudo}#{rvm}#{extify(:rake)} #{command} RAILS_ENV=#{env}", :verbose => false) }
|
44
|
+
end
|
45
|
+
|
30
46
|
def add_plugins(plugin_names, options={})
|
31
47
|
git_root = options[:devel] ? 'git@github.com:gnuine' : 'git://github.com/gnuine'
|
32
48
|
plugin_names.each { |name| plugin name, :git => "#{git_root}/#{name}.git", :branch => options[:branch], :submodule => true }
|
@@ -65,7 +81,7 @@ Ubiquo::Config.add do |config|
|
|
65
81
|
config.app_name = "#{appname}"
|
66
82
|
config.app_title = "#{appname.gsub(/_/, " ").capitalize}"
|
67
83
|
config.app_description = "#{appname.gsub(/_/, " ").capitalize}"
|
68
|
-
case
|
84
|
+
case Rails.env.to_s
|
69
85
|
when 'development', 'test'
|
70
86
|
config.notifier_email_from = 'railsmail@gnuine.com'
|
71
87
|
else
|
@@ -213,7 +229,7 @@ ubiquo_routes = selected_plugins.map do |plugin|
|
|
213
229
|
" #map.from_plugin :#{plugin}"
|
214
230
|
end.join("\n")
|
215
231
|
file 'config/routes.rb', <<-CODE
|
216
|
-
|
232
|
+
#{appname.camelize}::Application.routes.draw do
|
217
233
|
end
|
218
234
|
#ActionController::Routing::Routes.draw do |map|
|
219
235
|
|
@@ -244,7 +260,7 @@ source "https://rubygems.org"
|
|
244
260
|
|
245
261
|
gem "rails", "= 3.2.0.rc1"
|
246
262
|
|
247
|
-
platforms :
|
263
|
+
platforms :mri_19 do
|
248
264
|
gem "#{adapter_gem}"
|
249
265
|
end
|
250
266
|
|
@@ -298,7 +314,6 @@ run" #{bundle_command}"
|
|
298
314
|
<% end %>
|
299
315
|
# End of bundler setup
|
300
316
|
|
301
|
-
rake("rails:update")
|
302
317
|
rake("calendardateselect:install")
|
303
318
|
rake("ubiquo:install OVERWRITE=yes")
|
304
319
|
|
data/ubiquo.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ubiquo"
|
8
|
-
s.version = "0.9.0.
|
8
|
+
s.version = "0.9.0.b3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Albert Callarisa", "Jordi Beltran", "Bernat Foj", "Eric Garc\303\255a", "Felip Ladr\303\263n", "David Lozano", "Antoni Reina", "Ramon Salvad\303\263", "Arnau S\303\241nchez"]
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubiquo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 225
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 0
|
10
10
|
- b
|
11
|
-
-
|
12
|
-
version: 0.9.0.
|
11
|
+
- 3
|
12
|
+
version: 0.9.0.b3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Albert Callarisa
|