cedar 0.2.3.pre → 0.2.4.pre

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: f7d74b293b2538cffefe506978bd5c83c6f7e125
4
- data.tar.gz: bc52ad897fcc6eaa77dc2bf73b048fe3d58b8d8f
3
+ metadata.gz: 053f177a70a3eac7f6cd4a7a2078d428c984eb9d
4
+ data.tar.gz: 35cc270f62d73fb0cc826a3b8e1c0dd6bb6c5e5b
5
5
  SHA512:
6
- metadata.gz: ed3977de0160ec57f098be971cc9aab6ecc163cdd0cd84c326772051ff604d46b650b3c84927ab73a733f1998a5aa8875fc37684fcf1d857a489d61422852860
7
- data.tar.gz: 60f2081e495fb9080b125e78c1bcc67f01ae4118d82848ce709bfb21e64db5583495f43dfe336eaadaf5274824c17f5046b87f82b43592e86c39230e870086b4
6
+ metadata.gz: 2f43f45836bd545b8625c719aec548979752a326e0746b76bfa9b8029d0a7be6a3e0df33dad8e848eb3735f515166496fe333752c5689b0825b23c8a9247d7c7
7
+ data.tar.gz: 279d832f1bdd09192fd6dc52d381756d3bfe72e742800e0d53a63b175029cec046a5382ba960c764c7126198ee2338d13f55bdbc605d82c6861ecdcf87d270bf
@@ -61,7 +61,17 @@ Handlebars.registerHelper('cedar', function(options) {
61
61
  // If rendered element exists than insert the content
62
62
  var renderedEl = document.getElementById(outputEl.id);
63
63
  if (renderedEl !== null) {
64
- renderedEl.innerHTML = output;
64
+ var parentEl = renderedEl.parentNode;
65
+ var tempEl = document.createElement("div");
66
+ tempEl.innerHTML = output;
67
+
68
+ // Insert content node by node and then remove the existing element
69
+ var nodeList = tempEl.childNodes;
70
+ var nodeListLength = nodeList.length;
71
+ for(var i = 0; i < nodeListLength; i++) {
72
+ parentEl.insertBefore(nodeList[0], renderedEl);
73
+ }
74
+ parentEl.removeChild(renderedEl);
65
75
  }
66
76
  });
67
77
 
@@ -1,123 +1,7 @@
1
- /**
2
- * Styles particular to the CMS when in "edit-mode" while viewing a front-end page.
3
- * @browsers ALL
4
- **/
1
+ /* This file should be used for any Rails-specific Sass code */
5
2
 
6
- .cedar-cms-editable {
7
- position: relative !important;
8
- display: inline-block !important;
9
- min-width: 22px !important;
10
- min-height: 22px !important;
11
- vertical-align: middle;
12
- font-size: inherit !important;
13
- color: inherit !important;
14
- background: inherit !important;
15
- width: auto !important;
16
- height: auto !important;
17
- margin: 0 !important;
18
- }
19
-
20
- .cedar-cms-editable:before {
21
- content: "";
22
- position: absolute;
23
- top: 0;
24
- left: 0;
25
- width: 100%;
26
- height: 100%;
27
- border: 1px dotted #F65126 !important;
28
- box-sizing: border-box;
29
- }
30
-
31
- .cedar-cms-edit-tools {
32
- font-family: Arial, sans-serif !important;
33
- position: absolute !important;
34
- top: 0 !important;
35
- right: -18px !important;
36
- display: block !important;
37
- font-size: 10px !important;
38
- line-height: 1.2 !important;
39
- text-align: left !important;
40
- float: none !important;
41
- background: none !important;
42
- margin: 0 !important;
43
- height: 22px !important;
44
- z-index: 9;
45
- }
46
-
47
- .cedar-cms-edit-tools a {
48
- color: #F26521 !important;
49
- text-decoration: none !important;
50
- }
51
-
52
- .cedar-cms-edit-tools a:hover {
53
- color: #FA8A2D !important;
54
- text-decoration: none !important;
55
- }
56
-
57
- .cedar-cms-edit-label {
58
- color: #F26521 !important;
59
- text-transform: uppercase;
60
- font-size: 10px;
61
- padding: 0 6px;
62
- }
63
-
64
- .cedar-cms-edit-tools .cedar-cms-edit-icon,
65
- .cedar-cms-edit-tools .cedar-cms-edit-icon:hover {
66
- display: block;
67
- position: absolute;
68
- top: 0;
69
- right: 0;
70
- height: 18px;
71
- background-color: transparent !important;
72
- padding: 0;
73
- margin: 0;
74
- }
75
-
76
- /* 4 classes to display icons */
3
+ @import 'cedar_source.css';
77
4
 
