rad_face 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/face/face.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  class Rad::Face
2
2
  attr_accessor :themes_path, :theme, :available_themes
3
- require_attr :themes_path
3
+ attr_required :themes_path
4
4
  def available_themes; @available_themes ||= [] end
5
5
 
6
6
  def availiable_layouts
data/lib/face/gems.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  if respond_to? :fake_gem
2
2
  fake_gem 'rad_core'
3
- fake_gem 'rad_ext'
4
3
  fake_gem 'rad_js'
5
4
  fake_gem 'rad_assets'
6
5
  end
data/lib/face/require.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'rad_ext'
1
+ require 'rad'
2
2
 
3
3
  class Rad::Face
4
4
  end
data/lib/face/support.rb CHANGED
@@ -33,10 +33,11 @@ end
33
33
  #
34
34
  Rad::Controller::Abstract::Render.class_eval do
35
35
  protected
36
- def render_content_with_content *a
37
- content, context = render_content_without_content *a
38
- context.content_for :content, content
39
- return content, context
36
+ def render_content_with_content options
37
+ context = options[:context]
38
+ content = render_content_without_content options
39
+ context.content_for :content, content if context
40
+ return content
40
41
  end
41
42
  alias_method_chain :render_content, :content
42
43
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rspec_ext'
2
2
 
3
- require 'rad_ext'
3
+ require 'rad'
4
4
  require 'rad/spec'
5
5
 
6
6
  rad.face
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rad_face
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-05 00:00:00 +04:00
13
+ date: 2011-07-30 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -25,7 +25,7 @@ dependencies:
25
25
  prerelease: false
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
- name: rad_ext
28
+ name: rad_js
29
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
@@ -36,7 +36,7 @@ dependencies:
36
36
  prerelease: false
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
39
- name: rad_js
39
+ name: rad_assets
40
40
  requirement: &id003 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
@@ -46,17 +46,6 @@ dependencies:
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: rad_assets
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- type: :runtime
58
- prerelease: false
59
- version_requirements: *id004
60
49
  description:
61
50
  email:
62
51
  executables: []