refinerycms 0.9.9.4 → 0.9.9.5
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/.gitignore +3 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +59 -59
- data/bin/refinerycms +56 -80
- data/changelog.md +68 -58
- data/config/database.yml.mysql +2 -2
- data/lib/refinerycms.rb +3 -3
- data/lib/refinerycms/all.rb +3 -0
- data/readme.md +9 -9
- data/refinerycms.gemspec +13 -10
- data/spec/spec_helper.rb +1 -2
- metadata +12 -11
data/.gitignore
CHANGED
data/Gemfile
CHANGED
|
@@ -29,10 +29,10 @@ end
|
|
|
29
29
|
# REFINERY CMS ================================================================
|
|
30
30
|
# Anything you put in here will be overridden when the app gets updated.
|
|
31
31
|
|
|
32
|
-
# gem 'refinerycms', '~> 0.9.9.
|
|
32
|
+
# gem 'refinerycms', '~> 0.9.9.5'
|
|
33
33
|
|
|
34
34
|
group :development, :test do
|
|
35
|
-
gem 'refinerycms-testing', '~> 0.9.9.
|
|
35
|
+
gem 'refinerycms-testing', '~> 0.9.9.5'
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# END REFINERY CMS ============================================================
|
|
@@ -53,5 +53,5 @@ end
|
|
|
53
53
|
# gem 'refinerycms-page-images, '~> 1.0
|
|
54
54
|
|
|
55
55
|
# Add i18n support (optional, you can remove this if you really want to).
|
|
56
|
-
gem 'refinerycms-i18n', '~> 0.9.9.
|
|
56
|
+
gem 'refinerycms-i18n', '~> 0.9.9.11'
|
|
57
57
|
# END USER DEFINED
|
data/Gemfile.lock
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
refinerycms (0.9.9.
|
|
4
|
+
refinerycms (0.9.9.5)
|
|
5
5
|
bundler (~> 1.0.10)
|
|
6
|
-
refinerycms-authentication (~> 0.9.9.
|
|
7
|
-
refinerycms-base (~> 0.9.9.
|
|
8
|
-
refinerycms-core (~> 0.9.9.
|
|
9
|
-
refinerycms-dashboard (~> 0.9.9.
|
|
10
|
-
refinerycms-images (~> 0.9.9.
|
|
11
|
-
refinerycms-pages (~> 0.9.9.
|
|
12
|
-
refinerycms-resources (~> 0.9.9.
|
|
13
|
-
refinerycms-settings (~> 0.9.9.
|
|
14
|
-
refinerycms-authentication (0.9.9.
|
|
6
|
+
refinerycms-authentication (~> 0.9.9.5)
|
|
7
|
+
refinerycms-base (~> 0.9.9.5)
|
|
8
|
+
refinerycms-core (~> 0.9.9.5)
|
|
9
|
+
refinerycms-dashboard (~> 0.9.9.5)
|
|
10
|
+
refinerycms-images (~> 0.9.9.5)
|
|
11
|
+
refinerycms-pages (~> 0.9.9.5)
|
|
12
|
+
refinerycms-resources (~> 0.9.9.5)
|
|
13
|
+
refinerycms-settings (~> 0.9.9.5)
|
|
14
|
+
refinerycms-authentication (0.9.9.5)
|
|
15
15
|
devise (~> 1.1)
|
|
16
|
-
refinerycms-core (~> 0.9.9.
|
|
17
|
-
refinerycms-base (0.9.9.
|
|
18
|
-
refinerycms-core (0.9.9.
|
|
16
|
+
refinerycms-core (~> 0.9.9.5)
|
|
17
|
+
refinerycms-base (0.9.9.5)
|
|
18
|
+
refinerycms-core (0.9.9.5)
|
|
19
19
|
acts_as_indexed (~> 0.7)
|
|
20
|
-
friendly_id_globalize3 (~> 3.2.
|
|
20
|
+
friendly_id_globalize3 (~> 3.2.1)
|
|
21
21
|
globalize3 (>= 0.1.0.beta)
|
|
22
22
|
moretea-awesome_nested_set (= 1.4.3.1)
|
|
23
|
-
rails (~> 3.0.
|
|
23
|
+
rails (~> 3.0.5)
|
|
24
24
|
rdoc (>= 2.5.11)
|
|
25
|
-
refinerycms-base (~> 0.9.9.
|
|
25
|
+
refinerycms-base (~> 0.9.9.5)
|
|
26
26
|
refinerycms-generators (~> 0.9.9.3)
|
|
27
|
-
refinerycms-settings (~> 0.9.9.
|
|
27
|
+
refinerycms-settings (~> 0.9.9.5)
|
|
28
28
|
truncate_html (~> 0.5)
|
|
29
29
|
will_paginate (~> 3.0.pre)
|
|
30
|
-
refinerycms-dashboard (0.9.9.
|
|
31
|
-
refinerycms-core (~> 0.9.9.
|
|
32
|
-
refinerycms-images (0.9.9.
|
|
30
|
+
refinerycms-dashboard (0.9.9.5)
|
|
31
|
+
refinerycms-core (~> 0.9.9.5)
|
|
32
|
+
refinerycms-images (0.9.9.5)
|
|
33
33
|
dragonfly (~> 0.8.2)
|
|
34
34
|
rack-cache (>= 0.5.3)
|
|
35
|
-
refinerycms-core (~> 0.9.9.
|
|
36
|
-
refinerycms-pages (0.9.9.
|
|
37
|
-
refinerycms-core (~> 0.9.9.
|
|
38
|
-
refinerycms-resources (0.9.9.
|
|
35
|
+
refinerycms-core (~> 0.9.9.5)
|
|
36
|
+
refinerycms-pages (0.9.9.5)
|
|
37
|
+
refinerycms-core (~> 0.9.9.5)
|
|
38
|
+
refinerycms-resources (0.9.9.5)
|
|
39
39
|
dragonfly (~> 0.8.2)
|
|
40
40
|
rack-cache (>= 0.5.3)
|
|
41
|
-
refinerycms-core (~> 0.9.9.
|
|
42
|
-
refinerycms-settings (0.9.9.
|
|
43
|
-
refinerycms-base (~> 0.9.9.
|
|
44
|
-
refinerycms-testing (0.9.9.
|
|
41
|
+
refinerycms-core (~> 0.9.9.5)
|
|
42
|
+
refinerycms-settings (0.9.9.5)
|
|
43
|
+
refinerycms-base (~> 0.9.9.5)
|
|
44
|
+
refinerycms-testing (0.9.9.5)
|
|
45
45
|
autotest
|
|
46
46
|
autotest-notification
|
|
47
47
|
autotest-rails
|
|
@@ -54,7 +54,7 @@ PATH
|
|
|
54
54
|
json_pure
|
|
55
55
|
launchy
|
|
56
56
|
rack-test (~> 0.5.6)
|
|
57
|
-
refinerycms-core (~> 0.9.9.
|
|
57
|
+
refinerycms-core (~> 0.9.9.5)
|
|
58
58
|
rspec-rails (~> 2.5)
|
|
59
59
|
|
|
60
60
|
GEM
|
|
@@ -62,12 +62,12 @@ GEM
|
|
|
62
62
|
specs:
|
|
63
63
|
ZenTest (4.5.0)
|
|
64
64
|
abstract (1.0.0)
|
|
65
|
-
actionmailer (3.0.
|
|
66
|
-
actionpack (= 3.0.
|
|
65
|
+
actionmailer (3.0.5)
|
|
66
|
+
actionpack (= 3.0.5)
|
|
67
67
|
mail (~> 2.2.15)
|
|
68
|
-
actionpack (3.0.
|
|
69
|
-
activemodel (= 3.0.
|
|
70
|
-
activesupport (= 3.0.
|
|
68
|
+
actionpack (3.0.5)
|
|
69
|
+
activemodel (= 3.0.5)
|
|
70
|
+
activesupport (= 3.0.5)
|
|
71
71
|
builder (~> 2.1.2)
|
|
72
72
|
erubis (~> 2.6.6)
|
|
73
73
|
i18n (~> 0.4)
|
|
@@ -75,21 +75,21 @@ GEM
|
|
|
75
75
|
rack-mount (~> 0.6.13)
|
|
76
76
|
rack-test (~> 0.5.7)
|
|
77
77
|
tzinfo (~> 0.3.23)
|
|
78
|
-
activemodel (3.0.
|
|
79
|
-
activesupport (= 3.0.
|
|
78
|
+
activemodel (3.0.5)
|
|
79
|
+
activesupport (= 3.0.5)
|
|
80
80
|
builder (~> 2.1.2)
|
|
81
81
|
i18n (~> 0.4)
|
|
82
|
-
activerecord (3.0.
|
|
83
|
-
activemodel (= 3.0.
|
|
84
|
-
activesupport (= 3.0.
|
|
82
|
+
activerecord (3.0.5)
|
|
83
|
+
activemodel (= 3.0.5)
|
|
84
|
+
activesupport (= 3.0.5)
|
|
85
85
|
arel (~> 2.0.2)
|
|
86
86
|
tzinfo (~> 0.3.23)
|
|
87
|
-
activeresource (3.0.
|
|
88
|
-
activemodel (= 3.0.
|
|
89
|
-
activesupport (= 3.0.
|
|
90
|
-
activesupport (3.0.
|
|
87
|
+
activeresource (3.0.5)
|
|
88
|
+
activemodel (= 3.0.5)
|
|
89
|
+
activesupport (= 3.0.5)
|
|
90
|
+
activesupport (3.0.5)
|
|
91
91
|
acts_as_indexed (0.7.1)
|
|
92
|
-
arel (2.0.
|
|
92
|
+
arel (2.0.9)
|
|
93
93
|
autotest (4.4.6)
|
|
94
94
|
ZenTest (>= 4.4.1)
|
|
95
95
|
autotest-notification (2.3.1)
|
|
@@ -143,7 +143,7 @@ GEM
|
|
|
143
143
|
i18n (0.5.0)
|
|
144
144
|
json (1.4.6)
|
|
145
145
|
json_pure (1.5.1)
|
|
146
|
-
launchy (0.
|
|
146
|
+
launchy (0.4.0)
|
|
147
147
|
configuration (>= 0.0.5)
|
|
148
148
|
rake (>= 0.8.1)
|
|
149
149
|
mail (2.2.15)
|
|
@@ -163,23 +163,23 @@ GEM
|
|
|
163
163
|
rack (>= 1.0.0)
|
|
164
164
|
rack-test (0.5.7)
|
|
165
165
|
rack (>= 1.0)
|
|
166
|
-
rails (3.0.
|
|
167
|
-
actionmailer (= 3.0.
|
|
168
|
-
actionpack (= 3.0.
|
|
169
|
-
activerecord (= 3.0.
|
|
170
|
-
activeresource (= 3.0.
|
|
171
|
-
activesupport (= 3.0.
|
|
166
|
+
rails (3.0.5)
|
|
167
|
+
actionmailer (= 3.0.5)
|
|
168
|
+
actionpack (= 3.0.5)
|
|
169
|
+
activerecord (= 3.0.5)
|
|
170
|
+
activeresource (= 3.0.5)
|
|
171
|
+
activesupport (= 3.0.5)
|
|
172
172
|
bundler (~> 1.0)
|
|
173
|
-
railties (= 3.0.
|
|
174
|
-
railties (3.0.
|
|
175
|
-
actionpack (= 3.0.
|
|
176
|
-
activesupport (= 3.0.
|
|
173
|
+
railties (= 3.0.5)
|
|
174
|
+
railties (3.0.5)
|
|
175
|
+
actionpack (= 3.0.5)
|
|
176
|
+
activesupport (= 3.0.5)
|
|
177
177
|
rake (>= 0.8.7)
|
|
178
178
|
thor (~> 0.14.4)
|
|
179
179
|
rake (0.8.7)
|
|
180
180
|
rdoc (3.5.3)
|
|
181
|
-
refinerycms-generators (0.9.9.
|
|
182
|
-
refinerycms-i18n (0.9.9.
|
|
181
|
+
refinerycms-generators (0.9.9.6)
|
|
182
|
+
refinerycms-i18n (0.9.9.11)
|
|
183
183
|
refinerycms (>= 0.9.8)
|
|
184
184
|
routing-filter (>= 0.2.3)
|
|
185
185
|
routing-filter (0.2.3)
|
|
@@ -221,6 +221,6 @@ PLATFORMS
|
|
|
221
221
|
|
|
222
222
|
DEPENDENCIES
|
|
223
223
|
refinerycms!
|
|
224
|
-
refinerycms-i18n (~> 0.9.9.
|
|
225
|
-
refinerycms-testing (~> 0.9.9.
|
|
224
|
+
refinerycms-i18n (~> 0.9.9.11)
|
|
225
|
+
refinerycms-testing (~> 0.9.9.5)
|
|
226
226
|
sqlite3
|
data/bin/refinerycms
CHANGED
|
@@ -10,8 +10,10 @@ rescue LoadError
|
|
|
10
10
|
exit(1)
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# Let the application have a constant it can detect installation with.
|
|
14
|
+
REFINERYCMS_INSTALLER = true
|
|
14
15
|
|
|
16
|
+
# Load refinerycms
|
|
15
17
|
require Pathname.new(File.expand_path(File.dirname(__FILE__) << "/..")).join('lib', 'refinery')
|
|
16
18
|
|
|
17
19
|
# Load other required libraries
|
|
@@ -28,14 +30,13 @@ module Refinery
|
|
|
28
30
|
@options = {
|
|
29
31
|
:database => {
|
|
30
32
|
:adapter => 'sqlite3',
|
|
33
|
+
:ident => false,
|
|
31
34
|
:username => 'root',
|
|
32
|
-
:password =>
|
|
35
|
+
:password => nil
|
|
33
36
|
},
|
|
34
|
-
:from_version => '0.9.8',
|
|
35
37
|
:force => false,
|
|
36
38
|
:heroku => false,
|
|
37
39
|
:duostack => false,
|
|
38
|
-
:update => false,
|
|
39
40
|
:confirm => false,
|
|
40
41
|
:gems => []
|
|
41
42
|
}
|
|
@@ -47,12 +48,27 @@ module Refinery
|
|
|
47
48
|
opts.separator ""
|
|
48
49
|
opts.separator "Specific Options:"
|
|
49
50
|
|
|
51
|
+
# Bail out if --update is specified.
|
|
52
|
+
opts.on('--update') do |update|
|
|
53
|
+
puts "\nYou specified --update which is a command that has been removed."
|
|
54
|
+
puts "To update your application:"
|
|
55
|
+
puts "- Change the version of the 'refinerycms' gem in your Gemfile."
|
|
56
|
+
puts "- Run bundle install"
|
|
57
|
+
puts "- Run rails generate refinerycms --update"
|
|
58
|
+
puts "\n"
|
|
59
|
+
exit(1)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
# Rails supports more options, but Refinery is only tested on these three
|
|
51
63
|
databases = %w(mysql postgresql sqlite3)
|
|
52
64
|
opts.on("-d DATABASE", "--database DATABASE", databases, "Select the database (default sqlite3)", " #{databases.join('/')}") do |db|
|
|
53
65
|
@options[:database][:adapter] = db
|
|
54
66
|
end
|
|
55
67
|
|
|
68
|
+
opts.on("--ident", "Use ident database authentication (for mysql or postgresql)") do
|
|
69
|
+
@options[:database][:ident] = true
|
|
70
|
+
end
|
|
71
|
+
|
|
56
72
|
opts.on("-u USERNAME", '--database-username USERNAME', String, "Set the database username", ' (default root)') do |username|
|
|
57
73
|
@options[:database][:username] = username
|
|
58
74
|
end
|
|
@@ -69,10 +85,6 @@ module Refinery
|
|
|
69
85
|
@options[:force] = true
|
|
70
86
|
end
|
|
71
87
|
|
|
72
|
-
opts.on("--from-version VERSION", String, "Set the version that we are updating from, incase there are special files that need to change", " (default '0.9.8')") do |version|
|
|
73
|
-
@options[:from_version] = version
|
|
74
|
-
end
|
|
75
|
-
|
|
76
88
|
opts.on("--heroku [APP_NAME]", "Set up and deploy to Heroku") do |app_name|
|
|
77
89
|
@options[:heroku] = app_name || ''
|
|
78
90
|
end
|
|
@@ -81,10 +93,6 @@ module Refinery
|
|
|
81
93
|
@options[:duostack] = app_name
|
|
82
94
|
end
|
|
83
95
|
|
|
84
|
-
opts.on("--update", "--update", "Migrate the database instead of rebuilding it") do
|
|
85
|
-
@options[:update] = true
|
|
86
|
-
end
|
|
87
|
-
|
|
88
96
|
opts.on("-c", "--confirm", "Confirm any prompts that require input") do
|
|
89
97
|
@options[:confirm] = true
|
|
90
98
|
end
|
|
@@ -108,39 +116,34 @@ module Refinery
|
|
|
108
116
|
# Grab input and ensure that the path doesn't exist already and other checks.
|
|
109
117
|
validate!
|
|
110
118
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
generate!
|
|
119
|
+
# Generate a Refinery CMS application
|
|
120
|
+
generate!
|
|
114
121
|
|
|
115
|
-
|
|
116
|
-
|
|
122
|
+
# Bundle the application which activates Refinery CMS
|
|
123
|
+
bundle!
|
|
117
124
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
125
|
+
# Ensure the database exists so that queries like .table_exists? don't fail.
|
|
126
|
+
puts "\nCreating a new database.."
|
|
127
|
+
# Warn about incorrect username or password.
|
|
128
|
+
unless @options[:database][:adapter] == 'sqlite3'
|
|
129
|
+
if @options[:database][:ident]
|
|
130
|
+
note = "NOTE: If ident authentication fails then the installer will stall or fail here.\n\n"
|
|
131
|
+
else
|
|
122
132
|
note = "NOTE: if your database username is not '#{@options[:database][:username]}'"
|
|
123
|
-
note << " or your password is not '#{@options[:database][:password]}' then the installer will
|
|
124
|
-
puts note
|
|
133
|
+
note << " or your password is not '#{@options[:database][:password]}' then the installer will stall here.\n\n"
|
|
125
134
|
end
|
|
126
|
-
|
|
127
|
-
else
|
|
128
|
-
# Update the current application.
|
|
129
|
-
update!
|
|
130
|
-
|
|
131
|
-
# Bundle the application which activates Refinery CMS
|
|
132
|
-
bundle!
|
|
135
|
+
puts note
|
|
133
136
|
end
|
|
137
|
+
run_command("rake -f \"#{@app_path.join('Rakefile')}\" db:create", {
|
|
138
|
+
:fail => "Unable to create the application's database"
|
|
139
|
+
})
|
|
134
140
|
|
|
135
141
|
# Run the newly activated Refinery CMS generator.
|
|
136
|
-
run_command("rails generate refinerycms
|
|
142
|
+
run_command("rails generate refinerycms", {
|
|
137
143
|
:cd => true,
|
|
138
144
|
:fail => "Could not run the refinerycms generator successfully."
|
|
139
145
|
})
|
|
140
146
|
|
|
141
|
-
# Run the update task if we're updating
|
|
142
|
-
run_command("rake refinery:update", {:cd => true, :fail => "refinery:update rake task failed."}) if @options[:update]
|
|
143
|
-
|
|
144
147
|
# Output helpful messages to user
|
|
145
148
|
output!
|
|
146
149
|
end
|
|
@@ -180,10 +183,9 @@ module Refinery
|
|
|
180
183
|
puts "Please choose another name for your new project."
|
|
181
184
|
puts "\n"
|
|
182
185
|
exit(1)
|
|
183
|
-
elsif @app_path.directory? && !@options[:force]
|
|
186
|
+
elsif @app_path.directory? && !@options[:force]
|
|
184
187
|
puts "\nThe directory '#{@app_path}' that you specified already exists."
|
|
185
188
|
puts "Use --force to overwrite an existing directory."
|
|
186
|
-
puts "Use --update to replace any Refinery CMS files in an existing installation."
|
|
187
189
|
puts "\n"
|
|
188
190
|
exit(1)
|
|
189
191
|
elsif @options[:heroku]
|
|
@@ -209,32 +211,9 @@ module Refinery
|
|
|
209
211
|
exit(1)
|
|
210
212
|
end
|
|
211
213
|
end
|
|
212
|
-
elsif @app_path.join('.git').directory? && @options[:update] && !@options[:confirm]
|
|
213
|
-
git_status = run_command('git status --porcelain', {:puts => false, :ruby => false})
|
|
214
|
-
if git_status.to_s.strip.length > 0
|
|
215
|
-
puts "\nYou have uncommitted changes or untracked files. Please remove or commit them, or:"
|
|
216
|
-
puts "Use --confirm to have Refinery proceed anyway. "
|
|
217
|
-
puts "Untracked files will be removed, and uncommitted changes may be lost."
|
|
218
|
-
puts "\n"
|
|
219
|
-
exit(1)
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
if @options[:update]
|
|
224
|
-
puts "Please ensure you have a backup of your project and its database."
|
|
225
|
-
puts "Type 'yes' to continue (anything other than 'yes' will cancel)"
|
|
226
|
-
unless $stdin.gets.strip == 'yes'
|
|
227
|
-
puts "Cancelling..."
|
|
228
|
-
exit
|
|
229
|
-
end
|
|
230
214
|
end
|
|
231
215
|
end
|
|
232
216
|
|
|
233
|
-
def update!
|
|
234
|
-
# Handle acts_as_indexed changes.
|
|
235
|
-
FileUtils::rm_r @app_path.join('tmp', 'index') if @app_path.join('tmp', 'index').directory?
|
|
236
|
-
end
|
|
237
|
-
|
|
238
217
|
def generate!(rails_command = nil)
|
|
239
218
|
if rails_command.to_s.length == 0
|
|
240
219
|
# Generate a rails application
|
|
@@ -255,8 +234,13 @@ module Refinery
|
|
|
255
234
|
end
|
|
256
235
|
|
|
257
236
|
# Override username and password
|
|
258
|
-
|
|
259
|
-
|
|
237
|
+
if @options[:database][:ident]
|
|
238
|
+
find_and_replace('config/database.yml', %r{username:}, '#username:')
|
|
239
|
+
find_and_replace('config/database.yml', %r{password:}, '#password:')
|
|
240
|
+
else
|
|
241
|
+
find_and_replace('config/database.yml', %r{username:.*}, "username: #{@options[:database][:username]}")
|
|
242
|
+
find_and_replace('config/database.yml', %r{password:.*}, "password: #{@options[:database][:password]}")
|
|
243
|
+
end
|
|
260
244
|
|
|
261
245
|
puts "\n---------"
|
|
262
246
|
puts "Refinery successfully installed in '#{@app_path}'!\n\n"
|
|
@@ -269,19 +253,16 @@ module Refinery
|
|
|
269
253
|
refinery_gems = refinery_gemfile_contents.match(/# REFINERY CMS =+.*# END REFINERY CMS =+/m)[0]
|
|
270
254
|
refinery_gems.gsub!("# gem 'refinerycms'", "gem 'refinerycms'") # Enable refinerycms
|
|
271
255
|
refinery_gems.gsub!("gem 'refinerycms-testing'", "# gem 'refinerycms-testing'") # Disable testing
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
end
|
|
283
|
-
else
|
|
284
|
-
find_and_replace(@app_path.join('Gemfile'), /# REFINERY CMS =+.*# END REFINERY CMS =+/m, refinery_gems)
|
|
256
|
+
|
|
257
|
+
app_gemfile = @app_path.join('Gemfile')
|
|
258
|
+
FileUtils::cp app_gemfile, "#{app_gemfile}.backup"
|
|
259
|
+
refinery_user_defined_gems = refinery_gemfile_contents.match(/# USER DEFINED(.*)# END USER DEFINED/m)
|
|
260
|
+
refinery_user_defined_gems = refinery_user_defined_gems[1] unless refinery_user_defined_gems.nil?
|
|
261
|
+
app_gemfile.open('a') do |f|
|
|
262
|
+
f.write "\n#{refinery_gems}\n"
|
|
263
|
+
@options[:gems] = ([refinery_user_defined_gems] | [@options[:gems]]).flatten.compact
|
|
264
|
+
|
|
265
|
+
f.write "\n# USER DEFINED\n#{@options[:gems].join("\n")}\n# END USER DEFINED" if @options[:gems].any?
|
|
285
266
|
end
|
|
286
267
|
|
|
287
268
|
|
|
@@ -297,17 +278,12 @@ module Refinery
|
|
|
297
278
|
# TODO: Check exit codes to see whether or not these worked
|
|
298
279
|
puts "Installing gem requirements using bundler..\n"
|
|
299
280
|
|
|
300
|
-
# Ensure RefineryCMS is up to date if we're updating
|
|
301
|
-
if @options[:update]
|
|
302
|
-
run_command("bundle update refinerycms refinerycms-generators", {:fail => "Unable to update core gems"})
|
|
303
|
-
end
|
|
304
|
-
|
|
305
281
|
# Install!
|
|
306
282
|
run_command("bundle install", {:fail => "Unable to install necessary gems"})
|
|
307
283
|
end
|
|
308
284
|
|
|
309
285
|
def output!
|
|
310
|
-
puts "\n\
|
|
286
|
+
puts "\n\nSetting up your development database..\n"
|
|
311
287
|
run_command("rake -f \"#{@app_path.join('Rakefile')}\" db:migrate")
|
|
312
288
|
|
|
313
289
|
# Deploy to Heroku
|
data/changelog.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
## 0.9.9.5 [Not Released]
|
|
2
|
+
|
|
3
|
+
* Added `<div class='inner'>` to `_content_page` for better control over CSS for each section. Please see [086abfcae2c83330346e28d1e40004cff8a27720](https://github.com/resolve/refinerycms/commit/086abfcae2c83330346e28d1e40004cff8a27720) for what changed if this affects you. [Stefan Mielke](https://github.com/caplod)
|
|
4
|
+
* Menu performance improvements. [David Reese](https://github.com/whatcould)
|
|
5
|
+
* Removed `--update` from `bin/refinerycms` because it's no longer relevant. [Philip Arndt](https://github.com/parndt)
|
|
6
|
+
* Added support for --ident in the installation task which uses ident authentication at the database level by commenting out the username and password credentials. [Philip Arndt](https://github.com/parndt)
|
|
7
|
+
* Changed the default `cache_store` to `:file_store` for better thread safety with passenger. [Philip Arndt](https://github.com/parndt)
|
|
8
|
+
* WYMeditor Internet Explorer improvements. [Philip Arndt](https://github.com/parndt)
|
|
9
|
+
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.9.4...0.9.9.5)
|
|
10
|
+
|
|
1
11
|
## 0.9.9.4 [24 February 2011]
|
|
2
12
|
|
|
3
|
-
* Added
|
|
13
|
+
* Added `doc/guides` for textile based guides that power [the guides at refinerycms.com/guides](http://refinerycms.com/guides). [Steven Heidel](https://github.com/stevenheidel) and [Philip Arndt](https://github.com/parndt)
|
|
4
14
|
* Allowed multiple resource pickers on one form. [Phil Spitler](https://github.com/philspitler)
|
|
5
15
|
* Solved YAML parsing issues introduced by change to Psych. [Aaron Patterson](https://github.com/tenderlove) and [Uģis Ozols](https://github.com/ugisozols)
|
|
6
16
|
* Updated page to use a localized cache key if frontend translations are enabled. [Bryan Mahoney](https://github.com/DynamoMTL)
|
|
@@ -15,19 +25,19 @@
|
|
|
15
25
|
|
|
16
26
|
## 0.9.9.2 [17 February 2011]
|
|
17
27
|
|
|
18
|
-
* Removed
|
|
28
|
+
* Removed `activesupport` requirement from `bin/refinerycms`. [Philip Arndt](https://github.com/parndt)
|
|
19
29
|
* Fixed an issue in some browsers with a particular jQuery selector. [Philip Arndt](https://github.com/parndt)
|
|
20
30
|
* Modified some existing migrations to behave better when creating new applications. [Philip Arndt](https://github.com/parndt)
|
|
21
|
-
* Fixed
|
|
31
|
+
* Fixed `-u` and `-p` support for `bin/refinerycms`. [Philip Arndt](https://github.com/parndt)
|
|
22
32
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.9.1...0.9.9.2)
|
|
23
33
|
|
|
24
34
|
## 0.9.9.1 [15 February 2011]
|
|
25
35
|
|
|
26
36
|
* Fixed Firefox issue with WYMeditor. [Amanda Wagener](https:/github.com/awagener)
|
|
27
|
-
* Gracefully exit
|
|
37
|
+
* Gracefully exit `bin/refinerycms` on error. [Alexandre Girard](https://github.com/alx) and [Brian Stevens](https://github.com/bdstevens) and [Philip Arndt](https://github.com/parndt)
|
|
28
38
|
* Added basic single table inheritance support to crudify. [Ken Nordquist](https://github.com/kenphused)
|
|
29
|
-
* Removed most of the 0.9.8.9 specific
|
|
30
|
-
* Added
|
|
39
|
+
* Removed most of the 0.9.8.9 specific `--update` logic in `bin/refinerycms`. [Philip Arndt](https://github.com/parndt)
|
|
40
|
+
* Added `refinerycms-testing` engine which reduces the main Gemfile complexity. [Philip Arndt](https://github.com/parndt)
|
|
31
41
|
* Split the project into 10 separately released gems that include their own dependencies. [Philip Arndt](https://github.com/parndt)
|
|
32
42
|
* New Vietnamese translation files added. [Alex Nguyen](https://github.com/tiendung) and Stefan N and Mario Nguyen
|
|
33
43
|
* Improved JRuby support as well as the way that commands run in any ruby implementation. [Hiro Asari](https://github.com/BanzaiMan)
|
|
@@ -36,40 +46,40 @@
|
|
|
36
46
|
## 0.9.9 [27 January 2011]
|
|
37
47
|
|
|
38
48
|
* Better, more semantic HTML5. [Joe Sak](https://github.com/joemsak)
|
|
39
|
-
* Added
|
|
49
|
+
* Added `role` selection for `admin/users#edit`. [Hez Ronningen](https://github.com/hez)
|
|
40
50
|
* Fixed WYMeditor bug regarding adding links, helped with persistent testing by [Marko Hriberšek](https://github.com/markoh). [Philip Arndt](https://github.com/parndt)
|
|
41
|
-
* Better
|
|
51
|
+
* Better `RSpec` coverage [Joe Sak](https://github.com/joemsak) and [Philip Arndt](https://github.com/parndt) and [Uģis Ozols](https://github.com/ugisozols) and [PeRo ICT Solutions](https://github.com/pero-ict)
|
|
42
52
|
* Superusers now get access to all backend tabs by default. [Philip Arndt](https://github.com/parndt)
|
|
43
53
|
* Introduced LOLcat translation (yes, seriously) as an easter egg. [Steven Heidel](https://github.com/stevenheidel)
|
|
44
54
|
* Fixed several missing translations. [Johan Bruning](https://github.com/GidoGeek)
|
|
45
55
|
* Solved several i18n inconsistencies. [Jonas Hartmann](https://github.com/ionas)
|
|
46
|
-
* Made
|
|
47
|
-
* Fixed issue with finding where engines are located on the disk using
|
|
48
|
-
* Add
|
|
56
|
+
* Made `UserPlugin` dependent on `User` which solves a data redundancy proble.m [Maarten Hoogendoorn](https://github.com/moretea)
|
|
57
|
+
* Fixed issue with finding where engines are located on the disk using `Plugin::pathname`. [Lele](https://github.com/leleintercom)
|
|
58
|
+
* Add `rescue_not_found` option to turn on/off 404 rendering. [Ryan Bigg](https://github.com/radar)
|
|
49
59
|
* Full review of the French translations. [Jérémie Horhant](https://github.com/Titinux)
|
|
50
|
-
* Now using
|
|
60
|
+
* Now using `mail()` to send emails. [J. Edward Dewyea](https://github.com/commuter)
|
|
51
61
|
* Refactored backend HTML & CSS, reduced complexity and added a loading animation when you click Save on forms. [Philip Arndt](https://github.com/parndt)
|
|
52
62
|
* Improved the speed of the menu especially related to scaling through reusing collections rather then revisiting the database. [Amanda Wagener](https://github.com/awagener)
|
|
53
|
-
* Implemented an API for the
|
|
54
|
-
* Use the rails naming convention for translations that contain html markup. Escaping translations not marked as
|
|
63
|
+
* Implemented an API for the `pages` form's tabs. [David Jones](https://github.com/djones)
|
|
64
|
+
* Use the rails naming convention for translations that contain html markup. Escaping translations not marked as `html_safe` in the `refinery_help_tag` helper. [Jérémie Horhant](https://github.com/Titinux)
|
|
55
65
|
* Full review of the Italian translations. [Mirco Veltri](https://github.com/indaco)
|
|
56
|
-
* Deprecated
|
|
66
|
+
* Deprecated `/admin` in favour of `/refinery` and put in a message to display to the user when they use it. [Philip Arndt](https://github.com/parndt)
|
|
57
67
|
* Full review of the Russian translations as well as work with articles / genders in grammar. [Semyon Perepelitsa](https://github.com/semaperepelitsa)
|
|
58
68
|
* Full review of routes and the Latvian translations. [Uģis Ozols](https://github.com/ugisozols)
|
|
59
|
-
* Implemented better support for
|
|
69
|
+
* Implemented better support for `rails.js`, using standard `:method` and `:confirm` `link_to` options. [Semyon Perepelitsa](https://github.com/semaperepelitsa)
|
|
60
70
|
* Locked jQuery to 1.4.2 and jQuery UI to 1.8.5, fixed errors with dialogues and tested. [Philip Arndt](https://github.com/parndt) and [Phillip Miller](https://github.com/philmill) and [Sam Beam](https://github.com/sbeam)
|
|
61
71
|
* Added multiple file upload for images and resources using HTML5. [Philip Arndt](https://github.com/parndt)
|
|
62
|
-
* Deprecated
|
|
72
|
+
* Deprecated `content_for :head` in favour of `content_for :meta`, `content_for :stylesheets` and `content_for :javascripts`. [Philip Arndt](https://github.com/parndt)
|
|
63
73
|
* Improved client-side responsiveness of backend and frontend. [Philip Arndt](https://github.com/parndt)
|
|
64
74
|
* No more RMagick dependency [Philip Arndt](https://github.com/parndt)
|
|
65
|
-
* Added
|
|
66
|
-
* Restructed the project to remove
|
|
75
|
+
* Added `rake refinery:override stylesheet=somefile` and `rake refinery:override javascript=somefile` commands to override stylesheets and javascripts. [Oliver Ponder](https://github.com/oponder)
|
|
76
|
+
* Restructed the project to remove `vendor/refinerycms` and put all engines in the application root. [Kamil K. Lemański](https://github.com/kml)
|
|
67
77
|
* Force no resource caching on non-writable file systems (like Heroku). [Philip Arndt](https://github.com/parndt)
|
|
68
|
-
* Refinery can now attach itself to a Rails application simply by including the refinerycms gem in the
|
|
69
|
-
* Added core support for
|
|
70
|
-
* Refactored
|
|
78
|
+
* Refinery can now attach itself to a Rails application simply by including the refinerycms gem in the `Gemfile`. [Philip Arndt](https://github.com/parndt)
|
|
79
|
+
* Added core support for `globalize3` so that pages can be translated into multiple languages. [Philip Arndt](https://github.com/parndt) and [Maarten Hoogendoorn](https://github.com/moretea)
|
|
80
|
+
* Refactored `group_by_date` into a helper method which is called in the view layer and not in the controller because it is entirely presentation. [Philip Arndt](https://github.com/parndt)
|
|
71
81
|
* Applied HTML5 history pagination to all core engines. [Philip Arndt](https://github.com/parndt)
|
|
72
|
-
* Converted translate calls to use
|
|
82
|
+
* Converted translate calls to use `:scope`. [Uģis Ozols](https://github.com/ugisozols)
|
|
73
83
|
* Fixed issues where errors would only show up in English for some models and updated Russian translations. [Semyon Perepelitsa](https://github.com/semaperepelitsa)
|
|
74
84
|
* Converted to devise for authentication, requiring password resets. [Philip Arndt](https://github.com/parndt) and [Uģis Ozols](https://github.com/ugisozols)
|
|
75
85
|
* Sped up WYMeditor load times. [Philip Arndt](https://github.com/parndt)
|
|
@@ -80,32 +90,32 @@
|
|
|
80
90
|
## 0.9.8.9 [21 December 2010]
|
|
81
91
|
|
|
82
92
|
* Fixed error in the inquiries engine seeds. [Philip Arndt](https://github.com/parndt)
|
|
83
|
-
* Separate each error message into its own
|
|
84
|
-
* Add
|
|
85
|
-
* Add
|
|
93
|
+
* Separate each error message into its own `<li>`. [Uģis Ozols](https://github.com/ugisozols)
|
|
94
|
+
* Add `rescue_not_found` option to turn on/off 404 rendering. [Ryan Bigg](https://github.com/radar)
|
|
95
|
+
* Add `:from` key to `UserMailer` for password reset. [Earle Clubb](https://github.com/eclubb)
|
|
86
96
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.8...0.9.8.9)
|
|
87
97
|
|
|
88
98
|
## 0.9.8.8 [16 December 2010]
|
|
89
99
|
|
|
90
100
|
* Prevented RefinerySetting from accessing its database table before it is created. [Philip Arndt](https://github.com/parndt)
|
|
91
|
-
* Added more options to
|
|
101
|
+
* Added more options to `bin/refinerycms` like ability to specify database username and password. [Philip Arndt](https://github.com/parndt)
|
|
92
102
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.7...0.9.8.8)
|
|
93
103
|
|
|
94
104
|
## 0.9.8.7 [15 December 2010]
|
|
95
105
|
|
|
96
106
|
* Fixed a problem with migration number clashes. [Philip Arndt](https://github.com/parndt)
|
|
97
|
-
* Fixed problems with
|
|
107
|
+
* Fixed problems with `db:migrate` for a new app on Postgres. [Jacob Buys](https://github.com/wjbuys)
|
|
98
108
|
* Back-ported the changes made to the images dialogue which speed it up significantly. [Philip Arndt](https://github.com/parndt)
|
|
99
|
-
* Sort file names in the
|
|
100
|
-
* Added
|
|
109
|
+
* Sort file names in the `refinery_engine` generator so attribute types don't get changed before `_form.html.erb` generation. [Phil Spitler](https://github.com/philspitler)
|
|
110
|
+
* Added `approximate_ascii` setting, defaulted to true, for pages so that characters won't appear strangely in the address bar of some web browsers. [Uģis Ozols](https://github.com/ugisozols)
|
|
101
111
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.6...0.9.8.7)
|
|
102
112
|
|
|
103
113
|
## 0.9.8.6 [3 December 2010]
|
|
104
114
|
|
|
105
115
|
* Backported lots of functionality from 0.9.9 and later like:
|
|
106
116
|
* Fixed reordering for trees and non-trees [Philip Arndt](https://github.com/parndt)
|
|
107
|
-
* Better
|
|
108
|
-
* Fixed issue with finding where engines are located on the disk using
|
|
117
|
+
* Better `RSpec` coverage [Joe Sak](https://github.com/joemsak) and [Philip Arndt](https://github.com/parndt) and [Uģis Ozols](https://github.com/ugisozols) and [PeRo ICT Solutions](https://github.com/pero-ict)
|
|
118
|
+
* Fixed issue with finding where engines are located on the disk using `Plugin::pathname`. [Lele](https://github.com/leleintercom)
|
|
109
119
|
* Improved the speed of the menu especially related to scaling through reusing collections rather then revisiting the database. [Amanda Wagener](https://github.com/awagener)
|
|
110
120
|
* No more RMagick dependency [Philip Arndt](https://github.com/parndt)
|
|
111
121
|
* Added helper methods to expose some of the options in crud. [David Jones](https://github.com/djones)
|
|
@@ -113,11 +123,11 @@
|
|
|
113
123
|
|
|
114
124
|
## 0.9.8.5 [21 September 2010](https://github.com/parndt)
|
|
115
125
|
|
|
116
|
-
* Fixed an issue with the engine generator that was putting a comma in the wrong place breaking the call to
|
|
126
|
+
* Fixed an issue with the engine generator that was putting a comma in the wrong place breaking the call to `crudify`. [Maarten Hoogendoorn](https://github.com/moretea)
|
|
117
127
|
* Made the delete messages consistent. [Uģis Ozols](https://github.com/ugisozols)
|
|
118
|
-
*
|
|
128
|
+
* `zh-CN` was overriding en locale in core locale file, fixed. [Philip Arndt](https://github.com/parndt)
|
|
119
129
|
* Changed verbiage from created to added, create to add as it describes it better for things like images. [Philip Arndt](https://github.com/parndt)
|
|
120
|
-
*
|
|
130
|
+
* `image_fu` no longer gives you the width and height of the image due to performance problems. [Philip Arndt](https://github.com/parndt) and [David Jones](https://github.com/djones)
|
|
121
131
|
* Implemented a standardised API for the engine generator. The core now includes a standard engine install generator. Engines generate a readme file explaining how to build an engine as a gem. [David Jones](https://github.com/djones)
|
|
122
132
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.4...0.9.8.5)
|
|
123
133
|
|
|
@@ -125,41 +135,41 @@
|
|
|
125
135
|
|
|
126
136
|
* Recursive deletion of page parts. [primerano](https://github.com/primerano)
|
|
127
137
|
* Move around the default pages. [Philip Arndt](https://github.com/parndt)
|
|
128
|
-
* Extraction of windows check to
|
|
138
|
+
* Extraction of windows check to `Refinery::WINDOWS`. [Steven Heidel](https://github.com/stevenheidel)
|
|
129
139
|
* Updated the changelog for several previous releases. [Steven Heidel](https://github.com/stevenheidel)
|
|
130
140
|
* Made the menu more flexible so that it can be used in many places in your layout without caching over the top of itself. [Philip Arndt](https://github.com/parndt)
|
|
131
141
|
* Added search feature to Refinery Settings. [Matt McMahand](https://github.com/invalidusrname)
|
|
132
|
-
* Ensure that in
|
|
133
|
-
* Reduce the number of routes that we respond to in the
|
|
134
|
-
* Fixed a case where page links weren't generating properly when inside an engine such as the news engine which made use of
|
|
142
|
+
* Ensure that in `crudify` that we use `:per_page` properly for `will_paginate`. [Philip Arndt](https://github.com/parndt)
|
|
143
|
+
* Reduce the number of routes that we respond to in the `pages` engine as they were unused. [Philip Arndt](https://github.com/parndt)
|
|
144
|
+
* Fixed a case where page links weren't generating properly when inside an engine such as the news engine which made use of `params[:id]`. Took a lot of perserverance on the part of Hez - thank you very much Hez! [Hez Ronningen](https://github.com/hez) and [Philip Arndt](https://github.com/parndt)
|
|
135
145
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.3...0.9.8.4)
|
|
136
146
|
|
|
137
147
|
## 0.9.8.3 [14 September 2010]
|
|
138
148
|
* German translation improvements. [Andre Lohan](https://github.com/dc5ala)
|
|
139
|
-
* Fix bug with
|
|
140
|
-
* DRY up
|
|
149
|
+
* Fix bug with `bin/refinerycms` and windows commands. [Philip Arndt](https://github.com/parndt)
|
|
150
|
+
* DRY up `crudify` and also switch to ARel. [Philip Arndt](https://github.com/parndt)
|
|
141
151
|
* Several fixes to make things much easier on windows. [Philip Arndt](https://github.com/parndt)
|
|
142
152
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.2...0.9.8.3)
|
|
143
153
|
|
|
144
154
|
## 0.9.8.2 [13 September 2010]
|
|
145
|
-
* Update
|
|
155
|
+
* Update `readme.md` [David Jones](https://github.com/djones)
|
|
146
156
|
* Speed improvements to menu with nested_set. [Maarten Hoogendoorn](https://github.com/moretea)
|
|
147
157
|
* More speed improvements by optimising slugs. [Philip Arndt](https://github.com/parndt)
|
|
148
|
-
* Fix
|
|
158
|
+
* Fix `-h` flag on `bin/refinerycms` to display the help. [Steven Heidel](https://github.com/stevenheidel)
|
|
149
159
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8.1...0.9.8.2)
|
|
150
160
|
|
|
151
161
|
## 0.9.8.1 [9 September 2010]
|
|
152
|
-
* Convert to
|
|
153
|
-
* Allow passing
|
|
162
|
+
* Convert to `awesome_nested_set`. [Maarten Hoogendoorn](https://github.com/moretea) and [Philip Arndt](https://github.com/parndt)
|
|
163
|
+
* Allow passing `-g` to the bin task for extra gems. [Tomás Senart](https://github.com/tsenart)
|
|
154
164
|
* Update documentation for engines, not plugins. [David Jones](https://github.com/djones)
|
|
155
165
|
* Several more documentation fixes. [Steven Heidel](https://github.com/stevenheidel)
|
|
156
166
|
* Better use of dragonfly resizing. [Philip Arndt](https://github.com/parndt)
|
|
157
167
|
* Partial Latvian translation. [Uģis Ozols](https://github.com/ugisozols)
|
|
158
168
|
* Review Portugese translation. [Kivanio Barbosa](https://github.com/kivanio)
|
|
159
169
|
* Bugfix with wymeditor in the engine generator. [Karmen Blake](https://github.com/kblake)
|
|
160
|
-
* Split
|
|
170
|
+
* Split `application_helper` into smaller, more usable files. [Philip Arndt](https://github.com/parndt)
|
|
161
171
|
* Move features and specs to each engine directory. [Philip Arndt](https://github.com/parndt)
|
|
162
|
-
* Bugfixes to ensure that reordering works under
|
|
172
|
+
* Bugfixes to ensure that reordering works under `awesome_nested_set`. [Maarten Hoogendoorn](https://github.com/moretea) and [Philip Arndt](https://github.com/parndt)
|
|
163
173
|
* Update engines to not have a special :require in the Gemfile. [Johan Bruning](https://github.com/GidoGeek)
|
|
164
174
|
* Make cache sweepers work. [Philip Arndt](https://github.com/parndt)
|
|
165
175
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.8...0.9.8.1)
|
|
@@ -192,14 +202,14 @@
|
|
|
192
202
|
* Smoothed the sortable list in the admin UI. [Joe Sak](https://github.com/joemsak)
|
|
193
203
|
* Binding link dialogue URL checker to paste action. [Joe Sak](https://github.com/joemsak)
|
|
194
204
|
* Kill hidden overflow on dialogues for smaller browser windows. [Joe Sak](https://github.com/joemsak) and [Philip Arndt](https://github.com/parndt)
|
|
195
|
-
* Refactored the
|
|
196
|
-
* Running
|
|
197
|
-
* Made the core codebase not rely so heavily on
|
|
205
|
+
* Refactored the `parse_branch` method to speed up reordering on the server. [Joshua Davey](https://github.com/jgdavey)
|
|
206
|
+
* Running `refinerycms` with `-v` or `--version` will now output the version number. [Steven Heidel](https://github.com/stevenheidel)
|
|
207
|
+
* Made the core codebase not rely so heavily on `@page[:body]` by adding `Page.default_parts` and using `.first` on that instead. [Philip Arndt](https://github.com/parndt)
|
|
198
208
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.7.11...0.9.7.12)
|
|
199
209
|
|
|
200
210
|
## 0.9.7.11 [07 August 2010]
|
|
201
211
|
|
|
202
|
-
* Removed
|
|
212
|
+
* Removed `app/controllers/application.rb` due to its serious deprecation. Fixed deprecations in how we use acts_as_indexed. [Philip Arndt](https://github.com/parndt)
|
|
203
213
|
* Added passing cucumber features for search for: [Uģis Ozols](https://github.com/ugisozols)
|
|
204
214
|
- Images
|
|
205
215
|
- Files
|
|
@@ -215,7 +225,7 @@
|
|
|
215
225
|
* Lots of fixes for translations. [Uģis Ozols](https://github.com/ugisozols)
|
|
216
226
|
* Fix XSS vulnerability on page meta information by escaping the relevant fields properly [David Jones](https://github.com/djones)
|
|
217
227
|
* Ensure that the generator script grabs the first attribute that is a string, not just the first attribute, when choosing the field for Dashboard activity. [Joe Sak](https://github.com/joemsak)
|
|
218
|
-
* Updated
|
|
228
|
+
* Updated `json-pure` to `1.4.5`, now using the actual gem [Philip Arndt](https://github.com/parndt)
|
|
219
229
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.7.10...0.9.7.11)
|
|
220
230
|
|
|
221
231
|
|
|
@@ -231,13 +241,13 @@
|
|
|
231
241
|
## 0.9.7.9 [30 July 2010]
|
|
232
242
|
|
|
233
243
|
* Added a theme generator to create the basic file structure of a new theme. [David Jones](https://github.com/djones) and [Levi Cole](https://github.com/levicole)
|
|
234
|
-
* Renamed
|
|
235
|
-
* Add deprecation notice to
|
|
244
|
+
* Renamed `script/generate refinery` to `script/generate refinery_plugin`. [David Jones](https://github.com/djones)
|
|
245
|
+
* Add deprecation notice to `script/generate refinery`. [David Jones](https://github.com/djones)
|
|
236
246
|
* Updated documentation to reflect new generator changes. [David Jones](https://github.com/djones)
|
|
237
247
|
* Added tests for both plugin and theme generators. [David Jones](https://github.com/djones) and [Levi Cole](https://github.com/levicole)
|
|
238
|
-
* Refactored the
|
|
248
|
+
* Refactored the `refinerycms` & `refinery-upgrade-097-to-097` tasks to make better use of Pathname. [Philip Arndt](https://github.com/parndt)
|
|
239
249
|
* Added more cucumber features and tagged existing ones. [Philip Arndt](https://github.com/parndt), [James Fiderlick](https://github.com/jamesfid) and [Steven Heidel](https://github.com/stevenheidel)
|
|
240
|
-
* Removed mysterious
|
|
250
|
+
* Removed mysterious `page_translations` table if you had it. [Philip Arndt](https://github.com/parndt)
|
|
241
251
|
* Added workaround for tests that involve dialogues. [Uģis Ozols](https://github.com/ugisozols)
|
|
242
252
|
* Added as default the ability for forms to know whether they are inside a modal / dialog. [Philip Arndt](https://github.com/parndt)
|
|
243
253
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.7.8...0.9.7.9)
|
|
@@ -263,14 +273,14 @@
|
|
|
263
273
|
* Bugfixes, some IE compatibility. [Philip Arndt](https://github.com/parndt)
|
|
264
274
|
* Fix syntax errors in existing resource dialog. [David Jones](https://github.com/djones)
|
|
265
275
|
* Identified and fixed a positioning bug in dialogues [Joe Sak](https://github.com/joemsak) and [Philip Arndt](https://github.com/parndt)
|
|
266
|
-
* Fixed issue that was causing Refinery to load in rake tasks twice if they lived under
|
|
276
|
+
* Fixed issue that was causing Refinery to load in rake tasks twice if they lived under `"#{Rails.root}/vendor/plugins"`. [David Jones](https://github.com/djones) and [Philip Arndt](https://github.com/parndt)
|
|
267
277
|
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.7.6...0.9.7.7)
|
|
268
278
|
|
|
269
279
|
## 0.9.7.6 [15 July 2010]
|
|
270
280
|
|
|
271
281
|
* Bugfixes, fixed some failing tests. [Philip Arndt](https://github.com/parndt)
|
|
272
282
|
* More pt-BR translation keys translated. [Kivanio Barbosa](https://github.com/kivanio)
|
|
273
|
-
* Locked gems using
|
|
283
|
+
* Locked gems using `Gemfile.lock`. [David Jones](https://github.com/djones)
|
|
274
284
|
* Changed 'refinery' task to 'refinerycms' as that is our gem's name. [Steven Heidel](https://github.com/stevenheidel)
|
|
275
285
|
* Fixed bug where settings were still considered restricted if NULL. [Steven Heidel](https://github.com/stevenheidel)
|
|
276
286
|
* Ensures that bundler is available before creating an application from a gem. [Philip Arndt](https://github.com/parndt)
|
data/config/database.yml.mysql
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
login: &login
|
|
2
|
-
adapter:
|
|
2
|
+
adapter: mysql2
|
|
3
3
|
host: localhost
|
|
4
4
|
username: root
|
|
5
5
|
password:
|
|
@@ -13,7 +13,7 @@ test: &test
|
|
|
13
13
|
<<: *login
|
|
14
14
|
|
|
15
15
|
production: &production
|
|
16
|
-
adapter:
|
|
16
|
+
adapter: mysql2
|
|
17
17
|
host: localhost
|
|
18
18
|
database: your_production_database
|
|
19
19
|
username: your_production_database_login
|
data/lib/refinerycms.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
require 'refinerycms-base'
|
|
2
|
+
|
|
3
|
+
require File.expand_path('../refinerycms/all', __FILE__) unless defined?(REFINERYCMS_INSTALLER)
|
data/readme.md
CHANGED
|
@@ -33,7 +33,7 @@ Unlike other content managers, Refinery is truly __aimed at the end user__ makin
|
|
|
33
33
|
### For developers
|
|
34
34
|
|
|
35
35
|
* Easily customise the look to suit the business.
|
|
36
|
-
* __[Extend with custom engines](
|
|
36
|
+
* __[Extend with custom engines](https://github.com/resolve/refinerycms/blob/master/doc/engines.md#readme)__ to do anything Refinery doesn't do out of the box.
|
|
37
37
|
* Sticks to __"the Rails way"__ as much as possible; we don't force you to learn new templating languages.
|
|
38
38
|
* Uses [jQuery](http://jquery.com/) for fast and concise Javascript.
|
|
39
39
|
|
|
@@ -50,16 +50,16 @@ Wanna see Refinery for yourself? [Try the demo](http://demo.refinerycms.com/refi
|
|
|
50
50
|
* [GitHub repository](http://github.com/resolve/refinerycms)
|
|
51
51
|
* [Developer/API documentation](http://api.refinerycms.org)
|
|
52
52
|
* [Twitter Account](http://twitter.com/refinerycms)
|
|
53
|
-
* Documentation about: [Pages](
|
|
53
|
+
* Documentation about: [Pages](https://github.com/resolve/refinerycms/blob/master/doc/pages.md#readme), [Images](http://github.com/resolve/refinerycms/blob/master/doc/images.md#readme), [Files](http://github.com/resolve/refinerycms/blob/master/doc/resources.md#readme), [Inquiries](http://github.com/resolve/refinerycms-inquiries/blob/master/readme.md#readme), [Settings](http://github.com/resolve/refinerycms/blob/master/doc/settings.md#readme), [Dashboard](http://github.com/resolve/refinerycms/blob/master/doc/dashboard.md#readme), [Authentication & Users](http://github.com/resolve/refinerycms/blob/master/doc/authentication.md#readme), [Extending with Engines](http://github.com/resolve/refinerycms/blob/master/doc/engines.md#readme).
|
|
54
54
|
|
|
55
55
|
## Features
|
|
56
56
|
|
|
57
|
-
### [Pages](http://github.com/resolve/refinerycms/blob/master/pages
|
|
57
|
+
### [Pages](http://github.com/resolve/refinerycms/blob/master/doc/pages.md#readme)
|
|
58
58
|
|
|
59
59
|
* Easily edit and manage pages with a [WYSIWYG visual editor](http://www.wymeditor.org/).
|
|
60
60
|
* Manage you site's structure.
|
|
61
61
|
|
|
62
|
-
### [Images](http://github.com/resolve/refinerycms/blob/master/images
|
|
62
|
+
### [Images](http://github.com/resolve/refinerycms/blob/master/doc/images.md#readme) & [Files](http://github.com/resolve/refinerycms/blob/master/doc/resources.md#readme)
|
|
63
63
|
|
|
64
64
|
* Easily upload and insert images.
|
|
65
65
|
* Upload and link to resources such as PDF documents.
|
|
@@ -72,28 +72,28 @@ Wanna see Refinery for yourself? [Try the demo](http://demo.refinerycms.com/refi
|
|
|
72
72
|
* Manage your inquiries and be notified when new ones come in.
|
|
73
73
|
* Checks new inquiries for spam.
|
|
74
74
|
|
|
75
|
-
### [Settings](http://github.com/resolve/refinerycms/blob/master/settings
|
|
75
|
+
### [Settings](http://github.com/resolve/refinerycms/blob/master/doc/settings.md#readme)
|
|
76
76
|
|
|
77
77
|
* Manage the behaviour of Refinery
|
|
78
78
|
* Easily integrate with [Google Analytics](https://www.google.com/analytics/)
|
|
79
79
|
|
|
80
|
-
### [Dashboard](http://github.com/resolve/refinerycms/blob/master/dashboard
|
|
80
|
+
### [Dashboard](http://github.com/resolve/refinerycms/blob/master/doc/dashboard.md#readme)
|
|
81
81
|
|
|
82
82
|
* Get an overview of what has been updated recently and see recent inquiries.
|
|
83
83
|
|
|
84
|
-
### [Authentication & Users](http://github.com/resolve/refinerycms/blob/master/authentication
|
|
84
|
+
### [Authentication & Users](http://github.com/resolve/refinerycms/blob/master/doc/authentication.md#readme)
|
|
85
85
|
|
|
86
86
|
* Manage who can access Refinery.
|
|
87
87
|
* Control which engines each user has access to.
|
|
88
88
|
* Uses the popular [authlogic](http://github.com/binarylogic/authlogic).
|
|
89
89
|
|
|
90
|
-
### ...Want more? [Extend with Engines](http://github.com/resolve/refinerycms/blob/master/
|
|
90
|
+
### ...Want more? [Extend with Engines](http://github.com/resolve/refinerycms/blob/master/doc/engines.md#readme)
|
|
91
91
|
|
|
92
92
|
Extend Refinery easily by running the Refinery engine generator
|
|
93
93
|
|
|
94
94
|
rails generate refinery_engine
|
|
95
95
|
|
|
96
|
-
to get help on how to use that. Or read the full documentation on [writing engines for Refinery](http://github.com/resolve/refinerycms/blob/master/
|
|
96
|
+
to get help on how to use that. Or read the full documentation on [writing engines for Refinery](http://github.com/resolve/refinerycms/blob/master/docengines.md#readme)
|
|
97
97
|
|
|
98
98
|
### Popular Engines
|
|
99
99
|
|
data/refinerycms.gemspec
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{refinerycms}
|
|
5
|
-
s.version = %q{0.9.9.
|
|
5
|
+
s.version = %q{0.9.9.5}
|
|
6
6
|
s.description = %q{A Ruby on Rails CMS that supports Rails 3. It's easy to extend and sticks to 'the Rails way' where possible.}
|
|
7
|
-
s.date = %q{2011-
|
|
7
|
+
s.date = %q{2011-03-08}
|
|
8
8
|
s.summary = %q{A Ruby on Rails CMS that supports Rails 3}
|
|
9
9
|
s.email = %q{info@refinerycms.com}
|
|
10
10
|
s.homepage = %q{http://refinerycms.com}
|
|
@@ -18,14 +18,14 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
s.add_dependency 'bundler', '~> 1.0.10'
|
|
19
19
|
|
|
20
20
|
# Refinery CMS
|
|
21
|
-
s.add_dependency 'refinerycms-authentication', '~> 0.9.9.
|
|
22
|
-
s.add_dependency 'refinerycms-base', '~> 0.9.9.
|
|
23
|
-
s.add_dependency 'refinerycms-core', '~> 0.9.9.
|
|
24
|
-
s.add_dependency 'refinerycms-dashboard', '~> 0.9.9.
|
|
25
|
-
s.add_dependency 'refinerycms-images', '~> 0.9.9.
|
|
26
|
-
s.add_dependency 'refinerycms-pages', '~> 0.9.9.
|
|
27
|
-
s.add_dependency 'refinerycms-resources', '~> 0.9.9.
|
|
28
|
-
s.add_dependency 'refinerycms-settings', '~> 0.9.9.
|
|
21
|
+
s.add_dependency 'refinerycms-authentication', '~> 0.9.9.5'
|
|
22
|
+
s.add_dependency 'refinerycms-base', '~> 0.9.9.5'
|
|
23
|
+
s.add_dependency 'refinerycms-core', '~> 0.9.9.5'
|
|
24
|
+
s.add_dependency 'refinerycms-dashboard', '~> 0.9.9.5'
|
|
25
|
+
s.add_dependency 'refinerycms-images', '~> 0.9.9.5'
|
|
26
|
+
s.add_dependency 'refinerycms-pages', '~> 0.9.9.5'
|
|
27
|
+
s.add_dependency 'refinerycms-resources', '~> 0.9.9.5'
|
|
28
|
+
s.add_dependency 'refinerycms-settings', '~> 0.9.9.5'
|
|
29
29
|
|
|
30
30
|
s.files = [
|
|
31
31
|
'.gitignore',
|
|
@@ -59,9 +59,12 @@ Gem::Specification.new do |s|
|
|
|
59
59
|
'config.ru',
|
|
60
60
|
'lib',
|
|
61
61
|
'lib/refinery.rb',
|
|
62
|
+
'lib/refinerycms',
|
|
63
|
+
'lib/refinerycms/all.rb',
|
|
62
64
|
'lib/refinerycms.rb',
|
|
63
65
|
'license.md',
|
|
64
66
|
'license.md',
|
|
67
|
+
'public',
|
|
65
68
|
'readme.md',
|
|
66
69
|
'readme.md',
|
|
67
70
|
'refinerycms.gemspec',
|
data/spec/spec_helper.rb
CHANGED
|
@@ -35,8 +35,7 @@ end
|
|
|
35
35
|
|
|
36
36
|
require 'rubygems'
|
|
37
37
|
# If spork is available in the Gemfile it'll be used but we don't force it.
|
|
38
|
-
unless
|
|
39
|
-
require 'spork'
|
|
38
|
+
unless (begin; require 'spork'; rescue LoadError; nil end).nil?
|
|
40
39
|
|
|
41
40
|
Spork.prefork do
|
|
42
41
|
# Loading more in this block will cause your tests to run faster. However,
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: refinerycms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.9.9.
|
|
5
|
+
version: 0.9.9.5
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Resolve Digital
|
|
@@ -13,7 +13,7 @@ autorequire:
|
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
15
|
|
|
16
|
-
date: 2011-
|
|
16
|
+
date: 2011-03-08 00:00:00 +13:00
|
|
17
17
|
default_executable:
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
@@ -35,7 +35,7 @@ dependencies:
|
|
|
35
35
|
requirements:
|
|
36
36
|
- - ~>
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 0.9.9.
|
|
38
|
+
version: 0.9.9.5
|
|
39
39
|
type: :runtime
|
|
40
40
|
version_requirements: *id002
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
@@ -46,7 +46,7 @@ dependencies:
|
|
|
46
46
|
requirements:
|
|
47
47
|
- - ~>
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 0.9.9.
|
|
49
|
+
version: 0.9.9.5
|
|
50
50
|
type: :runtime
|
|
51
51
|
version_requirements: *id003
|
|
52
52
|
- !ruby/object:Gem::Dependency
|
|
@@ -57,7 +57,7 @@ dependencies:
|
|
|
57
57
|
requirements:
|
|
58
58
|
- - ~>
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 0.9.9.
|
|
60
|
+
version: 0.9.9.5
|
|
61
61
|
type: :runtime
|
|
62
62
|
version_requirements: *id004
|
|
63
63
|
- !ruby/object:Gem::Dependency
|
|
@@ -68,7 +68,7 @@ dependencies:
|
|
|
68
68
|
requirements:
|
|
69
69
|
- - ~>
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: 0.9.9.
|
|
71
|
+
version: 0.9.9.5
|
|
72
72
|
type: :runtime
|
|
73
73
|
version_requirements: *id005
|
|
74
74
|
- !ruby/object:Gem::Dependency
|
|
@@ -79,7 +79,7 @@ dependencies:
|
|
|
79
79
|
requirements:
|
|
80
80
|
- - ~>
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.9.9.
|
|
82
|
+
version: 0.9.9.5
|
|
83
83
|
type: :runtime
|
|
84
84
|
version_requirements: *id006
|
|
85
85
|
- !ruby/object:Gem::Dependency
|
|
@@ -90,7 +90,7 @@ dependencies:
|
|
|
90
90
|
requirements:
|
|
91
91
|
- - ~>
|
|
92
92
|
- !ruby/object:Gem::Version
|
|
93
|
-
version: 0.9.9.
|
|
93
|
+
version: 0.9.9.5
|
|
94
94
|
type: :runtime
|
|
95
95
|
version_requirements: *id007
|
|
96
96
|
- !ruby/object:Gem::Dependency
|
|
@@ -101,7 +101,7 @@ dependencies:
|
|
|
101
101
|
requirements:
|
|
102
102
|
- - ~>
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
|
-
version: 0.9.9.
|
|
104
|
+
version: 0.9.9.5
|
|
105
105
|
type: :runtime
|
|
106
106
|
version_requirements: *id008
|
|
107
107
|
- !ruby/object:Gem::Dependency
|
|
@@ -112,7 +112,7 @@ dependencies:
|
|
|
112
112
|
requirements:
|
|
113
113
|
- - ~>
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
|
-
version: 0.9.9.
|
|
115
|
+
version: 0.9.9.5
|
|
116
116
|
type: :runtime
|
|
117
117
|
version_requirements: *id009
|
|
118
118
|
description: A Ruby on Rails CMS that supports Rails 3. It's easy to extend and sticks to 'the Rails way' where possible.
|
|
@@ -145,6 +145,7 @@ files:
|
|
|
145
145
|
- config/settings.rb
|
|
146
146
|
- config.ru
|
|
147
147
|
- lib/refinery.rb
|
|
148
|
+
- lib/refinerycms/all.rb
|
|
148
149
|
- lib/refinerycms.rb
|
|
149
150
|
- license.md
|
|
150
151
|
- readme.md
|
|
@@ -175,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
175
176
|
requirements: []
|
|
176
177
|
|
|
177
178
|
rubyforge_project: refinerycms
|
|
178
|
-
rubygems_version: 1.
|
|
179
|
+
rubygems_version: 1.6.0
|
|
179
180
|
signing_key:
|
|
180
181
|
specification_version: 3
|
|
181
182
|
summary: A Ruby on Rails CMS that supports Rails 3
|