scrivito_table_widget 0.6.0 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad1b6d8a8f9b3da895b9b3fba02b394e580aa5d0
4
- data.tar.gz: 852d9095b40fdb8312ba7bb48d7f7ee69c8aeec1
3
+ metadata.gz: f3e19b94eda1188a9089c8a9f0bf8a0a923f12c3
4
+ data.tar.gz: 8fadd7d8361c3688e1b74501aa112cfac34ecf3b
5
5
  SHA512:
6
- metadata.gz: 73e719e5a1c8fc49e7ee29b553b2eab09163a2c06dc65f56b862455d8b6faedcc93f7bd35b72652a4160292c7b67e5bdb4af44ae6e5994ac1da7cdedd47964ee
7
- data.tar.gz: 7a287d771ebee0272453b886a5b133dd22347db12b4d381e636a16ff1a773a137ab99cacc54e90d86680e2dd446e3e791e77a6a282200030b4a35ebaffe7279e
6
+ metadata.gz: bc9398fb436f42cf4efdac05336397f72f910952143df3d222c7205bea75b027434cb6a4a5bb01c29ecb19114fcdd7843574c4c496c0397ad08ed9aba475caaa
7
+ data.tar.gz: 22da682c64d17251d4874077e157a07193c706bc8d17d0bfda42585c53dd8656da30a2d0be635b5c3a6f53c3ff7fdc4e4c289ba37761267242c74803537f4ced
data/Rakefile CHANGED
@@ -14,8 +14,4 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
-
18
-
19
-
20
17
  Bundler::GemHelper.install_tasks
21
-
@@ -22,7 +22,7 @@
22
22
  };
23
23
 
24
24
  scrivito.on('content', function() {
25
- return scrivito.define_editor('toggle_button_editor', table_editor);
25
+ return scrivito.define_editor('table_editor', table_editor);
26
26
  });
27
27
 
28
28
  })(jQuery, this);
@@ -1,3 +1,15 @@
1
1
  class TableWidget < Widget
2
- attribute :table, :html, default: "<table class='table'><thead><tr><th>Headline</th><th>Headline</th></tr></thead><tbod><tr><td>Content</td><td>Content</td></tr><tr><td>Content</td><td>Content</td></tr></tbody></table>"
2
+ attribute :table, :html
3
+
4
+ default_for :table do |a,b|
5
+ "<table class='table'>
6
+ <thead>
7
+ <tr><th>Headline</th><th>Headline</th></tr><
8
+ /thead>
9
+ <tbody>
10
+ <tr><td>Content</td><td>Content</td></tr>
11
+ <tr><td>Content</td><td>Content</td></tr>
12
+ </tbody>
13
+ </table>"
14
+ end
3
15
  end
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTableWidget
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_table_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-23 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito