Skip to content

Commit

Permalink
Merge branch 'release/0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmjmanders committed Jul 17, 2015
2 parents f85e35b + bb324a7 commit 6a7c053
Show file tree
Hide file tree
Showing 12 changed files with 478 additions and 629 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
before_script:
Expand Down
14 changes: 13 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ module.exports = function (grunt) {
}
},

browserify: {
dist: {
options: {
transform: ['debowerify']
},
files: {
'.tmp/ng-iban.js': '.tmp/ng-iban.js'
}
}
},

karma: {
unit: {
configFile: 'test/karma.conf.coffee',
Expand All @@ -90,6 +101,7 @@ module.exports = function (grunt) {
grunt.registerTask('test', [
'clean:tmp',
'coffee',
'browserify',
'connect:test',
'karma'
]);
Expand All @@ -100,4 +112,4 @@ module.exports = function (grunt) {
'ngAnnotate',
'uglify'
]);
}
};
30 changes: 30 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
:figure-caption!:

image::https://travis-ci.org/mmjmanders/ng-iban.svg?branch=master[title="travis status", alt="travis status", link="https://travis-ci.org/mmjmanders/ng-iban"]

image::https://app.wercker.com/status/eb4337041c62e162c5dd7af43122647c/m[title="wercker status", alt="wercker status", link="https://app.wercker.com/project/bykey/eb4337041c62e162c5dd7af43122647c"]

= ng-iban - validate input fields as IBAN
The goal is to provide an easy way to validate an input field as an IBAN number with https://angularjs.org/[AngularJS].
From version `0.4.0` the module uses https://github.com/arhs/iban.js[iban.js] for validation.

== Usage
First add

* `AngularJS`
* `ng-iban`

to your HTML file.

Make sure you require `mm.iban` as a dependency of your AngularJS module.

== Installation
`bower install ng-iban`

=== directive
[source,html]
----
<input type="text" ng-model="iban" ng-iban/>
----

To use this directive the `ngModel` directive must also be used because this directive depends on it.
102 changes: 0 additions & 102 deletions README.md

This file was deleted.

5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-iban",
"version": "0.3.2",
"version": "0.4.0",
"authors": [
"Mark Manders <[email protected]>"
],
Expand All @@ -25,6 +25,7 @@
"angular": ">=1 <2"
},
"devDependencies": {
"angular-mocks": ">=1 <2"
"angular-mocks": ">=1 <2",
"iban": "~0.0.5"
}
}
Loading

0 comments on commit 6a7c053

Please sign in to comment.