angular-ujs 0.4.4 → 0.4.5

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: 4d1b1c21dcfad948cf44bc5bfbe2eb59b78e69cc
4
- data.tar.gz: 9dd5978d60e9bef25c38c0ba92275b6222e96077
3
+ metadata.gz: ab7b04e3075e8e467a6e1c192953dfb3db3cc070
4
+ data.tar.gz: e8b875ddb36487cf7b83a60610be7685a39ddcea
5
5
  SHA512:
6
- metadata.gz: e381b8a09da85d80c401cc9e6c212234ca28f9215fa004617633004969e10388075c9609ed52f672b7e15beadc0444eaf12d5b42d7ed6d75352cc84b1bbb9e85
7
- data.tar.gz: b54383c8ab7d0fefd3c993b8e5cac03432fb7497fe664f4eca5af85ade3093bbe344fbdd5d53bb353bc0a6d477e09ed6a2a37d4910a9a70c9cd6e889175fb0f2
6
+ metadata.gz: ef973e187188f9a3118a871bde7cabba704a775068327b91de6be19307e24a53a7de8cf6f9ebd5cd7c981938e6cac28dac0fde708021f502a5e2666c7dc6fcb2
7
+ data.tar.gz: dbfd56e14d36913408ab55545478752d83ae8f1cc961c6c33a70b1dc02193764a5b7fdd3566aa66c2d114bf548604761e57f3afe6fae090104b6ddc2927821a5
data/README.md CHANGED
@@ -1,26 +1,26 @@
1
1
  # angular-ujs
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/angular-ujs.png)](http://badge.fury.io/rb/angular-ujs) [![Build Status](https://secure.travis-ci.org/tomchentw/angular-ujs.png)](http://travis-ci.org/tomchentw/angular-ujs) [![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)
3
+ [![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) [![Build Status](https://secure.travis-ci.org/tomchentw/angular-ujs.png)](http://travis-ci.org/tomchentw/angular-ujs) [![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)
4
4
 
5
- Ruby on Rails unobtrusive scripting adapter for angularjs ( Without jQuery dependency )
6
5
 
7
6
  ## Project philosophy
8
7
 
9
- ### Native, lightweight directives
10
- Unobtrusive scripting in `jquery_ujs` provides the same interface with angular `directives`.
11
- We use the similarity between them and provides seamless intergration with `jquery_ujs`.
12
-
13
8
  ### Develop in LiveScript
14
9
  [LiveScript](http://livescript.net/) is a compile-to-js language, which provides us more robust way to write JavaScript.
15
10
  It also has great readibility and lots of syntax sugar just like you're writting python/ruby.
16
11
 
12
+ ### Native, lightweight directives
13
+ Unobtrusive scripting in `jquery_ujs` provides the same interface with angular `directives`.
14
+ We use the similarity between them and provides seamless intergration with `jquery_ujs`.
15
+
17
16
  ### Spec / Scenario coverage
18
17
  We use `krama` to run unit test against [angular-ujs.spec.ls](https://github.com/tomchentw/angular-ujs/blob/master/src/angular-ujs.spec.ls) and use `protractor` to run intergration test via [angular-ujs.scenario.ls](https://github.com/tomchentw/angular-ujs/blob/master/src/angular-ujs.scenario.ls).
19
18
 
19
+
20
20
  ## Installation
21
21
 
22
- This project follows **DRY** principle and has one dependency only on `angularjs`.
23
- However, we recommend you add [`ng-rails-csrf`](https://github.com/xrd/ng-rails-csrf/) into your project. As it name suggests, `ng-rails-csrf` automatically resolves CSRF in `angularjs` environment withour `jquery_ujs`.
22
+ We follow **DRY** and has one dependency only on `angularjs`.
23
+ However, we recommend you add [`ng-rails-csrf`](https://github.com/xrd/ng-rails-csrf/) into your project. As it name suggests, `ng-rails-csrf` automatically resolves CSRF in `angularjs` environment without `jquery_ujs`.
24
24
 
25
25
  ### Just use it
26
26
 
@@ -30,8 +30,7 @@ However, we recommend you add [`ng-rails-csrf`](https://github.com/xrd/ng-rails-
30
30
  Then include them through script tag in your HTML.
31
31
 
32
32
  ### **Rails** projects (Only support 3.1+)
33
-
34
- Add these line to your application's Gemfile:
33
+ Add this line to your application's Gemfile:
35
34
  ```ruby
36
35
  gem 'ng-rails-csrf' # Optional
37
36
  gem 'angular-ujs'
@@ -45,7 +44,7 @@ Then add these lines to the top of your `app/assets/javascripts/application.js`
45
44
 
46
45
  ```javascript
47
46
  //= require angular
48
- //= require ng-rails-csrf
47
+ //= require ng-rails-csrf (Optional)
49
48
  //= require angular-ujs
50
49
  ```
51
50
 
@@ -54,7 +53,9 @@ And include in your `angular` module definition:
54
53
  /* 'angular.ujs' DO NOT depend on 'ng-rails-csrf' module.
55
54
  * You need to include it yourself.
56
55
  */
57
- var module = angular.module('my-awesome-project', [/* 'ng-rails-csrf', */ 'angular.ujs']).
56
+ var module = angular.module('my-awesome-project', ['angular.ujs']).
57
+
58
+
58
59
 
59
60
  ## Usage
60
61
 
@@ -95,11 +96,12 @@ For `angularjs` apps, **ONLY** those items with `ng-model` will be submitted wit
95
96
  <a href="..." data-method="delete" data-remote="true" data-confirm="Are you sure you want to delete?" rel="nofollow">Delete this entry</a>
96
97
  ```
97
98
 
99
+
98
100
  ## Contributing
99
101
 
100
102
  [![devDependency Status](https://david-dm.org/tomchentw/angular-ujs/dev-status.png?branch=master)](https://david-dm.org/tomchentw/angular-ujs#info=devDependencies)
101
103
 
102
- 1. Fork it
104
+ 1. Fork it ( http://github.com/<my-github-username>/angular-ujs/fork )
103
105
  2. Create your feature branch (`git checkout -b my-new-feature`)
104
106
  3. Commit your changes (`git commit -am 'Add some feature'`)
105
107
  4. Push to the branch (`git push origin my-new-feature`)
data/lib/angular/ujs.rb CHANGED
@@ -2,8 +2,8 @@ require "angular/ujs/package"
2
2
 
3
3
  module Angular
4
4
  module Ujs
5
- # http://prioritized.net/blog/gemify-assets-for-rails/
6
5
  class Engine < ::Rails::Engine
6
+ # http://prioritized.net/blog/gemify-assets-for-rails/
7
7
  end
8
8
  end
9
9
  end
data/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "angular-ujs",
3
- "version": "0.4.4",
4
- "description": "Unobtrusive scripting adapter for angularjs",
5
- "summary": "Ruby on Rails unobtrusive scripting adapter for angularjs ( Without jQuery dependency )",
3
+ "version": "0.4.5",
4
+ "description": "Unobtrusive scripting for AngularJS ( without jQuery dependency )",
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",
@@ -19,7 +19,8 @@
19
19
  "RoR",
20
20
  "AngularJS",
21
21
  "jQuery",
22
- "Unobtrusive scripting"
22
+ "Unobtrusive scripting",
23
+ "directive"
23
24
  ],
24
25
  "author": {
25
26
  "name": "tomchentw",
@@ -35,21 +36,21 @@
35
36
  },
36
37
  "homepage": "https://github.com/tomchentw/angular-ujs",
37
38
  "devDependencies": {
38
- "karma-script-launcher": "~0.1.0",
39
- "karma-phantomjs-launcher": "~0.1.1",
40
- "karma-chrome-launcher": "~0.1.2",
41
- "karma-firefox-launcher": "~0.1.3",
42
- "karma-jasmine": "~0.1.5",
43
- "karma": "~0.10.8",
44
39
  "LiveScript": "~1.2.0",
45
40
  "event-stream": "~3.1.0",
46
- "gulp": "~3.3.1",
41
+ "gulp": "~3.3.4",
47
42
  "gulp-livescript": "0.0.12",
48
- "gulp-header": "~0.4.0",
43
+ "gulp-header": "~1.0.2",
49
44
  "gulp-uglify": "~0.1.0",
50
- "gulp-rename": "~0.2.1",
45
+ "gulp-rename": "~0.2.2",
51
46
  "gulp-bump": "~0.1.0",
52
47
  "gulp-exec": "~1.0.3",
53
- "gulp-conventional-changelog": "0.0.8"
48
+ "gulp-conventional-changelog": "0.0.8",
49
+ "karma-script-launcher": "~0.1.0",
50
+ "karma-chrome-launcher": "~0.1.2",
51
+ "karma-firefox-launcher": "~0.1.3",
52
+ "karma-jasmine": "~0.1.5",
53
+ "karma-phantomjs-launcher": "~0.1.1",
54
+ "karma": "~0.10.9"
54
55
  }
55
56
  }
@@ -1,9 +1,8 @@
1
- /*! angular-ujs - v 0.4.4 - 2014-01-12T17:40:17.125Z
1
+ /*! angular-ujs - v 0.4.5 - Thu Jan 16 2014 01:38:53 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/)
5
- */
6
- /*global angular:false*/
5
+ *//*global angular:false*/
7
6
  (function(){
8
7
  'use strict';
9
8
  var denyDefaultAction;
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
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomchentw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-12 00:00:00.000000000 Z
11
+ date: 2014-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,21 +52,8 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.1'
55
- - !ruby/object:Gem::Dependency
56
- name: ng-rails-csrf
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 0.1.0
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 0.1.0
69
- description: Unobtrusive scripting adapter for angularjs
55
+ description: Ruby on Rails replacement for unobtrusive scripting library `jquery_ujs`
56
+ implemented in AngularJS without jQuery dependency
70
57
  email:
71
58
  - developer@tomchentw.com
72
59
  executables: []
@@ -102,6 +89,5 @@ rubyforge_project:
102
89
  rubygems_version: 2.2.0
103
90
  signing_key:
104
91
  specification_version: 4
105
- summary: Ruby on Rails unobtrusive scripting adapter for angularjs ( Without jQuery
106
- dependency )
92
+ summary: Unobtrusive scripting for AngularJS ( without jQuery dependency )
107
93
  test_files: []