fume 0.9.3 → 0.10.0a

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8adf13e3aae22d114d9cd408c9af61d2a36b54c5
4
- data.tar.gz: 1fa026bc07fbbdc07e57285f7d6ffefbffb32e59
3
+ metadata.gz: 7f05795f6ec083125f74c05e480c4e9a9baa00ac
4
+ data.tar.gz: 520e63e594b0c35c78cc88f57e816e84a3036556
5
5
  SHA512:
6
- metadata.gz: 9b3bd4feb6efab532026f19cb2857a5e283622005ed9315de54131d27a41bb7c3752e714ef53af63540f37d50140981b7529829282280c44ec854a6dccc8823f
7
- data.tar.gz: ba339eb0e4db5648d7794188d3ce80cd3ea85cb64bf6f864f55272699f5c7625110da9bc94948a1fd228d40947534fa5758737bff21ad88133a7015d8c8d5e3d
6
+ metadata.gz: 1d6391c752c7db8bad341974c949334da6af1f40c84a87c728c3ec68227fb66502968768eed9f4f595ad6612a84baa0e8d7d73a9b33f83c035bde2af6356beb0
7
+ data.tar.gz: b13947b844463c6174daccccf8bc757a9571f86fc5c243e7f42afca63e7db96b1d383d7d2908d786e32fb3f4cc2d27ff4c8636d8df369c39347a7dda03b04fb1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
1
+ 0.10.0a
data/fume.gemspec CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |s|
18
18
 
19
19
 
20
20
  # rails
21
- s.add_dependency "rails", "~> 3.2.13"
22
- s.add_dependency "rails-i18n", "~> 0.7.2"
21
+ s.add_dependency "rails", ">= 3.2.13"
22
+ s.add_dependency "rails-i18n", ">= 0.7.2"
23
23
  s.add_dependency "hashie", ">= 1.2.0"
24
24
 
25
25
  # development
data/lib/fume.rb CHANGED
@@ -6,7 +6,6 @@ module Fume
6
6
 
7
7
  extend ActiveSupport::Autoload
8
8
  autoload :RailsExt
9
- autoload :SimpleNav
10
9
  autoload :AppSettingLoader
11
10
  autoload :RenderCache
12
11
 
data/lib/fume/railtie.rb CHANGED
@@ -5,7 +5,6 @@ module Fume
5
5
  initializer 'fume.initialize', :after => :after_initialize do |app|
6
6
  RailsExt.init!
7
7
  RenderCache.init!
8
- SimpleNav.init!
9
8
  end
10
9
 
11
10
  initializer "fume.after_initialize", :after => :after_initialize do |app|
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fume
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.10.0a
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunteya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-10 00:00:00.000000000 Z
11
+ date: 2013-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.2.13
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.2.13
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails-i18n
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.7.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.7.2
41
41
  - !ruby/object:Gem::Dependency
@@ -85,7 +85,6 @@ files:
85
85
  - lib/fume/rails_ext.rb
86
86
  - lib/fume/railtie.rb
87
87
  - lib/fume/render_cache.rb
88
- - lib/fume/simple_nav.rb
89
88
  - lib/generators/fume/simple_scaffold/USAGE
90
89
  - lib/generators/fume/simple_scaffold/simple_scaffold_generator.rb
91
90
  - lib/generators/fume/simple_scaffold/templates/_form.html.erb
@@ -110,9 +109,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
109
  version: '0'
111
110
  required_rubygems_version: !ruby/object:Gem::Requirement
112
111
  requirements:
113
- - - '>='
112
+ - - '>'
114
113
  - !ruby/object:Gem::Version
115
- version: '0'
114
+ version: 1.3.1
116
115
  requirements: []
117
116
  rubyforge_project:
118
117
  rubygems_version: 2.0.3
@@ -1,51 +0,0 @@
1
- require "hashie"
2
-
3
- module Fume
4
- module SimpleNav
5
-
6
- def self.init!
7
- if defined? ::ActionView::Base
8
- ::ActionView::Base.send :include, HelperExtensions
9
- end
10
- end
11
-
12
- module HelperExtensions
13
-
14
- def simple_nav(attr_reader_name)
15
- value = self.send(attr_reader_name)
16
- tag = SimpleNavTag.new({
17
- :helper => self,
18
- :value => value,
19
- :active_class => "active"
20
- })
21
-
22
- if block_given?
23
- yield tag
24
- return nil
25
- else
26
- return tag
27
- end
28
- end
29
-
30
- class SimpleNavTag < Hashie::Mash
31
-
32
- def li_tag(value, options = {}, &block)
33
- self.content_tag(value, :li, options, &block)
34
- end
35
-
36
- def content_tag(value, tag_name, options = {}, &block)
37
- if value == self.value
38
- if options[:class]
39
- options[:class] += " #{self.active_class}"
40
- else
41
- options[:class] = "#{self.active_class}"
42
- end
43
- end
44
-
45
- helper.content_tag(tag_name, options, &block)
46
- end
47
- end
48
-
49
- end
50
- end
51
- end