scratch_pad-node_extensions-page 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/scratch_pad-node_extensions-page/page.rb +14 -3
- data/lib/views/full.html.haml +4 -1
- data/scratch_pad-node_extensions-page.gemspec +3 -1
- metadata +15 -8
- metadata.gz.sig +0 -0
- data/lib/views/form.html.haml +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
@@ -1,7 +1,18 @@
|
|
1
1
|
module NodeExtensions
|
2
|
-
class Page <
|
3
|
-
class Model <
|
4
|
-
|
2
|
+
class Page < NodeExtensions::TextBlock
|
3
|
+
class Model < NodeExtensions::TextBlock::Model
|
4
|
+
validates_presence_of :path
|
5
|
+
validate :ensure_children_or_data
|
6
|
+
|
7
|
+
private
|
8
|
+
|
9
|
+
def ensure_children_or_data
|
10
|
+
errors.add :base, 'A child node or data is required' unless children? || data?
|
11
|
+
end
|
12
|
+
|
13
|
+
def require_data
|
14
|
+
false
|
15
|
+
end
|
5
16
|
end
|
6
17
|
end
|
7
18
|
end
|
data/lib/views/full.html.haml
CHANGED
@@ -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-page'
|
6
|
-
s.version = '0.0.
|
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
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: scratch_pad-node_extensions-page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
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-
|
35
|
-
|
36
|
-
|
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-page/page.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-page.gemspec
|
56
|
-
has_rdoc: true
|
57
64
|
homepage: https://github.com/ravinggenius/scratch_pad-node_extensions-page
|
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-page
|
80
|
-
rubygems_version: 1.
|
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
|
data/lib/views/form.html.haml
DELETED
File without changes
|