refinerycms-core 0.9.9.13 → 0.9.9.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/app/views/admin/_javascripts.html.erb +1 -1
  2. data/app/views/welcome.html.erb +1 -1
  3. data/lib/generators/templates/config/database.yml.mysql +2 -2
  4. data/lib/refinery/application.rb +5 -1
  5. data/lib/refinery/configuration.rb +12 -4
  6. data/public/images/wymeditor/skins/refinery/html5/article.png +0 -0
  7. data/public/images/wymeditor/skins/refinery/html5/aside.png +0 -0
  8. data/public/images/wymeditor/skins/refinery/html5/blockquote.png +0 -0
  9. data/public/images/wymeditor/skins/refinery/html5/command.png +0 -0
  10. data/public/images/wymeditor/skins/refinery/html5/details.png +0 -0
  11. data/public/images/wymeditor/skins/refinery/html5/figcaption.png +0 -0
  12. data/public/images/wymeditor/skins/refinery/html5/figure.png +0 -0
  13. data/public/images/wymeditor/skins/refinery/html5/footer.png +0 -0
  14. data/public/images/wymeditor/skins/refinery/html5/h1.png +0 -0
  15. data/public/images/wymeditor/skins/refinery/html5/h2.png +0 -0
  16. data/public/images/wymeditor/skins/refinery/html5/h3.png +0 -0
  17. data/public/images/wymeditor/skins/refinery/html5/h4.png +0 -0
  18. data/public/images/wymeditor/skins/refinery/html5/h5.png +0 -0
  19. data/public/images/wymeditor/skins/refinery/html5/h6.png +0 -0
  20. data/public/images/wymeditor/skins/refinery/html5/header.png +0 -0
  21. data/public/images/wymeditor/skins/refinery/html5/hgroup.png +0 -0
  22. data/public/images/wymeditor/skins/refinery/html5/mark.png +0 -0
  23. data/public/images/wymeditor/skins/refinery/html5/meter.png +0 -0
  24. data/public/images/wymeditor/skins/refinery/html5/nav.png +0 -0
  25. data/public/images/wymeditor/skins/refinery/html5/p.png +0 -0
  26. data/public/images/wymeditor/skins/refinery/html5/pre.png +0 -0
  27. data/public/images/wymeditor/skins/refinery/html5/progress.png +0 -0
  28. data/public/images/wymeditor/skins/refinery/html5/readme.md +1 -0
  29. data/public/images/wymeditor/skins/refinery/html5/rp.png +0 -0
  30. data/public/images/wymeditor/skins/refinery/html5/rt.png +0 -0
  31. data/public/images/wymeditor/skins/refinery/html5/ruby.png +0 -0
  32. data/public/images/wymeditor/skins/refinery/html5/section.png +0 -0
  33. data/public/images/wymeditor/skins/refinery/html5/summary.png +0 -0
  34. data/public/images/wymeditor/skins/refinery/html5/time.png +0 -0
  35. data/public/javascripts/refinery/admin.js +1 -1
  36. data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +13 -4
  37. data/public/stylesheets/wymeditor/skins/refinery/wymiframe.css +71 -11
  38. data/refinerycms-core.gemspec +34 -4
  39. metadata +33 -4
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  js_caching = Rails.root.writable? and RefinerySetting.find_or_set(:use_resource_caching, true)
3
- login = defined?(login) ? login : login?
3
+ login = login? unless defined?(login)
4
4
  -%>
5
5
  <%= yield :before_javascript_libraries -%>
6
6
  <%= javascript_include_tag 'refinery/i18n' -%>
@@ -3,7 +3,7 @@
3
3
  <%=t('.remember_admin_location')%>
4
4
  </p>
5
5
  <p>
6
- <strong>http://<%= request.host %>/refinery</strong>
6
+ <strong><%= [request.protocol, request.host_with_port, '/refinery'].join %></strong>
7
7
  </p>
8
8
  <p>
9
9
  <%= t('.lets_start') %>
@@ -1,5 +1,5 @@
1
1
  login: &login
2
- adapter: mysql
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: mysql
16
+ adapter: mysql2
17
17
  host: localhost
18
18
  database: your_production_database
19
19
  username: your_production_database_login
@@ -6,6 +6,10 @@ module Refinery
6
6
  class << self
