phoenix_core 0.2.0.beta
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/README.md +3 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/noise.png +0 -0
- data/app/assets/javascripts/application.js +14 -0
- data/app/assets/stylesheets/application.css +8 -0
- data/app/assets/stylesheets/bootstrap.css +2467 -0
- data/app/assets/stylesheets/global.css +24 -0
- data/app/assets/stylesheets/landing.css +1 -0
- data/app/controllers/phoenix/base_controller.rb +5 -0
- data/app/controllers/phoenix/home_controller.rb +13 -0
- data/app/helpers/phoenix/base_helper.rb +4 -0
- data/app/mailers/phoenix/base_mailer.rb +10 -0
- data/app/models/phoenix/user.rb +8 -0
- data/app/views/phoenix/home/index.html.haml +13 -0
- data/app/views/phoenix/layouts/phoenix_core/application.html.erb +14 -0
- data/config/initializers/phoenix.rb +3 -0
- data/config/initializers/setup_mail.rb +19 -0
- data/config/initializers/simple_form.rb +93 -0
- data/config/locals/phoenix/en.yml +2 -0
- data/config/locals/simple_form/en.yml +23 -0
- data/config/locals/simple_form/zn-CN.yml +23 -0
- data/config/routes.rb +3 -0
- data/lib/generators/phoenix/app/app_generator.rb +209 -0
- data/lib/generators/phoenix/dummy/dummy_generator.rb +86 -0
- data/lib/generators/phoenix/dummy/templates/rails/Rakefile +7 -0
- data/lib/generators/phoenix/dummy/templates/rails/application.rb +14 -0
- data/lib/generators/phoenix/dummy/templates/rails/boot.rb +6 -0
- data/lib/generators/phoenix/dummy/templates/rails/mongoid.yml +0 -0
- data/lib/generators/phoenix/dummy/templates/rails/routes.rb +3 -0
- data/lib/generators/phoenix/extension/clash_keywords.yml +3 -0
- data/lib/generators/phoenix/extension/extension_generator.rb +137 -0
- data/lib/generators/phoenix/extension/templates/Gemfile +13 -0
- data/lib/generators/phoenix/extension/templates/README.md +21 -0
- data/lib/generators/phoenix/extension/templates/app/assets/javascripts/application.js +1 -0
- data/lib/generators/phoenix/extension/templates/app/assets/stylesheets/application.css +3 -0
- data/lib/generators/phoenix/extension/templates/app/controllers/phoenix/admin/plural_name_controller.rb +12 -0
- data/lib/generators/phoenix/extension/templates/app/controllers/phoenix/plural_name_controller.rb +32 -0
- data/lib/generators/phoenix/extension/templates/app/models/phoenix/plural_name/singular_name.rb +27 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_actions.html.erb +28 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_form.html.erb +68 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_plural_name.html.erb +2 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_records.html.erb +18 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_singular_name.html.erb +18 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_sortable_list.html.erb +7 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/edit.html.erb +1 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/index.html.erb +10 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/new.html.erb +1 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/plural_name/index.html.erb +11 -0
- data/lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/plural_name/show.html.erb +35 -0
- data/lib/generators/phoenix/extension/templates/config/locales/en.yml +5 -0
- data/lib/generators/phoenix/extension/templates/config/routes.rb +3 -0
- data/lib/generators/phoenix/extension/templates/extension.gemspec +28 -0
- data/lib/generators/phoenix/extension/templates/gitignore +10 -0
- data/lib/generators/phoenix/extension/templates/lib/generators/phoenix/plural_name_generator.rb +11 -0
- data/lib/generators/phoenix/extension/templates/lib/phoenix/plural_name.rb +25 -0
- data/lib/generators/phoenix/extension/templates/lib/phoenix/plural_name/engine.rb +29 -0
- data/lib/generators/phoenix/extension/templates/lib/phoenix_plural_name.rb +1 -0
- data/lib/generators/phoenix/extension/templates/lib/tasks/plural_name.rake +13 -0
- data/lib/generators/phoenix/extension/templates/phoenix_plural_name.gemspec +18 -0
- data/lib/generators/phoenix/extension/templates/spec/models/phoenix/singular_name_spec.rb +18 -0
- data/lib/generators/phoenix/extension/templates/spec/requests/phoenix/admin/plural_name_spec.rb +97 -0
- data/lib/generators/phoenix/extension/templates/spec/support/phoenix/factories.rb +7 -0
- data/lib/middleware/seo_assist.rb +0 -0
- data/lib/phoenix/core.rb +40 -0
- data/lib/phoenix/core/controller_helpers.rb +47 -0
- data/lib/phoenix/core/development_mail_interceptor.rb +10 -0
- data/lib/phoenix/core/engine.rb +10 -0
- data/lib/phoenix/core/ssl_requirement.rb +105 -0
- data/lib/phoenix/core/testing_support/common_rake.rb +25 -0
- data/lib/phoenix/core/testing_support/env.rb +2 -0
- data/lib/phoenix/engine.rb +65 -0
- data/lib/phoenix/version.rb +16 -0
- data/lib/phoenix_core.rb +3 -0
- data/lib/tasks/assets.rake +16 -0
- data/lib/tasks/phoenix.rake +2 -0
- metadata +252 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
module Phoenix
|
|
2
|
+
module Core
|
|
3
|
+
module ControllerHelpers
|
|
4
|
+
def self.included(receiver)
|
|
5
|
+
receiver.send :include, InstanceMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
module InstanceMethods
|
|
9
|
+
def access_forbidden
|
|
10
|
+
render :text => 'Access Forbidden', :layout => true, :status => 401
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# can be used in views as well as controllers.
|
|
14
|
+
# e.g. <% title = 'This is a custom title for this view' %>
|
|
15
|
+
attr_writer :title
|
|
16
|
+
|
|
17
|
+
protected
|
|
18
|
+
|
|
19
|
+
def render_404(exception = nil)
|
|
20
|
+
respond_to do |type|
|
|
21
|
+
type.html { render :status => :not_found, :file => "#{::Rails.root}/public/404.html", :layout => nil}
|
|
22
|
+
type.all { render :status => :not_found, :nothing => true }
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Convenience method for firing instrumentation events with the default payload hash
|
|
27
|
+
def fire_event(name, extra_payload = {})
|
|
28
|
+
ActiveSupport::Notifications.instrument(name, default_notification_payload.merge(extra_payload))
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Creates the hash that is sent as the payload for all notifications. Specific notifications will
|
|
32
|
+
# add additional keys as appropriate. Override this method if you need additional data when
|
|
33
|
+
# responding to a notification
|
|
34
|
+
def default_notification_payload
|
|
35
|
+
{:user => (respond_to?(:current_user) && current_user)}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
private
|
|
39
|
+
|
|
40
|
+
def redirect_back_or_default(default)
|
|
41
|
+
redirect_to(session["user_return_to"] || default)
|
|
42
|
+
session["user_return_to"] = nil
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This module used for replace real mail address to myself
|
|
2
|
+
# when user signed up in development.
|
|
3
|
+
module Phoenix::Core
|
|
4
|
+
class DevelopmentMailInterceptor
|
|
5
|
+
def self.delivering_email(message)
|
|
6
|
+
message.subject = "[#{message.to}] #{message.subject}"
|
|
7
|
+
message.to = "Lanvige Jiang <lanvige@gmail.com>"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# ++
|
|
2
|
+
# Copyright (c) 2007-2011, Rails Dog LLC and other contributors
|
|
3
|
+
# All rights reserved.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
# are permitted provided that the following conditions are met:
|
|
7
|
+
#
|
|
8
|
+
# * Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
# this list of conditions and the following disclaimer.
|
|
10
|
+
# * Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
# and/or other materials provided with the distribution.
|
|
13
|
+
# * Neither the name of the Rails Dog LLC nor the names of its
|
|
14
|
+
# contributors may be used to endorse or promote products derived from this
|
|
15
|
+
# software without specific prior written permission.
|
|
16
|
+
#
|
|
17
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
18
|
+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
19
|
+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
20
|
+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
21
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
22
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
23
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
24
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
25
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
26
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
# --
|
|
29
|
+
|
|
30
|
+
# ++
|
|
31
|
+
# Copyright (c) 2005 David Heinemeier Hansson
|
|
32
|
+
#
|
|
33
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
|
34
|
+
# a copy of this software and associated documentation files (the
|
|
35
|
+
# "Software"), to deal in the Software without restriction, including
|
|
36
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
|
37
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
38
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
|
39
|
+
# the following conditions:
|
|
40
|
+
#
|
|
41
|
+
# The above copyright notice and this permission notice shall be
|
|
42
|
+
# included in all copies or substantial portions of the Software.
|
|
43
|
+
#
|
|
44
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
45
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
46
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
47
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
48
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
49
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
50
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
51
|
+
# --
|
|
52
|
+
|
|
53
|
+
# Modified version of the ssl_requirement plugin by DHH
|
|
54
|
+
module SslRequirement
|
|
55
|
+
extend ActiveSupport::Concern
|
|
56
|
+
|
|
57
|
+
included do
|
|
58
|
+
before_filter(:ensure_proper_protocol)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
module ClassMethods
|
|
62
|
+
# Specifies that the named actions requires an SSL connection to be performed (which is enforced by ensure_proper_protocol).
|
|
63
|
+
def ssl_required(*actions)
|
|
64
|
+
write_inheritable_array(:ssl_required_actions, actions)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def ssl_allowed(*actions)
|
|
68
|
+
write_inheritable_array(:ssl_allowed_actions, actions)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
protected
|
|
73
|
+
# Returns true if the current action is supposed to run as SSL
|
|
74
|
+
def ssl_required?
|
|
75
|
+
actions = self.class.read_inheritable_attribute(:ssl_required_actions)
|
|
76
|
+
return false if actions.nil?
|
|
77
|
+
actions.empty? || actions.include?(action_name.to_sym)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def ssl_allowed?
|
|
81
|
+
actions = self.class.read_inheritable_attribute(:ssl_allowed_actions)
|
|
82
|
+
return false if actions.nil?
|
|
83
|
+
actions.empty? || actions.include?(action_name.to_sym)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
private
|
|
87
|
+
|
|
88
|
+
def ssl_supported?
|
|
89
|
+
return Phoenix::Config[:allow_ssl_in_production] if Rails.env.production?
|
|
90
|
+
return Phoenix::Config[:allow_ssl_in_staging] if Rails.env.staging?
|
|
91
|
+
return Phoenix::Config[:allow_ssl_in_development_and_test] if (Rails.env.development? or Rails.env.test?)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def ensure_proper_protocol
|
|
95
|
+
return true if ssl_allowed?
|
|
96
|
+
if ssl_required? && !request.ssl? && ssl_supported?
|
|
97
|
+
redirect_to "https://" + request.host + request.fullpath
|
|
98
|
+
flash.keep
|
|
99
|
+
elsif request.ssl? && !ssl_required?
|
|
100
|
+
redirect_to "http://" + request.host + request.fullpath
|
|
101
|
+
flash.keep
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
unless defined?(Phonenix::InstallGenerator)
|
|
2
|
+
# why i can't find the path under root?
|
|
3
|
+
# require 'generators/phoenix/install/install_generator'
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
desc "Generates a dummy app for testing"
|
|
7
|
+
namespace :common do
|
|
8
|
+
task :test_app do
|
|
9
|
+
require "#{ENV['LIB_NAME']}"
|
|
10
|
+
|
|
11
|
+
Phoenix::DummyGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--quiet"]
|
|
12
|
+
Phoenix::InstallGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--quiet", "--auto-accept", "--skip-install-data"]
|
|
13
|
+
|
|
14
|
+
puts "Setting up dummy database..."
|
|
15
|
+
cmd = "bundle exec rake RAILS_ENV=test AUTO_ACCEPT=true"
|
|
16
|
+
|
|
17
|
+
if RUBY_PLATFORM =~ /mswin/ #windows
|
|
18
|
+
cmd += " >nul"
|
|
19
|
+
else
|
|
20
|
+
cmd += " >/dev/null"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
system(cmd)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
require 'active_support/concern'
|
|
2
|
+
|
|
3
|
+
module Phoenix
|
|
4
|
+
module Engine
|
|
5
|
+
extend ActiveSupport::Concern
|
|
6
|
+
|
|
7
|
+
module ClassMethods
|
|
8
|
+
def after_inclusion_procs #:nodoc:
|
|
9
|
+
@@after_inclusion_procs ||= []
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Specify a block of code to be run after the phoenix inclusion step. See
|
|
13
|
+
# Phoenix::Core::Engine#phoenix_inclusion for details regarding the Phoenix
|
|
14
|
+
# inclusion process.
|
|
15
|
+
#
|
|
16
|
+
# Example:
|
|
17
|
+
# module Phoenix
|
|
18
|
+
# module Images
|
|
19
|
+
# class Engine < Rails::Engine
|
|
20
|
+
# engine_name :images
|
|
21
|
+
#
|
|
22
|
+
# after_inclusion do
|
|
23
|
+
# # perform something here
|
|
24
|
+
# end
|
|
25
|
+
# end
|
|
26
|
+
# end
|
|
27
|
+
# end
|
|
28
|
+
def after_inclusion(&block)
|
|
29
|
+
if block && block.respond_to?(:call)
|
|
30
|
+
after_inclusion_procs << block
|
|
31
|
+
else
|
|
32
|
+
raise 'Anything added to be called before_inclusion must be callable.'
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def before_inclusion_procs #:nodoc:
|
|
37
|
+
@@before_inclusion_procs ||= []
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Specify a block of code to be run before the phoenix inclusion step. See
|
|
41
|
+
# Phoenix::Core::Engine#Phoenix_inclusion for details regarding the phoenix
|
|
42
|
+
# inclusion process.
|
|
43
|
+
#
|
|
44
|
+
# Example:
|
|
45
|
+
# module Phoenix
|
|
46
|
+
# module Images
|
|
47
|
+
# class Engine < Rails::Engine
|
|
48
|
+
# engine_name :images
|
|
49
|
+
#
|
|
50
|
+
# before_inclusion do
|
|
51
|
+
# # perform something here
|
|
52
|
+
# end
|
|
53
|
+
# end
|
|
54
|
+
# end
|
|
55
|
+
# end
|
|
56
|
+
def before_inclusion(&block)
|
|
57
|
+
if block && block.respond_to?(:call)
|
|
58
|
+
before_inclusion_procs << block
|
|
59
|
+
else
|
|
60
|
+
raise 'Anything added to be called before_inclusion must be callable.'
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
data/lib/phoenix_core.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
namespace :assets do
|
|
2
|
+
# Prepend the assets:precompile_prepare task to assets:precompile.
|
|
3
|
+
task :precompile => :precompile_prepare
|
|
4
|
+
|
|
5
|
+
# This task will be called before assets:precompile to optimize the
|
|
6
|
+
# compilation, i.e. to prevent any DB calls.
|
|
7
|
+
task 'precompile_prepare' do
|
|
8
|
+
# Without this assets:precompile will call itself again with this var set.
|
|
9
|
+
# This basically speeds things up.
|
|
10
|
+
ENV['RAILS_GROUPS'] = 'assets'
|
|
11
|
+
|
|
12
|
+
# Devise uses this flag to prevent connecting to the db.
|
|
13
|
+
ENV['RAILS_ASSETS_PRECOMPILE'] = 'true'
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: phoenix_core
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.2.0.beta
|
|
5
|
+
prerelease: 6
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Lanvige Jiang
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2011-12-22 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: rails
|
|
16
|
+
requirement: &70221203782880 !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 3.1.3
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: *70221203782880
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: jquery-rails
|
|
27
|
+
requirement: &70221203782440 !ruby/object:Gem::Requirement
|
|
28
|
+
none: false
|
|
29
|
+
requirements:
|
|
30
|
+
- - ! '>='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: *70221203782440
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
37
|
+
name: haml
|
|
38
|
+
requirement: &70221203781600 !ruby/object:Gem::Requirement
|
|
39
|
+
none: false
|
|
40
|
+
requirements:
|
|
41
|
+
- - ! '>='
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0'
|
|
44
|
+
type: :runtime
|
|
45
|
+
prerelease: false
|
|
46
|
+
version_requirements: *70221203781600
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: sass-rails
|
|
49
|
+
requirement: &70221203780940 !ruby/object:Gem::Requirement
|
|
50
|
+
none: false
|
|
51
|
+
requirements:
|
|
52
|
+
- - ~>
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 3.1.5
|
|
55
|
+
type: :runtime
|
|
56
|
+
prerelease: false
|
|
57
|
+
version_requirements: *70221203780940
|
|
58
|
+
- !ruby/object:Gem::Dependency
|
|
59
|
+
name: mongoid
|
|
60
|
+
requirement: &70221203780340 !ruby/object:Gem::Requirement
|
|
61
|
+
none: false
|
|
62
|
+
requirements:
|
|
63
|
+
- - ! '>='
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '0'
|
|
66
|
+
type: :runtime
|
|
67
|
+
prerelease: false
|
|
68
|
+
version_requirements: *70221203780340
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: mongoid_slug
|
|
71
|
+
requirement: &70221203795940 !ruby/object:Gem::Requirement
|
|
72
|
+
none: false
|
|
73
|
+
requirements:
|
|
74
|
+
- - ! '>='
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
77
|
+
type: :runtime
|
|
78
|
+
prerelease: false
|
|
79
|
+
version_requirements: *70221203795940
|
|
80
|
+
- !ruby/object:Gem::Dependency
|
|
81
|
+
name: state_machine
|
|
82
|
+
requirement: &70221203795000 !ruby/object:Gem::Requirement
|
|
83
|
+
none: false
|
|
84
|
+
requirements:
|
|
85
|
+
- - ! '>='
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '0'
|
|
88
|
+
type: :runtime
|
|
89
|
+
prerelease: false
|
|
90
|
+
version_requirements: *70221203795000
|
|
91
|
+
- !ruby/object:Gem::Dependency
|
|
92
|
+
name: simple_form
|
|
93
|
+
requirement: &70221203794420 !ruby/object:Gem::Requirement
|
|
94
|
+
none: false
|
|
95
|
+
requirements:
|
|
96
|
+
- - ! '>='
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '0'
|
|
99
|
+
type: :runtime
|
|
100
|
+
prerelease: false
|
|
101
|
+
version_requirements: *70221203794420
|
|
102
|
+
- !ruby/object:Gem::Dependency
|
|
103
|
+
name: stringex
|
|
104
|
+
requirement: &70221203794000 !ruby/object:Gem::Requirement
|
|
105
|
+
none: false
|
|
106
|
+
requirements:
|
|
107
|
+
- - ! '>='
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
type: :runtime
|
|
111
|
+
prerelease: false
|
|
112
|
+
version_requirements: *70221203794000
|
|
113
|
+
- !ruby/object:Gem::Dependency
|
|
114
|
+
name: faker
|
|
115
|
+
requirement: &70221203793080 !ruby/object:Gem::Requirement
|
|
116
|
+
none: false
|
|
117
|
+
requirements:
|
|
118
|
+
- - ! '>='
|
|
119
|
+
- !ruby/object:Gem::Version
|
|
120
|
+
version: '0'
|
|
121
|
+
type: :runtime
|
|
122
|
+
prerelease: false
|
|
123
|
+
version_requirements: *70221203793080
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: deface
|
|
126
|
+
requirement: &70221203792400 !ruby/object:Gem::Requirement
|
|
127
|
+
none: false
|
|
128
|
+
requirements:
|
|
129
|
+
- - ! '>='
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :runtime
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: *70221203792400
|
|
135
|
+
- !ruby/object:Gem::Dependency
|
|
136
|
+
name: haml-rails
|
|
137
|
+
requirement: &70221203791620 !ruby/object:Gem::Requirement
|
|
138
|
+
none: false
|
|
139
|
+
requirements:
|
|
140
|
+
- - ! '>='
|
|
141
|
+
- !ruby/object:Gem::Version
|
|
142
|
+
version: '0'
|
|
143
|
+
type: :development
|
|
144
|
+
prerelease: false
|
|
145
|
+
version_requirements: *70221203791620
|
|
146
|
+
description: Its used for build core structure, dont contain biz.
|
|
147
|
+
email: lanvige@gmail.com
|
|
148
|
+
executables: []
|
|
149
|
+
extensions: []
|
|
150
|
+
extra_rdoc_files: []
|
|
151
|
+
files:
|
|
152
|
+
- app/assets/images/favicon.ico
|
|
153
|
+
- app/assets/images/noise.png
|
|
154
|
+
- app/assets/javascripts/application.js
|
|
155
|
+
- app/assets/stylesheets/application.css
|
|
156
|
+
- app/assets/stylesheets/bootstrap.css
|
|
157
|
+
- app/assets/stylesheets/global.css
|
|
158
|
+
- app/assets/stylesheets/landing.css
|
|
159
|
+
- app/controllers/phoenix/base_controller.rb
|
|
160
|
+
- app/controllers/phoenix/home_controller.rb
|
|
161
|
+
- app/helpers/phoenix/base_helper.rb
|
|
162
|
+
- app/mailers/phoenix/base_mailer.rb
|
|
163
|
+
- app/models/phoenix/user.rb
|
|
164
|
+
- app/views/phoenix/home/index.html.haml
|
|
165
|
+
- app/views/phoenix/layouts/phoenix_core/application.html.erb
|
|
166
|
+
- config/initializers/phoenix.rb
|
|
167
|
+
- config/initializers/setup_mail.rb
|
|
168
|
+
- config/initializers/simple_form.rb
|
|
169
|
+
- config/locals/phoenix/en.yml
|
|
170
|
+
- config/locals/simple_form/en.yml
|
|
171
|
+
- config/locals/simple_form/zn-CN.yml
|
|
172
|
+
- config/routes.rb
|
|
173
|
+
- lib/generators/phoenix/app/app_generator.rb
|
|
174
|
+
- lib/generators/phoenix/dummy/dummy_generator.rb
|
|
175
|
+
- lib/generators/phoenix/dummy/templates/rails/application.rb
|
|
176
|
+
- lib/generators/phoenix/dummy/templates/rails/boot.rb
|
|
177
|
+
- lib/generators/phoenix/dummy/templates/rails/mongoid.yml
|
|
178
|
+
- lib/generators/phoenix/dummy/templates/rails/Rakefile
|
|
179
|
+
- lib/generators/phoenix/dummy/templates/rails/routes.rb
|
|
180
|
+
- lib/generators/phoenix/extension/clash_keywords.yml
|
|
181
|
+
- lib/generators/phoenix/extension/extension_generator.rb
|
|
182
|
+
- lib/generators/phoenix/extension/templates/app/assets/javascripts/application.js
|
|
183
|
+
- lib/generators/phoenix/extension/templates/app/assets/stylesheets/application.css
|
|
184
|
+
- lib/generators/phoenix/extension/templates/app/controllers/phoenix/admin/plural_name_controller.rb
|
|
185
|
+
- lib/generators/phoenix/extension/templates/app/controllers/phoenix/plural_name_controller.rb
|
|
186
|
+
- lib/generators/phoenix/extension/templates/app/models/phoenix/plural_name/singular_name.rb
|
|
187
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_actions.html.erb
|
|
188
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_form.html.erb
|
|
189
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_plural_name.html.erb
|
|
190
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_records.html.erb
|
|
191
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_singular_name.html.erb
|
|
192
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_sortable_list.html.erb
|
|
193
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/edit.html.erb
|
|
194
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/index.html.erb
|
|
195
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/new.html.erb
|
|
196
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/plural_name/index.html.erb
|
|
197
|
+
- lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/plural_name/show.html.erb
|
|
198
|
+
- lib/generators/phoenix/extension/templates/config/locales/en.yml
|
|
199
|
+
- lib/generators/phoenix/extension/templates/config/routes.rb
|
|
200
|
+
- lib/generators/phoenix/extension/templates/extension.gemspec
|
|
201
|
+
- lib/generators/phoenix/extension/templates/Gemfile
|
|
202
|
+
- lib/generators/phoenix/extension/templates/gitignore
|
|
203
|
+
- lib/generators/phoenix/extension/templates/lib/generators/phoenix/plural_name_generator.rb
|
|
204
|
+
- lib/generators/phoenix/extension/templates/lib/phoenix/plural_name/engine.rb
|
|
205
|
+
- lib/generators/phoenix/extension/templates/lib/phoenix/plural_name.rb
|
|
206
|
+
- lib/generators/phoenix/extension/templates/lib/phoenix_plural_name.rb
|
|
207
|
+
- lib/generators/phoenix/extension/templates/lib/tasks/plural_name.rake
|
|
208
|
+
- lib/generators/phoenix/extension/templates/phoenix_plural_name.gemspec
|
|
209
|
+
- lib/generators/phoenix/extension/templates/README.md
|
|
210
|
+
- lib/generators/phoenix/extension/templates/spec/models/phoenix/singular_name_spec.rb
|
|
211
|
+
- lib/generators/phoenix/extension/templates/spec/requests/phoenix/admin/plural_name_spec.rb
|
|
212
|
+
- lib/generators/phoenix/extension/templates/spec/support/phoenix/factories.rb
|
|
213
|
+
- lib/middleware/seo_assist.rb
|
|
214
|
+
- lib/phoenix/core/controller_helpers.rb
|
|
215
|
+
- lib/phoenix/core/development_mail_interceptor.rb
|
|
216
|
+
- lib/phoenix/core/engine.rb
|
|
217
|
+
- lib/phoenix/core/ssl_requirement.rb
|
|
218
|
+
- lib/phoenix/core/testing_support/common_rake.rb
|
|
219
|
+
- lib/phoenix/core/testing_support/env.rb
|
|
220
|
+
- lib/phoenix/core.rb
|
|
221
|
+
- lib/phoenix/engine.rb
|
|
222
|
+
- lib/phoenix/version.rb
|
|
223
|
+
- lib/phoenix_core.rb
|
|
224
|
+
- lib/tasks/assets.rake
|
|
225
|
+
- lib/tasks/phoenix.rake
|
|
226
|
+
- README.md
|
|
227
|
+
homepage: http://lanvige.com
|
|
228
|
+
licenses: []
|
|
229
|
+
post_install_message:
|
|
230
|
+
rdoc_options: []
|
|
231
|
+
require_paths:
|
|
232
|
+
- lib
|
|
233
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
|
+
none: false
|
|
235
|
+
requirements:
|
|
236
|
+
- - ! '>='
|
|
237
|
+
- !ruby/object:Gem::Version
|
|
238
|
+
version: 1.9.2
|
|
239
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
|
+
none: false
|
|
241
|
+
requirements:
|
|
242
|
+
- - ! '>'
|
|
243
|
+
- !ruby/object:Gem::Version
|
|
244
|
+
version: 1.3.1
|
|
245
|
+
requirements:
|
|
246
|
+
- none
|
|
247
|
+
rubyforge_project: phoenix_core
|
|
248
|
+
rubygems_version: 1.8.13
|
|
249
|
+
signing_key:
|
|
250
|
+
specification_version: 3
|
|
251
|
+
summary: Core Engine.
|
|
252
|
+
test_files: []
|