alchemy_cms 3.5.0.rc2 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -2
- data/README.md +1 -20
- data/alchemy_cms.gemspec +0 -1
- data/app/controllers/alchemy/admin/layoutpages_controller.rb +1 -1
- data/lib/alchemy/version.rb +1 -1
- data/lib/tasks/alchemy/install.rake +9 -11
- metadata +5 -8
- data/bin/alchemy +0 -265
- data/lib/rails/templates/alchemy.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14e8d027122008b488a73f9b024526409ebe50f7
|
4
|
+
data.tar.gz: c5881956120319ae1223ba35525e29eba86d1656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 785a53f247086243c4d59290eb772de017819b423c4b359aac6da424b0d25c2159274a3e7e4baf430f3044aa489208c7fd3e785571a95b9d20c83f614e775399
|
7
|
+
data.tar.gz: 4e34d1760942a244e941ffa38454b66c6b47c76c677cff91c39eaa40aed1c3e296825f13578aadbab9d6dae16a517459e9258568430a77668fac72bbaabeb426
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 3.5.0 (
|
3
|
+
## 3.5.0 (2016-12-22)
|
4
4
|
|
5
5
|
__New Features__
|
6
6
|
|
@@ -14,6 +14,7 @@ __New Features__
|
|
14
14
|
|
15
15
|
__Notable Changes__
|
16
16
|
|
17
|
+
* Removed the standalone installer (#1206)
|
17
18
|
* The essence date input field is now 100% width (#1191)
|
18
19
|
* The essence view partials don't get cached anymore (#1099)
|
19
20
|
* The essence editor partials don't get cached anymore (#1171)
|
@@ -43,7 +44,7 @@ __Fixed Bugs__
|
|
43
44
|
* Presence validation of EssenceFile is not working (#1096)
|
44
45
|
* Allow to define unique nestable elements (#852)
|
45
46
|
|
46
|
-
## 3.4.2 (
|
47
|
+
## 3.4.2 (2016-12-22)
|
47
48
|
|
48
49
|
__Notable Changes__
|
49
50
|
|
@@ -52,6 +53,7 @@ __Notable Changes__
|
|
52
53
|
__Fixed Bugs__
|
53
54
|
|
54
55
|
* The `language_links` helper now only renders languages from the current site
|
56
|
+
* Fixes alchemy module generator (#1159)
|
55
57
|
|
56
58
|
## 3.4.1 (2016-08-31)
|
57
59
|
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
## About
|
8
8
|
|
9
|
-
![Alchemy CMS](
|
9
|
+
![Alchemy CMS](app/assets/images/alchemy/alchemy-logo.svg)
|
10
10
|
|
11
11
|
Alchemy is a powerful, flexible and user centric Rails CMS.
|
12
12
|
|
@@ -51,25 +51,6 @@ For a Ruby 1.8.7 compatible version use the [`2.3-stable` branch](https://github
|
|
51
51
|
|
52
52
|
## Installation
|
53
53
|
|
54
|
-
### Install as a standalone project
|
55
|
-
|
56
|
-
Use the installer:
|
57
|
-
|
58
|
-
```shell
|
59
|
-
$ gem install alchemy_cms --pre
|
60
|
-
$ alchemy new my_magicpage
|
61
|
-
```
|
62
|
-
|
63
|
-
and follow the instructions to finish the installation.
|
64
|
-
|
65
|
-
The installer has some options (like choosing the database). See them with:
|
66
|
-
|
67
|
-
```shell
|
68
|
-
$ alchemy --help
|
69
|
-
```
|
70
|
-
|
71
|
-
### Install into an existing Rails project
|
72
|
-
|
73
54
|
#### 1. Add the Alchemy gem:
|
74
55
|
|
75
56
|
Put this into your `Gemfile`:
|
data/alchemy_cms.gemspec
CHANGED
@@ -16,7 +16,6 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.required_ruby_version = '>= 2.0.0'
|
17
17
|
gem.license = 'BSD New'
|
18
18
|
gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
|
19
|
-
gem.executables = 'alchemy'
|
20
19
|
gem.require_paths = ['lib']
|
21
20
|
|
22
21
|
gem.add_runtime_dependency 'active_model_serializers', ['~> 0.9.0']
|
data/lib/alchemy/version.rb
CHANGED
@@ -32,12 +32,11 @@ namespace :alchemy do
|
|
32
32
|
task :install do
|
33
33
|
install_helper = Alchemy::InstallTask.new
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
end
|
35
|
+
puts "\nAlchemy Installer"
|
36
|
+
puts "-----------------"
|
37
|
+
|
39
38
|
Rake::Task["alchemy:mount"].invoke
|
40
|
-
system("rails g alchemy:install
|
39
|
+
system("rails g alchemy:install") || exit!(1)
|
41
40
|
install_helper.set_primary_language
|
42
41
|
Rake::Task["db:create"].invoke
|
43
42
|
# We can't invoke this rake task, because Rails will use wrong engine names otherwise
|
@@ -45,12 +44,11 @@ namespace :alchemy do
|
|
45
44
|
Rake::Task["db:migrate"].invoke
|
46
45
|
install_helper.inject_seeder
|
47
46
|
Rake::Task["db:seed"].invoke
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
end
|
47
|
+
|
48
|
+
puts "\nAlchemy successfully installed."
|
49
|
+
puts "\nNow start the server with:"
|
50
|
+
puts "\n$ bin/rails server"
|
51
|
+
puts "\nand point your browser to http://localhost:3000/admin and follow the onscreen instructions to finalize the installation."
|
54
52
|
end
|
55
53
|
|
56
54
|
desc "Mounts Alchemy into your routes."
|
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: 3.5.0
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2016-12-
|
16
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: active_model_serializers
|
@@ -324,8 +324,7 @@ dependencies:
|
|
324
324
|
description: Alchemy is a powerful, userfriendly and flexible Rails 4 CMS.
|
325
325
|
email:
|
326
326
|
- alchemy@magiclabs.de
|
327
|
-
executables:
|
328
|
-
- alchemy
|
327
|
+
executables: []
|
329
328
|
extensions: []
|
330
329
|
extra_rdoc_files: []
|
331
330
|
files:
|
@@ -760,7 +759,6 @@ files:
|
|
760
759
|
- app/views/kaminari/alchemy/_prev_page.html.erb
|
761
760
|
- app/views/layouts/alchemy/admin.html.erb
|
762
761
|
- app/views/layouts/alchemy/sitemap.xml.erb
|
763
|
-
- bin/alchemy
|
764
762
|
- bin/rails
|
765
763
|
- bin/rspec
|
766
764
|
- bin/spring
|
@@ -904,7 +902,6 @@ files:
|
|
904
902
|
- lib/rails/generators/alchemy/site_layouts/templates/layout.html.haml
|
905
903
|
- lib/rails/generators/alchemy/site_layouts/templates/layout.html.slim
|
906
904
|
- lib/rails/generators/alchemy/views/views_generator.rb
|
907
|
-
- lib/rails/templates/alchemy.rb
|
908
905
|
- lib/tasks/alchemy/convert.rake
|
909
906
|
- lib/tasks/alchemy/db.rake
|
910
907
|
- lib/tasks/alchemy/install.rake
|
@@ -976,9 +973,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
976
973
|
version: 2.0.0
|
977
974
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
978
975
|
requirements:
|
979
|
-
- - "
|
976
|
+
- - ">="
|
980
977
|
- !ruby/object:Gem::Version
|
981
|
-
version:
|
978
|
+
version: '0'
|
982
979
|
requirements:
|
983
980
|
- ImageMagick (libmagick), v6.6 or greater.
|
984
981
|
rubyforge_project:
|
data/bin/alchemy
DELETED
@@ -1,265 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# encoding: UTF-8
|
3
|
-
gem 'rails', '~> 4.2.0'
|
4
|
-
|
5
|
-
require 'rails/version'
|
6
|
-
require "thor"
|
7
|
-
require 'io/console' # for password prompt
|
8
|
-
require File.expand_path('../../lib/alchemy/version', __FILE__)
|
9
|
-
|
10
|
-
class AlchemyInstaller < Thor
|
11
|
-
include Thor::Actions
|
12
|
-
|
13
|
-
map "-v" => :version
|
14
|
-
map "--version" => :version
|
15
|
-
desc "version", "Prints current Alchemy CMS version", hide: true
|
16
|
-
def version
|
17
|
-
puts Alchemy.version
|
18
|
-
end
|
19
|
-
|
20
|
-
desc "new PROJECT", "Creates a new Alchemy CMS project."
|
21
|
-
method_option :database, type: :string, aliases: "-d", desc: "Preconfigure for selected database (options: mysql/postgresql/sqlite3). Default: sqlite3"
|
22
|
-
def new(project)
|
23
|
-
@application = project.downcase.strip.tr(' ', '_')
|
24
|
-
say welcome_message, :yellow
|
25
|
-
say "Step 1: Creating a Rails #{rails_version} application.", :yellow
|
26
|
-
say "Please wait...", :yellow
|
27
|
-
system("rails _#{rails_version}_ new #{@application} -m #{alchemy_template} -d #{options[:database]} -T") || exit!(1)
|
28
|
-
say "Successfully created the Rails application!", :green
|
29
|
-
say instructions, :yellow
|
30
|
-
if options[:database] == 'mysql' || options[:database] == 'postgresql'
|
31
|
-
create_database_yml(options[:database])
|
32
|
-
end
|
33
|
-
system("#{rake_cmd} alchemy:install from_binary=true") || exit!(1)
|
34
|
-
say "\nStep 3: Installing Alchemy User into Rails app", :yellow
|
35
|
-
say "Please wait...", :yellow
|
36
|
-
system("#{rails_cmd} g alchemy:devise:install") || exit!(1)
|
37
|
-
say "Done.", :green
|
38
|
-
cleanup
|
39
|
-
say "\nSuccessfully installed Alchemy CMS\n", :green
|
40
|
-
say further_instructions, :yellow
|
41
|
-
rescue
|
42
|
-
say "\nError while installing Alchemy CMS!\n#{$!}\n", :red
|
43
|
-
end
|
44
|
-
|
45
|
-
private
|
46
|
-
|
47
|
-
def rails_version
|
48
|
-
Rails::VERSION::STRING
|
49
|
-
end
|
50
|
-
|
51
|
-
def rake_cmd
|
52
|
-
"#{bundle_cmd} rake"
|
53
|
-
end
|
54
|
-
|
55
|
-
def rails_cmd
|
56
|
-
"#{bundle_cmd} rails"
|
57
|
-
end
|
58
|
-
|
59
|
-
def bundle_cmd
|
60
|
-
"cd #{@application} && DISABLE_SPRING=1 bundle exec"
|
61
|
-
end
|
62
|
-
|
63
|
-
def alchemy_template
|
64
|
-
File.join(File.dirname(__FILE__), '..', 'lib', 'rails', 'templates', 'alchemy.rb')
|
65
|
-
end
|
66
|
-
|
67
|
-
def welcome_message
|
68
|
-
<<-MSG
|
69
|
-
|
70
|
-
------------------------------------------------------------
|
71
|
-
-= Welcome to the Alchemy Standalone Installer =-
|
72
|
-
------------------------------------------------------------
|
73
|
-
|
74
|
-
Bootstraping a new Alchemy CMS #{Alchemy.version} project for you.
|
75
|
-
|
76
|
-
MSG
|
77
|
-
end
|
78
|
-
|
79
|
-
def instructions
|
80
|
-
<<-INSTRUCTIONS
|
81
|
-
|
82
|
-
Step 2: Configuration
|
83
|
-
|
84
|
-
In order to guide you through the installation process we need you to answer some questions.
|
85
|
-
INSTRUCTIONS
|
86
|
-
end
|
87
|
-
|
88
|
-
def further_instructions
|
89
|
-
<<-EOF
|
90
|
-
|
91
|
-
Step 4: Further Instructions
|
92
|
-
|
93
|
-
Change into your app folder:
|
94
|
-
|
95
|
-
$ cd #{@application}
|
96
|
-
|
97
|
-
Start your local Rails server with:
|
98
|
-
|
99
|
-
$ bin/rails server
|
100
|
-
|
101
|
-
Open your browser and enter the following URL:
|
102
|
-
|
103
|
-
http://localhost:3000/admin
|
104
|
-
|
105
|
-
and follow the on screen instructions to complete the installation.
|
106
|
-
|
107
|
-
We hope you have fun using Alchemy!
|
108
|
-
EOF
|
109
|
-
end
|
110
|
-
|
111
|
-
def cleanup
|
112
|
-
append_file "#{@application}/.gitignore" do
|
113
|
-
<<-GITIGNORE
|
114
|
-
|
115
|
-
# Ignore Alchemy uploads folder
|
116
|
-
/uploads
|
117
|
-
|
118
|
-
# Ignore sensitive data
|
119
|
-
config/database.yml
|
120
|
-
config/initializers/secret_token.rb
|
121
|
-
GITIGNORE
|
122
|
-
end
|
123
|
-
`
|
124
|
-
cd #{@application}
|
125
|
-
mkdir -p ./uploads
|
126
|
-
`
|
127
|
-
end
|
128
|
-
|
129
|
-
def create_database_yml(type)
|
130
|
-
case type
|
131
|
-
when 'mysql'
|
132
|
-
say "- MySQL Database settings", :yellow
|
133
|
-
@db_user_name = ask("\nPlease enter your local mysql username (DEFAULT: root):")
|
134
|
-
@db_user_name = 'root' if @db_user_name.empty?
|
135
|
-
@db_password = ask_password("Please enter the password for #{@db_user_name} (Leave blank for none):")
|
136
|
-
local_standard_socket = '/tmp/mysql.sock'
|
137
|
-
@db_socket = ask("Please enter your local mysql socket (DEFAULT: #{local_standard_socket}):")
|
138
|
-
@db_socket = local_standard_socket if @db_socket.empty?
|
139
|
-
file = mysql_yml_file
|
140
|
-
when 'postgresql'
|
141
|
-
say "- PostgreSQL Database settings", :yellow
|
142
|
-
@db_user_name = ask("\nPlease enter the local postgresql user name:")
|
143
|
-
@db_password = ask_password("Please enter the password for #{@db_user_name} (Leave blank for none):")
|
144
|
-
file = postgres_yml_file
|
145
|
-
end
|
146
|
-
create_file "./#{@application}/config/database.yml", file, force: true
|
147
|
-
end
|
148
|
-
|
149
|
-
def mysql_yml_file
|
150
|
-
<<-DATABASE
|
151
|
-
# MySQL. Versions 4.1 and 5.0 are recommended.
|
152
|
-
#
|
153
|
-
# Install the MYSQL driver
|
154
|
-
# gem install mysql2
|
155
|
-
#
|
156
|
-
# Ensure the MySQL gem is defined in your Gemfile
|
157
|
-
# gem 'mysql2'
|
158
|
-
#
|
159
|
-
# And be sure to use new-style password hashing:
|
160
|
-
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
|
161
|
-
development:
|
162
|
-
adapter: mysql2
|
163
|
-
encoding: utf8
|
164
|
-
database: #{@application}_development
|
165
|
-
pool: 5
|
166
|
-
username: #{@db_user_name}
|
167
|
-
password: #{@db_password}
|
168
|
-
socket: #{@db_socket}
|
169
|
-
|
170
|
-
# Warning: The database defined as "test" will be erased and
|
171
|
-
# re-generated from your development database when you run "rake".
|
172
|
-
# Do not set this db to the same as development or production.
|
173
|
-
test:
|
174
|
-
adapter: mysql2
|
175
|
-
encoding: utf8
|
176
|
-
database: #{@application}_test
|
177
|
-
pool: 5
|
178
|
-
username: #{@db_user_name}
|
179
|
-
password: #{@db_password}
|
180
|
-
socket: #{@db_socket}
|
181
|
-
|
182
|
-
production:
|
183
|
-
adapter: mysql2
|
184
|
-
encoding: utf8
|
185
|
-
database: #{@application}_production
|
186
|
-
pool: 5
|
187
|
-
username: #{@db_user_name}
|
188
|
-
password: #{@db_password}
|
189
|
-
socket: #{@db_socket}
|
190
|
-
DATABASE
|
191
|
-
end
|
192
|
-
|
193
|
-
def postgres_yml_file
|
194
|
-
<<-DATABASE
|
195
|
-
# PostgreSQL. Versions 8.2 and up are supported.
|
196
|
-
#
|
197
|
-
# Install the pg driver:
|
198
|
-
# gem install pg
|
199
|
-
# On OS X with Homebrew:
|
200
|
-
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
201
|
-
# On OS X with MacPorts:
|
202
|
-
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
|
203
|
-
# On Windows:
|
204
|
-
# gem install pg
|
205
|
-
# Choose the win32 build.
|
206
|
-
# Install PostgreSQL and put its /bin directory on your path.
|
207
|
-
#
|
208
|
-
# Configure Using Gemfile
|
209
|
-
# gem 'pg'
|
210
|
-
#
|
211
|
-
development:
|
212
|
-
adapter: postgresql
|
213
|
-
encoding: unicode
|
214
|
-
database: #{@application}_development
|
215
|
-
pool: 5
|
216
|
-
username: #{@db_user_name}
|
217
|
-
password: #{@db_password}
|
218
|
-
|
219
|
-
# Connect on a TCP socket. Omitted by default since the client uses a
|
220
|
-
# domain socket that doesn't need configuration. Windows does not have
|
221
|
-
# domain sockets, so uncomment these lines.
|
222
|
-
#host: localhost
|
223
|
-
|
224
|
-
# The TCP port the server listens on. Defaults to 5432.
|
225
|
-
# If your server runs on a different port number, change accordingly.
|
226
|
-
#port: 5432
|
227
|
-
|
228
|
-
# Schema search path. The server defaults to $user,public
|
229
|
-
#schema_search_path: myapp,sharedapp,public
|
230
|
-
|
231
|
-
# Minimum log levels, in increasing order:
|
232
|
-
# debug5, debug4, debug3, debug2, debug1,
|
233
|
-
# log, notice, warning, error, fatal, and panic
|
234
|
-
# Defaults to warning.
|
235
|
-
#min_messages: notice
|
236
|
-
|
237
|
-
# Warning: The database defined as "test" will be erased and
|
238
|
-
# re-generated from your development database when you run "rake".
|
239
|
-
# Do not set this db to the same as development or production.
|
240
|
-
test:
|
241
|
-
adapter: postgresql
|
242
|
-
encoding: unicode
|
243
|
-
database: #{@application}_test
|
244
|
-
pool: 5
|
245
|
-
username: #{@db_user_name}
|
246
|
-
password: #{@db_password}
|
247
|
-
|
248
|
-
production:
|
249
|
-
adapter: postgresql
|
250
|
-
encoding: unicode
|
251
|
-
database: #{@application}_production
|
252
|
-
pool: 5
|
253
|
-
username: #{@db_user_name}
|
254
|
-
password: #{@db_password}
|
255
|
-
DATABASE
|
256
|
-
end
|
257
|
-
|
258
|
-
def ask_password(message)
|
259
|
-
password = $stdin.noecho { ask(message) }
|
260
|
-
puts "\n"
|
261
|
-
password
|
262
|
-
end
|
263
|
-
end
|
264
|
-
|
265
|
-
AlchemyInstaller.start
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# This rails template installs Alchemy and all depending gems.
|
2
|
-
require File.expand_path("../../../alchemy/version", __FILE__)
|
3
|
-
|
4
|
-
gem "alchemy_cms", github: "AlchemyCMS/alchemy_cms", branch: "master"
|
5
|
-
gem "alchemy-devise", github: "AlchemyCMS/alchemy-devise", branch: "master"
|
6
|
-
|
7
|
-
gem "capistrano-alchemy", github: "AlchemyCMS/capistrano-alchemy", branch: "master", group: "development"
|