refinerycms 0.9.9.22 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -9,10 +9,9 @@ if RUBY_PLATFORM == 'java'
9
9
  gem 'activerecord-jdbcsqlite3-adapter', '>= 1.0.2', :platform => :jruby
10
10
  else
11
11
  gem 'sqlite3'
12
+ gem 'mysql2', '~> 0.2.7'
12
13
  end
13
14
 
14
- gem 'mysql2', '~> 0.2.7'
15
-
16
15
  # Use unicorn as the web server
17
16
  # gem 'unicorn'
18
17
  # gem 'mongrel'
@@ -31,12 +30,13 @@ gem 'mysql2', '~> 0.2.7'
31
30
  # REFINERY CMS ================================================================
32
31
  # Anything you put in here will be overridden when the app gets updated.
33
32
 
34
- # gem 'refinerycms', '~> 0.9.9.22'
33
+ # gem 'refinerycms', '~> 1.0.0'
35
34
 
36
35
  group :development, :test do
37
36
  # To use refinerycms-testing, uncomment it (if it's commented out) and run 'bundle install'
38
37
  # Then, run 'rails generate refinerycms_testing' which will copy its support files.
39
- gem 'refinerycms-testing', '~> 0.9.9.22'
38
+ # Finally, run 'rake' to run the tests.
39
+ gem 'refinerycms-testing', '~> 1.0.0'
40
40
  end
41
41
 
42
42
  # END REFINERY CMS ============================================================
@@ -49,13 +49,10 @@ end
49
49
 
50
50
  # Specify additional Refinery CMS Engines here (all optional):
51
51
  # gem 'refinerycms-inquiries', '~> 1.0'
52
- # gem 'refinerycms-news', '~> 1.0'
53
- # gem 'refinerycms-portfolio', '~> 0.9.9'
54
- # gem 'refinerycms-theming', '~> 1.0'
55
- # gem 'refinerycms-search', '~> 0.9.8'
56
- # gem 'refinerycms-blog', '~> 1.3'
52
+ # gem "refinerycms-news", '~> 1.2'
53
+ # gem 'refinerycms-blog', '~> 1.5'
57
54
  # gem 'refinerycms-page-images', '~> 1.0'
58
55
 
59
56
  # Add i18n support (optional, you can remove this if you really want to).
60
57
  gem 'refinerycms-i18n', '~> 1.0.0'
61
- # END USER DEFINED
58
+ # END USER DEFINED
@@ -1,51 +1,51 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- refinerycms (0.9.9.22)
4
+ refinerycms (1.0.0)
5
5
  bundler (~> 1.0)
6
- refinerycms-authentication (= 0.9.9.22)
7
- refinerycms-base (= 0.9.9.22)
8
- refinerycms-core (= 0.9.9.22)
9
- refinerycms-dashboard (= 0.9.9.22)
10
- refinerycms-images (= 0.9.9.22)
11
- refinerycms-pages (= 0.9.9.22)
12
- refinerycms-resources (= 0.9.9.22)
13
- refinerycms-settings (= 0.9.9.22)
14
- refinerycms-authentication (0.9.9.22)
6
+ refinerycms-authentication (= 1.0.0)
7
+ refinerycms-base (= 1.0.0)
8
+ refinerycms-core (= 1.0.0)
9
+ refinerycms-dashboard (= 1.0.0)
10
+ refinerycms-images (= 1.0.0)
11
+ refinerycms-pages (= 1.0.0)
12
+ refinerycms-resources (= 1.0.0)
13
+ refinerycms-settings (= 1.0.0)
14
+ refinerycms-authentication (1.0.0)
15
15
  devise (~> 1.3.0)
16
16
  friendly_id_globalize3 (~> 3.2.1)
17
- refinerycms-core (= 0.9.9.22)
18
- refinerycms-base (0.9.9.22)
19
- refinerycms-core (0.9.9.22)
17
+ refinerycms-core (= 1.0.0)
18
+ refinerycms-base (1.0.0)
19
+ refinerycms-core (1.0.0)
20
20
  acts_as_indexed (~> 0.7)
