alchemy_cms 2.2.rc7 → 2.2.rc8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/alchemy +7 -11
- data/lib/alchemy/version.rb +1 -1
- metadata +33 -33
data/bin/alchemy
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
1
|
#!/usr/bin/env ruby
|
4
2
|
# encoding: UTF-8
|
5
3
|
|
@@ -30,11 +28,12 @@ class AlchemyInstaller < Thor
|
|
30
28
|
method_option :scm, :type => :string, :aliases => "-s", :desc => "Type of scm (git or svn) to use for this project. Leave blank for none."
|
31
29
|
method_option :database, :type => :string, :default => 'mysql', :aliases => "-d", :desc => "Type of database to use for this project. Default mysql."
|
32
30
|
def new(project)
|
31
|
+
results = []
|
33
32
|
@application = project.downcase.strip.gsub(/ /, '_')
|
34
33
|
say "Install Alchemy CMS into ./#{@application}", :yellow
|
35
34
|
say "Generating new Rails App...", :yellow
|
36
35
|
|
37
|
-
if system("rails
|
36
|
+
if system("rails new #{@application} -m #{File.join(File.dirname(__FILE__), '..', 'lib', 'rails', 'templates', 'alchemy.rb')} -d #{options[:database]} -JT --old-style-hash #{options[:scm].nil? || options[:scm].empty? || options[:scm] == 'svn' ? '--skip-git' : ''}")
|
38
37
|
|
39
38
|
create_database_yml if options[:database] == 'mysql'
|
40
39
|
|
@@ -50,14 +49,16 @@ class AlchemyInstaller < Thor
|
|
50
49
|
inject_into_file "#{@application}/config/environments/production.rb", "\n config.assets.precompile += %w( alchemy/standard_set.css )\n", { :after => sentinel, :verbose => true }
|
51
50
|
end
|
52
51
|
|
52
|
+
results << system("cd ./#{@application} && rake db:create alchemy:install:migrations db:migrate alchemy:db:seed")
|
53
|
+
results << system("cd ./#{@application} && rails g alchemy:scaffold#{' --with-standard-set' if with_standard_set}")
|
54
|
+
|
53
55
|
%x[
|
54
56
|
cd ./#{@application}
|
55
|
-
rails g alchemy:scaffold#{' --with-standard-set' if with_standard_set}
|
56
57
|
rm ./public/index.html
|
57
58
|
rm ./app/views/layouts/application.html.erb
|
58
59
|
rm ./app/assets/images/rails.png
|
59
60
|
]
|
60
|
-
|
61
|
+
|
61
62
|
if !options[:scm].nil? && !options[:scm].empty?
|
62
63
|
|
63
64
|
clean_mountpoint = mountpoint.gsub('/', '')
|
@@ -132,11 +133,6 @@ GIT
|
|
132
133
|
|
133
134
|
end
|
134
135
|
|
135
|
-
%x[
|
136
|
-
cd ./#{@application}
|
137
|
-
rake db:create alchemy:install:migrations db:migrate alchemy:db:seed
|
138
|
-
]
|
139
|
-
|
140
136
|
readme = <<-EOF
|
141
137
|
|
142
138
|
Successfully installed Alchemy CMS into ./#{@application}
|
@@ -161,7 +157,7 @@ Thank you for using Alchemy CMS!
|
|
161
157
|
http://alchemy-cms.com
|
162
158
|
|
163
159
|
EOF
|
164
|
-
say readme, :green
|
160
|
+
say readme, :green if results.detect { |r| r == false }.nil?
|
165
161
|
else
|
166
162
|
say "\nError while installation!\n", :red
|
167
163
|
end
|
data/lib/alchemy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.rc8
|
5
5
|
prerelease: 4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -16,7 +16,7 @@ date: 2012-04-27 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rails
|
19
|
-
requirement: &
|
19
|
+
requirement: &70331181302120 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: 3.2.1
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *70331181302120
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: authlogic
|
30
|
-
requirement: &
|
30
|
+
requirement: &70331181301520 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: '0'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *70331181301520
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: awesome_nested_set
|
41
|
-
requirement: &
|
41
|
+
requirement: &70331181300780 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: '2.0'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *70331181300780
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: declarative_authorization
|
52
|
-
requirement: &
|
52
|
+
requirement: &70331181299840 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ~>
|
@@ -57,10 +57,10 @@ dependencies:
|
|
57
57
|
version: 0.5.4
|
58
58
|
type: :runtime
|
59
59
|
prerelease: false
|
60
|
-
version_requirements: *
|
60
|
+
version_requirements: *70331181299840
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: tvdeyen-fleximage
|
63
|
-
requirement: &
|
63
|
+
requirement: &70331181299160 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
@@ -68,10 +68,10 @@ dependencies:
|
|
68
68
|
version: 1.2.0
|
69
69
|
type: :runtime
|
70
70
|
prerelease: false
|
71
|
-
version_requirements: *
|
71
|
+
version_requirements: *70331181299160
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: kaminari
|
74
|
-
requirement: &
|
74
|
+
requirement: &70331181298360 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
@@ -79,10 +79,10 @@ dependencies:
|
|
79
79
|
version: 0.13.0
|
80
80
|
type: :runtime
|
81
81
|
prerelease: false
|
82
|
-
version_requirements: *
|
82
|
+
version_requirements: *70331181298360
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: acts_as_ferret
|
85
|
-
requirement: &
|
85
|
+
requirement: &70331181297520 !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
@@ -90,10 +90,10 @@ dependencies:
|
|
90
90
|
version: '0.5'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
|
-
version_requirements: *
|
93
|
+
version_requirements: *70331181297520
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: acts_as_list
|
96
|
-
requirement: &
|
96
|
+
requirement: &70331181296980 !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
@@ -101,10 +101,10 @@ dependencies:
|
|
101
101
|
version: '0.1'
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
|
-
version_requirements: *
|
104
|
+
version_requirements: *70331181296980
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: magiclabs-userstamp
|
107
|
-
requirement: &
|
107
|
+
requirement: &70331180893820 !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|
110
110
|
- - ~>
|
@@ -112,10 +112,10 @@ dependencies:
|
|
112
112
|
version: 2.0.2
|
113
113
|
type: :runtime
|
114
114
|
prerelease: false
|
115
|
-
version_requirements: *
|
115
|
+
version_requirements: *70331180893820
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: dynamic_form
|
118
|
-
requirement: &
|
118
|
+
requirement: &70331180892420 !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
121
121
|
- - ~>
|
@@ -123,10 +123,10 @@ dependencies:
|
|
123
123
|
version: '1.1'
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
|
-
version_requirements: *
|
126
|
+
version_requirements: *70331180892420
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: jquery-rails
|
129
|
-
requirement: &
|
129
|
+
requirement: &70331180891480 !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
132
|
- - ~>
|
@@ -134,10 +134,10 @@ dependencies:
|
|
134
134
|
version: 2.0.0
|
135
135
|
type: :runtime
|
136
136
|
prerelease: false
|
137
|
-
version_requirements: *
|
137
|
+
version_requirements: *70331180891480
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: attachment_magic
|
140
|
-
requirement: &
|
140
|
+
requirement: &70331180890840 !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
142
142
|
requirements:
|
143
143
|
- - ~>
|
@@ -145,10 +145,10 @@ dependencies:
|
|
145
145
|
version: 0.2.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
|
-
version_requirements: *
|
148
|
+
version_requirements: *70331180890840
|
149
149
|
- !ruby/object:Gem::Dependency
|
150
150
|
name: sass-rails
|
151
|
-
requirement: &
|
151
|
+
requirement: &70331180890000 !ruby/object:Gem::Requirement
|
152
152
|
none: false
|
153
153
|
requirements:
|
154
154
|
- - ~>
|
@@ -156,10 +156,10 @@ dependencies:
|
|
156
156
|
version: 3.2.3
|
157
157
|
type: :runtime
|
158
158
|
prerelease: false
|
159
|
-
version_requirements: *
|
159
|
+
version_requirements: *70331180890000
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
161
|
name: rspec-rails
|
162
|
-
requirement: &
|
162
|
+
requirement: &70331180888980 !ruby/object:Gem::Requirement
|
163
163
|
none: false
|
164
164
|
requirements:
|
165
165
|
- - ~>
|
@@ -167,10 +167,10 @@ dependencies:
|
|
167
167
|
version: '2.8'
|
168
168
|
type: :development
|
169
169
|
prerelease: false
|
170
|
-
version_requirements: *
|
170
|
+
version_requirements: *70331180888980
|
171
171
|
- !ruby/object:Gem::Dependency
|
172
172
|
name: sqlite3
|
173
|
-
requirement: &
|
173
|
+
requirement: &70331180888460 !ruby/object:Gem::Requirement
|
174
174
|
none: false
|
175
175
|
requirements:
|
176
176
|
- - ! '>='
|
@@ -178,10 +178,10 @@ dependencies:
|
|
178
178
|
version: '0'
|
179
179
|
type: :development
|
180
180
|
prerelease: false
|
181
|
-
version_requirements: *
|
181
|
+
version_requirements: *70331180888460
|
182
182
|
- !ruby/object:Gem::Dependency
|
183
183
|
name: jasminerice
|
184
|
-
requirement: &
|
184
|
+
requirement: &70331180887520 !ruby/object:Gem::Requirement
|
185
185
|
none: false
|
186
186
|
requirements:
|
187
187
|
- - ! '>='
|
@@ -189,7 +189,7 @@ dependencies:
|
|
189
189
|
version: '0'
|
190
190
|
type: :development
|
191
191
|
prerelease: false
|
192
|
-
version_requirements: *
|
192
|
+
version_requirements: *70331180887520
|
193
193
|
description: Alchemy is a Rails 3 CMS with a flexible content storing architecture.
|
194
194
|
email:
|
195
195
|
- alchemy@magiclabs.de
|