78
- .cedar-cms-edit-tools.spacer {
79
- height: 20px;
80
- }
81
-
82
- .cedar-cms-edit-tools.left-align .cedar-cms-edit-icon {
83
- right: auto;
84
- left: 0;
85
- }
86
-
87
- /* Standalone icons */
88
5
  .cedar-cms-icon {
89
- width: 18px;
90
- height: 18px;
91
- line-height: 18px;
92
- display: inline-block;
93
- vertical-align: middle;
94
- background: transparent asset-url("cedar-display-tools-sprite.png") scroll no-repeat 0 0;
95
- }
96
-
97
- .cedar-cms-icon-right {
98
- margin-left: 2px;
99
- }
100
-
101
-
102
- .cedar-cms-icon-edit {
103
- background-position: -89px -20px;
104
- }
105
-
106
- /* Action Links */
107
- .cedar-cms-global-actions {
108
- position: absolute;
109
- top: 0;
110
- right: 0;
111
- text-align: left !important;
112
- }
113
- .cedar-cms-global-action {
114
- display: inline-block !important;
115
- color: #F65126 !important;
116
- background: #FFF !important;
117
- line-height: 18px !important;
118
- padding: 3px 4px 3px 3px !important;
119
- text-decoration: none !important;
120
- }
121
- .cedar-cms-global-action * {
122
- vertical-align: top;
6
+ background-image: asset-url("cedar-display-tools-sprite.png");
123
7
  }
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Styles particular to the CMS when in "edit-mode" while viewing a front-end page.
3
+ * @browsers ALL
4
+ **/
5
+
6
+ .cedar-cms-editable {
7
+ position: relative !important;
8
+ display: inline-block !important;
9
+ min-width: 22px !important;
10
+ min-height: 22px !important;
11
+ vertical-align: top;
12
+ font-size: inherit !important;
13
+ color: inherit !important;
14
+ background: inherit !important;
15
+ width: auto !important;
16
+ height: auto !important;
17
+ margin: 0 !important;
18
+ }
19
+
20
+ .cedar-cms-editable:before {
21
+ content: "";
22
+ position: absolute;
23
+ top: 0;
24
+ left: 0;
25
+ width: 100%;
26
+ height: 100%;
27
+ border: 1px dotted #F65126 !important;
28
+ box-sizing: border-box;
29
+ }
30
+
31
+ .cedar-cms-edit-tools {
32
+ font-family: Arial, sans-serif !important;
33
+ position: absolute !important;
34
+ top: 0 !important;
35
+ right: -18px !important;
36
+ display: block !important;
37
+ font-size: 10px !important;
38
+ line-height: 1.2 !important;
39
+ text-align: left !important;
40
+ float: none !important;
41
+ background: none !important;
42
+ margin: 0 !important;
43
+ height: 22px !important;
44
+ z-index: 9;
45
+ }
46
+
47
+ .cedar-cms-edit-tools a {
48
+ color: #F26521 !important;
49
+ text-decoration: none !important;
50
+ }
51
+
52
+ .cedar-cms-edit-tools a:hover {
53
+ color: #FA8A2D !important;
54
+ text-decoration: none !important;
55
+ }
56
+
57
+ .cedar-cms-edit-label {
58
+ color: #F26521 !important;
59
+ text-transform: uppercase;
60
+ font-size: 10px;
61
+ padding: 0 6px;
62
+ }
63
+
64
+ .cedar-cms-edit-tools .cedar-cms-edit-icon,
65
+ .cedar-cms-edit-tools .cedar-cms-edit-icon:hover {
66
+ display: block;
67
+ position: absolute;
68
+ top: 0;
69
+ right: 0;
70
+ height: 18px;
71
+ background-color: transparent !important;
72
+ padding: 0;
73
+ margin: 0;
74
+ }
75
+
76
+ /* 4 classes to display icons */
77
+
78
+ .cedar-cms-edit-tools.spacer {
79
+ height: 20px;
80
+ }
81
+
82
+ .cedar-cms-edit-tools.left-align .cedar-cms-edit-icon {
83
+ right: auto;
84
+ left: 0;
85
+ }
86
+
87
+ /* Standalone icons */
88
+ .cedar-cms-icon {
89
+ width: 18px;
90
+ height: 18px;
91
+ line-height: 18px;
92
+ display: inline-block;
93
+ vertical-align: middle;
94
+ background: transparent url("../img/cedar-display-tools-sprite.png") scroll no-repeat 0 0;
95
+ }
96
+
97
+ .cedar-cms-icon-right {
98
+ margin-left: 2px;
99
+ }
100
+
101
+
102
+ .cedar-cms-icon-edit {
103
+ background-position: -89px -20px;
104
+ }
105
+
106
+ /* Action Links */
107
+ .cedar-cms-global-actions {
108
+ position: absolute;
109
+ top: 0;
110
+ right: 0;
111
+ text-align: left !important;
112
+ }
113
+ .cedar-cms-global-action {
114
+ display: inline-block !important;
115
+ color: #F65126 !important;
116
+ background: #FFF !important;
117
+ line-height: 18px !important;
118
+ padding: 3px 4px 3px 3px !important;
119
+ text-decoration: none !important;
120
+ }
121
+ .cedar-cms-global-action * {
122
+ vertical-align: top;
123
+ }
data/lib/cedar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cedar
2
- VERSION = "0.2.3.pre"
2
+ VERSION = "0.2.4.pre"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cedar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.pre
4
+ version: 0.2.4.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Murdock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -45,19 +45,13 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
49
- - Gemfile
50
- - Gemfile.lock
51
48
  - LICENSE.txt
