scratch_pad-node_extensions-table 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data.tar.gz.sig +0 -0
- data/.gitignore +5 -0
- data/Gemfile +3 -0
- data/Rakefile +2 -0
- data/lib/scratch_pad-node_extensions-table/table.rb +12 -0
- data/lib/views/form.html.haml +6 -0
- data/lib/views/full.html.haml +16 -0
- data/lib/views/preview.html.haml +1 -0
- data/scratch_pad-node_extensions-table.gemspec +25 -0
- metadata +85 -0
- metadata.gz.sig +2 -0
data.tar.gz.sig
ADDED
|
Binary file
|
data/Gemfile
ADDED
data/Rakefile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module NodeExtensions
|
|
2
|
+
class Table < ScratchPad::Addon::NodeExtension
|
|
3
|
+
class Model < ScratchPad::Addon::NodeExtension::ModelBase
|
|
4
|
+
key :data, Array, :required => true
|
|
5
|
+
key :has_header_row, Boolean, :required => true, :default => false
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def self.root
|
|
9
|
+
Pathname.new(__FILE__) + '..' + '..'
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
%header
|
|
2
|
+
%span.h= node.title
|
|
3
|
+
%section
|
|
4
|
+
%table
|
|
5
|
+
%caption= filter node.title, node.filter_group
|
|
6
|
+
%thead
|
|
7
|
+
- if node.has_header_row
|
|
8
|
+
%tr
|
|
9
|
+
- node.data.shift.each do |cell|
|
|
10
|
+
%th= filter cell, node.filter_group
|
|
11
|
+
%tfoot
|
|
12
|
+
%tbody
|
|
13
|
+
- node.data.each do |row|
|
|
14
|
+
%tr
|
|
15
|
+
- row.each do |cell|
|
|
16
|
+
%td= filter cell, node.filter_group
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
%header= link_to node.title, node, :class => :h
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |s|
|
|
5
|
+
s.name = 'scratch_pad-node_extensions-table'
|
|
6
|
+
s.version = '0.0.1'
|
|
7
|
+
s.platform = Gem::Platform::RUBY
|
|
8
|
+
s.authors = ['Raving Genius']
|
|
9
|
+
s.email = ['rg+code@ravinggenius.com']
|
|
10
|
+
s.homepage = 'https://github.com/ravinggenius/scratch_pad-node_extensions-table'
|
|
11
|
+
s.summary = %q{NodeExtension gem for ScratchPad}
|
|
12
|
+
#s.description = %q{TODO fill in description}
|
|
13
|
+
|
|
14
|
+
s.rubyforge_project = 'scratch_pad-node_extensions-table'
|
|
15
|
+
|
|
16
|
+
s.files = `git ls-files`.split("\n")
|
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
19
|
+
s.require_paths = ['lib']
|
|
20
|
+
|
|
21
|
+
s.signing_key = '/home/thomas/Code/___/certificates/gem-private_key.pem'
|
|
22
|
+
s.cert_chain = [
|
|
23
|
+
'/home/thomas/Code/___/certificates/gem-public_cert.pem'
|
|
24
|
+
]
|
|
25
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: scratch_pad-node_extensions-table
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 0.0.1
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Raving Genius
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain:
|
|
12
|
+
- |
|
|
13
|
+
-----BEGIN CERTIFICATE-----
|
|
14
|
+
MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRAwDgYDVQQDDAdyZ19j
|
|
15
|
+
b2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0MQoE4XB8I/Y3xs5OUwItZL1xWpiUixKpDIqB5zKtN0m
|
|
30
|
+
EtSgImjQmbN559J/qAn31487zcviSWdGfNkLGT/rfVaLd6lg1VVgA5k5tG6roxiJ
|
|
31
|
+
CvvfejGH+Hi4YXI1pPhLJj8g
|
|
32
|
+
-----END CERTIFICATE-----
|
|
33
|
+
|
|
34
|
+
date: 2011-02-25 00:00:00 -05:00
|
|
35
|
+
default_executable:
|
|
36
|
+
dependencies: []
|
|
37
|
+
|
|
38
|
+
description:
|
|
39
|
+
email:
|
|
40
|
+
- rg+code@ravinggenius.com
|
|
41
|
+
executables: []
|
|
42
|
+
|
|
43
|
+
extensions: []
|
|
44
|
+
|
|
45
|
+
extra_rdoc_files: []
|
|
46
|
+
|
|
47
|
+
files:
|
|
48
|
+
- .gitignore
|
|
49
|
+
- Gemfile
|
|
50
|
+
- Rakefile
|
|
51
|
+
- lib/scratch_pad-node_extensions-table/table.rb
|
|
52
|
+
- lib/views/form.html.haml
|
|
53
|
+
- lib/views/full.html.haml
|
|
54
|
+
- lib/views/preview.html.haml
|
|
55
|
+
- scratch_pad-node_extensions-table.gemspec
|
|
56
|
+
has_rdoc: true
|
|
57
|
+
homepage: https://github.com/ravinggenius/scratch_pad-node_extensions-table
|
|
58
|
+
licenses: []
|
|
59
|
+
|
|
60
|
+
post_install_message:
|
|
61
|
+
rdoc_options: []
|
|
62
|
+
|
|
63
|
+
require_paths:
|
|
64
|
+
- lib
|
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
|
+
none: false
|
|
67
|
+
requirements:
|
|
68
|
+
- - ">="
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: "0"
|
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
|
+
none: false
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: "0"
|
|
77
|
+
requirements: []
|
|
78
|
+
|
|
79
|
+
rubyforge_project: scratch_pad-node_extensions-table
|
|
80
|
+
rubygems_version: 1.5.2
|
|
81
|
+
signing_key:
|
|
82
|
+
specification_version: 3
|
|
83
|
+
summary: NodeExtension gem for ScratchPad
|
|
84
|
+
test_files: []
|
|
85
|
+
|
metadata.gz.sig
ADDED