fume 0.2.6 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -294,12 +294,12 @@ body {
294
294
  font-weight: bold;
295
295
  text-align: left;
296
296
  }
297
- .table th.first {
297
+ .table th:first-child {
298
298
  border-top-left-radius: 0.4em;
299
299
  -moz-border-radius-topleft: 0.4em;
300
300
  -webkit-border-top-left-radius: 0.4em;
301
301
  }
302
- .table th.last {
302
+ .table th:last-child {
303
303
  border-top-right-radius: 0.4em;
304
304
  -moz-border-radius-topright: 0.4em;
305
305
  -webkit-border-top-right-radius: 0.4em;
@@ -610,6 +610,7 @@ body {
610
610
  color: red;
611
611
  margin: 0;
612
612
  font-size: 1.1em;
613
+ margin-top: 0.2em;
613
614
  }
614
615
  .formtastic ol .string label {
615
616
  font-size: 1.2em;
@@ -724,6 +725,7 @@ body {
724
725
  color: #888888;
725
726
  }
726
727
  .formtastic ol .boolean label input { margin-right: 0.5em; }
728
+ .formtastic ol .check_boxes fieldset .label { padding-bottom: 0.2em; }
727
729
  .formtastic ol .check_boxes fieldset .label label { font-size: 1.2em; }
728
730
  .formtastic ol .check_boxes fieldset ol li {
729
731
  float: left;
@@ -299,6 +299,7 @@ body {
299
299
  color: red;
300
300
  margin: 0;
301
301
  font-size: 1.1em;
302
+ margin-top: 0.2em;
302
303
  }
303
304
  }
304
305
 
@@ -335,8 +336,12 @@ body {
335
336
 
336
337
  .check_boxes {
337
338
  fieldset {
338
- .label label {
339
- font-size: 1.2em;
339
+ .label {
340
+ padding-bottom: 0.2em;
341
+
342
+ label {
343
+ font-size: 1.2em;
344
+ }
340
345
  }
341
346
 
342
347
  ol li {
@@ -245,11 +245,11 @@
245
245
  text-align: left;
246
246
  }
247
247
 
248
- th.first {
248
+ th:first-child {
249
249
  .border-top-left-radius(0.4em);
250
250
  }
251
251
 
252
- th.last {
252
+ th:last-child {
253
253
  .border-top-right-radius(0.4em);
254
254
  }
255
255
 
@@ -1,6 +1,6 @@
1
1
  module Fume
2
2
  module Authlogic
3
- def self.enable
3
+ def self.try_enable
4
4
  if defined? ::Authlogic
5
5
  ActionController::Base.send :include, ControllerExtensions::InstanceMethods
6
6
  ActionController::Base.send :helper_method, :current_user_session, :current_user
@@ -1,7 +1,7 @@
1
1
  module Fume
2
2
  module Formtastic
3
3
 
4
- def self.enable
4
+ def self.try_enable
5
5
  return unless defined? ::Formtastic
6
6
 
7
7
  ::Formtastic::SemanticFormBuilder.class_exec do
@@ -1,7 +1,7 @@
1
1
  module Fume
2
2
  module RailsExt
3
3
 
4
- def self.enable
4
+ def self.try_enable
5
5
  ActionController::Base.send :helper, RailsHelpers
6
6
  end
7
7
 
@@ -1,7 +1,7 @@
1
1
  module Fume
2
2
  module Searchlogic
3
3
 
4
- def self.enable
4
+ def self.try_enable
5
5
  if defined? ::Searchlogic
6
6
  ActionController::Base.send :helper, RailsHelpers
7
7
  ::Searchlogic::Search.send :include, SearchExtensions::InstanceMethods
@@ -1,7 +1,7 @@
1
1
  module Fume
2
2
  module SimpleTheme
3
3
 
4
- def self.enable
4
+ def self.try_enable
5
5
  ActionController::Base.send :extend, ControllerExtensions::ClassMethods
6
6
  ActionController::Base.send :helper, RailsHelpers
7
7
  end
data/rails/init.rb CHANGED
@@ -2,7 +2,7 @@ require File.join(File.dirname(__FILE__), *%w[.. lib fume])
2
2
 
3
3
  ::Fume.constants.each do |module_name|
4
4
  module_class = Fume.const_get(module_name)
5
- if module_class.respond_to? :enable
6
- module_class.enable
5
+ if module_class.respond_to? :try_enable
6
+ module_class.try_enable
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fume
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunteya
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-24 00:00:00 +08:00
12
+ date: 2009-12-28 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -31,6 +31,8 @@ files:
31
31
  - generators/fume/capify/templates/Capfile
32
32
  - generators/fume/capify/templates/config/deploy.rb
33
33
  - generators/fume/fume_generator.rb
34
+ - generators/fume/rspec/rspec_gen.rb
35
+ - generators/fume/rspec/templates/spec/support/fume_controller_macros.rb
34
36
  - generators/fume/simple_theme/simple_theme_gen.rb
35
37
  - generators/fume/simple_theme/templates/public/demo.html
36
38
  - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_30_cccccc_40x100.png
@@ -50,6 +52,7 @@ files:
50
52
  - generators/fume/simple_theme/templates/public/javascripts/jquery-1.3.2.js
51
53
  - generators/fume/simple_theme/templates/public/javascripts/jquery-ui-1.7.2.js
52
54
  - generators/fume/simple_theme/templates/public/javascripts/jquery-ui-i18n-1.7.2.js
55
+ - generators/fume/simple_theme/templates/public/javascripts/jquery.ba-url-1.11.js
53
56
  - generators/fume/simple_theme/templates/public/javascripts/jquery.corner-2.03.js
54
57
  - generators/fume/simple_theme/templates/public/javascripts/jquery.timepicker-0.2.1.js
55
58
  - generators/fume/simple_theme/templates/public/javascripts/simple-theme-ie-patch.js