ramix 0.1.2 → 0.1.3
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/lib/ramix/version.rb +1 -1
- data/ramix.gemspec +1 -1
- data/recipes/home.rb +6 -0
- data/recipes/omniauth.rb +4 -4
- metadata +3 -3
data/lib/ramix/version.rb
CHANGED
data/ramix.gemspec
CHANGED
data/recipes/home.rb
CHANGED
@@ -19,3 +19,9 @@ after_bundler do
|
|
19
19
|
generate :controller, "#{@home} index"
|
20
20
|
gsub_file 'config/routes.rb', /get \"#{@home}\/index\"/, %Q(root :to => "#{@home}#index")
|
21
21
|
end
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
#DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from <top (required)> at /mnt/projects/ruby-china/config/application.rb:13)
|
26
|
+
#:public is no longer used to avoid overloading Module#public, use :public_folder instead
|
27
|
+
# from /home/zires/.rvm/gems/ruby-1.9.3-preview1/gems/resque-1.19.0/lib/resque/server.rb:12:in `<class:Server>'
|
data/recipes/omniauth.rb
CHANGED
@@ -25,8 +25,8 @@ gem 'omniauth'
|
|
25
25
|
end
|
26
26
|
|
27
27
|
after_bundler do
|
28
|
-
say_wizard "Generate authorization model"
|
29
|
-
generate :model, "Authorization provider:string user_id:integer uid:string -f"
|
28
|
+
#say_wizard "Generate authorization model"
|
29
|
+
#generate :model, "Authorization provider:string user_id:integer uid:string -f"
|
30
30
|
|
31
31
|
case @auth
|
32
32
|
# For devise
|
@@ -35,12 +35,12 @@ after_bundler do
|
|
35
35
|
# == Mongoid
|
36
36
|
begin
|
37
37
|
inject_into_class "app/models/user.rb", 'User', " embeds_many :authorizations\n"
|
38
|
-
inject_into_class "app/models/authorization.rb", 'Authorization', " embedded_in :user, :inverse_of => :authorizations\n"
|
38
|
+
#inject_into_class "app/models/authorization.rb", 'Authorization', " embedded_in :user, :inverse_of => :authorizations\n"
|
39
39
|
end if @nosql == 'mongoid'
|
40
40
|
else
|
41
41
|
# == ActiveRecord
|
42
42
|
inject_into_class "app/models/user.rb", 'User', " has_many :authorizations\n"
|
43
|
-
inject_into_class "app/models/authorization.rb", 'Authorization', " belongs_to :user\n"
|
43
|
+
#inject_into_class "app/models/authorization.rb", 'Authorization', " belongs_to :user\n"
|
44
44
|
end
|
45
45
|
gsub_file 'app/models/user.rb', /:recoverable, :rememberable, :trackable, :validatable/, ':recoverable, :rememberable, :trackable, :validatable, :omniauthable'
|
46
46
|
|
metadata
CHANGED