fume 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -1
- data/fume.gemspec +8 -6
- data/generators/fume_simple_theme/templates/stylesheets/{simple_theme.css → simple-theme.css} +0 -0
- data/generators/fume_simple_theme/templates/stylesheets/{simple_theme.less → simple-theme.less} +0 -0
- data/lib/fume/searchlogic.rb +25 -0
- data/lib/fume.rb +2 -0
- metadata +5 -4
data/VERSION.yml
CHANGED
data/fume.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fume}
|
8
|
-
s.version = "0.1.
|
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 = ["Sunteya"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-02}
|
13
13
|
s.email = %q{Sunteya@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README"
|
@@ -71,11 +71,12 @@ Gem::Specification.new do |s|
|
|
71
71
|
"generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/typography.css",
|
72
72
|
"generators/fume_simple_theme/templates/stylesheets/drastic-dark.less",
|
73
73
|
"generators/fume_simple_theme/templates/stylesheets/jquery-ui-1.7.2.ui-darkness.css",
|
74
|
-
"generators/fume_simple_theme/templates/stylesheets/
|
75
|
-
"generators/fume_simple_theme/templates/stylesheets/
|
74
|
+
"generators/fume_simple_theme/templates/stylesheets/simple-theme.css",
|
75
|
+
"generators/fume_simple_theme/templates/stylesheets/simple-theme.less",
|
76
76
|
"init.rb",
|
77
77
|
"lib/fume.rb",
|
78
78
|
"lib/fume/authlogic.rb",
|
79
|
+
"lib/fume/searchlogic.rb",
|
79
80
|
"lib/fume/simple_theme.rb",
|
80
81
|
"rails/init.rb"
|
81
82
|
]
|
@@ -98,3 +99,4 @@ Gem::Specification.new do |s|
|
|
98
99
|
s.add_dependency(%q<authlogic>, [">= 0"])
|
99
100
|
end
|
100
101
|
end
|
102
|
+
|
data/generators/fume_simple_theme/templates/stylesheets/{simple_theme.css → simple-theme.css}
RENAMED
File without changes
|
data/generators/fume_simple_theme/templates/stylesheets/{simple_theme.less → simple-theme.less}
RENAMED
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Fume
|
2
|
+
module Searchlogic
|
3
|
+
|
4
|
+
def self.enable
|
5
|
+
ActionController::Base.send :helper, RailsHelpers
|
6
|
+
::Searchlogic::Search.send :include, SearchExtensions::InstanceMethods
|
7
|
+
end
|
8
|
+
|
9
|
+
module SearchExtensions
|
10
|
+
module InstanceMethods
|
11
|
+
def human_attribute_name(name)
|
12
|
+
klass.human_attribute_name(name)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module RailsHelpers
|
18
|
+
def i18n_order(search, options = {}, html_options = {})
|
19
|
+
attribute_name = options[:attr] || options[:by]
|
20
|
+
options[:as] ||= translate_attribute(search.klass, attribute_name)
|
21
|
+
order(search, options, html_options)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/fume.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.3
|
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-
|
12
|
+
date: 2009-12-02 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -87,11 +87,12 @@ files:
|
|
87
87
|
- generators/fume_simple_theme/templates/stylesheets/blueprint-0.9.1/src/typography.css
|
88
88
|
- generators/fume_simple_theme/templates/stylesheets/drastic-dark.less
|
89
89
|
- generators/fume_simple_theme/templates/stylesheets/jquery-ui-1.7.2.ui-darkness.css
|
90
|
-
- generators/fume_simple_theme/templates/stylesheets/
|
91
|
-
- generators/fume_simple_theme/templates/stylesheets/
|
90
|
+
- generators/fume_simple_theme/templates/stylesheets/simple-theme.css
|
91
|
+
- generators/fume_simple_theme/templates/stylesheets/simple-theme.less
|
92
92
|
- init.rb
|
93
93
|
- lib/fume.rb
|
94
94
|
- lib/fume/authlogic.rb
|
95
|
+
- lib/fume/searchlogic.rb
|
95
96
|
- lib/fume/simple_theme.rb
|
96
97
|
- rails/init.rb
|
97
98
|
has_rdoc: true
|