scratch_pad-node_extensions-table 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ .redcar
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -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,6 @@
1
+ %div.field
2
+ = form.check_box :has_header_row
3
+ = form.label :has_header_row, 'The first row is headers'
4
+ %div.field
5
+ = form.label :data, 'Cells'
6
+ = form.text_area :data
@@ -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
+ b2RlMRwwGgYKCZImiZPyLGQBGRYMcmF2aW5nZ2VuaXVzMRMwEQYKCZImiZPyLGQB
16
+ GRYDY29tMB4XDTExMDEzMTAyMzI1MloXDTEyMDEzMTAyMzI1MlowRTEQMA4GA1UE
17
+ AwwHcmdfY29kZTEcMBoGCgmSJomT8ixkARkWDHJhdmluZ2dlbml1czETMBEGCgmS
18
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMBt
19
+ UkaBJrNx3C6klKOoWtCEL+t+jZEdov0FU7Oos0jYceQ04u5SXYYm/t6mw4L5WvEQ
20
+ NoDaUGFQ3VS9gIKMuosMUIAOsw8pUGA4OeSkIDaj8Z1QgjYiXJTNYia1Vt0cbeOa
21
+ OCUVzDOgFb/GT3RDV3ZaOuuTCVTTeid8IwbPNseu/n5paS8HEHTla8D7L5bHFta7
22
+ p2RuKD09dvLYIwm+zrrMGHf1qN8ASq2EV9G8xwQVCXX8fPbnW62GSvbnRqoao7Mh
23
+ SQDY5GJlC/16gMMpoMdkaqVojXUeo+hQZzliVcJvqg0QjhcYxCGlyCgtTdCEWL+y
24
+ fA2XoEEHM5t8g1JWzMkCAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQU5tcW
25
+ zeGngxI/7uKRz8ZLkubhDn0wCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IB
26
+ AQCLyf/Qko0uooWPFEgkot/W4pcpkXnyYpH+5FfBN36XQcpkD6Ky5J6Wjej6ZqfA
27
+ umvfF/CK03N3S52axZLHNEunJn19NVJ871RNMViMjJH5qzp8CJcNksdVctcwztwD
28
+ /0mmYu+vTfvJ4DIg5Q7vvTdS3WriewDc3APaa3la93ZRIEwbQjJASoS0EEAr1pw0
29
+ WKoA5gx4BqPJHT0QH4LE0MQoE4XB8I/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
@@ -0,0 +1,2 @@
1
+ ���!m�������M�Ų���&�@�p�#�7r�q P�Ub���&���|��"ov�LÙ�4�dR^���G�(�(���
2
+ \�&���n� �$�����n��|���srn�l�H�ՙ-ei"�c�PXXW��lO@dB����v�Z�l�����j��z��&�f0�ƹ�b��l��^e �����pR�@���6���1C�q���.�4��52ƾ���+ d�FV���\#�'v� �ta}op�w�#����