flight-for-rails 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/flight-for-rails/version.rb +1 -1
- data/templates/readme.erb +1 -1
- data/vendor/assets/javascripts/flight/standalone.js +15 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6468ac315bf50b6bdb5504977da74c6081e2ace
|
4
|
+
data.tar.gz: e3d085d36207fa14482c16eca62af2c291790aa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f97018409867ef90c68195897bac2ef0011a92e1f2498846e58ba202ea538dadc1e4756263c9a0bbf0b5295b95384d6e7f3bf12d96d042ef8cccab656b6a633
|
7
|
+
data.tar.gz: 4a39e7a3ad1ee527bae08873da6293e15caac3321d689e01168ffc0dd900415258c4b26fd9aa9af8638892acdb645b1c7563e9c3dd1b25a5e3582445aaa60514
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ FlightForRails
|
|
7
7
|
|
8
8
|
FlightForRails is a plugin for Rails assets pipeline, which integrates your applicaiton with Twitter Flight javascript framework. Flight is a lightweight, component-based javascript framework that maps behavior to DOM nodes. Twitter uses it for their web applications. Why do not you try it? :)
|
9
9
|
|
10
|
-
For more information see [official Flight page](http://
|
10
|
+
For more information see [official Flight page](http://flightjs.github.io) and [changelog](https://github.com/flightjs/flight/blob/master/CHANGELOG.md).
|
11
11
|
|
12
12
|
## Browser Support
|
13
13
|
|
@@ -20,7 +20,7 @@ This gem vendors Flight files and dependecies for Rails assets pipeline.
|
|
20
20
|
First add the following lines to your application `Gemfile`:
|
21
21
|
|
22
22
|
``` ruby
|
23
|
-
gem 'flight-for-rails', '~> 1.5.
|
23
|
+
gem 'flight-for-rails', '~> 1.5.1'
|
24
24
|
```
|
25
25
|
|
26
26
|
Then run `bundle install` to update your's gems bundle.
|
data/templates/readme.erb
CHANGED
@@ -7,7 +7,7 @@ FlightForRails
|
|
7
7
|
|
8
8
|
FlightForRails is a plugin for Rails assets pipeline, which integrates your applicaiton with Twitter Flight javascript framework. Flight is a lightweight, component-based javascript framework that maps behavior to DOM nodes. Twitter uses it for their web applications. Why do not you try it? :)
|
9
9
|
|
10
|
-
For more information see [official Flight page](http://
|
10
|
+
For more information see [official Flight page](http://flightjs.github.io) and [changelog](https://github.com/flightjs/flight/blob/master/CHANGELOG.md).
|
11
11
|
|
12
12
|
## Browser Support
|
13
13
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Flight v1.5.
|
1
|
+
/*! Flight v1.5.1 | (c) Twitter, Inc. | MIT License */
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
4
4
|
module.exports = factory();
|
@@ -228,8 +228,8 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* Copyright 201
|
|
228
228
|
|
229
229
|
// define the constructor for a custom component type
|
230
230
|
// takes an unlimited number of mixin functions as arguments
|
231
|
-
// typical api call with 3 mixins:
|
232
|
-
function
|
231
|
+
// typical api call with 3 mixins: defineComponent(timeline, withTweetCapability, withScrollCapability);
|
232
|
+
function defineComponent(/*mixins*/) {
|
233
233
|
// unpacking arguments by hand benchmarked faster
|
234
234
|
var l = arguments.length;
|
235
235
|
var mixins = new Array(l);
|
@@ -248,7 +248,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* Copyright 201
|
|
248
248
|
Component.attachTo = attachTo;
|
249
249
|
// enables extension of existing "base" Components
|
250
250
|
Component.mixin = function() {
|
251
|
-
var newComponent =
|
251
|
+
var newComponent = defineComponent(); //TODO: fix pretty print
|
252
252
|
var newPrototype = Object.create(Component.prototype);
|
253
253
|
newPrototype.mixedIn = [].concat(Component.prototype.mixedIn);
|
254
254
|
newPrototype.defaults = utils.merge(Component.prototype.defaults);
|
@@ -270,14 +270,14 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* Copyright 201
|
|
270
270
|
return Component;
|
271
271
|
}
|
272
272
|
|
273
|
-
|
273
|
+
defineComponent.teardownAll = function() {
|
274
274
|
registry.components.slice().forEach(function(c) {
|
275
275
|
c.component.teardownAll();
|
276
276
|
});
|
277
277
|
registry.reset();
|
278
278
|
};
|
279
279
|
|
280
|
-
return
|
280
|
+
return defineComponent;
|
281
281
|
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
282
282
|
|
283
283
|
|
@@ -458,10 +458,12 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* Copyright 201
|
|
458
458
|
window.DEBUG = this;
|
459
459
|
},
|
460
460
|
|
461
|
-
warn: function (
|
461
|
+
warn: function (/*messages*/) {
|
462
462
|
if (!window.console) { return; }
|
463
463
|
var fn = (console.warn || console.log);
|
464
|
-
|
464
|
+
var messages = [].slice.call(arguments);
|
465
|
+
messages.unshift(this.toString() + ':')
|
466
|
+
fn.apply(console, messages);
|
465
467
|
},
|
466
468
|
|
467
469
|
registry: registry,
|
@@ -549,7 +551,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* Copyright 201
|
|
549
551
|
|
550
552
|
name = typeof eventType == 'object' ? eventType.type : eventType;
|
551
553
|
|
552
|
-
logFilter = DEBUG.events.logFilter;
|
554
|
+
logFilter = window.DEBUG.events.logFilter;
|
553
555
|
|
554
556
|
// no regex for you, actions...
|
555
557
|
actionLoggable = logFilter.actions == 'all' || (logFilter.actions.indexOf(action) > -1);
|
@@ -1210,6 +1212,10 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* Copyright 201
|
|
1210
1212
|
}
|
1211
1213
|
|
1212
1214
|
function initDeprecatedAttributes(attrs) {
|
1215
|
+
if (debug.enabled) {
|
1216
|
+
debug.warn.call(this, 'defaultAttrs will be removed in a future version. Please use attributes.');
|
1217
|
+
}
|
1218
|
+
|
1213
1219
|
// merge defaults with supplied options
|
1214
1220
|
// put options in attr.__proto__ to avoid merge overhead
|
1215
1221
|
var attr = Object.create(attrs);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flight-for-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Rezvanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.4.8
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Flight javascript framework for Rails assets pipeline
|