Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
refactor(underscoreStringFilter): Remove underscore string filter
Browse files Browse the repository at this point in the history
Remove underscore string as 3rd dependency

BREAKING CHANGE: Underscore string filter has been completely removed
  • Loading branch information
adrianlee44 committed Dec 16, 2015
1 parent ad144e2 commit c9ec969
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 89 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ Duct Tape and a Swiss Army Knife. Angular helpers for all your friends!
- Boolean
- Pluralize
- Timestamp
- Underscore String

## 3rd party libraries dependencies ##
- AngularJS (1.2.x+)
- Underscore String (Underscore string filter)

## Using MacGyver ##
You can install via [Bower](http://www.bower.io) or download from [Github](https://github.com/angular-macgyver/MacGyver/archive/master.zip)
Expand Down
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"dependencies": {
"angular": "~1.3.0",
"angular-animate": "~1.3.0",
"underscore.string": "~2.3.3"
"angular-animate": "~1.3.0"
}
}
13 changes: 0 additions & 13 deletions docs/filters.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ extends layout

block append nav
ul.nav.nav-list.docs-sidenav(mac-affix)
li(mac-scroll-spy-target="underscore-string"): a(href="#underscore-string")
i.icon-chevron-right
| Underscore String Filter
li(mac-scroll-spy-target="pluralize-filter"): a(href="#pluralize-filter")
i.icon-chevron-right
| Pluralize Filter
Expand All @@ -16,16 +13,6 @@ block append nav
| List Filter

block append content
section#underscore-string(mac-scroll-spy-anchor)
| @@include("docs/html/filters/underscore.html")
h3 Example
.docs-example
p {{ "this_Is_aTestFor_Underscore_string" | underscoreString: "humanize" }}
p {{ "Truncating: lorem ipsum dolor sit amet, consectetur adipiscing elit." | underscoreString: "truncate": 42 }}
p {{ "Pruning: lorem ipsum dolor sit amet, consectetur adipiscing elit." | underscoreString: "prune": 42: "... (show more)" }}
pre.prettyprint.linenums.
<p>{{ "this_Is_aTestFor_Underscore_string" | underscoreString: "humanize" }}</p>

section#pluralize-filter(mac-scroll-spy-anchor)
| @@include("docs/html/filters/pluralize.html")
h3 Example
Expand Down
25 changes: 0 additions & 25 deletions docs/filters/underscore.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/html/filters/underscore.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ html

script(src="//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.js", type="text/javascript")
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js", type="text/javascript")
script(src="//cdnjs.cloudflare.com/ajax/libs/underscore.string/2.3.3/underscore.string.min.js", type="text/javascript")
script(src="//code.angularjs.org/1.3.0/angular-animate.js", type="text/javascript")
script(src='js/MacGyver.js', type="text/javascript")
script(src="js/doc.js", type="text/javascript")
Expand Down
2 changes: 1 addition & 1 deletion docs/util.jade
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ block append content

section#capitalize(mac-scroll-spy-anchor)
h3 capitalize
p Converts first leter of the string to uppercase (Underscore string proxy)
p Converts first leter of the string to uppercase
pre.prettyprint.
util.capitalize("lowercase")
=> "Lowercase"
Expand Down
22 changes: 0 additions & 22 deletions src/filters/underscore.string.js

This file was deleted.

15 changes: 0 additions & 15 deletions test/unit/filters.underscore.string.spec.js

This file was deleted.

0 comments on commit c9ec969

Please sign in to comment.