Skip to content

Commit

Permalink
Merge pull request #20 from hmrc/develop
Browse files Browse the repository at this point in the history
Release v0.4.1
  • Loading branch information
TheNickWilson authored Dec 21, 2017
2 parents bd40734 + 71d6430 commit b9d3a7f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## v0.4.1 - 2017-12-21

### Fixed
* Hardcoded name in options model
* Unnecessary imports

## v0.4.0 - 2017-12-21

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/main/g8/project/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sbt.version=0.13.15
hmrc-frontend-scaffold.version=0.4.0
hmrc-frontend-scaffold.version=0.4.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object $className$ {

val options: Set[RadioOption] = values.map {
value =>
RadioOption("myOptionsPage", value.toString)
RadioOption("$className;format="decap"$", value.toString)
}

implicit val enumerable: Enumerable[$className$] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ package controllers

import javax.inject.Inject

import play.api.data.Form
import play.api.i18n.{I18nSupport, MessagesApi}
import uk.gov.hmrc.play.bootstrap.controller.FrontendController
import connectors.DataCacheConnector
import controllers.actions._
import config.FrontendAppConfig
import forms.BooleanForm
import models.Mode
import utils.{Navigator, UserAnswers}
import views.html.$className;format="decap"$

import scala.concurrent.Future
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
@import config.FrontendAppConfig
@import uk.gov.hmrc.play.views.html._
@import controllers.routes._
@import models.Mode
@import utils.FormHelpers

@(appConfig: FrontendAppConfig)(implicit request: Request[_], messages: Messages)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
package controllers

import play.api.data.Form
import play.api.libs.json.JsBoolean
import uk.gov.hmrc.http.cache.client.CacheMap
import utils.FakeNavigator
import connectors.FakeDataCacheConnector
import controllers.actions._
import play.api.test.Helpers._
import forms.BooleanForm
import models.NormalMode
import views.html.$className;format="decap"$

class $className$ControllerSpec extends ControllerSpecBase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package views

import play.api.data.Form
import controllers.routes
import forms.BooleanForm
import views.behaviours.YesNoViewBehaviours
import models.NormalMode
import views.behaviours.ViewBehaviours
import views.html.$className;format="decap"$

class $className$ViewSpec extends YesNoViewBehaviours {
class $className$ViewSpec extends ViewBehaviours {

val messageKeyPrefix = "$className;format="decap"$"

Expand Down

0 comments on commit b9d3a7f

Please sign in to comment.