Skip to content

Commit

Permalink
fix(app generator): correct ways to retrieve git user name and -email
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed Mar 18, 2015
1 parent f5bcbf9 commit 297e6e1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ module.exports = yeoman.generators.Base.extend(
, {
name: "authorName"
, message: "What is your name?"
, default: this.user.git.username
, default: this.user.git.name()
}
, {
name: "authorEmail"
, message: "What is your email?"
, default: this.user.git.email
, default: this.user.git.email()
}
, {
name: "authorUrl"
Expand Down
4 changes: 2 additions & 2 deletions generators/app/templates/src/views/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
)( ( Backbone, $, template ) ->
###*
# Default index view of BAT
#
# @author <%= user.git.username %>
#<% if ( authorName ) { %>
# @author <%= authorName %><% } %>
# @class IndexView
# @extends Backbone.View
# @constructor
Expand Down
12 changes: 6 additions & 6 deletions generators/collection/templates/collection.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
###*
# <%= description %>
#
# @author <%= user.git.username %>
# @class <%= className %>Collection
# @author <%= user.git.user() %>
# @class <%= className %>Collection
# @static
# @extends Backbone.Collection
# @moduletype collection
# @version 0.1
# @extends Backbone.Collection
# @moduletype collection
# @version 0.1
###
class <%= className %>Collection extends Backbone.Collection

Expand All @@ -34,4 +34,4 @@
return my<%= className %>Collection
<% } %>

)
)
12 changes: 6 additions & 6 deletions generators/model/templates/model.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
###*
# <%= description %>
#
# @author <%= user.git.username %>
# @class <%= className %>Model
# @author <%= user.git.user() %>
# @class <%= className %>Model
# @static
# @extends Backbone.Model
# @moduletype model
# @version 0.1
# @extends Backbone.Model
# @moduletype model
# @version 0.1
###
class <%= className %>Model extends Backbone.Model

Expand All @@ -30,4 +30,4 @@
return my<%= className %>Model
<% } %>

)
)
2 changes: 1 addition & 1 deletion generators/view/templates/view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
###*
# <%= description %>
#
# @author <%= user.git.username %>
# @author <%= user.git.user() %>
# @class <%= className %>View
# @extends Backbone.View
# @moduletype view
Expand Down

0 comments on commit 297e6e1

Please sign in to comment.