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 CHANGED
@@ -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.11'
56
+ gem 'refinerycms-i18n', '~> 0.9.9.12'
57
57
  # END USER DEFINED
@@ -1,47 +1,47 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- refinerycms (0.9.9.5)
5
- bundler (~> 1.0.10)
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)
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.5)
17
- refinerycms-base (0.9.9.5)
18
- refinerycms-core (0.9.9.5)
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.5)
25
+ refinerycms-base (~> 0.9.9.7)
26
26
  refinerycms-generators (~> 0.9.9.3)
27
- refinerycms-settings (~> 0.9.9.5)
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.5)
31
- refinerycms-core (~> 0.9.9.5)
32
- refinerycms-images (0.9.9.5)
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.5)
36
- refinerycms-pages (0.9.9.5)
37
- refinerycms-core (~> 0.9.9.5)
38
- refinerycms-resources (0.9.9.5)
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.5)
42
- refinerycms-settings (0.9.9.5)
43
- refinerycms-base (~> 0.9.9.5)
44
- refinerycms-testing (0.9.9.5)
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.5)
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.4)
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.11)
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.11)
224
+ refinerycms-i18n (~> 0.9.9.12)
225
225
  refinerycms-testing (~> 0.9.9.5)
226
226
  sqlite3
@@ -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
- :password => nil
37
+ :skip => false
36
38
  },
37
- :force => false,
38
- :heroku => false,
39
39
  :duostack => false,
40
- :confirm => false,
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
- # 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
132
- note = "NOTE: if your database username is not '#{@options[:database][:username]}'"
133
- note << " or your password is not '#{@options[:database][:password]}' then the installer will stall here.\n\n"
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
- puts note
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
- puts "\n\nSetting up your development database..\n"
287
- run_command("rake -f \"#{@app_path.join('Rakefile')}\" db:migrate")
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
- # Output helpful messages
314
- puts "\n=== ACTION REQUIRED ==="
315
- puts "Now you can launch your webserver using:"
316
- puts "\ncd #{@app_path}"
317
- puts "rails server"
318
- puts "\nThis will launch the built-in webserver at port 3000."
319
- puts "You can now see your site running in your browser at http://localhost:3000"
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
- puts "\nIf you want files and images to work on heroku, you will need setup S3:"
323
- puts "heroku config:add S3_BUCKET=XXXXXXXXX S3_KEY=XXXXXXXXX S3_SECRET=XXXXXXXXXX"
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
- puts "\nThanks for installing Refinery, enjoy creating your new application!"
327
- puts "---------\n\n"
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!
@@ -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)
@@ -1,3 +1,3 @@
1
1
  require 'refinerycms-base'
2
2
 
3
- require File.expand_path('../refinerycms/all', __FILE__) unless defined?(REFINERYCMS_INSTALLER)
3
+ require File.expand_path('../refinerycms/all', __FILE__) unless defined?(REFINERYCMS_INSTALLER)
@@ -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.6}
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-08}
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.10'
18
+ s.add_dependency 'bundler', '~> 1.0'
19
19
 
20
20
  # Refinery CMS
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'
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.6
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-08 00:00:00 +13:00
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.10
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.5
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.5
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.5
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.5
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.5
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.5
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.5
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.5
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.0
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