ende 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/component.json +4 -2
- data/ende.gemspec +1 -0
- data/lib/assets/javascripts/aura/extensions/devise.js.coffee +94 -15
- data/lib/assets/javascripts/aura/extensions/routes.js.coffee +21 -0
- data/lib/assets/javascripts/aura/extensions/states.js.coffee +3 -1
- data/lib/assets/javascripts/aura/extensions/widget/eventable.js.coffee +19 -21
- data/lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee +17 -1
- data/lib/assets/javascripts/config/initializers/jquery.js.coffee +4 -3
- data/lib/assets/javascripts/config/initializers/load_components.js.coffee +19 -0
- data/lib/assets/javascripts/ende.js.coffee +3 -1
- data/lib/assets/javascripts/widgets/authenticator/main.js.coffee +3 -3
- data/lib/assets/javascripts/widgets/viewer/main.js.coffee +189 -120
- data/lib/ende/users_controller_extensions.rb +14 -0
- data/lib/ende/version.rb +1 -1
- data/lib/ende.rb +5 -0
- data/vendor/assets/components/KapIT-observe-utils/component.json +16 -0
- data/vendor/assets/components/KapIT-observe-utils/lib/observe-utils.js +780 -0
- data/vendor/assets/components/chaijs-assertion-error/component.json +18 -0
- data/vendor/assets/components/chaijs-assertion-error/index.js +110 -0
- data/vendor/assets/components/chaijs-chai/component.json +47 -0
- data/vendor/assets/components/chaijs-chai/index.js +1 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/assertion.js +130 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/core/assertions.js +1270 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/interface/assert.js +1080 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/interface/expect.js +12 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/interface/should.js +76 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +94 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/addMethod.js +37 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/addProperty.js +40 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/flag.js +32 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getActual.js +19 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +25 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getMessage.js +49 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getName.js +20 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getPathValue.js +102 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/getProperties.js +35 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/index.js +108 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/objDisplay.js +48 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +51 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +54 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/test.js +26 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/transferFlags.js +44 -0
- data/vendor/assets/components/chaijs-chai/lib/chai/utils/type.js +45 -0
- data/vendor/assets/components/chaijs-chai/lib/chai.js +80 -0
- data/vendor/assets/components/chaijs-deep-eql/component.json +18 -0
- data/vendor/assets/components/chaijs-deep-eql/lib/eql.js +257 -0
- data/vendor/assets/components/chaijs-type-detect/component.json +16 -0
- data/vendor/assets/components/chaijs-type-detect/lib/type.js +142 -0
- data/vendor/assets/components/component-bind/component.json +14 -0
- data/vendor/assets/components/component-bind/index.js +24 -0
- data/vendor/assets/components/component-delegate/component.json +19 -0
- data/vendor/assets/components/component-delegate/index.js +42 -0
- data/vendor/assets/components/component-event/component.json +13 -0
- data/vendor/assets/components/component-event/index.js +40 -0
- data/vendor/assets/components/component-jquery/component.json +14 -0
- data/vendor/assets/components/component-jquery/index.js +9601 -0
- data/vendor/assets/components/component-link-delegate/component.json +23 -0
- data/vendor/assets/components/component-link-delegate/index.js +60 -0
- data/vendor/assets/components/component-matches-selector/component.json +20 -0
- data/vendor/assets/components/component-matches-selector/index.js +45 -0
- data/vendor/assets/components/component-query/component.json +21 -0
- data/vendor/assets/components/component-query/index.js +21 -0
- data/vendor/assets/components/component-type/component.json +18 -0
- data/vendor/assets/components/component-type/index.js +32 -0
- data/vendor/assets/components/component-url/component.json +17 -0
- data/vendor/assets/components/component-url/index.js +63 -0
- data/vendor/assets/components/discore-closest/component.json +14 -0
- data/vendor/assets/components/discore-closest/index.js +18 -0
- data/vendor/assets/components/indefinido-advisable/component.json +21 -0
- data/vendor/assets/components/indefinido-advisable/index.js +1 -0
- data/vendor/assets/components/indefinido-advisable/lib/advisable.js +60 -0
- data/vendor/assets/components/indefinido-indemma/component.json +40 -0
- data/vendor/assets/components/indefinido-indemma/index.js +1 -0
- data/vendor/assets/components/indefinido-indemma/lib/extensions/rivets.js +23 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/associable.js +217 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/maid.js +24 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/resource.js +104 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/rest.js +36 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/restfulable.js +326 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/scopable.js +279 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/translationable.js +19 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/validatable.js +216 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/associated.js +30 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/confirmation.js +19 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/cpf.js +60 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/presence.js +19 -0
- data/vendor/assets/components/indefinido-indemma/lib/record/validations/remote.js +71 -0
- data/vendor/assets/components/indefinido-indemma/lib/record.js +167 -0
- data/vendor/assets/components/indefinido-indemma/vendor/sinon.js +4290 -0
- data/vendor/assets/components/indefinido-indemma/vendor/stampit.js +392 -0
- data/vendor/assets/components/indefinido-observable/component.json +25 -0
- data/vendor/assets/components/indefinido-observable/components/cjohansen-sinon/sinon.js +4290 -0
- data/vendor/assets/components/indefinido-observable/index.js +1 -0
- data/vendor/assets/components/indefinido-observable/lib/adapters/rivets.js +26 -0
- data/vendor/assets/components/indefinido-observable/lib/observable.js +320 -0
- data/vendor/assets/components/indefinido-observable/vendor/shims/accessors-legacy.js +92 -0
- data/vendor/assets/components/indefinido-observable/vendor/shims/accessors.js +173 -0
- data/vendor/assets/components/indefinido-observable/vendor/shims/array.indexOf.js +8 -0
- data/vendor/assets/components/indefinido-observable/vendor/shims/object.create.js +77 -0
- data/vendor/assets/components/mikeric-rivets/component.json +15 -0
- data/vendor/assets/components/mikeric-rivets/dist/rivets.js +1020 -0
- data/vendor/assets/components/paulmillr-es6-shim/component.json +17 -0
- data/vendor/assets/components/paulmillr-es6-shim/es6-shim.js +985 -0
- data/vendor/assets/components/pluma-assimilate/component.json +25 -0
- data/vendor/assets/components/pluma-assimilate/dist/assimilate.js +87 -0
- data/vendor/assets/components/segmentio-extend/component.json +13 -0
- data/vendor/assets/components/segmentio-extend/index.js +15 -0
- data/vendor/assets/javascripts/ende/build.js +30346 -0
- data/vendor/assets/javascripts/jquery/inview.js +125 -0
- data/vendor/assets/javascripts/lennon/lennon.js +184 -0
- metadata +114 -3
- data/lib/tasks/sprite.thor +0 -62
@@ -0,0 +1,125 @@
|
|
1
|
+
/**
|
2
|
+
* author Christopher Blum
|
3
|
+
* - based on the idea of Remy Sharp, http://remysharp.com/2009/01/26/element-in-view-event-plugin/
|
4
|
+
* - forked from http://github.com/zuk/jquery.inview/
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
var inviewObjects = {}, viewportSize, viewportOffset,
|
8
|
+
d = document, w = window, documentElement = d.documentElement, expando = $.expando;
|
9
|
+
|
10
|
+
$.event.special.inview = {
|
11
|
+
add: function(data) {
|
12
|
+
inviewObjects[data.guid + "-" + this[expando]] = { data: data, $element: $(this) };
|
13
|
+
},
|
14
|
+
|
15
|
+
remove: function(data) {
|
16
|
+
try { delete inviewObjects[data.guid + "-" + this[expando]]; } catch(e) {}
|
17
|
+
}
|
18
|
+
};
|
19
|
+
|
20
|
+
function getViewportSize() {
|
21
|
+
var mode, domObject, size = { height: w.innerHeight, width: w.innerWidth };
|
22
|
+
|
23
|
+
// if this is correct then return it. iPad has compat Mode, so will
|
24
|
+
// go into check clientHeight/clientWidth (which has the wrong value).
|
25
|
+
if (!size.height) {
|
26
|
+
mode = d.compatMode;
|
27
|
+
if (mode || !$.support.boxModel) { // IE, Gecko
|
28
|
+
domObject = mode === 'CSS1Compat' ?
|
29
|
+
documentElement : // Standards
|
30
|
+
d.body; // Quirks
|
31
|
+
size = {
|
32
|
+
height: domObject.clientHeight,
|
33
|
+
width: domObject.clientWidth
|
34
|
+
};
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
return size;
|
39
|
+
}
|
40
|
+
|
41
|
+
function getViewportOffset() {
|
42
|
+
return {
|
43
|
+
top: w.pageYOffset || documentElement.scrollTop || d.body.scrollTop,
|
44
|
+
left: w.pageXOffset || documentElement.scrollLeft || d.body.scrollLeft
|
45
|
+
};
|
46
|
+
}
|
47
|
+
|
48
|
+
function checkInView() {
|
49
|
+
var $elements = $(), elementsLength, i = 0;
|
50
|
+
|
51
|
+
$.each(inviewObjects, function(i, inviewObject) {
|
52
|
+
var selector = inviewObject.data.selector,
|
53
|
+
$element = inviewObject.$element;
|
54
|
+
$elements = $elements.add(selector ? $element.find(selector) : $element);
|
55
|
+
});
|
56
|
+
|
57
|
+
elementsLength = $elements.length;
|
58
|
+
if (elementsLength) {
|
59
|
+
viewportSize = viewportSize || getViewportSize();
|
60
|
+
viewportOffset = viewportOffset || getViewportOffset();
|
61
|
+
|
62
|
+
for (; i<elementsLength; i++) {
|
63
|
+
// Ignore elements that are not in the DOM tree
|
64
|
+
if (!$.contains(documentElement, $elements[i])) {
|
65
|
+
continue;
|
66
|
+
}
|
67
|
+
|
68
|
+
var $element = $($elements[i]),
|
69
|
+
elementSize = { height: $element.height(), width: $element.width() },
|
70
|
+
elementOffset = $element.offset(),
|
71
|
+
inView = $element.data('inview'),
|
72
|
+
visiblePartX,
|
73
|
+
visiblePartY,
|
74
|
+
visiblePartsMerged;
|
75
|
+
|
76
|
+
// Don't ask me why because I haven't figured out yet:
|
77
|
+
// viewportOffset and viewportSize are sometimes suddenly null in Firefox 5.
|
78
|
+
// Even though it sounds weird:
|
79
|
+
// It seems that the execution of this function is interferred by the onresize/onscroll event
|
80
|
+
// where viewportOffset and viewportSize are unset
|
81
|
+
if (!viewportOffset || !viewportSize) {
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
|
85
|
+
if (elementOffset.top + elementSize.height > viewportOffset.top &&
|
86
|
+
elementOffset.top < viewportOffset.top + viewportSize.height &&
|
87
|
+
elementOffset.left + elementSize.width > viewportOffset.left &&
|
88
|
+
elementOffset.left < viewportOffset.left + viewportSize.width) {
|
89
|
+
visiblePartX = (viewportOffset.left > elementOffset.left ?
|
90
|
+
'right' : (viewportOffset.left + viewportSize.width) < (elementOffset.left + elementSize.width) ?
|
91
|
+
'left' : 'both');
|
92
|
+
visiblePartY = (viewportOffset.top > elementOffset.top ?
|
93
|
+
'bottom' : (viewportOffset.top + viewportSize.height) < (elementOffset.top + elementSize.height) ?
|
94
|
+
'top' : 'both');
|
95
|
+
visiblePartsMerged = visiblePartX + "-" + visiblePartY;
|
96
|
+
if (!inView || inView !== visiblePartsMerged) {
|
97
|
+
$element.data('inview', visiblePartsMerged).trigger('inview', [true, visiblePartX, visiblePartY]);
|
98
|
+
}
|
99
|
+
} else if (inView) {
|
100
|
+
$element.data('inview', false).trigger('inview', [false]);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
$(w).bind("scroll resize", function() {
|
107
|
+
viewportSize = viewportOffset = null;
|
108
|
+
});
|
109
|
+
|
110
|
+
// IE < 9 scrolls to focused elements without firing the "scroll" event
|
111
|
+
if (!documentElement.addEventListener && documentElement.attachEvent) {
|
112
|
+
documentElement.attachEvent("onfocusin", function() {
|
113
|
+
viewportOffset = null;
|
114
|
+
});
|
115
|
+
}
|
116
|
+
|
117
|
+
// Use setInterval in order to also make sure this captures elements within
|
118
|
+
// "overflow:scroll" elements or elements that appeared in the dom tree due to
|
119
|
+
// dom manipulation and reflow
|
120
|
+
// old: $(window).scroll(checkInView);
|
121
|
+
//
|
122
|
+
// By the way, iOS (iPad, iPhone, ...) seems to not execute, or at least delays
|
123
|
+
// intervals while the user scrolls. Therefore the inview event might fire a bit late there
|
124
|
+
setInterval(checkInView, 250);
|
125
|
+
})(jQuery);
|
@@ -0,0 +1,184 @@
|
|
1
|
+
/*!
|
2
|
+
* Lennon v0.1
|
3
|
+
*
|
4
|
+
* An extremely lightweight router that uses the History API and falls back to hash.
|
5
|
+
*
|
6
|
+
* @author Gabe Hayes <gabriel.hayes@gmail.com>
|
7
|
+
* @copyright 2013, Gabe Hayes
|
8
|
+
*/
|
9
|
+
(function(window, $, Modernizr, undefined) {
|
10
|
+
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
return window.Lennon = function(opts) {
|
14
|
+
|
15
|
+
var current_route,
|
16
|
+
initialized = false,
|
17
|
+
|
18
|
+
options = $.extend({
|
19
|
+
|
20
|
+
//-- determines whether or not the history api is enabled
|
21
|
+
historyEnabled: Modernizr.history,
|
22
|
+
|
23
|
+
//-- a jQuery selector for links that will have routing behavior applied to them
|
24
|
+
linkSelector: 'a[target!=_blank]:not([href^=http])',
|
25
|
+
|
26
|
+
//-- the logger requires error, info and warn methods
|
27
|
+
logger: window.console,
|
28
|
+
|
29
|
+
//-- the publish event that will dispatch the registered event name
|
30
|
+
publishEvent: null
|
31
|
+
|
32
|
+
}, opts),
|
33
|
+
|
34
|
+
routes = [],
|
35
|
+
|
36
|
+
initialize = function(router) {
|
37
|
+
|
38
|
+
var processRoute = function() {
|
39
|
+
router.process();
|
40
|
+
};
|
41
|
+
|
42
|
+
if ( !initialized ) {
|
43
|
+
|
44
|
+
$(document).on('click', options.linkSelector, function() {
|
45
|
+
var $this = $(this),
|
46
|
+
href = $this.attr('href');
|
47
|
+
|
48
|
+
//-- Use pushstate on anchor clicks
|
49
|
+
if ( options.historyEnabled ) {
|
50
|
+
window.history.pushState(null, null, href);
|
51
|
+
processRoute();
|
52
|
+
return false;
|
53
|
+
|
54
|
+
//-- Hashify internal links if history is not available
|
55
|
+
} else {
|
56
|
+
if ( !$this.data('lennonized') ) {
|
57
|
+
$this.attr('href', '/#' + href).data('lennonized', true);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
});
|
61
|
+
|
62
|
+
$(window).on(options.historyEnabled? 'popstate' : 'hashchange', processRoute);
|
63
|
+
initialized = true;
|
64
|
+
}
|
65
|
+
|
66
|
+
};
|
67
|
+
|
68
|
+
return (function() {
|
69
|
+
|
70
|
+
return {
|
71
|
+
define: function(pathName, eventName, exitEventName) {
|
72
|
+
|
73
|
+
var occurence = pathName.match(/:/g) || [],
|
74
|
+
pattern = new RegExp('^' + pathName.replace(/\//g, "\\/").replace(/:(\w*)/g,"(\\w*)") + '$'),
|
75
|
+
route = {
|
76
|
+
eventName: eventName,
|
77
|
+
exitEventName: exitEventName,
|
78
|
+
paramCount: occurence.length,
|
79
|
+
path: pathName,
|
80
|
+
pattern: pattern
|
81
|
+
};
|
82
|
+
|
83
|
+
//-- If the eventName is a string, we require a publishEvent
|
84
|
+
if ( 'string' === typeof eventName && !options.publishEvent ) {
|
85
|
+
throw new Error('Cannot publish the event "' + eventName + '" for the route "' + pathName + '". No publishEvent has been provided.');
|
86
|
+
}
|
87
|
+
|
88
|
+
//-- Add the route
|
89
|
+
options.logger.info('Adding route', pathName, route);
|
90
|
+
routes.push(route);
|
91
|
+
|
92
|
+
//-- Make sure we have initialized
|
93
|
+
initialize(this);
|
94
|
+
},
|
95
|
+
|
96
|
+
dispatch: function(route, context) {
|
97
|
+
var e;
|
98
|
+
|
99
|
+
options.logger.info('Dispatching', route.path, 'with', context);
|
100
|
+
|
101
|
+
//-- Execute the callback
|
102
|
+
if ( 'function' === typeof route.eventName ) {
|
103
|
+
e = route.eventName(context || {});
|
104
|
+
|
105
|
+
//-- Run the publish event
|
106
|
+
} else {
|
107
|
+
e = options.publishEvent(route.eventName, context || {});
|
108
|
+
}
|
109
|
+
|
110
|
+
return e;
|
111
|
+
},
|
112
|
+
|
113
|
+
process: function() {
|
114
|
+
var context = {},
|
115
|
+
i, j,
|
116
|
+
paramKeys,
|
117
|
+
params,
|
118
|
+
path = options.historyEnabled? window.location.pathname : window.location.hash.replace('#', '') || '/';
|
119
|
+
|
120
|
+
//-- If we land on the page with a hash value and history is enabled, redirect to the non-hash page
|
121
|
+
if ( window.location.hash && options.historyEnabled ) {
|
122
|
+
window.location.href = window.location.hash.replace('#', '');
|
123
|
+
|
124
|
+
//-- If we land on the page with a path and history is disabled, redirect to the hash page
|
125
|
+
} else if ( '/' !== window.location.pathname && !options.historyEnabled ) {
|
126
|
+
window.location.href = '/#' + window.location.pathname;
|
127
|
+
}
|
128
|
+
|
129
|
+
//-- Process the route
|
130
|
+
options.logger.info('Processing path', path);
|
131
|
+
for ( i in routes ) {
|
132
|
+
|
133
|
+
//-- See if the currently evaluated route matches the current path
|
134
|
+
params = path.match(routes[i].pattern);
|
135
|
+
|
136
|
+
//-- If there is a match, extract the path values and match them to their variable names for context
|
137
|
+
if ( params ) {
|
138
|
+
paramKeys = routes[i].path.match(/:(\w*)/g,"(\\w*)");
|
139
|
+
for ( j = 1; j <= routes[i].paramCount; j++ ) {
|
140
|
+
context[paramKeys[j - 1].replace(/:/g, '')] = params[j];
|
141
|
+
}
|
142
|
+
|
143
|
+
if ( current_route ) {
|
144
|
+
|
145
|
+
//-- Don't dispatch the route we are already on
|
146
|
+
if ( current_route.path === routes[i].path ) {
|
147
|
+
return false;
|
148
|
+
}
|
149
|
+
|
150
|
+
//-- Dispatch the exit event for the route we are leaving
|
151
|
+
if ( current_route.exitEventName ) {
|
152
|
+
|
153
|
+
options.logger.info('Exiting', current_route.path, 'with', context || {});
|
154
|
+
|
155
|
+
//-- Execute the callback
|
156
|
+
if ( 'function' === typeof current_route.exitEventName ) {
|
157
|
+
current_route.exitEventName(context || {});
|
158
|
+
//-- Run the publish event
|
159
|
+
} else {
|
160
|
+
options.publishEvent(current_route.exitEventName, context || {});
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
//-- Update the current route
|
166
|
+
current_route = routes[i];
|
167
|
+
|
168
|
+
//-- Dispatch
|
169
|
+
return this.dispatch(routes[i], context);
|
170
|
+
}
|
171
|
+
|
172
|
+
}
|
173
|
+
|
174
|
+
//-- No route has been found, hence, nothing dispatched
|
175
|
+
options.logger.warn('No route dispatched');
|
176
|
+
}
|
177
|
+
};
|
178
|
+
}());
|
179
|
+
};
|
180
|
+
}(this, jQuery, Modernizr));
|
181
|
+
|
182
|
+
if ( typeof define === "function" && define.amd ) {
|
183
|
+
define( "Lennon", [], function () { return Lennon; } );
|
184
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ende
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heitor Salazar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: A modular web application engine for rails. Using aurajs for architecture
|
42
56
|
and indemma for resource management by default. The goal is to provide seamlessly
|
43
57
|
integration for web applications and various standard domains by providing default
|
@@ -61,6 +75,7 @@ files:
|
|
61
75
|
- lib/assets/javascripts/aura/extensions/mediator.js
|
62
76
|
- lib/assets/javascripts/aura/extensions/models.js.coffee.erb
|
63
77
|
- lib/assets/javascripts/aura/extensions/rivets.js.coffee
|
78
|
+
- lib/assets/javascripts/aura/extensions/routes.js.coffee
|
64
79
|
- lib/assets/javascripts/aura/extensions/states.js.coffee
|
65
80
|
- lib/assets/javascripts/aura/extensions/widget/eventable.js.coffee
|
66
81
|
- lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee
|
@@ -98,10 +113,106 @@ files:
|
|
98
113
|
- lib/assets/stylesheets/sprite.styl
|
99
114
|
- lib/assets/stylesheets/ssprites.styl
|
100
115
|
- lib/ende.rb
|
116
|
+
- lib/ende/users_controller_extensions.rb
|
101
117
|
- lib/ende/version.rb
|
102
118
|
- lib/tasks/.gitkeep
|
103
119
|
- lib/tasks/component.thor
|
104
|
-
-
|
120
|
+
- vendor/assets/components/KapIT-observe-utils/component.json
|
121
|
+
- vendor/assets/components/KapIT-observe-utils/lib/observe-utils.js
|
122
|
+
- vendor/assets/components/chaijs-assertion-error/component.json
|
123
|
+
- vendor/assets/components/chaijs-assertion-error/index.js
|
124
|
+
- vendor/assets/components/chaijs-chai/component.json
|
125
|
+
- vendor/assets/components/chaijs-chai/index.js
|
126
|
+
- vendor/assets/components/chaijs-chai/lib/chai.js
|
127
|
+
- vendor/assets/components/chaijs-chai/lib/chai/assertion.js
|
128
|
+
- vendor/assets/components/chaijs-chai/lib/chai/core/assertions.js
|
129
|
+
- vendor/assets/components/chaijs-chai/lib/chai/interface/assert.js
|
130
|
+
- vendor/assets/components/chaijs-chai/lib/chai/interface/expect.js
|
131
|
+
- vendor/assets/components/chaijs-chai/lib/chai/interface/should.js
|
132
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/addChainableMethod.js
|
133
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/addMethod.js
|
134
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/addProperty.js
|
135
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/flag.js
|
136
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/getActual.js
|
137
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
|
138
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/getMessage.js
|
139
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/getName.js
|
140
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/getPathValue.js
|
141
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/getProperties.js
|
142
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/index.js
|
143
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/inspect.js
|
144
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/objDisplay.js
|
145
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteMethod.js
|
146
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteProperty.js
|
147
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
|
148
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/transferFlags.js
|
149
|
+
- vendor/assets/components/chaijs-chai/lib/chai/utils/type.js
|
150
|
+
- vendor/assets/components/chaijs-deep-eql/component.json
|
151
|
+
- vendor/assets/components/chaijs-deep-eql/lib/eql.js
|
152
|
+
- vendor/assets/components/chaijs-type-detect/component.json
|
153
|
+
- vendor/assets/components/chaijs-type-detect/lib/type.js
|
154
|
+
- vendor/assets/components/component-bind/component.json
|
155
|
+
- vendor/assets/components/component-bind/index.js
|
156
|
+
- vendor/assets/components/component-delegate/component.json
|
157
|
+
- vendor/assets/components/component-delegate/index.js
|
158
|
+
- vendor/assets/components/component-event/component.json
|
159
|
+
- vendor/assets/components/component-event/index.js
|
160
|
+
- vendor/assets/components/component-jquery/component.json
|
161
|
+
- vendor/assets/components/component-jquery/index.js
|
162
|
+
- vendor/assets/components/component-link-delegate/component.json
|
163
|
+
- vendor/assets/components/component-link-delegate/index.js
|
164
|
+
- vendor/assets/components/component-matches-selector/component.json
|
165
|
+
- vendor/assets/components/component-matches-selector/index.js
|
166
|
+
- vendor/assets/components/component-query/component.json
|
167
|
+
- vendor/assets/components/component-query/index.js
|
168
|
+
- vendor/assets/components/component-type/component.json
|
169
|
+
- vendor/assets/components/component-type/index.js
|
170
|
+
- vendor/assets/components/component-url/component.json
|
171
|
+
- vendor/assets/components/component-url/index.js
|
172
|
+
- vendor/assets/components/discore-closest/component.json
|
173
|
+
- vendor/assets/components/discore-closest/index.js
|
174
|
+
- vendor/assets/components/indefinido-advisable/component.json
|
175
|
+
- vendor/assets/components/indefinido-advisable/index.js
|
176
|
+
- vendor/assets/components/indefinido-advisable/lib/advisable.js
|
177
|
+
- vendor/assets/components/indefinido-indemma/component.json
|
178
|
+
- vendor/assets/components/indefinido-indemma/index.js
|
179
|
+
- vendor/assets/components/indefinido-indemma/lib/extensions/rivets.js
|
180
|
+
- vendor/assets/components/indefinido-indemma/lib/record.js
|
181
|
+
- vendor/assets/components/indefinido-indemma/lib/record/associable.js
|
182
|
+
- vendor/assets/components/indefinido-indemma/lib/record/maid.js
|
183
|
+
- vendor/assets/components/indefinido-indemma/lib/record/resource.js
|
184
|
+
- vendor/assets/components/indefinido-indemma/lib/record/rest.js
|
185
|
+
- vendor/assets/components/indefinido-indemma/lib/record/restfulable.js
|
186
|
+
- vendor/assets/components/indefinido-indemma/lib/record/scopable.js
|
187
|
+
- vendor/assets/components/indefinido-indemma/lib/record/translationable.js
|
188
|
+
- vendor/assets/components/indefinido-indemma/lib/record/validatable.js
|
189
|
+
- vendor/assets/components/indefinido-indemma/lib/record/validations/associated.js
|
190
|
+
- vendor/assets/components/indefinido-indemma/lib/record/validations/confirmation.js
|
191
|
+
- vendor/assets/components/indefinido-indemma/lib/record/validations/cpf.js
|
192
|
+
- vendor/assets/components/indefinido-indemma/lib/record/validations/presence.js
|
193
|
+
- vendor/assets/components/indefinido-indemma/lib/record/validations/remote.js
|
194
|
+
- vendor/assets/components/indefinido-indemma/vendor/sinon.js
|
195
|
+
- vendor/assets/components/indefinido-indemma/vendor/stampit.js
|
196
|
+
- vendor/assets/components/indefinido-observable/component.json
|
197
|
+
- vendor/assets/components/indefinido-observable/components/cjohansen-sinon/sinon.js
|
198
|
+
- vendor/assets/components/indefinido-observable/index.js
|
199
|
+
- vendor/assets/components/indefinido-observable/lib/adapters/rivets.js
|
200
|
+
- vendor/assets/components/indefinido-observable/lib/observable.js
|
201
|
+
- vendor/assets/components/indefinido-observable/vendor/shims/accessors-legacy.js
|
202
|
+
- vendor/assets/components/indefinido-observable/vendor/shims/accessors.js
|
203
|
+
- vendor/assets/components/indefinido-observable/vendor/shims/array.indexOf.js
|
204
|
+
- vendor/assets/components/indefinido-observable/vendor/shims/object.create.js
|
205
|
+
- vendor/assets/components/mikeric-rivets/component.json
|
206
|
+
- vendor/assets/components/mikeric-rivets/dist/rivets.js
|
207
|
+
- vendor/assets/components/paulmillr-es6-shim/component.json
|
208
|
+
- vendor/assets/components/paulmillr-es6-shim/es6-shim.js
|
209
|
+
- vendor/assets/components/pluma-assimilate/component.json
|
210
|
+
- vendor/assets/components/pluma-assimilate/dist/assimilate.js
|
211
|
+
- vendor/assets/components/segmentio-extend/component.json
|
212
|
+
- vendor/assets/components/segmentio-extend/index.js
|
213
|
+
- vendor/assets/javascripts/ende/build.js
|
214
|
+
- vendor/assets/javascripts/jquery/inview.js
|
215
|
+
- vendor/assets/javascripts/lennon/lennon.js
|
105
216
|
- vendor/assets/javascripts/stampit/stampit.js
|
106
217
|
homepage: ''
|
107
218
|
licenses:
|
data/lib/tasks/sprite.thor
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
require 'css_parser'
|
2
|
-
require 'awesome_print'
|
3
|
-
require 'pry'
|
4
|
-
|
5
|
-
class Sprite < Thor
|
6
|
-
include Thor::Actions
|
7
|
-
|
8
|
-
desc "build WIDGET", "Build CSS helpers for sprites generated by Fireworks exported to 'app/assets/images/WIDGET/sprite.*'"
|
9
|
-
def build widget = 'default'
|
10
|
-
parser = CssParser::Parser.new
|
11
|
-
css = File.read File.join 'app/assets/images', widget, 'sprite.css'
|
12
|
-
|
13
|
-
css.gsub! 'sprite.png', "/assets/#{widget}/sprite.png"
|
14
|
-
parser.add_block! css
|
15
|
-
|
16
|
-
structure = []
|
17
|
-
|
18
|
-
|
19
|
-
parser.each_selector do |selector, declarations, specificity|
|
20
|
-
selector.gsub!(/[\.\#]/,'')
|
21
|
-
properties = []
|
22
|
-
declarations.split(';').each do |property|
|
23
|
-
properties << property.split(':').map(&:strip)
|
24
|
-
end
|
25
|
-
properties << []
|
26
|
-
structure << [selector, properties]
|
27
|
-
end
|
28
|
-
structure << []
|
29
|
-
|
30
|
-
default = structure.shift[1]
|
31
|
-
images = structure
|
32
|
-
|
33
|
-
structure = [widget, [[:default, default], [:images, images]]]
|
34
|
-
sprites = "sprites = (sprites " + stylusize(structure) + stylusize([]) + ")"
|
35
|
-
|
36
|
-
file_path = File.join 'app/assets/stylesheets', 'sprites.styl'
|
37
|
-
|
38
|
-
unless File.exists? file_path
|
39
|
-
create_file file_path
|
40
|
-
append_to_file file_path, 'sprites = ()'
|
41
|
-
end
|
42
|
-
append_to_file file_path, "\n#{sprites}"
|
43
|
-
|
44
|
-
say "Do not forget to check for duplicates in the file above!"
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
private
|
49
|
-
|
50
|
-
def stylusize array, str = ""
|
51
|
-
str << "("
|
52
|
-
array.each do |item|
|
53
|
-
if item.is_a? Array
|
54
|
-
stylusize(item,str)
|
55
|
-
else
|
56
|
-
str << "('#{item}') "
|
57
|
-
end
|
58
|
-
end
|
59
|
-
str << ") "
|
60
|
-
end
|
61
|
-
|
62
|
-
end
|