Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
iss #22: custom UserAgent header
Browse files Browse the repository at this point in the history
  • Loading branch information
maizy committed Aug 26, 2014
1 parent 696d713 commit 54ed8b8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions app/Global.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import play.api._

/**
* Copyright (c) Nikita Kovaliov, maizy.ru, 2014
* See LICENSE.txt for details.
*/
object Global extends GlobalSettings {
override def configuration = Configuration.from(
Map("ws" -> Map("useragent" -> s"hedgehog/${hedgehog.Version.SYMBOLIC}"))
)
}
2 changes: 1 addition & 1 deletion app/hedgehog/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Config (appConfiguration: Configuration, asyncContext: ExecutionContext) {
lazy val githubClient = new github.Client(githubClientConfig, asyncContext) //TODO: is there good place for that?


val version = "0.0.1" //TODO: sync with build.sbt (generate on project builded)
val version = hedgehog.Version.SYMBOLIC
val projectRepoUrl = "https://github.com/maizy/hedGeHog"
val copyrightYears = "2013-2014"
lazy val sources = new Sources(appConfiguration)
Expand Down
9 changes: 9 additions & 0 deletions app/hedgehog/Version.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package hedgehog

/**
* Copyright (c) Nikita Kovaliov, maizy.ru, 2014
* See LICENSE.txt for details.
*/
object Version {
val SYMBOLIC = "0.0.1" //TODO: sync with build.sbt (generate on project builded)
}

0 comments on commit 54ed8b8

Please sign in to comment.