21
21
  awesome_nested_set (~> 2.0)
22
22
  friendly_id_globalize3 (~> 3.2.1)
23
- globalize3 (>= 0.1.0.beta2)
23
+ globalize3 (~> 0.1)
24
24
  rails (~> 3.0.7)
25
- refinerycms-base (= 0.9.9.22)
25
+ refinerycms-base (= 1.0.0)
26
26
  refinerycms-generators (~> 1.0)
27
- refinerycms-settings (= 0.9.9.22)
27
+ refinerycms-settings (= 1.0.0)
28
28
  truncate_html (~> 0.5)
29
29
  will_paginate (~> 3.0.pre)
30
- refinerycms-dashboard (0.9.9.22)
31
- refinerycms-core (= 0.9.9.22)
32
- refinerycms-images (0.9.9.22)
30
+ refinerycms-dashboard (1.0.0)
31
+ refinerycms-core (= 1.0.0)
32
+ refinerycms-images (1.0.0)
33
33
  dragonfly (~> 0.9.0)
34
34
  rack-cache (>= 0.5.3)
35
- refinerycms-core (= 0.9.9.22)
36
- refinerycms-pages (0.9.9.22)
35
+ refinerycms-core (= 1.0.0)
36
+ refinerycms-pages (1.0.0)
37
37
  awesome_nested_set (~> 2.0)
38
38
  friendly_id_globalize3 (~> 3.2.1)
39
- globalize3 (>= 0.1.0.beta2)
40
- refinerycms-core (= 0.9.9.22)
39
+ globalize3 (~> 0.1)
40
+ refinerycms-core (= 1.0.0)
41
41
  seo_meta (~> 1.1)
42
- refinerycms-resources (0.9.9.22)
42
+ refinerycms-resources (1.0.0)
43
43
  dragonfly (~> 0.9.0)
44
44
  rack-cache (>= 0.5.3)
45
- refinerycms-core (= 0.9.9.22)
46
- refinerycms-settings (0.9.9.22)
47
- refinerycms-base (= 0.9.9.22)
48
- refinerycms-testing (0.9.9.22)
45
+ refinerycms-core (= 1.0.0)
46
+ refinerycms-settings (1.0.0)
47
+ refinerycms-base (= 1.0.0)
48
+ refinerycms-testing (1.0.0)
49
49
  autotest
50
50
  autotest-notification
51
51
  autotest-rails
@@ -58,7 +58,8 @@ PATH
58
58
  json_pure
59
59
  launchy
60
60
  rack-test (~> 0.5.6)
61
- refinerycms-core (= 0.9.9.22)
61
+ rcov
62
+ refinerycms-core (= 1.0.0)
62
63
  rspec-rails (~> 2.6)
63
64
 
64
65
  GEM
@@ -104,6 +105,7 @@ GEM
104
105
  activerecord (>= 3.0.0)
105
106
  babosa (0.3.4)
106
107
  bcrypt-ruby (2.1.4)
108
+ bcrypt-ruby (2.1.4-java)
107
109
  builder (2.1.2)
108
110
  capybara (0.4.1.2)
109
111
  celerity (>= 0.7.9)
@@ -118,10 +120,10 @@ GEM
118
120
  childprocess (0.1.9)
119
121
  ffi (~> 1.0.6)
120
122
  configuration (1.2.0)
121
- cucumber (0.10.2)
123
+ cucumber (0.10.3)
122
124
  builder (>= 2.1.2)
123
125
  diff-lcs (>= 1.1.2)
124
- gherkin (>= 2.3.5)
126
+ gherkin (>= 2.3.8)
125
127
  json (>= 1.4.6)
126
128
  term-ansicolor (>= 1.0.5)
127
129
  cucumber-rails (0.4.1)
