refinerycms 1.0.3 → 1.0.4
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/.rspec +1 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +72 -73
- data/bin/refinerycms +34 -19
- data/changelog.md +10 -0
- data/lib/load_path_analyzer.rb +26 -0
- data/refinerycms.gemspec +11 -10
- metadata +30 -29
data/.gitignore
CHANGED
data/.rspec
CHANGED
data/Gemfile
CHANGED
|
@@ -23,13 +23,13 @@ gemspec
|
|
|
23
23
|
# REFINERY CMS ================================================================
|
|
24
24
|
# Anything you put in here will be overridden when the app gets updated.
|
|
25
25
|
|
|
26
|
-
# gem 'refinerycms', '~> 1.0.
|
|
26
|
+
# gem 'refinerycms', '~> 1.0.4'
|
|
27
27
|
|
|
28
28
|
group :development, :test do
|
|
29
29
|
# To use refinerycms-testing, uncomment it (if it's commented out) and run 'bundle install'
|
|
30
30
|
# Then, run 'rails generate refinerycms_testing' which will copy its support files.
|
|
31
31
|
# Finally, run 'rake' to run the tests.
|
|
32
|
-
# gem 'refinerycms-testing', '~> 1.0.
|
|
32
|
+
# gem 'refinerycms-testing', '~> 1.0.4'
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# END REFINERY CMS ============================================================
|
data/Gemfile.lock
CHANGED
|
@@ -1,71 +1,70 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
refinerycms (1.0.
|
|
4
|
+
refinerycms (1.0.4)
|
|
5
5
|
bundler (~> 1.0)
|
|
6
|
-
refinerycms-authentication (= 1.0.
|
|
7
|
-
refinerycms-base (= 1.0.
|
|
8
|
-
refinerycms-core (= 1.0.
|
|
9
|
-
refinerycms-dashboard (= 1.0.
|
|
10
|
-
refinerycms-images (= 1.0.
|
|
11
|
-
refinerycms-pages (= 1.0.
|
|
12
|
-
refinerycms-resources (= 1.0.
|
|
13
|
-
refinerycms-settings (= 1.0.
|
|
14
|
-
refinerycms-authentication (1.0.
|
|
6
|
+
refinerycms-authentication (= 1.0.4)
|
|
7
|
+
refinerycms-base (= 1.0.4)
|
|
8
|
+
refinerycms-core (= 1.0.4)
|
|
9
|
+
refinerycms-dashboard (= 1.0.4)
|
|
10
|
+
refinerycms-images (= 1.0.4)
|
|
11
|
+
refinerycms-pages (= 1.0.4)
|
|
12
|
+
refinerycms-resources (= 1.0.4)
|
|
13
|
+
refinerycms-settings (= 1.0.4)
|
|
14
|
+
refinerycms-authentication (1.0.4)
|
|
15
15
|
devise (~> 1.3.0)
|
|
16
16
|
friendly_id_globalize3 (~> 3.2.1)
|
|
17
|
-
refinerycms-core (= 1.0.
|
|
18
|
-
refinerycms-base (1.0.
|
|
19
|
-
refinerycms-core (1.0.
|
|
17
|
+
refinerycms-core (= 1.0.4)
|
|
18
|
+
refinerycms-base (1.0.4)
|
|
19
|
+
refinerycms-core (1.0.4)
|
|
20
20
|
acts_as_indexed (~> 0.7)
|
|
21
21
|
awesome_nested_set (~> 2.0)
|
|
22
22
|
friendly_id_globalize3 (~> 3.2.1)
|
|
23
23
|
globalize3 (~> 0.1)
|
|
24
24
|
rails (~> 3.0.9)
|
|
25
|
-
refinerycms-base (= 1.0.
|
|
25
|
+
refinerycms-base (= 1.0.4)
|
|
26
26
|
refinerycms-generators (~> 1.0)
|
|
27
|
-
refinerycms-settings (= 1.0.
|
|
27
|
+
refinerycms-settings (= 1.0.4)
|
|
28
28
|
truncate_html (~> 0.5)
|
|
29
|
-
will_paginate (
|
|
30
|
-
refinerycms-dashboard (1.0.
|
|
31
|
-
refinerycms-core (= 1.0.
|
|
32
|
-
refinerycms-images (1.0.
|
|
29
|
+
will_paginate (= 3.0.pre2)
|
|
30
|
+
refinerycms-dashboard (1.0.4)
|
|
31
|
+
refinerycms-core (= 1.0.4)
|
|
32
|
+
refinerycms-images (1.0.4)
|
|
33
33
|
dragonfly (~> 0.9.0)
|
|
34
34
|
rack-cache (>= 0.5.3)
|
|
35
|
-
refinerycms-core (= 1.0.
|
|
36
|
-
refinerycms-pages (1.0.
|
|
35
|
+
refinerycms-core (= 1.0.4)
|
|
36
|
+
refinerycms-pages (1.0.4)
|
|
37
37
|
awesome_nested_set (~> 2.0)
|
|
38
38
|
friendly_id_globalize3 (~> 3.2.1)
|
|
39
39
|
globalize3 (~> 0.1)
|
|
40
|
-
refinerycms-core (= 1.0.
|
|
40
|
+
refinerycms-core (= 1.0.4)
|
|
41
41
|
seo_meta (~> 1.1)
|
|
42
|
-
refinerycms-resources (1.0.
|
|
42
|
+
refinerycms-resources (1.0.4)
|
|
43
43
|
dragonfly (~> 0.9.0)
|
|
44
44
|
rack-cache (>= 0.5.3)
|
|
45
|
-
refinerycms-core (= 1.0.
|
|
46
|
-
refinerycms-settings (1.0.
|
|
47
|
-
refinerycms-base (= 1.0.
|
|
48
|
-
refinerycms-testing (1.0.
|
|
45
|
+
refinerycms-core (= 1.0.4)
|
|
46
|
+
refinerycms-settings (1.0.4)
|
|
47
|
+
refinerycms-base (= 1.0.4)
|
|
48
|
+
refinerycms-testing (1.0.4)
|
|
49
49
|
autotest
|
|
50
50
|
autotest-notification
|
|
51
51
|
autotest-rails
|
|
52
|
-
capybara (
|
|
53
|
-
cucumber
|
|
54
|
-
cucumber-rails (>= 0.4)
|
|
52
|
+
capybara (~> 1.0.0)
|
|
53
|
+
cucumber-rails (~> 1.0.0)
|
|
55
54
|
database_cleaner
|
|
56
55
|
factory_girl
|
|
57
|
-
|
|
56
|
+
fuubar
|
|
58
57
|
json_pure
|
|
59
58
|
launchy
|
|
60
|
-
rack-test (
|
|
61
|
-
refinerycms-core (= 1.0.
|
|
59
|
+
rack-test (>= 0.5.6)
|
|
60
|
+
refinerycms-core (= 1.0.4)
|
|
61
|
+
rspec-instafail
|
|
62
62
|
rspec-rails (~> 2.6)
|
|
63
|
-
simplecov
|
|
64
63
|
|
|
65
64
|
GEM
|
|
66
65
|
remote: http://rubygems.org/
|
|
67
66
|
specs:
|
|
68
|
-
ZenTest (4.
|
|
67
|
+
ZenTest (4.6.0)
|
|
69
68
|
abstract (1.0.0)
|
|
70
69
|
actionmailer (3.0.9)
|
|
71
70
|
actionpack (= 3.0.9)
|
|
@@ -93,19 +92,20 @@ GEM
|
|
|
93
92
|
activemodel (= 3.0.9)
|
|
94
93
|
activesupport (= 3.0.9)
|
|
95
94
|
activesupport (3.0.9)
|
|
96
|
-
acts_as_indexed (0.7.
|
|
95
|
+
acts_as_indexed (0.7.3)
|
|
96
|
+
addressable (2.2.6)
|
|
97
97
|
arel (2.0.10)
|
|
98
98
|
autotest (4.4.6)
|
|
99
99
|
ZenTest (>= 4.4.1)
|
|
100
|
-
autotest-notification (2.3.
|
|
101
|
-
autotest (~> 4.
|
|
100
|
+
autotest-notification (2.3.3)
|
|
101
|
+
autotest-standalone (~> 4.5)
|
|
102
102
|
autotest-rails (4.1.0)
|
|
103
103
|
ZenTest
|
|
104
|
+
autotest-standalone (4.5.5)
|
|
104
105
|
awesome_nested_set (2.0.1)
|
|
105
106
|
activerecord (>= 3.0.0)
|
|
106
107
|
babosa (0.3.5)
|
|
107
108
|
bcrypt-ruby (2.1.4)
|
|
108
|
-
bcrypt-ruby (2.1.4-java)
|
|
109
109
|
builder (2.1.2)
|
|
110
110
|
capybara (1.0.0)
|
|
111
111
|
mime-types (>= 1.16)
|
|
@@ -114,49 +114,46 @@ GEM
|
|
|
114
114
|
rack-test (>= 0.5.4)
|
|
115
115
|
selenium-webdriver (~> 0.2.0)
|
|
116
116
|
xpath (~> 0.1.4)
|
|
117
|
-
childprocess (0.
|
|
117
|
+
childprocess (0.2.0)
|
|
118
118
|
ffi (~> 1.0.6)
|
|
119
|
-
|
|
120
|
-
cucumber (1.0.0)
|
|
119
|
+
cucumber (1.0.2)
|
|
121
120
|
builder (>= 2.1.2)
|
|
122
121
|
diff-lcs (>= 1.1.2)
|
|
123
|
-
gherkin (~> 2.4.
|
|
122
|
+
gherkin (~> 2.4.5)
|
|
124
123
|
json (>= 1.4.6)
|
|
125
124
|
term-ansicolor (>= 1.0.5)
|
|
126
|
-
cucumber-rails (1.0.
|
|
125
|
+
cucumber-rails (1.0.2)
|
|
127
126
|
capybara (>= 1.0.0)
|
|
128
127
|
cucumber (~> 1.0.0)
|
|
129
|
-
nokogiri (>= 1.4.
|
|
130
|
-
rack-test (>= 0.5.7)
|
|
128
|
+
nokogiri (>= 1.4.6)
|
|
131
129
|
database_cleaner (0.6.7)
|
|
132
130
|
devise (1.3.4)
|
|
133
131
|
bcrypt-ruby (~> 2.1.2)
|
|
134
132
|
orm_adapter (~> 0.0.3)
|
|
135
133
|
warden (~> 1.0.3)
|
|
136
134
|
diff-lcs (1.1.2)
|
|
137
|
-
dragonfly (0.9.
|
|
135
|
+
dragonfly (0.9.5)
|
|
138
136
|
rack
|
|
139
137
|
erubis (2.6.6)
|
|
140
138
|
abstract (>= 1.0.0)
|
|
141
|
-
factory_girl (
|
|
139
|
+
factory_girl (2.0.3)
|
|
142
140
|
ffi (1.0.9)
|
|
143
|
-
|
|
144
|
-
friendly_id_globalize3 (3.2.1.3)
|
|
141
|
+
friendly_id_globalize3 (3.2.1.4)
|
|
145
142
|
babosa (~> 0.3.0)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
143
|
+
fuubar (0.0.6)
|
|
144
|
+
rspec (~> 2.0)
|
|
145
|
+
rspec-instafail (~> 0.1.8)
|
|
146
|
+
ruby-progressbar (~> 0.0.10)
|
|
147
|
+
gherkin (2.4.6)
|
|
149
148
|
json (>= 1.4.6)
|
|
150
149
|
globalize3 (0.1.0)
|
|
151
150
|
activemodel (>= 3.0.0)
|
|
152
151
|
activerecord (>= 3.0.0)
|
|
153
152
|
i18n (0.5.0)
|
|
154
153
|
json (1.5.3)
|
|
155
|
-
json (1.5.3-java)
|
|
156
154
|
json_pure (1.5.3)
|
|
157
|
-
launchy (0.
|
|
158
|
-
|
|
159
|
-
rake (>= 0.8.1)
|
|
155
|
+
launchy (2.0.5)
|
|
156
|
+
addressable (~> 2.2.6)
|
|
160
157
|
mail (2.2.19)
|
|
161
158
|
activesupport (>= 2.3.6)
|
|
162
159
|
i18n (>= 0.4.0)
|
|
@@ -164,11 +161,9 @@ GEM
|
|
|
164
161
|
treetop (~> 1.4.8)
|
|
165
162
|
mime-types (1.16)
|
|
166
163
|
mysql2 (0.2.11)
|
|
167
|
-
nokogiri (1.
|
|
168
|
-
nokogiri (1.4.6-java)
|
|
169
|
-
weakling (>= 0.0.3)
|
|
164
|
+
nokogiri (1.5.0)
|
|
170
165
|
orm_adapter (0.0.5)
|
|
171
|
-
polyglot (0.3.
|
|
166
|
+
polyglot (0.3.2)
|
|
172
167
|
rack (1.2.3)
|
|
173
168
|
rack-cache (1.0.2)
|
|
174
169
|
rack (>= 0.4)
|
|
@@ -191,12 +186,13 @@ GEM
|
|
|
191
186
|
rdoc (~> 3.4)
|
|
192
187
|
thor (~> 0.14.4)
|
|
193
188
|
rake (0.9.2)
|
|
194
|
-
|
|
189
|
+
rcov (0.9.10)
|
|
190
|
+
rdoc (3.9.1)
|
|
195
191
|
refinerycms-generators (1.0.2)
|
|
196
192
|
refinerycms-i18n (1.0.0)
|
|
197
193
|
refinerycms-core (>= 0.9.9.12)
|
|
198
194
|
routing-filter (>= 0.2.3)
|
|
199
|
-
routing-filter (0.2.
|
|
195
|
+
routing-filter (0.2.4)
|
|
200
196
|
actionpack
|
|
201
197
|
rspec (2.6.0)
|
|
202
198
|
rspec-core (~> 2.6.0)
|
|
@@ -205,15 +201,17 @@ GEM
|
|
|
205
201
|
rspec-core (2.6.4)
|
|
206
202
|
rspec-expectations (2.6.0)
|
|
207
203
|
diff-lcs (~> 1.1.2)
|
|
204
|
+
rspec-instafail (0.1.8)
|
|
208
205
|
rspec-mocks (2.6.0)
|
|
209
206
|
rspec-rails (2.6.1)
|
|
210
207
|
actionpack (~> 3.0)
|
|
211
208
|
activesupport (~> 3.0)
|
|
212
209
|
railties (~> 3.0)
|
|
213
210
|
rspec (~> 2.6.0)
|
|
211
|
+
ruby-progressbar (0.0.10)
|
|
214
212
|
rubyzip (0.9.4)
|
|
215
|
-
selenium-webdriver (0.2.
|
|
216
|
-
childprocess (>= 0.1.
|
|
213
|
+
selenium-webdriver (0.2.2)
|
|
214
|
+
childprocess (>= 0.1.9)
|
|
217
215
|
ffi (>= 1.0.7)
|
|
218
216
|
json_pure
|
|
219
217
|
rubyzip
|
|
@@ -222,27 +220,28 @@ GEM
|
|
|
222
220
|
simplecov (0.4.2)
|
|
223
221
|
simplecov-html (~> 0.4.4)
|
|
224
222
|
simplecov-html (0.4.5)
|
|
225
|
-
sqlite3 (1.3.
|
|
226
|
-
term-ansicolor (1.0.
|
|
223
|
+
sqlite3 (1.3.4)
|
|
224
|
+
term-ansicolor (1.0.6)
|
|
227
225
|
thor (0.14.6)
|
|
228
|
-
treetop (1.4.
|
|
226
|
+
treetop (1.4.10)
|
|
227
|
+
polyglot
|
|
229
228
|
polyglot (>= 0.3.1)
|
|
230
229
|
truncate_html (0.5.1)
|
|
231
|
-
tzinfo (0.3.
|
|
232
|
-
warden (1.0.
|
|
230
|
+
tzinfo (0.3.29)
|
|
231
|
+
warden (1.0.5)
|
|
233
232
|
rack (>= 1.0)
|
|
234
|
-
weakling (0.0.4-java)
|
|
235
233
|
will_paginate (3.0.pre2)
|
|
236
234
|
xpath (0.1.4)
|
|
237
235
|
nokogiri (~> 1.3)
|
|
238
236
|
|
|
239
237
|
PLATFORMS
|
|
240
|
-
java
|
|
241
238
|
ruby
|
|
242
239
|
|
|
243
240
|
DEPENDENCIES
|
|
244
241
|
mysql2 (~> 0.2.7)
|
|
242
|
+
rcov
|
|
245
243
|
refinerycms!
|
|
246
244
|
refinerycms-i18n (~> 1.0.0)
|
|
247
|
-
refinerycms-testing (~> 1.0.
|
|
245
|
+
refinerycms-testing (~> 1.0.4)
|
|
246
|
+
simplecov
|
|
248
247
|
sqlite3
|
data/bin/refinerycms
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
begin
|
|
4
4
|
require 'rubygems'
|
|
5
5
|
require 'bundler'
|
|
6
|
-
ENV["BUNDLE_GEMFILE"] = File.expand_path('../../Gemfile', __FILE__)
|
|
7
6
|
rescue LoadError
|
|
8
7
|
puts "\n=== ACTION REQUIRED ===\n\n"
|
|
9
8
|
puts "Could not load the bundler gem. This is a required dependency of Refinery CMS."
|
|
@@ -13,6 +12,7 @@ end
|
|
|
13
12
|
|
|
14
13
|
# Let the application have a constant it can detect installation with.
|
|
15
14
|
REFINERYCMS_INSTALLER = true
|
|
15
|
+
RAILS_MINOR_VERSION = '3.0'
|
|
16
16
|
|
|
17
17
|
# Load refinerycms
|
|
18
18
|
require File.expand_path(File.dirname(__FILE__) << "/../lib/refinery")
|
|
@@ -32,6 +32,7 @@ module Refinery
|
|
|
32
32
|
:confirm => false,
|
|
33
33
|
:database => {
|
|
34
34
|
:adapter => 'sqlite3',
|
|
35
|
+
:host => 'localhost',
|
|
35
36
|
:ident => false,
|
|
36
37
|
:password => nil,
|
|
37
38
|
:username => 'root',
|
|
@@ -41,7 +42,10 @@ module Refinery
|
|
|
41
42
|
:force => false,
|
|
42
43
|
:gems => [],
|
|
43
44
|
:heroku => false,
|
|
44
|
-
:testing => false
|
|
45
|
+
:testing => false,
|
|
46
|
+
:rails => {
|
|
47
|
+
:version => nil
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
@optparse = OptionParser.new do |opts|
|
|
@@ -80,6 +84,10 @@ module Refinery
|
|
|
80
84
|
@options[:database][:password] = password
|
|
81
85
|
end
|
|
82
86
|
|
|
87
|
+
opts.on('-h', '--database-host HOST', String, "Set the database hostname", " (default localhost)") do |host|
|
|
88
|
+
@options[:database][:host] = host
|
|
89
|
+
end
|
|
90
|
+
|
|
83
91
|
opts.on('--skip-db', "Skip any database creation or migration tasks") do
|
|
84
92
|
@options[:database][:skip] = true
|
|
85
93
|
end
|
|
@@ -104,6 +112,10 @@ module Refinery
|
|
|
104
112
|
@options[:confirm] = true
|
|
105
113
|
end
|
|
106
114
|
|
|
115
|
+
opts.on('-r', "--rails-version VERSION", String, "Override the version of rails used to generate your application.") do |version|
|
|
116
|
+
@options[:rails][:version] = version
|
|
117
|
+
end
|
|
118
|
+
|
|
107
119
|
opts.on('-t', '--testing', "Automatically set up the project with refinerycms-testing support.") do
|
|
108
120
|
@options[:testing] = true
|
|
109
121
|
end
|
|
@@ -159,6 +171,15 @@ module Refinery
|
|
|
159
171
|
exit(1)
|
|
160
172
|
end
|
|
161
173
|
|
|
174
|
+
rails_version_in_path = run_command('rails --version', {:cd => false, :bundler => false, :puts => false}).to_s.gsub(/(Rails |\n)/, '')
|
|
175
|
+
@rails_version_to_use = @options[:rails][:version] || rails_version_in_path
|
|
176
|
+
if @rails_version_to_use !~ %r{\b#{RAILS_MINOR_VERSION}}
|
|
177
|
+
puts "\nRails #{@rails_version_to_use} is not supported by Refinery #{::Refinery.version}, " \
|
|
178
|
+
"please use Rails #{RAILS_MINOR_VERSION}.x instead."
|
|
179
|
+
puts "\n"
|
|
180
|
+
exit(1)
|
|
181
|
+
end
|
|
182
|
+
|
|
162
183
|
# Get the name and path of the new application
|
|
163
184
|
@app_path = Pathname.new(File.expand_path(@input.first))
|
|
164
185
|
@app_name = @app_path.to_s.split(File::SEPARATOR).last
|
|
@@ -207,22 +228,20 @@ module Refinery
|
|
|
207
228
|
end
|
|
208
229
|
|
|
209
230
|
def generate!
|
|
210
|
-
# First, ensure dependencies are satisfied
|
|
211
|
-
run_command('bundle install', {:cd => false, :bundler => false})
|
|
212
|
-
|
|
213
231
|
# Generate a rails application
|
|
214
|
-
rails_command = "rails new \"#{@app_path}\""
|
|
232
|
+
rails_command = "rails _#{@rails_version_to_use}_ new \"#{@app_path}\""
|
|
215
233
|
rails_command << " --database #{@options[:database][:adapter]}"
|
|
216
234
|
rails_command << " --force" if @options[:force]
|
|
217
235
|
rails_command << " --skip-test-unit --skip-prototype"
|
|
218
236
|
rails_command << " --skip-bundle" # Rails automatically installs the bundle, but so do we!
|
|
219
237
|
rails_command << " -m http://jruby.org" if defined? JRUBY_VERSION
|
|
220
238
|
|
|
221
|
-
rails_output = run_command(rails_command, {:cd => false, :bundler =>
|
|
239
|
+
rails_output = run_command(rails_command, {:cd => false, :bundler => false})
|
|
222
240
|
|
|
223
241
|
# Detect non-success or a blank rails output or starting with "Can't initialize" or "Error"
|
|
224
242
|
if !$?.success? or rails_output.to_s.length == 0 or rails_output =~ /^(Can't\ initialize|Error)/
|
|
225
|
-
puts "
|
|
243
|
+
puts "\nGenerating Rails application failed. Exiting..."
|
|
244
|
+
puts "\n"
|
|
226
245
|
exit(1)
|
|
227
246
|
else
|
|
228
247
|
if defined? JRUBY_VERSION
|
|
@@ -232,7 +251,13 @@ module Refinery
|
|
|
232
251
|
# Remove rails from the Gemfile so that Refinery can manage it
|
|
233
252
|
find_and_replace('Gemfile', %r{^gem 'rails'}, "# gem 'rails'")
|
|
234
253
|
|
|
235
|
-
# Override
|
|
254
|
+
# Override database host
|
|
255
|
+
if @options[:database][:host] != 'localhost' && (adapter = @options[:database][:adapter]) != 'sqlite3'
|
|
256
|
+
adapter = 'mysql2' if adapter == 'mysql'
|
|
257
|
+
find_and_replace('config/database.yml', "\n adapter: #{adapter}", "\n adapter: #{adapter}\n host: #{@options[:database][:host]}")
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Override database username and password
|
|
236
261
|
if @options[:database][:ident]
|
|
237
262
|
find_and_replace('config/database.yml', %r{username:}, '#username:')
|
|
238
263
|
find_and_replace('config/database.yml', %r{password:}, '#password:')
|
|
@@ -244,9 +269,6 @@ module Refinery
|
|
|
244
269
|
puts "\n---------"
|
|
245
270
|
puts "Refinery successfully installed in '#{@app_path}'!\n\n"
|
|
246
271
|
end
|
|
247
|
-
ensure
|
|
248
|
-
# Now switch to the app's Gemfile.
|
|
249
|
-
ENV["BUNDLE_GEMFILE"] = @app_path.join('Gemfile').to_s
|
|
250
272
|
end
|
|
251
273
|
|
|
252
274
|
def bundle!
|
|
@@ -262,13 +284,6 @@ module Refinery
|
|
|
262
284
|
refinery_user_defined_gems = refinery_gemfile_contents.match(/# USER DEFINED(.*)# END USER DEFINED/m)
|
|
263
285
|
refinery_user_defined_gems = refinery_user_defined_gems[1] unless refinery_user_defined_gems.nil?
|
|
264
286
|
|
|
265
|
-
if @options[:database][:adapter] == 'mysql'
|
|
266
|
-
app_gemfile_contents = app_gemfile.read
|
|
267
|
-
app_gemfile.open('w') do |f|
|
|
268
|
-
f.write app_gemfile_contents.gsub %r{gem 'mysql2'.*}, "gem 'mysql2', '~> 0.2.7'"
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
|
|
272
287
|
app_gemfile.open('a') do |f|
|
|
273
288
|
f.write "\n#{refinery_gems}\n"
|
|
274
289
|
@options[:gems] = ([refinery_user_defined_gems] | [@options[:gems]]).flatten.compact
|
data/changelog.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
## 1.0.4 [11 August 2011]
|
|
2
|
+
|
|
3
|
+
* Added support for figuring out dimensions in resized images to `image_fu`. [Philip Arndt](https://github.com/parndt) and [Joe Sak](https://github.com/joemsak)
|
|
4
|
+
* Fixed issues installing Refinery due to lack of permissions to the gem directories. [Philip Arndt](https://github.com/parndt)
|
|
5
|
+
* Added ability to specify a different database host in the `bin/refinerycms` installer. [Philip Arndt](https://github.com/parndt)
|
|
6
|
+
* Lock `will_paginate` to `3.0.pre2` in core gemspec. [Kris Forbes](https://github.com/krisf) and [Uģis Ozols](https://github.com/ugisozols)
|
|
7
|
+
* Patch required_label helper so it would pick up I18n model attribute translations. [Uģis Ozols](https://github.com/ugisozols)
|
|
8
|
+
* [See full list](https://github.com/resolve/refinerycms/compare/1.0.3...1.0.4)
|
|
9
|
+
|
|
1
10
|
## 1.0.3 [23 June 2011]
|
|
2
11
|
|
|
3
12
|
* Fixes corruption in the 1.0.2 gem. [Philip Arndt](https://github.com/parndt)
|
|
13
|
+
* [See full list](https://github.com/resolve/refinerycms/compare/1.0.2...1.0.3)
|
|
4
14
|
|
|
5
15
|
## 1.0.2 [23 June 2011]
|
|
6
16
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
class LoadPathAnalyzer
|
|
2
|
+
|
|
3
|
+
def initialize(load_path, loaded_features)
|
|
4
|
+
@load_path = load_path
|
|
5
|
+
@loaded_features = loaded_features
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def frequencies
|
|
9
|
+
load_paths.inject({}) {|a, v|
|
|
10
|
+
a[v] ||= 0
|
|
11
|
+
a[v] += 1
|
|
12
|
+
a
|
|
13
|
+
}
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
private
|
|
17
|
+
|
|
18
|
+
def load_paths
|
|
19
|
+
@loaded_features.map {|feature|
|
|
20
|
+
@load_path.detect {|path|
|
|
21
|
+
feature[0, path.length] == path
|
|
22
|
+
}
|
|
23
|
+
}.compact
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end
|
data/refinerycms.gemspec
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = %q{refinerycms}
|
|
6
|
-
s.version = %q{1.0.
|
|
6
|
+
s.version = %q{1.0.4}
|
|
7
7
|
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.}
|
|
8
|
-
s.date = %q{2011-
|
|
8
|
+
s.date = %q{2011-08-11}
|
|
9
9
|
s.summary = %q{A Ruby on Rails CMS that supports Rails 3}
|
|
10
10
|
s.email = %q{info@refinerycms.com}
|
|
11
11
|
s.homepage = %q{http://refinerycms.com}
|
|
@@ -19,14 +19,14 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.add_dependency 'bundler', '~> 1.0'
|
|
20
20
|
|
|
21
21
|
# Refinery CMS
|
|
22
|
-
s.add_dependency 'refinerycms-authentication', '= 1.0.
|
|
23
|
-
s.add_dependency 'refinerycms-base', '= 1.0.
|
|
24
|
-
s.add_dependency 'refinerycms-core', '= 1.0.
|
|
25
|
-
s.add_dependency 'refinerycms-dashboard', '= 1.0.
|
|
26
|
-
s.add_dependency 'refinerycms-images', '= 1.0.
|
|
27
|
-
s.add_dependency 'refinerycms-pages', '= 1.0.
|
|
28
|
-
s.add_dependency 'refinerycms-resources', '= 1.0.
|
|
29
|
-
s.add_dependency 'refinerycms-settings', '= 1.0.
|
|
22
|
+
s.add_dependency 'refinerycms-authentication', '= 1.0.4'
|
|
23
|
+
s.add_dependency 'refinerycms-base', '= 1.0.4'
|
|
24
|
+
s.add_dependency 'refinerycms-core', '= 1.0.4'
|
|
25
|
+
s.add_dependency 'refinerycms-dashboard', '= 1.0.4'
|
|
26
|
+
s.add_dependency 'refinerycms-images', '= 1.0.4'
|
|
27
|
+
s.add_dependency 'refinerycms-pages', '= 1.0.4'
|
|
28
|
+
s.add_dependency 'refinerycms-resources', '= 1.0.4'
|
|
29
|
+
s.add_dependency 'refinerycms-settings', '= 1.0.4'
|
|
30
30
|
|
|
31
31
|
s.files = [
|
|
32
32
|
'.gitignore',
|
|
@@ -61,6 +61,7 @@ Gem::Specification.new do |s|
|
|
|
61
61
|
'features/support',
|
|
62
62
|
'features/support/paths.rb',
|
|
63
63
|
'lib',
|
|
64
|
+
'lib/load_path_analyzer.rb',
|
|
64
65
|
'lib/refinery.rb',
|
|
65
66
|
'lib/refinerycms',
|
|
66
67
|
'lib/refinerycms/all.rb',
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: refinerycms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 4
|
|
10
|
+
version: 1.0.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Resolve Digital
|
|
@@ -19,7 +19,7 @@ autorequire:
|
|
|
19
19
|
bindir: bin
|
|
20
20
|
cert_chain: []
|
|
21
21
|
|
|
22
|
-
date: 2011-
|
|
22
|
+
date: 2011-08-11 00:00:00 Z
|
|
23
23
|
dependencies:
|
|
24
24
|
- !ruby/object:Gem::Dependency
|
|
25
25
|
name: bundler
|
|
@@ -44,12 +44,12 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
hash:
|
|
47
|
+
hash: 31
|
|
48
48
|
segments:
|
|
49
49
|
- 1
|
|
50
50
|
- 0
|
|
51
|
-
-
|
|
52
|
-
version: 1.0.
|
|
51
|
+
- 4
|
|
52
|
+
version: 1.0.4
|
|
53
53
|
type: :runtime
|
|
54
54
|
version_requirements: *id002
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
@@ -60,12 +60,12 @@ dependencies:
|
|
|
60
60
|
requirements:
|
|
61
61
|
- - "="
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
hash:
|
|
63
|
+
hash: 31
|
|
64
64
|
segments:
|
|
65
65
|
- 1
|
|
66
66
|
- 0
|
|
67
|
-
-
|
|
68
|
-
version: 1.0.
|
|
67
|
+
- 4
|
|
68
|
+
version: 1.0.4
|
|
69
69
|
type: :runtime
|
|
70
70
|
version_requirements: *id003
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
|
@@ -76,12 +76,12 @@ dependencies:
|
|
|
76
76
|
requirements:
|
|
77
77
|
- - "="
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
hash:
|
|
79
|
+
hash: 31
|
|
80
80
|
segments:
|
|
81
81
|
- 1
|
|
82
82
|
- 0
|
|
83
|
-
-
|
|
84
|
-
version: 1.0.
|
|
83
|
+
- 4
|
|
84
|
+
version: 1.0.4
|
|
85
85
|
type: :runtime
|
|
86
86
|
version_requirements: *id004
|
|
87
87
|
- !ruby/object:Gem::Dependency
|
|
@@ -92,12 +92,12 @@ dependencies:
|
|
|
92
92
|
requirements:
|
|
93
93
|
- - "="
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
hash:
|
|
95
|
+
hash: 31
|
|
96
96
|
segments:
|
|
97
97
|
- 1
|
|
98
98
|
- 0
|
|
99
|
-
-
|
|
100
|
-
version: 1.0.
|
|
99
|
+
- 4
|
|
100
|
+
version: 1.0.4
|
|
101
101
|
type: :runtime
|
|
102
102
|
version_requirements: *id005
|
|
103
103
|
- !ruby/object:Gem::Dependency
|
|
@@ -108,12 +108,12 @@ dependencies:
|
|
|
108
108
|
requirements:
|
|
109
109
|
- - "="
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
|
-
hash:
|
|
111
|
+
hash: 31
|
|
112
112
|
segments:
|
|
113
113
|
- 1
|
|
114
114
|
- 0
|
|
115
|
-
-
|
|
116
|
-
version: 1.0.
|
|
115
|
+
- 4
|
|
116
|
+
version: 1.0.4
|
|
117
117
|
type: :runtime
|
|
118
118
|
version_requirements: *id006
|
|
119
119
|
- !ruby/object:Gem::Dependency
|
|
@@ -124,12 +124,12 @@ dependencies:
|
|
|
124
124
|
requirements:
|
|
125
125
|
- - "="
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
|
-
hash:
|
|
127
|
+
hash: 31
|
|
128
128
|
segments:
|
|
129
129
|
- 1
|
|
130
130
|
- 0
|
|
131
|
-
-
|
|
132
|
-
version: 1.0.
|
|
131
|
+
- 4
|
|
132
|
+
version: 1.0.4
|
|
133
133
|
type: :runtime
|
|
134
134
|
version_requirements: *id007
|
|
135
135
|
- !ruby/object:Gem::Dependency
|
|
@@ -140,12 +140,12 @@ dependencies:
|
|
|
140
140
|
requirements:
|
|
141
141
|
- - "="
|
|
142
142
|
- !ruby/object:Gem::Version
|
|
143
|
-
hash:
|
|
143
|
+
hash: 31
|
|
144
144
|
segments:
|
|
145
145
|
- 1
|
|
146
146
|
- 0
|
|
147
|
-
-
|
|
148
|
-
version: 1.0.
|
|
147
|
+
- 4
|
|
148
|
+
version: 1.0.4
|
|
149
149
|
type: :runtime
|
|
150
150
|
version_requirements: *id008
|
|
151
151
|
- !ruby/object:Gem::Dependency
|
|
@@ -156,12 +156,12 @@ dependencies:
|
|
|
156
156
|
requirements:
|
|
157
157
|
- - "="
|
|
158
158
|
- !ruby/object:Gem::Version
|
|
159
|
-
hash:
|
|
159
|
+
hash: 31
|
|
160
160
|
segments:
|
|
161
161
|
- 1
|
|
162
162
|
- 0
|
|
163
|
-
-
|
|
164
|
-
version: 1.0.
|
|
163
|
+
- 4
|
|
164
|
+
version: 1.0.4
|
|
165
165
|
type: :runtime
|
|
166
166
|
version_requirements: *id009
|
|
167
167
|
description: A Ruby on Rails CMS that supports Rails 3. It's easy to extend and sticks to 'the Rails way' where possible.
|
|
@@ -193,6 +193,7 @@ files:
|
|
|
193
193
|
- config/environments/test.rb
|
|
194
194
|
- config.ru
|
|
195
195
|
- features/support/paths.rb
|
|
196
|
+
- lib/load_path_analyzer.rb
|
|
196
197
|
- lib/refinery.rb
|
|
197
198
|
- lib/refinerycms/all.rb
|
|
198
199
|
- lib/refinerycms.rb
|
|
@@ -232,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
232
233
|
requirements: []
|
|
233
234
|
|
|
234
235
|
rubyforge_project: refinerycms
|
|
235
|
-
rubygems_version: 1.8.
|
|
236
|
+
rubygems_version: 1.8.6
|
|
236
237
|
signing_key:
|
|
237
238
|
specification_version: 3
|
|
238
239
|
summary: A Ruby on Rails CMS that supports Rails 3
|