angular-ujs 0.4.9 → 0.4.10
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 +7 -3
- data/package.json +30 -32
- data/vendor/assets/javascripts/angular-ujs.js +1 -1
- metadata +3 -3
- data/vendor/assets/javascripts/angular-ujs.min.js +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12239be3599398c107973b83cfa0097bb39bb3e6
|
|
4
|
+
data.tar.gz: 104555de4c7b0b553a11d5ce42129250f9819f84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
[ ](https://rubygems.org/gems/angular-ujs)
|
|
5
5
|
|
|
6
6
|
> Unobtrusive scripting for AngularJS ( without jQuery dependency )
|
|
7
7
|
|
|
8
|
-
[ ](https://travis-ci.org/tomchentw/angular-ujs)
|
|
9
|
+
[ ](https://codeclimate.com/github/tomchentw/angular-ujs)
|
|
10
|
+
[ ](https://codeclimate.com/github/tomchentw/angular-ujs)
|
|
11
|
+
[ ](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
|
-
[](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.
|
|
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
|
-
"
|
|
9
|
-
"
|
|
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": "
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"gulp
|
|
47
|
-
"gulp-
|
|
48
|
-
"gulp-
|
|
49
|
-
"gulp-
|
|
50
|
-
"gulp-
|
|
51
|
-
"gulp-
|
|
52
|
-
"gulp-
|
|
53
|
-
"gulp-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"karma
|
|
59
|
-
"karma-
|
|
60
|
-
"karma-
|
|
61
|
-
"karma": "
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
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.
|
|
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.
|
|
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-
|
|
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);
|