7
7
 
8
8
  def refinery!
9
+ ::Refinery.config.before_inclusion_procs.each do |proc|
10
+ proc.call if proc.respond_to?(:call)
11
+ end
12
+
9
13
  ::ApplicationHelper.send :include, ::Refinery::ApplicationHelper
10
14
 
11
15
  [::ApplicationController, ::Admin::BaseController].each do |c|
@@ -15,7 +19,7 @@ module Refinery
15
19
 
16
20
  ::Admin::BaseController.send :include, ::Refinery::Admin::BaseController
17
21
 
18
- ::Refinery.config.on_attach_procs.each do |proc|
22
+ ::Refinery.config.after_inclusion_procs.each do |proc|
19
23
  proc.call if proc.respond_to?(:call)
20
24
  end
21
25
  end
@@ -1,12 +1,20 @@
1
1
  module Refinery
2
2
  class Configuration
3
3
 
4
- def on_attach_procs
5
- @@on_attach_procs ||= []
4
+ def after_inclusion_procs
5
+ @@after_inclusion_procs ||= []
6
6
  end
7
7
 
8
- def on_attach(&blk)
9
- on_attach_procs << blk if blk
8
+ def after_inclusion(&blk)
9
+ after_inclusion_procs << blk if blk
10
+ end
11
+
12
+ def before_inclusion_procs
13
+ @@before_inclusion_procs ||= []
14
+ end
15
+
16
+ def before_inclusion(&blk)
17
+ before_inclusion_procs << blk if blk
10
18
  end
11
19
 
12
20
  end
@@ -0,0 +1 @@
1
+ Labels are made using the [Visitor font](http://www.dafont.com/visitor.font), 9.5px, no anti-aliasing.
@@ -1132,5 +1132,5 @@ parseURL = function(url)
1132
1132
  };
1133
1133
 
1134
1134
  iframed = function() {
1135
- return (parent && parent.document.location.href != document.location.href && $.isFunction(parent.$));
1135
+ return (parent && parent.document && parent.document.location.href != document.location.href && $.isFunction(parent.$));
1136
1136
  };
@@ -211,7 +211,11 @@ $.extend(WYMeditor, {
211
211
  BLOCKS : new Array("address", "blockquote", "div", "dl",
212
212
  "fieldset", "form", "h1", "h2", "h3", "h4", "h5", "h6", "hr",
213
213
  "noscript", "ol", "p", "pre", "table", "ul", "dd", "dt",
214
- "li", "tbody", "td", "tfoot", "th", "thead", "tr"),
214
+ "li", "tbody", "td", "tfoot", "th", "thead", "tr", "meter",
215
+ "section", "article", "aside", "details", "header", "footer",
216
+ "nav", "dialog", "figure", "figcaption", "address", "hgroup",
217
+ "mark", "time", "canvas", "audio", "video", "source", "output",
218
+ "progress", "ruby", "rt", "rp", "summary", "command"),
215
219
 
216
220
  KEY : {
217
221
  BACKSPACE: 8,
@@ -2449,7 +2453,7 @@ WYMeditor.XhtmlValidator = {
2449
2453
  "readonly":/^(readonly)$/,
2450
2454
  "size":/^(\d)+$/,
2451
2455
  "3":"src",
2452
- "type":/^(button|checkbox|file|hidden|image|password|radio|reset|submit|text)$/,
2456
+ "type":/^(button|checkbox|file|hidden|image|password|radio|reset|submit|text|tel|search|url|email|datetime|date|month|week|time|datetime-local|number|range|color)$/,
2453
2457
  "4":"value"
2454
2458
  },
2455
2459
  "inside":"form"
@@ -3786,10 +3790,15 @@ WYMeditor.XhtmlSaxListener = function()
3786
3790
  "object", "ol", "optgroup", "option", "p", "pre", "q",
3787
3791
  "samp", "script", "select", "small", "span", "strong", "style",
3788
3792
  "sub", "sup", "table", "tbody", "td", "textarea", "tfoot", "th",
3789
- "thead", "title", "tr", "tt", "ul", "var", "extends"];
3793
+ "thead", "title", "tr", "tt", "ul", "var", "extends", "meter",
3794
+ "section", "article", "aside", "details", "header", "footer",
3795
+ "nav", "dialog", "figure", "figcaption", "address", "hgroup",
3796
+ "mark", "time", "canvas", "audio", "video", "source", "output",
3797
+ "progress", "ruby", "rt", "rp", "summary", "command"];
3790
3798
 
