phoenix 0.2.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/phoenix/all.rb +3 -0
- data/lib/phoenix/bin/phoenix +6 -0
- data/lib/phoenix/cli.rb +33 -0
- data/lib/phoenix.rb +1 -0
- metadata +106 -0
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
It's a project to show how to use Rails 3 Engine to build a big project.
|
data/lib/phoenix/all.rb
ADDED
data/lib/phoenix/cli.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "phoenix/version"
|
3
|
+
require "thor"
|
4
|
+
require "generators/phoenix/extension_generator"
|
5
|
+
|
6
|
+
module Phoenix
|
7
|
+
class CLI < Thor
|
8
|
+
def self.basename
|
9
|
+
"phoenix"
|
10
|
+
end
|
11
|
+
|
12
|
+
map "-v" => "version"
|
13
|
+
map "--version" => "version"
|
14
|
+
|
15
|
+
desc "version", "print the current version"
|
16
|
+
def version
|
17
|
+
shell.say "Phoenix Engine #{Phoenix::Version}", :green
|
18
|
+
end
|
19
|
+
|
20
|
+
desc "app NAME", "create a new application with the given name"
|
21
|
+
method_option "name", :type => :string
|
22
|
+
def app(name)
|
23
|
+
Phoenix::AppGenerator.start
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "extension NAME", "create a new extension with the given name"
|
27
|
+
method_option "name", :type => :string
|
28
|
+
def extension(name)
|
29
|
+
invoke "phoenix:extension:generate", [options[:name] || name]
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
data/lib/phoenix.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'phoenix/all'
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phoenix
|
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: lib/phoenix/bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: &70105423975380 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70105423975380
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: phoenix_core
|
27
|
+
requirement: &70105423974880 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - =
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.2.0.beta
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70105423974880
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: phoenix_auth
|
38
|
+
requirement: &70105423974340 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - =
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.2.0.beta
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70105423974340
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: phoenix_social
|
49
|
+
requirement: &70105423973740 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - =
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.2.0.beta
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70105423973740
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: phoenix_testing
|
60
|
+
requirement: &70105423973220 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - =
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 0.2.0.beta
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70105423973220
|
69
|
+
description: Engine deom 4 rails 3.
|
70
|
+
email: lanvige@gmail.com
|
71
|
+
executables:
|
72
|
+
- phoenix
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- lib/phoenix/all.rb
|
77
|
+
- lib/phoenix/bin/phoenix
|
78
|
+
- lib/phoenix/cli.rb
|
79
|
+
- lib/phoenix.rb
|
80
|
+
- README.md
|
81
|
+
homepage: http://lanvige.com
|
82
|
+
licenses: []
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ! '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.9.2
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>'
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 1.3.1
|
99
|
+
requirements:
|
100
|
+
- none
|
101
|
+
rubyforge_project: phoenix
|
102
|
+
rubygems_version: 1.8.13
|
103
|
+
signing_key:
|
104
|
+
specification_version: 3
|
105
|
+
summary: Engine deom 4 rails 3.
|
106
|
+
test_files: []
|