cedar 0.1.0.pre → 0.1.1.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 +4 -4
- data/README.md +34 -22
- data/lib/assets/javascripts/cedar.js +30 -15
- data/lib/assets/stylesheets/cedar.scss +29 -14
- data/lib/cedar/version.rb +1 -1
- data/pkg/cedar-0.1.0.pre.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3e41500eb184aac2c9bc274cc802fffa66aee72
|
4
|
+
data.tar.gz: e58e773a697d69fe5601792b818fc84cad7ef7f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c81982f965d4ffce99a1c2f4d6ba85724688ef98c703c96a017fe4375e99c286d6efe2ce09c7c428f716d4f7cca5e6d6fa0dd29762ed4763e900507b68b8a44
|
7
|
+
data.tar.gz: 811ade0d0b27c6f2f7afb06aa7dd4584a92a9117c8b912fde7d8bdda66e5d925fa845df33375ba2beee03b7d9d6c1ae036e75c9743c12883f69a3c54e5c82ec0
|
data/README.md
CHANGED
@@ -18,40 +18,52 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install cedar
|
20
20
|
|
21
|
-
## Usage
|
22
21
|
|
23
22
|
|
24
|
-
##
|
23
|
+
## Ply Dev Notes
|
25
24
|
|
26
|
-
1. Fork it ( https://github.com/[my-github-username]/cedar/fork )
|
27
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
28
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
29
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
30
|
-
5. Create a new Pull Request
|
31
25
|
|
26
|
+
add yourself as a user at:
|
32
27
|
|
33
|
-
|
28
|
+
https://rubygems.org/gems/cedar
|
34
29
|
|
35
|
-
|
36
|
-
increment version.rb and Gemspec in target
|
37
|
-
rake build
|
38
|
-
gem push pkg/cedar-x.x.x.gem
|
30
|
+
then do the following to save your stuff:
|
39
31
|
|
32
|
+
```
|
33
|
+
curl -u your_rubygems_username https://rubygems.org/api/v1/api_key.yaml >
|
34
|
+
~/.gem/credentials; chmod 0600 ~/.gem/credentials
|
35
|
+
```
|
40
36
|
|
41
|
-
|
37
|
+
someone who already is a project owner then will add you:
|
42
38
|
|
43
|
-
|
39
|
+
```
|
40
|
+
gem owner cedar -a foo@example.com
|
41
|
+
```
|
44
42
|
|
45
|
-
|
46
|
-
~/.gem/credentials; chmod 0600 ~/.gem/credentials
|
43
|
+
once you've updated the code, do the following 3 steps to publish:
|
47
44
|
|
48
|
-
gem build cedar.gemspec
|
49
45
|
|
50
|
-
|
46
|
+
1) increment `version.rb` and `Gemspec` in target
|
51
47
|
|
52
|
-
|
48
|
+
2) `rake build`
|
53
49
|
|
54
|
-
gem
|
50
|
+
3) `gem push pkg/cedar-x.x.x.gem`
|
55
51
|
|
56
|
-
|
57
|
-
|
52
|
+
|
53
|
+
|
54
|
+
misc:
|
55
|
+
|
56
|
+
|
57
|
+
to create a new gem:
|
58
|
+
```
|
59
|
+
gem build cedar.gemspec
|
60
|
+
```
|
61
|
+
|
62
|
+
to see what's been published:
|
63
|
+
```
|
64
|
+
gem list -r --pre cedar
|
65
|
+
```
|
66
|
+
to install outside of a project:
|
67
|
+
```
|
68
|
+
gem install --pre cedar
|
69
|
+
```
|
@@ -31,10 +31,16 @@ Cedar.Init = function() {
|
|
31
31
|
}
|
32
32
|
|
33
33
|
if (Cedar.auth.isEditMode()) {
|
34
|
-
|
35
|
-
var
|
36
|
-
|
37
|
-
|
34
|
+
$(document).ready(function() {
|
35
|
+
var $body = $('body');
|
36
|
+
var globalActions = '<div class="cedar-cms-global-actions">' +
|
37
|
+
// '<a href="#" onclick="window.location.reload(true);return false;">[refresh]</a>' +
|
38
|
+
'<a class="cedar-cms-global-action" href="' + Cedar.auth.getLogOffURL() + '">' +
|
39
|
+
'<span class="cedar-cms-icon cedar-cms-icon-edit"></span> ' +
|
40
|
+
'<span class="cedar-cms-global-action-label">Log Off Cedar</span>' +
|
41
|
+
'</a>' +
|
42
|
+
'</div>';
|
43
|
+
$body.append(globalActions);
|
38
44
|
});
|
39
45
|
}
|
40
46
|
|
@@ -68,12 +74,15 @@ Cedar.Auth.prototype.getLogOffURL = function() {
|
|
68
74
|
|
69
75
|
// adapted from stackoverflow: http://stackoverflow.com/questions/1634748/how-can-i-delete-a-query-string-parameter-in-javascript
|
70
76
|
Cedar.Auth.prototype.removeURLParameter = function(url, parameter) {
|
77
|
+
var splitUrl = url.split('#');
|
78
|
+
var serverUrl = splitUrl[0];
|
79
|
+
var clientUrl = splitUrl[1];
|
71
80
|
//prefer to use l.search if you have a location/link object
|
72
|
-
var
|
73
|
-
if (
|
81
|
+
var splitServerUrl= serverUrl.split('?');
|
82
|
+
if (splitServerUrl.length>=2) {
|
74
83
|
|
75
|
-
var prefix= encodeURIComponent(parameter); //+'=';
|
76
|
-
var pars=
|
84
|
+
var prefix = encodeURIComponent(parameter); //+'=';
|
85
|
+
var pars = splitServerUrl[1].split(/[&;]/g);
|
77
86
|
|
78
87
|
//reverse iteration as may be destructive
|
79
88
|
for (var i= pars.length; i-- > 0;) {
|
@@ -83,11 +92,11 @@ Cedar.Auth.prototype.removeURLParameter = function(url, parameter) {
|
|
83
92
|
}
|
84
93
|
}
|
85
94
|
|
86
|
-
|
95
|
+
var updatedServerUrl= splitServerUrl[0];
|
87
96
|
if (pars.length > 0) {
|
88
|
-
|
97
|
+
updatedServerUrl += '?'+pars.join('&');
|
89
98
|
}
|
90
|
-
return
|
99
|
+
return updatedServerUrl + "#" + clientUrl;
|
91
100
|
} else {
|
92
101
|
return url;
|
93
102
|
}
|
@@ -215,11 +224,17 @@ Cedar.ContentEntry.prototype.render = function() {
|
|
215
224
|
|
216
225
|
// styling for edit box
|
217
226
|
Cedar.ContentEntry.prototype.getEditOpen = function(id) {
|
218
|
-
var
|
219
|
-
|
227
|
+
var jsString = "if(event.stopPropagation){event.stopPropagation();}" +
|
228
|
+
"event.cancelBubble=true;" +
|
229
|
+
"window.location.href=this.attributes.href.value + \'&referer=' + encodeURIComponent(window.location.href) + '\';" +
|
230
|
+
"return false;";
|
231
|
+
|
232
|
+
var block = '<span class="cedar-cms-editable clearfix">';
|
220
233
|
block += '<span class="cedar-cms-edit-tools">';
|
221
|
-
block += '<a
|
222
|
-
|
234
|
+
block += '<a onclick="' + jsString + '" href="' + Cedar.config.server +
|
235
|
+
'/cmsadmin/EditData?cdr=1&t=ContentEntry&o=' + encodeURIComponent(id) +
|
236
|
+
'" class="cedar-cms-edit-icon cedar-js-edit" >';
|
237
|
+
block += '<i class="cedar-cms-icon cedar-cms-icon-right cedar-cms-icon-edit"></i></a>';
|
223
238
|
block += '</span>';
|
224
239
|
return block;
|
225
240
|
}
|
@@ -3,17 +3,20 @@
|
|
3
3
|
* @browsers ALL
|
4
4
|
**/
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
6
|
.cedar-cms-editable {
|
7
|
+
position: relative;
|
10
8
|
display: inline-block !important;
|
11
|
-
border: 1px dotted #F65126 !important
|
9
|
+
border: 1px dotted #F65126 !important;
|
10
|
+
padding-right: 20px;
|
11
|
+
min-height: 22px;
|
12
|
+
vertical-align: middle;
|
12
13
|
}
|
13
14
|
|
14
15
|
.cedar-cms-edit-tools {
|
15
16
|
font-family: Arial, sans-serif;
|
16
|
-
position:
|
17
|
+
position: absolute;
|
18
|
+
top: 0;
|
19
|
+
right: 0;
|
17
20
|
display: block !important;
|
18
21
|
font-size: 10px !important;
|
19
22
|
line-height: 1.2 !important;
|
@@ -44,9 +47,9 @@
|
|
44
47
|
top: 0;
|
45
48
|
right: 0;
|
46
49
|
height: 18px;
|
47
|
-
|
48
|
-
background-color: #ffddd0 !important;
|
50
|
+
background-color: transparent !important;
|
49
51
|
padding: 0;
|
52
|
+
margin: 1px;
|
50
53
|
}
|
51
54
|
|
52
55
|
/* 4 classes to display icons */
|
@@ -62,24 +65,36 @@
|
|
62
65
|
|
63
66
|
/* Standalone icons */
|
64
67
|
.cedar-cms-icon {
|
65
|
-
min-height: 18px;
|
66
68
|
width: 18px;
|
67
69
|
height: 18px;
|
68
|
-
|
70
|
+
line-height: 18px;
|
69
71
|
display: inline-block;
|
70
72
|
vertical-align: middle;
|
71
|
-
zoom: 1;
|
72
|
-
*display: inline;
|
73
|
-
_height: 18px;
|
74
73
|
background: transparent url(cedar-display-tools-sprite.png) scroll no-repeat 0 0;
|
75
74
|
}
|
76
75
|
|
77
76
|
.cedar-cms-icon-right {
|
78
|
-
|
79
|
-
border-left: 1px solid #fff;
|
77
|
+
margin-left: 2px;
|
80
78
|
}
|
81
79
|
|
82
80
|
|
83
81
|
.cedar-cms-icon-edit {
|
84
82
|
background-position: -89px -20px;
|
85
83
|
}
|
84
|
+
|
85
|
+
/* Action Links */
|
86
|
+
.cedar-cms-global-actions {
|
87
|
+
position: absolute;
|
88
|
+
top: 0;
|
89
|
+
right: 0;
|
90
|
+
}
|
91
|
+
.cedar-cms-global-action {
|
92
|
+
display: inline-block;
|
93
|
+
color: #F65126 !important;
|
94
|
+
background: #FFF;
|
95
|
+
line-height: 18px;
|
96
|
+
padding: 3px 4px 3px 3px;
|
97
|
+
}
|
98
|
+
.cedar-cms-global-action * {
|
99
|
+
vertical-align: top;
|
100
|
+
}
|
data/lib/cedar/version.rb
CHANGED
Binary file
|
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.1.
|
4
|
+
version: 0.1.1.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-02-
|
11
|
+
date: 2015-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- pkg/cedar-0.0.7.pre.gem
|
65
65
|
- pkg/cedar-0.0.8.pre.gem
|
66
66
|
- pkg/cedar-0.0.9.pre.gem
|
67
|
+
- pkg/cedar-0.1.0.pre.gem
|
67
68
|
homepage: http://plyinteractive.com
|
68
69
|
licenses:
|
69
70
|
- MIT
|