radiant-fabulator-extension 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.0.8 2010-11-08
2
+
3
+ * 1 bug fix:
4
+ * Find Radiant content correctly
5
+
1
6
  === 0.0.7 2010-10-28
2
7
  * 1 major enhancement:
3
8
  * Applications are no longer pre-compiled when pages are saved
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ begin
7
7
  gem.email = "jgsmith@tamu.edu"
8
8
  gem.homepage = "http://github.com/jgsmith/radiant-fabulator"
9
9
  gem.authors = ["James Smith"]
10
- gem.add_dependency('fabulator', '>= 0.0.9')
10
+ gem.add_dependency('fabulator', '>= 0.0.10')
11
11
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
12
12
  end
13
13
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -19,7 +19,7 @@ module Fabulator
19
19
 
20
20
  has_type :page do
21
21
  method :CHILDREN do |p|
22
- Page.find(p.root.value.to_i).children.collect { |c| Lib.page_to_node(c, p) }
22
+ Page.find(p.value.to_i).children.collect { |c| Lib.page_to_node(c, p) }
23
23
  end
24
24
  end
25
25
 
@@ -46,7 +46,7 @@ module Fabulator
46
46
 
47
47
  function 'find', [ RADIANT_NS, 'page' ] do |ctx, args|
48
48
  args[0].collect { |a|
49
- Lib.page_to_node(Page.find_by_parent_id(nil).find_by_url(a.to_s), ctx)
49
+ Lib.page_to_node(Page.find_by_parent_id(nil).find_by_url(a.to_s), ctx.root)
50
50
  }
51
51
  end
52
52
 
@@ -63,10 +63,10 @@ module Fabulator
63
63
 
64
64
  def self.page_to_node(p, ctx)
65
65
  return nil if p.nil?
66
- p_node = ctx.root.anon_node(p.id, [ RADIANT_NS, 'page' ])
66
+ p_node = ctx.anon_node(p.id, [ RADIANT_NS, 'page' ])
67
67
  p_node.name = p.slug
68
68
  p.parts.each do |pp|
69
- #pp_node = ctx.root.anon_node(pp.content, [ RADIANT_NS, 'page-part' ])
69
+ #pp_node = ctx.anon_node(pp.content, [ RADIANT_NS, 'page-part' ])
70
70
  #pp_node.name = pp.name
71
71
  #pp_node.set_attribute('filter', pp.filter)
72
72
  #p_node.set_attribute(pp.name, pp_node)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-fabulator-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Smith
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-29 00:00:00 +00:00
18
+ date: 2010-11-08 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 13
29
+ hash: 11
30
30
  segments:
31
31
  - 0
32
32
  - 0
33
- - 9
34
- version: 0.0.9
33
+ - 10
34
+ version: 0.0.10
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: Creates a Fabulator page type allowing applications to be built using the fabulator engine.