refinerycms 0.9.9.6 → 0.9.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +31 -31
- data/bin/refinerycms +58 -37
- data/changelog.md +15 -0
- data/lib/refinerycms.rb +1 -1
- data/refinerycms.gemspec +11 -12
- metadata +12 -12
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,47 +1,47 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
refinerycms (0.9.9.
|
5
|
-
bundler (~> 1.0
|
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.
|
4
|
+
refinerycms (0.9.9.7)
|
5
|
+
bundler (~> 1.0)
|
6
|
+
refinerycms-authentication (~> 0.9.9.7)
|
7
|
+
refinerycms-base (~> 0.9.9.7)
|
8
|
+
refinerycms-core (~> 0.9.9.7)
|
9
|
+
refinerycms-dashboard (~> 0.9.9.7)
|
10
|
+
refinerycms-images (~> 0.9.9.7)
|
11
|
+
refinerycms-pages (~> 0.9.9.7)
|
12
|
+
refinerycms-resources (~> 0.9.9.7)
|
13
|
+
refinerycms-settings (~> 0.9.9.7)
|
14
|
+
refinerycms-authentication (0.9.9.7)
|
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.7)
|
17
|
+
refinerycms-base (0.9.9.7)
|
18
|
+
refinerycms-core (0.9.9.7)
|
19
19
|
acts_as_indexed (~> 0.7)
|
20
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
23
|
rails (~> 3.0.5)
|
24
24
|
rdoc (>= 2.5.11)
|
25
|
-
refinerycms-base (~> 0.9.9.
|
25
|
+
refinerycms-base (~> 0.9.9.7)
|
26
26
|
refinerycms-generators (~> 0.9.9.3)
|
27
|
-
refinerycms-settings (~> 0.9.9.
|
27
|
+
refinerycms-settings (~> 0.9.9.7)
|
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.7)
|
31
|
+
refinerycms-core (~> 0.9.9.7)
|
32
|
+
refinerycms-images (0.9.9.7)
|
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.7)
|
36
|
+
refinerycms-pages (0.9.9.7)
|
37
|
+
refinerycms-core (~> 0.9.9.7)
|
38
|
+
refinerycms-resources (0.9.9.7)
|
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.7)
|
42
|
+
refinerycms-settings (0.9.9.7)
|
43
|
+
refinerycms-base (~> 0.9.9.7)
|
44
|
+
refinerycms-testing (0.9.9.7)
|
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.7)
|
58
58
|
rspec-rails (~> 2.5)
|
59
59
|
|
60
60
|
GEM
|
@@ -121,7 +121,7 @@ GEM
|
|
121
121
|
cucumber-rails (0.3.2)
|
122
122
|
cucumber (>= 0.8.0)
|
123
123
|
culerity (0.2.15)
|
124
|
-
database_cleaner (0.6.
|
124
|
+
database_cleaner (0.6.5)
|
125
125
|
devise (1.1.7)
|
126
126
|
bcrypt-ruby (~> 2.1.2)
|
127
127
|
warden (~> 1.0.2)
|
@@ -179,7 +179,7 @@ GEM
|
|
179
179
|
rake (0.8.7)
|
180
180
|
rdoc (3.5.3)
|
181
181
|
refinerycms-generators (0.9.9.6)
|
182
|
-
refinerycms-i18n (0.9.9.
|
182
|
+
refinerycms-i18n (0.9.9.12)
|
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.
|
224
|
+
refinerycms-i18n (~> 0.9.9.12)
|
225
225
|
refinerycms-testing (~> 0.9.9.5)
|
226
226
|
sqlite3
|
data/bin/refinerycms
CHANGED
@@ -28,17 +28,18 @@ module Refinery
|
|
28
28
|
# Default options
|
29
29
|
@input = input
|
30
30
|
@options = {
|
31
|
+
:confirm => false,
|
31
32
|
:database => {
|
32
33
|
:adapter => 'sqlite3',
|
33
34
|
:ident => false,
|
35
|
+
:password => nil,
|
34
36
|
:username => 'root',
|
35
|
-
:
|
37
|
+
:skip => false
|
36
38
|
},
|
37
|
-
:force => false,
|
38
|
-
:heroku => false,
|
39
39
|
:duostack => false,
|
40
|
-
:
|
41
|
-
:gems => []
|
40
|
+
:force => false,
|
41
|
+
:gems => [],
|
42
|
+
:heroku => false
|
42
43
|
}
|
43
44
|
|
44
45
|
@optparse = OptionParser.new do |opts|
|
@@ -77,6 +78,10 @@ module Refinery
|
|
77
78
|
@options[:database][:password] = password
|
78
79
|
end
|
79
80
|
|
81
|
+
opts.on('--skip-db', "Skip any database creation or migration tasks") do
|
82
|
+
@options[:database][:skip] = true
|
83
|
+
end
|
84
|
+
|
80
85
|
opts.on("-g", "--gems gem1,gem2,gem3", Array, "Additional gems to install") do |gems|
|
81
86
|
@options[:gems] = gems.reject {|g| g.to_s =~ /^refinerycms/}.map {|g| "gem '#{g.to_s}'"}
|
82
87
|
end
|
@@ -122,27 +127,29 @@ module Refinery
|
|
122
127
|
# Bundle the application which activates Refinery CMS
|
123
128
|
bundle!
|
124
129
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
130
|
+
unless @options[:database][:skip]
|
131
|
+
# Ensure the database exists so that queries like .table_exists? don't fail.
|
132
|
+
puts "\nCreating a new database.."
|
133
|
+
# Warn about incorrect username or password.
|
134
|
+
unless @options[:database][:adapter] == 'sqlite3'
|
135
|
+
if @options[:database][:ident]
|
136
|
+
note = "NOTE: If ident authentication fails then the installer will stall or fail here.\n\n"
|
137
|
+
else
|
138
|
+
note = "NOTE: if your database username is not '#{@options[:database][:username]}'"
|
139
|
+
note << " or your password is not '#{@options[:database][:password]}' then the installer will stall here.\n\n"
|
140
|
+
end
|
141
|
+
puts note
|
134
142
|
end
|
135
|
-
|
143
|
+
run_command("rake -f \"#{@app_path.join('Rakefile')}\" db:create", {
|
144
|
+
:fail => "Unable to create the application's database"
|
145
|
+
})
|
146
|
+
|
147
|
+
# Run the newly activated Refinery CMS generator.
|
148
|
+
run_command("rails generate refinerycms", {
|
149
|
+
:cd => true,
|
150
|
+
:fail => "Could not run the refinerycms generator successfully."
|
151
|
+
})
|
136
152
|
end
|
137
|
-
run_command("rake -f \"#{@app_path.join('Rakefile')}\" db:create", {
|
138
|
-
:fail => "Unable to create the application's database"
|
139
|
-
})
|
140
|
-
|
141
|
-
# Run the newly activated Refinery CMS generator.
|
142
|
-
run_command("rails generate refinerycms", {
|
143
|
-
:cd => true,
|
144
|
-
:fail => "Could not run the refinerycms generator successfully."
|
145
|
-
})
|
146
153
|
|
147
154
|
# Output helpful messages to user
|
148
155
|
output!
|
@@ -283,8 +290,10 @@ module Refinery
|
|
283
290
|
end
|
284
291
|
|
285
292
|
def output!
|
286
|
-
|
287
|
-
|
293
|
+
unless @options[:database][:skip]
|
294
|
+
puts "\n\nSetting up your development database..\n"
|
295
|
+
run_command("rake -f \"#{@app_path.join('Rakefile')}\" db:migrate")
|
296
|
+
end
|
288
297
|
|
289
298
|
# Deploy to Heroku
|
290
299
|
hosting = nil
|
@@ -310,21 +319,33 @@ module Refinery
|
|
310
319
|
end
|
311
320
|
# End automation
|
312
321
|
|
313
|
-
#
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
322
|
+
# Construct helpful output messages
|
323
|
+
note = ["\n=== ACTION REQUIRED ==="]
|
324
|
+
if @options[:database][:skip]
|
325
|
+
note << "Because you elected to skip database creation and migration in the installer"
|
326
|
+
note << "you will need to run the following tasks manually to maintain correct operation:"
|
327
|
+
note << "\ncd #{@app_path}"
|
328
|
+
note << "rake db:create"
|
329
|
+
note << "rails generate refinerycms"
|
330
|
+
note << "rake db:migrate"
|
331
|
+
note << "\n---------\n"
|
332
|
+
end
|
333
|
+
note << "Now you can launch your webserver using:"
|
334
|
+
note << "\ncd #{@app_path}"
|
335
|
+
note << "rails server"
|
336
|
+
note << "\nThis will launch the built-in webserver at port 3000."
|
337
|
+
note << "You can now see your site running in your browser at http://localhost:3000"
|
320
338
|
|
321
339
|
if @options[:heroku]
|
322
|
-
|
323
|
-
|
340
|
+
note << "\nIf you want files and images to work on heroku, you will need setup S3:"
|
341
|
+
note << "heroku config:add S3_BUCKET=XXXXXXXXX S3_KEY=XXXXXXXXX S3_SECRET=XXXXXXXXXX"
|
324
342
|
end
|
325
343
|
|
326
|
-
|
327
|
-
|
344
|
+
note << "\nThanks for installing Refinery, enjoy creating your new application!"
|
345
|
+
note << "---------\n\n"
|
346
|
+
|
347
|
+
# finally, output.
|
348
|
+
puts note.join("\n")
|
328
349
|
end
|
329
350
|
|
330
351
|
private :validate!, :generate!, :bundle!, :output!
|
data/changelog.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## 0.9.9.7 [10 March 2011]
|
2
|
+
|
3
|
+
* Added `:per_page` option to `crudify` for overriding the number of items to display per page with will_paginate. [Josef Šimánek](https://github.com/simi)
|
4
|
+
* Deprecated `rake refinery:update` in favour of rails `generate refinerycms --update`. [Philip Arndt](https://github.com/parndt)
|
5
|
+
* Added `--skip-db` option to `bin/refinerycms` installer which doesn't automate any database creation/migration and skips the `rails generate refinerycms` generator. [Philip Arndt](https:/github.com/parndt)
|
6
|
+
* Exchanged (help) links for the information.png 'refinery icon'. This will happen automatically if you used `refinery_help_tag`. [Philip Arndt](https://github.com/parndt)
|
7
|
+
* Added xhr_paging as an option in crudify which handles the server-side usage of the HTML5 History API. [Philip Arndt](https://github.com/parndt)
|
8
|
+
* Looser Bundler dependency (now `~> 1.0`). [Terence Lee](https://github.com/hone)
|
9
|
+
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.9.6...0.9.9.7)
|
10
|
+
|
11
|
+
## 0.9.9.6 [7 March 2011]
|
12
|
+
|
13
|
+
* Fixed an issue that caused the installer to fail on some systems. [Philip Arndt](https://github.com/parndt)
|
14
|
+
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.9.5...0.9.9.6)
|
15
|
+
|
1
16
|
## 0.9.9.5 [7 March 2011]
|
2
17
|
|
3
18
|
* 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)
|
data/lib/refinerycms.rb
CHANGED
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.7}
|
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-03-
|
7
|
+
s.date = %q{2011-03-10}
|
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}
|
@@ -15,17 +15,17 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = %w(refinerycms)
|
16
16
|
|
17
17
|
# Bundler
|
18
|
-
s.add_dependency 'bundler', '~> 1.0
|
18
|
+
s.add_dependency 'bundler', '~> 1.0'
|
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.7'
|
22
|
+
s.add_dependency 'refinerycms-base', '~> 0.9.9.7'
|
23
|
+
s.add_dependency 'refinerycms-core', '~> 0.9.9.7'
|
24
|
+
s.add_dependency 'refinerycms-dashboard', '~> 0.9.9.7'
|
25
|
+
s.add_dependency 'refinerycms-images', '~> 0.9.9.7'
|
26
|
+
s.add_dependency 'refinerycms-pages', '~> 0.9.9.7'
|
27
|
+
s.add_dependency 'refinerycms-resources', '~> 0.9.9.7'
|
28
|
+
s.add_dependency 'refinerycms-settings', '~> 0.9.9.7'
|
29
29
|
|
30
30
|
s.files = [
|
31
31
|
'.gitignore',
|
@@ -64,7 +64,6 @@ Gem::Specification.new do |s|
|
|
64
64
|
'lib/refinerycms.rb',
|
65
65
|
'license.md',
|
66
66
|
'license.md',
|
67
|
-
'public',
|
68
67
|
'readme.md',
|
69
68
|
'readme.md',
|
70
69
|
'refinerycms.gemspec',
|
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.7
|
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-03-
|
16
|
+
date: 2011-03-10 00:00:00 +13:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.0
|
27
|
+
version: "1.0"
|
28
28
|
type: :runtime
|
29
29
|
version_requirements: *id001
|
30
30
|
- !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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements: []
|
177
177
|
|
178
178
|
rubyforge_project: refinerycms
|
179
|
-
rubygems_version: 1.6.
|
179
|
+
rubygems_version: 1.6.1
|
180
180
|
signing_key:
|
181
181
|
specification_version: 3
|
182
182
|
summary: A Ruby on Rails CMS that supports Rails 3
|