angular-ujs 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df08b02a129d62a7828b4af8cfca2c2c7ab5c9ef
4
- data.tar.gz: 7c6887d88d1012323024cce11cd57171cc8afab3
3
+ metadata.gz: 4592742410cf931add4fb58363ddc75e2c577de2
4
+ data.tar.gz: 93e7442980d211346e184a438597036d2977b4b6
5
5
  SHA512:
6
- metadata.gz: 1e5f86a4bb4bcd6cf2cbd8fc04921fc4892a68590378e460b609c2a6d673989f1b8c8be13c75110e0230be2ad95fd3f2bb22a8153edfdbfd8a415db1cd388e96
7
- data.tar.gz: b95eb3d4c6e4b6f06437de5ed6665ea9383a2f037f07b717727a095b6f3086155a643f4ab19e3e712c40f92d7117012dc4fad81cdcd20a5172dde5344f80ceb4
6
+ metadata.gz: 2009e77f89aa6af7f25093ddf14a6001173698e156aea06152b2b0f14c26760c7105f652b6c02ff8c6090ab4872cc68ea05fa897cc823573cdb502653bcfe7cb
7
+ data.tar.gz: e19cdf86ad3d325f8321214aa7af67faa37680e536ac9ec8fc9a0050e1620eacfbd2b87994a6691e5a7a5c631b35e0b603053efc4b970a39fb836b9ae213660b
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # angular-ujs
2
2
  > Distributed via
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/angular-ujs.png)](http://badge.fury.io/rb/angular-ujs) [![NPM version](https://badge.fury.io/js/angular-ujs.png)](http://badge.fury.io/js/angular-ujs)
4
+ [![Gem Version](https://badge.fury.io/rb/angular-ujs.png)](http://badge.fury.io/rb/angular-ujs)
5
5
 
6
6
  > Unobtrusive scripting for AngularJS ( without jQuery dependency )
7
7
 
data/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "angular-ujs",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Unobtrusive scripting for AngularJS ( without jQuery dependency )",
5
5
  "longDescription": "Ruby on Rails replacement for unobtrusive scripting library `jquery_ujs` implemented in AngularJS without jQuery dependency",
6
6
  "main": "angular-ujs.js",
7
7
  "scripts": {
8
8
  "test": "gulp test --require LiveScript",
9
- "build": "gulp build --require LiveScript",
10
- "watch": "gulp watch --require LiveScript",
11
- "release": "gulp release --require LiveScript"
9
+ "develop": "gulp develop --require LiveScript",
10
+ "release": "gulp release --require LiveScript",
11
+ "release:app": "gulp release:app --require LiveScript"
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git://github.com/tomchentw/angular-ujs.git"
15
+ "url": "https://github.com/tomchentw/angular-ujs"
16
16
  },
17
17
  "keywords": [
18
18
  "Ruby on Rails",
@@ -25,11 +25,11 @@
25
25
  "author": {
26
26
  "name": "tomchentw",
27
27
  "email": "developer@tomchentw.com",
28
- "url": "https://github.com/tomchentw/"
28
+ "url": "https://github.com/tomchentw"
29
29
  },
30
30
  "license": {
31
31
  "type": "MIT",
32
- "url": "http://tomchentw.mit-license.org/"
32
+ "url": "http://tomchentw.mit-license.org"
33
33
  },
34
34
  "bugs": {
35
35
  "url": "https://github.com/tomchentw/angular-ujs/issues"
@@ -37,22 +37,31 @@
37
37
  "homepage": "https://github.com/tomchentw/angular-ujs",
38
38
  "devDependencies": {
39
39
  "LiveScript": "~1.2.0",
40
- "event-stream": "~3.1.0",
40
+ "temp": "~0.6.0",
41
41
  "gulp": "~3.5.2",
42
- "gulp-livescript": "0.1.1",
42
+ "gulp-util": "~2.2.14",
43
+ "gulp-livescript": "~0.2.0",
43
44
  "gulp-header": "~1.0.2",
44
45
  "gulp-uglify": "~0.2.1",
45
- "gulp-rename": "~1.0.0",
46
+ "gulp-rename": "~1.1.0",
46
47
  "gulp-bump": "~0.1.4",
47
48
  "gulp-exec": "~1.0.4",
48
- "gulp-conventional-changelog": "0.1.1",
49
+ "gulp-conventional-changelog": "~0.1.2",
50
+ "gulp-jade": "~0.4.1",
51
+ "gulp-ruby-sass": "~0.3.0",
52
+ "gulp-concat": "~2.1.7",
53
+ "gulp-livereload": "~1.1.1",
54
+ "karma-live-preprocessor": "~0.2.2",
49
55
  "karma-script-launcher": "~0.1.0",
50
56
  "karma-chrome-launcher": "~0.1.2",
51
57
  "karma-firefox-launcher": "~0.1.3",
52
58
  "karma-jasmine": "~0.1.5",
53
59
  "karma-phantomjs-launcher": "~0.1.2",
54
- "karma-coverage": "~0.1.5",
60
+ "karma-coverage": "~0.2.0",
55
61
  "karma": "~0.10.9",
56
- "coveralls": "~2.7.1"
62
+ "coveralls": "~2.8.0",
63
+ "tiny-lr": "~0.0.5",
64
+ "connect": "~2.13.0",
65
+ "connect-livereload": "~0.3.2"
57
66
  }
58
67
  }
@@ -1,15 +1,15 @@
1
- /*! angular-ujs - v 0.4.8 - Tue Feb 11 2014 13:09:37 GMT+0800 (CST)
1
+ /*! angular-ujs - v 0.4.9 - Mon Feb 24 2014 14:35:50 GMT+0800 (CST)
2
2
  * https://github.com/tomchentw/angular-ujs
3
- * Copyright (c) 2014 [tomchentw](https://github.com/tomchentw/);
4
- * Licensed [MIT](http://tomchentw.mit-license.org/)
5
- *//*global angular:false*/
3
+ * Copyright (c) 2014 [tomchentw](https://github.com/tomchentw);
4
+ * Licensed [MIT](http://tomchentw.mit-license.org)
5
+ */
6
+ /*global angular:false*/
6
7
  (function(){
7
8
  'use strict';
8
- var denyDefaultAction;
9
- denyDefaultAction = function(event){
9
+ function denyDefaultAction(event){
10
10
  event.preventDefault();
11
11
  event.stopPropagation();
12
- };
12
+ }
13
13
  angular.module('angular.ujs', []).factory('$getRailsCSRF', ['$document'].concat(function($document){
14
14
  return function(){
15
15
  var metas, i$, ref$, len$, meta;
@@ -0,0 +1,6 @@
1
+ /*! angular-ujs - v 0.4.9 - Mon Feb 24 2014 14:35:50 GMT+0800 (CST)
2
+ * https://github.com/tomchentw/angular-ujs
3
+ * Copyright (c) 2014 [tomchentw](https://github.com/tomchentw);
4
+ * Licensed [MIT](http://tomchentw.mit-license.org)
5
+ */
6
+ (function(){"use strict";function t(t){t.preventDefault(),t.stopPropagation()}angular.module("angular.ujs",[]).factory("$getRailsCSRF",["$document"].concat(function(t){return function(){var n,o,e,r,i;for(n={},o=0,r=(e=t[0].querySelectorAll('meta[name^="csrf-"]')).length;r>o;++o)i=e[o],i=angular.element(i),n[i.attr("name")]=i.attr("content");return n}})).controller("noopRailsConfirmCtrl",function(){this.allowAction=function(){return!0},this.denyDefaultAction=t}).controller("RailsConfirmCtrl",["$window","$attrs"].concat(function(n,o){this.allowAction=function(){var t;return t=o.confirm,angular.isDefined(t)&&n.confirm(t)},this.denyDefaultAction=t})).controller("noopRailsRemoteFormCtrl",function(){this.submit=function(t){return t[0].submit(),{then:angular.noop}}}).controller("RailsRemoteFormCtrl",["$scope","$attrs","$parse","$http"].concat(function(t,n,o,e){var r,i;r=function(n){t.$emit("rails:remote:success",n)},i=function(n){t.$emit("rails:remote:error",n)},this.submit=function(t){var c,a,l,u,m,f,s,d={}.hasOwnProperty;if(c=t.scope(),a=n.remote,l={},a+""!="true")o(a).assign(l,c.$eval(a));else for(u in c)if(d.call(c,u)){if(m=c[u],"this"===u||"$"===u[0])continue;l[u]=m}return f={url:t.attr("action"),method:t.attr("method"),data:l},s=l._method,"GET"!==s&&"POST"!==s&&(f.headers={"X-Http-Method-Override":s}),e(f).then(r,i)}})).directive("confirm",function(){function t(t,n){t.allowAction()||t.denyDefaultAction(n)}function n(n,o,e,r){var i;i=angular.bind(void 0,t,r[0]),o.on("click",i),n.$on("$destroy",function(){o.off("click",i)})}return{restrict:"A",require:["confirm"],controller:"RailsConfirmCtrl",compile:function(t,o){var e;return e=o.$attr,"data-confirm"===e.confirm&&"data-remote"!==e.remote&&"data-method"!==e.method?n:void 0}}}).directive("remote",["$controller"].concat(function(t){function n(t,n,o){n[1].denyDefaultAction(o),n[1].allowAction()&&n[0].submit(t)}function o(o,e,r,i){var c;i[1]||(i[1]=t("noopRailsConfirmCtrl",{$scope:o})),c=angular.bind(void 0,n,e,i),e.on("submit",c),o.$on("$destroy",function(){e.off("submit",c)})}return{require:["remote","?confirm"],restrict:"A",controller:"RailsRemoteFormCtrl",compile:function(t,n){return"data-remote"===n.$attr.remote?o:void 0}}})).directive("method",["$controller","$compile","$document","$getRailsCSRF"].concat(function(t,n,o,e){function r(t,r,i,c){var a,l,u;i[0].allowAction()&&i[0].denyDefaultAction(c),a=e(),l=t.$new(),u=n('<form class="ng-hide" method="POST" action="'+r.href+'">\n <input type="text" name="_method" ng-model="_method">\n <input type="text" name="'+a["csrf-param"]+'" value="'+a["csrf-token"]+'">\n</form>')(l),o.find("body").append(u),l.$apply(function(){l._method=r.method}),i[1].submit(u).then(function(){l.$destroy(),u.remove()})}function i(n,o,e,i){var c,a;c={$scope:n,$attrs:e},i[0]||(i[0]=t("noopRailsConfirmCtrl",c)),i[1]||(i[1]=t("noopRailsRemoteFormCtrl",c)),a=angular.bind(i,r,n,e,i),o.on("click",a),n.$on("$destroy",function(){o.off("click",a)})}return{require:["?confirm","?remote"],restrict:"A",compile:function(t,n){return"data-method"===n.$attr.method?i:void 0}}}))}).call(this);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angular-ujs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomchentw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,7 @@ files:
66
66
  - lib/angular/ujs/package.rb
67
67
  - package.json
68
68
  - vendor/assets/javascripts/angular-ujs.js
69
+ - vendor/assets/javascripts/angular-ujs.min.js
69
70
  homepage: https://github.com/tomchentw/angular-ujs
70
71
  licenses:
71
72
  - MIT
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  version: '0'
87
88
  requirements: []
88
89
  rubyforge_project:
89
- rubygems_version: 2.2.1
90
+ rubygems_version: 2.2.2
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Unobtrusive scripting for AngularJS ( without jQuery dependency )