angular-ujs 0.4.9 → 0.4.10

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: 4592742410cf931add4fb58363ddc75e2c577de2
4
- data.tar.gz: 93e7442980d211346e184a438597036d2977b4b6
3
+ metadata.gz: 12239be3599398c107973b83cfa0097bb39bb3e6
4
+ data.tar.gz: 104555de4c7b0b553a11d5ce42129250f9819f84
5
5
  SHA512:
6
- metadata.gz: 2009e77f89aa6af7f25093ddf14a6001173698e156aea06152b2b0f14c26760c7105f652b6c02ff8c6090ab4872cc68ea05fa897cc823573cdb502653bcfe7cb
7
- data.tar.gz: e19cdf86ad3d325f8321214aa7af67faa37680e536ac9ec8fc9a0050e1620eacfbd2b87994a6691e5a7a5c631b35e0b603053efc4b970a39fb836b9ae213660b
6
+ metadata.gz: 67890c91347bf3fe7847004144bb8a6f47a9c220cb178ac715ad88b89a3cf6eee6ccd6639c5f98bdd5704aac3405e9d0a27d45aec5aca25013d00008c0455c50
7
+ data.tar.gz: 3eb337bad16c3b9e43f09c1e8258a350ad6308d99e7a27ea9759a86e4778e2b100830451ebf11f71bd01b3c59ef057c7f1c165c5d74240ad36e0c18b5a2e3cb0
data/README.md CHANGED
@@ -1,11 +1,15 @@
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)
4
+ [![Version ](http://img.shields.io/gem/v/angular-ujs.svg) ](https://rubygems.org/gems/angular-ujs)
5
5
 
6
6
  > Unobtrusive scripting for AngularJS ( without jQuery dependency )
7
7
 
8
- [![Build Status](https://secure.travis-ci.org/tomchentw/angular-ujs.png)](http://travis-ci.org/tomchentw/angular-ujs) [![Coverage Status](https://coveralls.io/repos/tomchentw/angular-ujs/badge.png?branch=master)](https://coveralls.io/r/tomchentw/angular-ujs?branch=master) [![Code Climate](https://codeclimate.com/github/tomchentw/angular-ujs.png)](https://codeclimate.com/github/tomchentw/angular-ujs) [![Dependency Status](https://gemnasium.com/tomchentw/angular-ujs.png)](https://gemnasium.com/tomchentw/angular-ujs)
8
+ [![Travis CI ](http://img.shields.io/travis/tomchentw/angular-ujs/master.svg) ](https://travis-ci.org/tomchentw/angular-ujs)
9
+ [![Quality ](http://img.shields.io/codeclimate/github/tomchentw/angular-ujs.svg) ](https://codeclimate.com/github/tomchentw/angular-ujs)
10
+ [![Coverage ](http://img.shields.io/coveralls/tomchentw/angular-ujs.svg) ](https://codeclimate.com/github/tomchentw/angular-ujs)
11
+ [![Dependencies](http://img.shields.io/gemnasium/tomchentw/angular-ujs.svg) ](https://gemnasium.com/tomchentw/angular-ujs)
12
+
9
13
 
10
14
  ## Project philosophy
11
15
 
@@ -103,7 +107,7 @@ For `angularjs` apps, **ONLY** those items with `ng-model` will be submitted wit
103
107
 
104
108
  ## Contributing
105
109
 
106
- [![devDependency Status](https://david-dm.org/tomchentw/angular-ujs/dev-status.png?branch=master)](https://david-dm.org/tomchentw/angular-ujs#info=devDependencies) [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/tomchentw/angular-ujs/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
110
+ [![devDependency Status](https://david-dm.org/tomchentw/angular-ujs/dev-status.svg?theme=shields.io)](https://david-dm.org/tomchentw/angular-ujs#info=devDependencies)
107
111
 
108
112
  1. Fork it ( http://github.com/tomchentw/angular-ujs/fork )
109
113
  2. Create your feature branch (`git checkout -b my-new-feature`)
data/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "angular-ujs",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
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
- "test": "gulp test --require LiveScript",
9
- "develop": "gulp develop --require LiveScript",
10
- "release": "gulp release --require LiveScript",
11
- "release:app": "gulp release:app --require LiveScript"
8
+ "postinstall": "bower install",
9
+ "test": "make test"
12
10
  },
13
11
  "repository": {
14
12
  "type": "git",
@@ -36,32 +34,32 @@
36
34
  },
37
35
  "homepage": "https://github.com/tomchentw/angular-ujs",
38
36
  "devDependencies": {
39
- "LiveScript": "~1.2.0",
40
- "temp": "~0.6.0",
41
- "gulp": "~3.5.2",
42
- "gulp-util": "~2.2.14",
43
- "gulp-livescript": "~0.2.0",
44
- "gulp-header": "~1.0.2",
45
- "gulp-uglify": "~0.2.1",
46
- "gulp-rename": "~1.1.0",
47
- "gulp-bump": "~0.1.4",
48
- "gulp-exec": "~1.0.4",
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",
55
- "karma-script-launcher": "~0.1.0",
56
- "karma-chrome-launcher": "~0.1.2",
57
- "karma-firefox-launcher": "~0.1.3",
58
- "karma-jasmine": "~0.1.5",
59
- "karma-phantomjs-launcher": "~0.1.2",
60
- "karma-coverage": "~0.2.0",
61
- "karma": "~0.10.9",
62
- "coveralls": "~2.8.0",
63
- "tiny-lr": "~0.0.5",
64
- "connect": "~2.13.0",
65
- "connect-livereload": "~0.3.2"
37
+ "LiveScript": "^1.2.0",
38
+ "bower": "^1.2.8",
39
+ "tiny-lr": "^0.0.5",
40
+ "connect": "^2.13.0",
41
+ "connect-livereload": "^0.3.2",
42
+ "protractor": "^0.20.1",
43
+ "coveralls": "^2.8.0",
44
+ "gulp": "^3.5.2",
45
+ "gulp-util": "^2.2.14",
46
+ "gulp-livescript": "^0.2.0",
47
+ "gulp-header": "^1.0.2",
48
+ "gulp-uglify": "^0.2.1",
49
+ "gulp-rename": "^1.1.0",
50
+ "gulp-bump": "^0.1.4",
51
+ "gulp-conventional-changelog": "^0.1.2",
52
+ "gulp-jade": "^0.4.1",
53
+ "gulp-ruby-sass": "^0.3.0",
54
+ "gulp-concat": "^2.1.7",
55
+ "gulp-livereload": "^1.1.1",
56
+ "karma": "^0.10.9",
57
+ "karma-live-preprocessor": "^0.2.2",
58
+ "karma-script-launcher": "^0.1.0",
59
+ "karma-chrome-launcher": "^0.1.2",
60
+ "karma-firefox-launcher": "^0.1.3",
61
+ "karma-jasmine": "^0.1.5",
62
+ "karma-phantomjs-launcher": "^0.1.2",
63
+ "karma-coverage": "^0.2.0"
66
64
  }
67
65
  }
@@ -1,4 +1,4 @@
1
- /*! angular-ujs - v 0.4.9 - Mon Feb 24 2014 14:35:50 GMT+0800 (CST)
1
+ /*! angular-ujs - v 0.4.10 - Sun Mar 09 2014 02:49:36 GMT+0800 (CST)
2
2
  * https://github.com/tomchentw/angular-ujs
3
3
  * Copyright (c) 2014 [tomchentw](https://github.com/tomchentw);
4
4
  * Licensed [MIT](http://tomchentw.mit-license.org)
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.9
4
+ version: 0.4.10
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-24 00:00:00.000000000 Z
11
+ date: 2014-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,7 +66,6 @@ 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
70
69
  homepage: https://github.com/tomchentw/angular-ujs
71
70
  licenses:
72
71
  - MIT
@@ -92,3 +91,4 @@ signing_key:
92
91
  specification_version: 4
93
92
  summary: Unobtrusive scripting for AngularJS ( without jQuery dependency )
94
93
  test_files: []
94
+ has_rdoc:
@@ -1,6 +0,0 @@
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);