scratch_pad-node_extensions-post 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,17 @@
1
1
  module NodeExtensions
2
- class Post < ScratchPad::Addon::NodeExtension
3
- class Model < Node
2
+ class Post < NodeExtensions::TextBlock
3
+ class Model < NodeExtensions::TextBlock::Model
4
+ validate :ensure_children_or_data
5
+
6
+ private
7
+
8
+ def ensure_children_or_data
9
+ errors.add :base, 'A child node or data is required' unless children? || data?
10
+ end
11
+
12
+ def require_data
13
+ false
14
+ end
4
15
  end
5
16
  end
6
17
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'scratch_pad-node_extensions-post'
6
- s.version = '0.0.2'
6
+ s.version = '0.0.3'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Raving Genius']
9
9
  s.email = ['rg+code@ravinggenius.com']
@@ -22,4 +22,6 @@ Gem::Specification.new do |s|
22
22
  s.cert_chain = [
23
23
  '/home/thomas/Code/___/certificates/gem-public_cert.pem'
24
24
  ]
25
+
26
+ s.add_dependency 'scratch_pad-node_extensions-text_block', '>= 0.0.3'
25
27
  end
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- -9�� �M����5�ځ��y����7�-��ډ"|�NV�$�f��%8�66�aw���t{{�������� ��
2
- z7[�yh{f�e�,
1
+ b���oy��e�N��W��wI��riT�N6�2`�قώ�ю�J����@�G�����N���z\Ó��� �*��RpF���
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: scratch_pad-node_extensions-post
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raving Genius
@@ -31,10 +31,19 @@ cert_chain:
31
31
  CvvfejGH+Hi4YXI1pPhLJj8g
32
32
  -----END CERTIFICATE-----
33
33
 
34
- date: 2011-03-01 00:00:00 -05:00
35
- default_executable:
36
- dependencies: []
37
-
34
+ date: 2011-05-25 00:00:00 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: scratch_pad-node_extensions-text_block
38
+ prerelease: false
39
+ requirement: &id001 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 0.0.3
45
+ type: :runtime
46
+ version_requirements: *id001
38
47
  description:
39
48
  email:
40
49
  - rg+code@ravinggenius.com
@@ -49,11 +58,9 @@ files:
49
58
  - Gemfile
50
59
  - Rakefile
51
60
  - lib/scratch_pad-node_extensions-post/post.rb
52
- - lib/views/form.html.haml
53
61
  - lib/views/full.html.haml
54
62
  - lib/views/preview.html.haml
55
63
  - scratch_pad-node_extensions-post.gemspec
56
- has_rdoc: true
57
64
  homepage: https://github.com/ravinggenius/scratch_pad-node_extensions-post
58
65
  licenses: []
59
66
 
@@ -77,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
84
  requirements: []
78
85
 
79
86
  rubyforge_project: scratch_pad-node_extensions-post
80
- rubygems_version: 1.5.3
87
+ rubygems_version: 1.8.3
81
88
  signing_key:
82
89
  specification_version: 3
83
90
  summary: NodeExtension gem for ScratchPad
metadata.gz.sig CHANGED
Binary file
File without changes