3791
3799
 
3792
- this.inline_tags = ["br", "embed", "hr", "img", "input", "param"];
3800
+ // Defines self-closing tags.
3801
+ this.inline_tags = ["br", "embed", "hr", "img", "input", "param", "source", "wbr"];
3793
3802
 
3794
3803
  return this;
3795
3804
  };
@@ -22,7 +22,7 @@
22
22
  /* basic */
23
23
  body { background: #fff;}
24
24
 
25
- /* make HTML blocs visible */
25
+ /* make HTML blocks visible */
26
26
  p,
27
27
  h1,
28
28
  h2,
@@ -34,7 +34,26 @@
34
34
  ol,
35
35
  table,
36
36
  blockquote,
37
- pre { background: transparent no-repeat 2px 2px;
37
+ pre,
38
+ article,
39
+ aside,
40
+ command,
41
+ details,
42
+ summary,
43
+ figure,
44
+ figcaption,
45
+ footer,
46
+ header,
47
+ hgroup,
48
+ mark,
49
+ meter,
50
+ nav,
51
+ progress,
52
+ ruby,
53
+ rt,
54
+ rp,
55
+ section,
56
+ time { background: transparent no-repeat 2px 2px;
38
57
  padding:8px 5px 5px;
39
58
  margin:6px 0px;
40
59
  border: 1px dotted #cccccc;
@@ -55,15 +74,34 @@
55
74
  td { height: 1.6em; }
56
75
 
57
76
  /* labels */
58
- p { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-p.png'); }
59
- h1 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h1.png'); }
60
- h2 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h2.png'); }
61
- h3 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h3.png'); }
62
- h4 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h4.png'); }
63
- h5 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h5.png'); }
64
- h6 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h6.png'); }
65
- blockquote{ background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png'); }
66
- pre { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-pre.png'); }
77
+ p { background-image: url('/images/wymeditor/skins/refinery/html5/p.png'); }
78
+ h1 { background-image: url('/images/wymeditor/skins/refinery/html5/h1.png'); }
79
+ h2 { background-image: url('/images/wymeditor/skins/refinery/html5/h2.png'); }
80
+ h3 { background-image: url('/images/wymeditor/skins/refinery/html5/h3.png'); }
81
+ h4 { background-image: url('/images/wymeditor/skins/refinery/html5/h4.png'); }
82
+ h5 { background-image: url('/images/wymeditor/skins/refinery/html5/h5.png'); }
83
+ h6 { background-image: url('/images/wymeditor/skins/refinery/html5/h6.png'); }
84
+ blockquote { background-image: url('/images/wymeditor/skins/refinery/html5/blockquote.png'); }
85
+ pre { background-image: url('/images/wymeditor/skins/refinery/html5/pre.png'); }
86
+ meter { background-image: url('/images/wymeditor/skins/refinery/html5/meter.png'); }
87
+ nav { background-image: url('/images/wymeditor/skins/refinery/html5/nav.png'); }
88
+ ruby { background-image: url('/images/wymeditor/skins/refinery/html5/ruby.png'); }
89
+ rt { background-image: url('/images/wymeditor/skins/refinery/html5/rt.png'); }
90
+ rp { background-image: url('/images/wymeditor/skins/refinery/html5/rp.png'); }
91
+ article { background-image: url('/images/wymeditor/skins/refinery/html5/article.png'); }
92
+ aside { background-image: url('/images/wymeditor/skins/refinery/html5/aside.png'); }
93
+ command { background-image: url('/images/wymeditor/skins/refinery/html5/command.png'); }
94
+ details { background-image: url('/images/wymeditor/skins/refinery/html5/details.png'); }
95
+ summary { background-image: url('/images/wymeditor/skins/refinery/html5/summary.png'); }
96
+ figure { background-image: url('/images/wymeditor/skins/refinery/html5/figure.png'); }
97
+ figcaption { background-image: url('/images/wymeditor/skins/refinery/html5/figcaption.png'); }
98
+ footer { background-image: url('/images/wymeditor/skins/refinery/html5/footer.png'); }
99
+ header { background-image: url('/images/wymeditor/skins/refinery/html5/header.png'); }
100
+ hgroup { background-image: url('/images/wymeditor/skins/refinery/html5/hgroup.png'); }
101
+ mark { background-image: url('/images/wymeditor/skins/refinery/html5/mark.png'); }
102
+ progress { background-image: url('/images/wymeditor/skins/refinery/html5/progress.png'); }
103
+ section { background-image: url('/images/wymeditor/skins/refinery/html5/section.png'); }
104
+ time { background-image: url('/images/wymeditor/skins/refinery/html5/time.png'); }
67
105
 
68
106
  /* specific HTML elements */
69
107
  caption { text-align: left; }
@@ -93,4 +131,26 @@
93
131
 
94
132
  img.selected_by_wym {
95
133
  border: 1px dashed #22a7f2;
134
+ }
135
+
136
+ article,
137
+ aside,
138
+ command,
139
+ details,
140
+ summary,
141
+ figure,
142
+ figcaption,
143
+ footer,
144
+ header,
145
+ hgroup,
146
+ mark,
147
+ meter,
148
+ nav,
149
+ progress,
150
+ ruby,
151
+ rt,
152
+ rp,
153
+ section,
154
+ time {
155
+ display: block;
96
156
  }
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-core}
5
- s.version = %q{0.9.9.13}
5
+ s.version = %q{0.9.9.14}
6
6
  s.summary = %q{Core engine for Refinery CMS}
7
7
  s.description = %q{The core of Refinery CMS. This handles the common functionality and is required by most engines}
8
- s.date = %q{2011-03-28}
8
+ s.date = %q{2011-03-31}
9
9
  s.email = %q{info@refinerycms.com}
10
10
  s.homepage = %q{http://refinerycms.com}
11
11
  s.rubyforge_project = %q{refinerycms}
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
14
14
  s.require_paths = %w(lib)
15
15
  s.executables = %w()
16
16
 
17
- s.add_dependency 'refinerycms-base', '~> 0.9.9.13'
18
- s.add_dependency 'refinerycms-settings', '~> 0.9.9.13'
17
+ s.add_dependency 'refinerycms-base', '~> 0.9.9.14'
18
+ s.add_dependency 'refinerycms-settings', '~> 0.9.9.14'
19
19
  s.add_dependency 'refinerycms-generators', '~> 1.0'
20
20
  s.add_dependency 'acts_as_indexed', '~> 0.7'
21
21
  s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
@@ -259,6 +259,36 @@ Gem::Specification.new do |s|
259
259
  'public/images/wymeditor/skins/refinery/arrow_redo.png',
260
260
  'public/images/wymeditor/skins/refinery/arrow_undo.png',
261
261
  'public/images/wymeditor/skins/refinery/eye.png',
262
+ 'public/images/wymeditor/skins/refinery/html5',
263
+ 'public/images/wymeditor/skins/refinery/html5/article.png',
264
+ 'public/images/wymeditor/skins/refinery/html5/aside.png',
265
+ 'public/images/wymeditor/skins/refinery/html5/blockquote.png',
266
+ 'public/images/wymeditor/skins/refinery/html5/command.png',
267
+ 'public/images/wymeditor/skins/refinery/html5/details.png',
268
+ 'public/images/wymeditor/skins/refinery/html5/figcaption.png',
269
+ 'public/images/wymeditor/skins/refinery/html5/figure.png',
270
+ 'public/images/wymeditor/skins/refinery/html5/footer.png',
271
+ 'public/images/wymeditor/skins/refinery/html5/h1.png',
272
+ 'public/images/wymeditor/skins/refinery/html5/h2.png',
273
+ 'public/images/wymeditor/skins/refinery/html5/h3.png',
274
+ 'public/images/wymeditor/skins/refinery/html5/h4.png',
275
+ 'public/images/wymeditor/skins/refinery/html5/h5.png',
276
+ 'public/images/wymeditor/skins/refinery/html5/h6.png',
277
+ 'public/images/wymeditor/skins/refinery/html5/header.png',
278
+ 'public/images/wymeditor/skins/refinery/html5/hgroup.png',
279
+ 'public/images/wymeditor/skins/refinery/html5/mark.png',
280
+ 'public/images/wymeditor/skins/refinery/html5/meter.png',
281
+ 'public/images/wymeditor/skins/refinery/html5/nav.png',
282
+ 'public/images/wymeditor/skins/refinery/html5/p.png',
283
+ 'public/images/wymeditor/skins/refinery/html5/pre.png',
284
+ 'public/images/wymeditor/skins/refinery/html5/progress.png',
285
+ 'public/images/wymeditor/skins/refinery/html5/readme.md',
286
+ 'public/images/wymeditor/skins/refinery/html5/rp.png',
287
+ 'public/images/wymeditor/skins/refinery/html5/rt.png',
288
+ 'public/images/wymeditor/skins/refinery/html5/ruby.png',
289
+ 'public/images/wymeditor/skins/refinery/html5/section.png',
290
+ 'public/images/wymeditor/skins/refinery/html5/summary.png',
291
+ 'public/images/wymeditor/skins/refinery/html5/time.png',
262
292
  'public/images/wymeditor/skins/refinery/iframe',
263
293
  'public/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png',
264
294
  'public/images/wymeditor/skins/refinery/iframe/lbl-h1.png',
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.13
5
+ version: 0.9.9.14
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-28 00:00:00 +13:00
16
+ date: 2011-03-31 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: 0.9.9.13
27
+ version: 0.9.9.14
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.13
38
+ version: 0.9.9.14
39
39
  type: :runtime
40
40
  version_requirements: *id002
41
41
  - !ruby/object:Gem::Dependency
@@ -339,6 +339,35 @@ files:
339
339
  - public/images/wymeditor/skins/refinery/arrow_redo.png
340
340
  - public/images/wymeditor/skins/refinery/arrow_undo.png
341
341
  - public/images/wymeditor/skins/refinery/eye.png
342
+ - public/images/wymeditor/skins/refinery/html5/article.png
343
+ - public/images/wymeditor/skins/refinery/html5/aside.png
344
+ - public/images/wymeditor/skins/refinery/html5/blockquote.png
345
+ - public/images/wymeditor/skins/refinery/html5/command.png
346
+ - public/images/wymeditor/skins/refinery/html5/details.png
347
+ - public/images/wymeditor/skins/refinery/html5/figcaption.png
348
+ - public/images/wymeditor/skins/refinery/html5/figure.png
349
+ - public/images/wymeditor/skins/refinery/html5/footer.png
350
+ - public/images/wymeditor/skins/refinery/html5/h1.png
351
+ - public/images/wymeditor/skins/refinery/html5/h2.png
352
+ - public/images/wymeditor/skins/refinery/html5/h3.png
353
+ - public/images/wymeditor/skins/refinery/html5/h4.png
354
+ - public/images/wymeditor/skins/refinery/html5/h5.png
355
+ - public/images/wymeditor/skins/refinery/html5/h6.png
356
+ - public/images/wymeditor/skins/refinery/html5/header.png
357
+ - public/images/wymeditor/skins/refinery/html5/hgroup.png
358
+ - public/images/wymeditor/skins/refinery/html5/mark.png
359
+ - public/images/wymeditor/skins/refinery/html5/meter.png
360
+ - public/images/wymeditor/skins/refinery/html5/nav.png
361
+ - public/images/wymeditor/skins/refinery/html5/p.png
362
+ - public/images/wymeditor/skins/refinery/html5/pre.png
363
+ - public/images/wymeditor/skins/refinery/html5/progress.png
364
+ - public/images/wymeditor/skins/refinery/html5/readme.md
365
+ - public/images/wymeditor/skins/refinery/html5/rp.png
366
+ - public/images/wymeditor/skins/refinery/html5/rt.png
367
+ - public/images/wymeditor/skins/refinery/html5/ruby.png
368
+ - public/images/wymeditor/skins/refinery/html5/section.png
369
+ - public/images/wymeditor/skins/refinery/html5/summary.png
370
+ - public/images/wymeditor/skins/refinery/html5/time.png
342
371
  - public/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png
343
372
  - public/images/wymeditor/skins/refinery/iframe/lbl-h1.png
344
373
  - public/images/wymeditor/skins/refinery/iframe/lbl-h2.png