Skip to content

Commit ce40e86

Browse files
committed
Change module name and bump version
Change module name for consistency with my other string filters.
1 parent 55d1941 commit ce40e86

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Then you have to include it in your HTML:
2323
<script src="node_modules/angular-capitalize-filter/capitalize.js"></script>
2424
```
2525

26-
And inject the module `angular-capitalize-filter` as a dependency in your application:
26+
And inject the module `puigcerber.capitalize` as a dependency in your application:
2727

2828
```js
29-
angular.module('webApp', ['angular-capitalize-filter']);
29+
angular.module('webApp', ['puigcerber.capitalize']);
3030
```
3131

3232
## Usage
@@ -82,11 +82,13 @@ But any other character can be specified as a separator so we can humanize our o
8282
<p>{{ underscored_sentence | capitalize:'all':'_' }}</p>
8383
```
8484

85-
## Testing
85+
## Related
8686

87-
To run the tests:
87+
* [camelize](https://github.com/Puigcerber/angular-camelize-filter):
88+
AngularJS filter to convert strings to lower camel case replacing non-alphanumeric characters.
89+
* [lowerize](https://github.com/Puigcerber/angular-lowerize-filter):
90+
AngularJS filter to convert strings to lower case replacing non-alphanumeric characters.
8891

89-
```bash
90-
$ npm install && bower install
91-
$ grunt test
92-
```
92+
## License
93+
94+
MIT © [Pablo Villoslada Puigcerber](http://pablovilloslada.com)

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "angular-capitalize-filter",
3-
"version": "2.2.1",
3+
"version": "3.0.0",
44
"homepage": "https://github.com/Puigcerber/angular-capitalize-filter",
55
"repository": {
66
"type": "git",
77
"url": "git@github.com:Puigcerber/angular-capitalize-filter.git"
88
},
99
"authors": [
10-
"Pablo Villoslada Puigcerber <pablo85@gmail.com> (http://www.pablovilloslada.com/)"
10+
"Pablo Villoslada Puigcerber <pablo85@gmail.com> (http://pablovilloslada.com/)"
1111
],
1212
"description": "AngularJS filter to capitalize sentences and specially team names.",
1313
"main": "capitalize.js",

capitalize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* If not specified, space is used.
1515
* @returns {string} Formatted string.
1616
*/
17-
angular.module('angular-capitalize-filter',[])
17+
angular.module('puigcerber.capitalize',[])
1818
.filter('capitalize', function () {
1919
return function (input, format, separator) {
2020
if (!input) {

capitalize.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
require('angular');
22
require('./capitalize');
3-
module.exports = 'angular-capitalize-filter';
3+
module.exports = 'puigcerber.capitalize';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "angular-capitalize-filter",
3-
"version": "2.2.1",
3+
"version": "3.0.0",
44
"description": "AngularJS filter to capitalize sentences and specially team names.",
5-
"author": "Pablo Villoslada Puigcerber <pablo85@gmail.com>",
5+
"author": "Pablo Villoslada Puigcerber <pablo85@gmail.com> (http://pablovilloslada.com/)",
66
"main": "index.js",
77
"scripts": {
88
"build": "uglifyjs capitalize.js -m -o capitalize.min.js",

test/capitalize.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe('Filter: capitalize', function () {
44

55
// load the filter's module
6-
beforeEach(module('angular-capitalize-filter'));
6+
beforeEach(module('puigcerber.capitalize'));
77

88
// initialize a new instance of the filter before each test
99
var capitalize;

0 commit comments

Comments
 (0)