@@ -140,16 +142,20 @@ GEM
140
142
  erubis (2.6.6)
141
143
  abstract (>= 1.0.0)
142
144
  factory_girl (1.3.3)
143
- ffi (1.0.8)
145
+ ffi (1.0.9)
146
+ ffi (1.0.9-java)
144
147
  friendly_id_globalize3 (3.2.1.3)
145
148
  babosa (~> 0.3.0)
146
- gherkin (2.3.8)
149
+ gherkin (2.3.9)
147
150
  json (>= 1.4.6)
148
- globalize3 (0.1.0.beta2)
151
+ gherkin (2.3.9-java)
152
+ json (>= 1.4.6)
153
+ globalize3 (0.1.0)
149
154
  activemodel (>= 3.0.0)
150
155
  activerecord (>= 3.0.0)
151
156
  i18n (0.5.0)
152
157
  json (1.5.1)
158
+ json (1.5.1-java)
153
159
  json_pure (1.5.1)
154
160
  launchy (0.4.0)
155
161
  configuration (>= 0.0.5)
@@ -162,9 +168,11 @@ GEM
162
168
  mime-types (1.16)
163
169
  mysql2 (0.2.7)
164
170
  nokogiri (1.4.4)
171
+ nokogiri (1.4.4-java)
172
+ weakling (>= 0.0.3)
165
173
  orm_adapter (0.0.5)
166
174
  polyglot (0.3.1)
167
- rack (1.2.2)
175
+ rack (1.2.3)
168
176
  rack-cache (1.0.2)
169
177
  rack (>= 0.4)
170
178
  rack-mount (0.6.14)
@@ -184,7 +192,9 @@ GEM
184
192
  activesupport (= 3.0.7)
185
193
  rake (>= 0.8.7)
186
194
  thor (~> 0.14.4)
187
- rake (0.8.7)
195
+ rake (0.9.0)
196
+ rcov (0.9.9)
197
+ rcov (0.9.9-java)
188
198
  refinerycms-generators (1.0.1)
189
199
  refinerycms-i18n (1.0.0)
190
200
  refinerycms-core (>= 0.9.9.12)
@@ -195,11 +205,11 @@ GEM
195
205
  rspec-core (~> 2.6.0)
196
206
  rspec-expectations (~> 2.6.0)
197
207
  rspec-mocks (~> 2.6.0)
198
- rspec-core (2.6.1)
208
+ rspec-core (2.6.3)
199
209
  rspec-expectations (2.6.0)
200
210
  diff-lcs (~> 1.1.2)
201
211
  rspec-mocks (2.6.0)
202
- rspec-rails (2.6.0)
212
+ rspec-rails (2.6.1)
203
213
  actionpack (~> 3.0)
204
214
  activesupport (~> 3.0)
205
215
  railties (~> 3.0)
@@ -221,16 +231,18 @@ GEM
221
231
  tzinfo (0.3.27)
222
232
  warden (1.0.4)
223
233
  rack (>= 1.0)
234
+ weakling (0.0.4-java)
224
235
  will_paginate (3.0.pre2)
225
236
  xpath (0.1.4)
226
237
  nokogiri (~> 1.3)
227
238
 
228
239
  PLATFORMS
240
+ java
229
241
  ruby
230
242
 
231
243
  DEPENDENCIES
232
244
  mysql2 (~> 0.2.7)
233
245
  refinerycms!
234
246
  refinerycms-i18n (~> 1.0.0)
235
- refinerycms-testing (~> 0.9.9.22)
247
+ refinerycms-testing (~> 1.0.0)
236
248
  sqlite3
@@ -268,7 +268,7 @@ module Refinery
268
268
  if @options[:database][:adapter] == 'mysql'
269
269
  app_gemfile_contents = app_gemfile.read
270
270
  app_gemfile.open('w') do |f|