52
49
  - README.md
53
- - Rakefile
54
- - cedar.gemspec
55
50
  - lib/assets/images/cedar-display-tools-sprite.png
56
51
  - lib/assets/javascripts/cedar.handlebars.js
57
52
  - lib/assets/javascripts/cedar.js
58
- - lib/assets/javascripts/cedar.marionette.js
59
- - lib/assets/javascripts/cedarInit.js.erb
60
53
  - lib/assets/stylesheets/cedar.scss
54
+ - lib/assets/stylesheets/cedar_source.css
61
55
  - lib/cedar.rb
62
56
  - lib/cedar/version.rb
63
57
  homepage: http://plyinteractive.com
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- pkg/
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in cedar.gemspec
4
- gemspec
data/Gemfile.lock DELETED
@@ -1,17 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- cedar (0.2.3.pre)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- rake (10.4.2)
10
-
11
- PLATFORMS
12
- ruby
13
-
14
- DEPENDENCIES
15
- bundler (~> 1.7)
16
- cedar!
17
- rake (~> 10.0)
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
data/cedar.gemspec DELETED
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'cedar/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "cedar"
8
- spec.version = Cedar::VERSION
9
- spec.authors = ["Jed Murdock"]
10
- spec.email = ["jedmurdock@gmail.com"]
11
- spec.summary = "The Cedar/Ply Asset Gem"
12
- spec.description = "Pre-Release Cedar/Ply CaaS Asset Gem"
13
- spec.homepage = "http://plyinteractive.com"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.7"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- end
@@ -1,25 +0,0 @@
1
- // Marionette
2
- var CedarMarionetteHeader = Backbone.Marionette.ItemView.extend({
3
- template : function(serialized_model) {
4
- return _.template('<h1><%= content %></h1>')(serialized_model);
5
- }
6
- });
7
- var CedarMarionetteParagraph = Backbone.Marionette.ItemView.extend({
8
- template : function(serialized_model) {
9
- return _.template('<p><%= content %></p>')(serialized_model);
10
- }
11
- });
12
-
13
- var CedarMarionetteLayout = Backbone.Marionette.LayoutView.extend({
14
- template: '#layout-view-template',
15
-
16
- regions: {
17
- cedarHeading: '.js-cedar-heading',
18
- anotherParagraph: '.js-cedar-paragraph'
19
- },
20
-
21
- onRender: function() {
22
- this.cedarHeading.show(new CedarMarionetteHeader({model: this.options.heading}))
23
- this.anotherParagraph.show(new CedarMarionetteParagraph({model: this.options.introText}))
24
- }
25
- });
@@ -1,6 +0,0 @@
1
- // for intergration demonstration only - not currently used
2
-
3
- /*
4
- Cedar.config.api = '<%= Rails.application.routes.url_helpers.cedar_index_path %>';
5
- Cedar.config.server = '<%= Cedar::Application.config.cedar_server %>';
6
- */