wysihat-engine 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 0.1.3 (October 5th, 2009) - Jeff Kreeftmeijer
2
+ * added sass support
3
+
1
4
  0.1.2 (October 4th, 2009) - Jeff Kreeftmeijer
2
5
 
3
6
  * added a --no-stylesheet option to the generator
data/TODO CHANGED
@@ -1,4 +1,2 @@
1
1
  * add a destroy action to the WysihatFilesController
2
- * rewrite the :paste button to use josh's solution ( http://www.80beans.com/2009/10/01/wysihat-engine/comment-page-1/#comment-1834 )
3
-
4
- * add sass versions of the stylesheets (and give an option to use those in the generator)
2
+ * rewrite the :paste button to use josh's solution ( http://www.80beans.com/2009/10/01/wysihat-engine/comment-page-1/#comment-1834 )
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -0,0 +1,77 @@
1
+ #facebox
2
+ position: absolute
3
+ top: 0
4
+ left: 0
5
+ z-index: 100
6
+ text-align: left
7
+
8
+ .b
9
+ background: url(../images/b.png)
10
+
11
+ .tl
12
+ background: url(../images/tl.png)
13
+
14
+ .tr
15
+ background: url(../images/tr.png)
16
+
17
+ .bl
18
+ background: url(../images/bl.png)
19
+
20
+ .br
21
+ background: url(../images/br.png)
22
+
23
+ .popup
24
+ position: relative
25
+
26
+ table
27
+ border-collapse: collapse
28
+
29
+ td
30
+ border-bottom: 0
31
+ padding: 0
32
+
33
+ .body
34
+ padding: 10px
35
+ background: #fff
36
+ width: 370px
37
+
38
+ .loading, .image
39
+ text-align: center
40
+
41
+ img
42
+ border: 0
43
+ margin: 0
44
+
45
+ .footer
46
+ border-top: 1px solid #DDDDDD
47
+ padding-top: 5px
48
+ margin-top: 10px
49
+ text-align: right
50
+
51
+ .tl, .tr, .bl, .br
52
+ height: 10px
53
+ width: 10px
54
+ overflow: hidden
55
+ padding: 0
56
+
57
+
58
+ #facebox_overlay
59
+ position: fixed
60
+ top: 0px
61
+ left: 0px
62
+ height: 100%
63
+ width: 100%
64
+
65
+
66
+ .facebox_hide
67
+ z-index: -100
68
+
69
+
70
+ .facebox_overlayBG
71
+ background-color: #000
72
+ z-index: 99
73
+
74
+
75
+ * html #facebox_overlay
76
+ position: absolute
77
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px')
@@ -0,0 +1,62 @@
1
+ div.editor_toolbar
2
+ a
3
+ float: left
4
+ width: 16px
5
+ height: 16px
6
+ margin: 5px
7
+ background-repeat: no-repeat
8
+
9
+ span
10
+ display: none
11
+
12
+
13
+ .editor_toolbar
14
+ .bold
15
+ background-image: url('../images/text_bold.png')
16
+
17
+ .italic
18
+ background-image: url('../images/text_italic.png')
19
+
20
+ .underline
21
+ background-image: url('../images/text_underline.png')
22
+
23
+ .strikethrough
24
+ background-image: url('../images/text_strikethrough.png')
25
+
26
+ .justifyleft
27
+ background-image: url('../images/text_align_left.png')
28
+
29
+ .justifycenter
30
+ background-image: url('../images/text_align_center.png')
31
+
32
+ .justifyright
33
+ background-image: url('../images/text_align_right.png')
34
+
35
+ .undo
36
+ background-image: url('../images/arrow_undo.png')
37
+
38
+ .redo
39
+ background-image: url('../images/arrow_redo.png')
40
+
41
+ .insertorderedlist
42
+ background-image: url('../images/text_list_numbers.png')
43
+
44
+ .insertunorderedlist
45
+ background-image: url('../images/text_list_bullets.png')
46
+
47
+ .link
48
+ background-image: url('../images/link.png')
49
+
50
+ .image
51
+ background-image: url('../images/image.png')
52
+
53
+ .paste
54
+ background-image: url('../images/paste_plain.png')
55
+
56
+ .html
57
+ background-image: url('../images/page_code.png')
58
+
59
+
60
+ iframe.editor
61
+ height: 400px
62
+ width: 100%
@@ -1,5 +1,5 @@
1
1
  class WysihatGenerator < Rails::Generator::Base
2
- default_options :stylesheet => true, :js_src => false
2
+ default_options :stylesheet => true, :js_src => false, :sass => false
3
3
 
4
4
  def manifest
5
5
  record do |m|
@@ -14,7 +14,12 @@ class WysihatGenerator < Rails::Generator::Base
14
14
 
15
15
  # facebox
16
16
 
17
- m.file 'stylesheets/facebox.css', 'public/stylesheets/facebox.css'
17
+ if options[:sass]
18
+ m.directory 'public/stylesheets/sass'
19
+ m.file 'sass/facebox.sass', 'public/stylesheets/sass/facebox.sass'
20
+ else
21
+ m.file 'css/facebox.css', 'public/stylesheets/facebox.css'
22
+ end
18
23
 
19
24
  m.file 'images/b.png', 'public/images/b.png'
20
25
  m.file 'images/bl.png', 'public/images/bl.png'
@@ -25,8 +30,12 @@ class WysihatGenerator < Rails::Generator::Base
25
30
 
26
31
  # stylesheet & icons
27
32
 
28
- if options[:stylesheet]
29
- m.file 'stylesheets/wysihat.css', 'public/stylesheets/wysihat.css'
33
+ if options[:stylesheet]
34
+ if options[:sass]
35
+ m.file 'sass/wysihat.sass', 'public/stylesheets/sass/wysihat.sass'
36
+ else
37
+ m.file 'css/wysihat.css', 'public/stylesheets/wysihat.css'
38
+ end
30
39
 
31
40
  m.file 'images/arrow_redo.png', 'public/images/arrow_redo.png'
32
41
  m.file 'images/arrow_undo.png', 'public/images/arrow_undo.png'
@@ -66,8 +75,9 @@ class WysihatGenerator < Rails::Generator::Base
66
75
  def add_options!(opt)
67
76
  opt.separator ''
68
77
  opt.separator 'Options:'
69
- opt.on("--no-stylesheet", "Don't add the stylesheet file and don't copy the included icons.") { |v| options[:stylesheet] = false }
70
- opt.on("--include-js-src", "Also copy the javascript source files") { |v| options[:js_src] = true }
78
+ opt.on('--no-stylesheet', 'Don\'t add the stylesheet file and don\'t copy the included icons.') { |v| options[:stylesheet] = false }
79
+ opt.on('--include-js-src', 'Also copy the javascript source files.') { |v| options[:js_src] = true }
80
+ opt.on('--sass', 'Copy sass stylesheets instead of css.') { |v| options[:sass] = true }
71
81
  end
72
82
 
73
83
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wysihat-engine}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Kreeftmeijer"]
12
- s.date = %q{2009-10-04}
12
+ s.date = %q{2009-10-05}
13
13
  s.description = %q{A rails engine to allow users to use the WysiHat editors.}
14
14
  s.email = %q{jeff@80beans.com}
15
15
  s.extra_rdoc_files = [
@@ -30,6 +30,10 @@ Gem::Specification.new do |s|
30
30
  "app/views/wysihat_files/_wysihat_file.html.erb",
31
31
  "app/views/wysihat_files/index.html.erb",
32
32
  "app/views/wysihat_files/new.html.erb",
33
+ "generators/wysihat/templates/css/.sass-cache/242b5853f919a8e6346032f619374fe0847bac7b/facebox.cssc",
34
+ "generators/wysihat/templates/css/.sass-cache/242b5853f919a8e6346032f619374fe0847bac7b/wysihat.cssc",
35
+ "generators/wysihat/templates/css/facebox.css",
36
+ "generators/wysihat/templates/css/wysihat.css",
33
37
  "generators/wysihat/templates/images/arrow_redo.png",
34
38
  "generators/wysihat/templates/images/arrow_undo.png",
35
39
  "generators/wysihat/templates/images/b.png",
@@ -63,8 +67,8 @@ Gem::Specification.new do |s|
63
67
  "generators/wysihat/templates/javascripts/wysihat_engine.js",
64
68
  "generators/wysihat/templates/javascripts/wysihat_engine_pack.js",
65
69
  "generators/wysihat/templates/migrations/create_wysihat_files.rb",
66
- "generators/wysihat/templates/stylesheets/facebox.css",
67
- "generators/wysihat/templates/stylesheets/wysihat.css",
70
+ "generators/wysihat/templates/sass/facebox.sass",
71
+ "generators/wysihat/templates/sass/wysihat.sass",
68
72
  "generators/wysihat/wysihat_generator.rb",
69
73
  "lib/wysihat-engine.rb",
70
74
  "wysihat-engine.gemspec"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wysihat-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Kreeftmeijer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-04 00:00:00 +02:00
12
+ date: 2009-10-05 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -45,6 +45,10 @@ files:
45
45
  - app/views/wysihat_files/_wysihat_file.html.erb
46
46
  - app/views/wysihat_files/index.html.erb
47
47
  - app/views/wysihat_files/new.html.erb
48
+ - generators/wysihat/templates/css/.sass-cache/242b5853f919a8e6346032f619374fe0847bac7b/facebox.cssc
49
+ - generators/wysihat/templates/css/.sass-cache/242b5853f919a8e6346032f619374fe0847bac7b/wysihat.cssc
50
+ - generators/wysihat/templates/css/facebox.css
51
+ - generators/wysihat/templates/css/wysihat.css
48
52
  - generators/wysihat/templates/images/arrow_redo.png
49
53
  - generators/wysihat/templates/images/arrow_undo.png
50
54
  - generators/wysihat/templates/images/b.png
@@ -78,8 +82,8 @@ files:
78
82
  - generators/wysihat/templates/javascripts/wysihat_engine.js
79
83
  - generators/wysihat/templates/javascripts/wysihat_engine_pack.js
80
84
  - generators/wysihat/templates/migrations/create_wysihat_files.rb
81
- - generators/wysihat/templates/stylesheets/facebox.css
82
- - generators/wysihat/templates/stylesheets/wysihat.css
85
+ - generators/wysihat/templates/sass/facebox.sass
86
+ - generators/wysihat/templates/sass/wysihat.sass
83
87
  - generators/wysihat/wysihat_generator.rb
84
88
  - lib/wysihat-engine.rb
85
89
  - wysihat-engine.gemspec