271
- f.write app_gemfile_contents.gsub "gem 'mysql2'", "gem 'mysql2', '~> 0.2.7'"
271
+ f.write app_gemfile_contents.gsub %r{gem 'mysql2'.*}, "gem 'mysql2', '~> 0.2.7'"
272
272
  end
273
273
  end
274
274
 
@@ -281,7 +281,7 @@ module Refinery
281
281
 
282
282
 
283
283
  # Specify the correct version of the Refinery CMS gem (may be git source).
284
- src = Refinery.version !~ /\.pre$/ ? "'= #{Refinery.version}'" : ":git => 'git://github.com/resolve/refinerycms'"
284
+ src = Refinery.version !~ /\.pre$/ ? "'~> #{Refinery.version}'" : ":git => 'git://github.com/resolve/refinerycms'"
285
285
  find_and_replace('Gemfile', %r{gem 'refinerycms',.*}, "gem 'refinerycms', #{src}")
286
286
 
287
287
  # Add in fog gem for Heroku
@@ -1,3 +1,13 @@
1
+ ## 1.0.0 [28 May 2011]
2
+
3
+ * New `::Refinery::Menu` API implemented which speeds up menu generation by many times. [Philip Arndt](https://github.com/parndt)
4
+ * Removed caching from menu because it's so much faster now. Probably in future it will be added to `::Refinery::Menu` itself in a transparent manner. [Philip Arndt](https://github.com/parndt)
5
+ * Deprecated `Page#[]` in favour of `Page#content_for` e.g. instead of `@page[:body]` use `@page.content_for(:body)`. [Philip Arndt](https://github.com/parndt)
6
+ * Noisily deprecated many other features that still function in 1.0.0 but won't be present in 1.1.0. [Philip Arndt](https://github.com/parndt)
7
+ * A hidden page can no longer mark the ancestor pages as selected in the menu. [Philip Arndt](https://github.com/parndt)
8
+ * Rcov added to `refinerycms-testing` gem. [Rodrigo Dominguez](https://github.com/rorra)
9
+ * [See full list](https://github.com/resolve/refinerycms/compare/0.9.9.22...1.0.0)
10
+
1
11
  ## 0.9.9.22 [22 May 2011]
2
12
 
3
13
  * Fixed issue introduced with `rake 0.9.0`. [Philip Arndt](https://github.com/parndt)
@@ -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.22}
5
+ s.version = %q{1.0.0}
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-05-22}
7
+ s.date = %q{2011-05-28}
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'
19
19
 
20
20
  # Refinery CMS
21
- s.add_dependency 'refinerycms-authentication', '= 0.9.9.22'
22
- s.add_dependency 'refinerycms-base', '= 0.9.9.22'
23
- s.add_dependency 'refinerycms-core', '= 0.9.9.22'
24
- s.add_dependency 'refinerycms-dashboard', '= 0.9.9.22'
25
- s.add_dependency 'refinerycms-images', '= 0.9.9.22'
26
- s.add_dependency 'refinerycms-pages', '= 0.9.9.22'
27
- s.add_dependency 'refinerycms-resources', '= 0.9.9.22'
28
- s.add_dependency 'refinerycms-settings', '= 0.9.9.22'
21
+ s.add_dependency 'refinerycms-authentication', '= 1.0.0'
22
+ s.add_dependency 'refinerycms-base', '= 1.0.0'
23
+ s.add_dependency 'refinerycms-core', '= 1.0.0'
24
+ s.add_dependency 'refinerycms-dashboard', '= 1.0.0'
25
+ s.add_dependency 'refinerycms-images', '= 1.0.0'
26
+ s.add_dependency 'refinerycms-pages', '= 1.0.0'
27
+ s.add_dependency 'refinerycms-resources', '= 1.0.0'
28
+ s.add_dependency 'refinerycms-settings', '= 1.0.0'
29
29
 
30
30
  s.files = [
31
31
  '.gitignore',
@@ -69,11 +69,15 @@ Gem::Specification.new do |s|
69
69
  'public',
70
70
  'public/javascripts',
71
71
  'public/javascripts/translations.js',
72
+ 'public/stylesheets',
72
73
  'readme.md',
73
74
  'readme.md',
74
75
  'refinerycms.gemspec',
75
76
  'spec',
76
77
  'spec/rcov.opts',
77
- 'spec/spec_helper.rb'
78
+ 'spec/spec_helper.rb',
79
+ 'spec/support',
80
+ 'spec/support/refinery',
81
+ 'spec/support/refinery/controller_macros.rb'
78
82
  ]
79
83
  end
@@ -1,4 +1,7 @@
1
1
  require 'rbconfig'
2
+ require 'factory_girl'
3
+ require File.expand_path('../support/refinery/controller_macros', __FILE__)
4
+
2
5
  def setup_environment
3
6
  # This file is copied to ~/spec when you run 'rails generate rspec'
4
7
  # from the project root directory.
@@ -27,6 +30,9 @@ def setup_environment
27
30
  # instead of true.
28
31
  config.use_transactional_fixtures = true
29
32
  config.use_instantiated_fixtures = false
33
+
34
+ config.include ::Devise::TestHelpers, :type => :controller
35
+ config.extend ::Refinery::ControllerMacros, :type => :controller
30
36
  end
31
37
  end
32
38
 
@@ -64,13 +70,14 @@ else
64
70
  each_run
65
71
  end
66
72
 
67
- def capture_stdout(&block)
68
- original_stdout = $stdout
69
- $stdout = fake = StringIO.new
73
+ def capture_stdout(stdin_str = '')
70
74
  begin
75
+ require 'stringio'
76
+ $o_stdin, $o_stdout, $o_stderr = $stdin, $stdout, $stderr
77
+ $stdin, $stdout, $stderr = StringIO.new(stdin_str), StringIO.new, StringIO.new
71
78
  yield
79
+ {:stdout => $stdout.string, :stderr => $stderr.string}
72
80
  ensure
73
- $stdout = original_stdout
81
+ $stdin, $stdout, $stderr = $o_stdin, $o_stdout, $o_stderr
74
82
  end
75
- fake.string
76
83
  end
@@ -0,0 +1,27 @@
1
+ module Refinery
2
+ module ControllerMacros
3
+ def login_user
4
+ before (:each) do
5
+ @user = Factory(:user)
6
+ @request.env["devise.mapping"] = Devise.mappings[:admin]
7
+ sign_in @user
8
+ end
9
+ end
10
+
11
+ def login_refinery_user
12
+ before (:each) do
13
+ @refinery_user = Factory(:refinery_user)
14
+ @request.env["devise.mapping"] = Devise.mappings[:admin]
15
+ sign_in @refinery_user
16
+ end
17
+ end
18
+
19
+ def login_refinery_translator
20
+ before (:each) do
21
+ @refinery_translator = Factory(:refinery_translator)
22
+ @request.env["devise.mapping"] = Devise.mappings[:admin]
23
+ sign_in @refinery_translator
24
+ end
25
+ end
26
+ end
27
+ end
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.22
5
+ version: 1.0.0
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-05-22 00:00:00 +12:00
16
+ date: 2011-05-28 00:00:00 +12: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.22
38
+ version: 1.0.0
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.22
49
+ version: 1.0.0
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.22
60
+ version: 1.0.0
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.22
71
+ version: 1.0.0
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.22
82
+ version: 1.0.0
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.22
93
+ version: 1.0.0
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.22
104
+ version: 1.0.0
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.22
115
+ version: 1.0.0
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.
@@ -153,6 +153,7 @@ files:
153
153
  - refinerycms.gemspec
154
154
  - spec/rcov.opts
155
155
  - spec/spec_helper.rb
156
+ - spec/support/refinery/controller_macros.rb
156
157
  has_rdoc: true
157
158
  homepage: http://refinerycms.com
158
159
  licenses: