scala-bootstrapper 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
@@ -29,6 +29,7 @@ def gsub_birds(haystack, name, namespace)
29
29
  haystack.
30
30
  gsub("BirdName", name).
31
31
  gsub("birdname", name.downcase).
32
+ gsub("birdName", name.camelize).
32
33
  gsub("com.twitter", namespace).
33
34
  gsub("com/twitter", namespace.gsub(".", "/"))
34
35
  end
@@ -0,0 +1,17 @@
1
+ package com.twitter.birdname
2
+
3
+ import org.specs.Specification
4
+ import com.twitter.admin._
5
+ import com.twitter.util._
6
+
7
+ abstract class AbstractSpec extends Specification {
8
+ val env = RuntimeEnvironment(this, Array("-f", "config/test.scala"))
9
+ lazy val birdName = {
10
+ val out = env.loadRuntimeConfig[BirdNameService]
11
+
12
+ // You don't really want the thrift server active, particularly if you
13
+ // are running repetitively via ~test
14
+ ServiceTracker.shutdown // all services
15
+ out
16
+ }
17
+ }
@@ -0,0 +1,12 @@
1
+ package com.twitter.birdname
2
+
3
+ class BirdNameServiceSpec extends AbstractSpec {
4
+ "BirdNameService" should {
5
+
6
+ // TODO: Please implement your own tests
7
+
8
+ "hello world" in {
9
+ birdName.hello.get() mustEqual "world"
10
+ }
11
+ }
12
+ }
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{scala-bootstrapper}
8
- s.version = "0.2.1"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kyle Maxwell"]
12
- s.date = %q{2011-02-28}
12
+ s.date = %q{2011-03-01}
13
13
  s.description = %q{Twitter scala project init}
14
14
  s.email = %q{kmaxwell@twitter.com}
15
15
  s.executables = ["sbt", "scala-bootstrapper"]
@@ -39,7 +39,8 @@ Gem::Specification.new do |s|
39
39
  "lib/template/src/main/scala/com/twitter/birdname/BirdNameServiceImpl.scala.erb",
40
40
  "lib/template/src/main/scala/com/twitter/birdname/Main.scala.erb",
41
41
  "lib/template/src/main/thrift/birdname.thrift.erb",
42
- "lib/template/src/test/scala/com/twitter/birdname/BirdNameServiceSpec.scala",
42
+ "lib/template/src/test/scala/com/twitter/birdname/AbstractSpec.scala.erb",
43
+ "lib/template/src/test/scala/com/twitter/birdname/BirdNameServiceSpec.scala.erb",
43
44
  "scala-bootstrapper.gemspec",
44
45
  "vendor/sbt-launch-0.7.4.jar",
45
46
  "vendor/trollop.rb"
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 1
9
- version: 0.2.1
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kyle Maxwell
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-28 00:00:00 -08:00
17
+ date: 2011-03-01 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -61,7 +61,8 @@ files:
61
61
  - lib/template/src/main/scala/com/twitter/birdname/BirdNameServiceImpl.scala.erb
62
62
  - lib/template/src/main/scala/com/twitter/birdname/Main.scala.erb
63
63
  - lib/template/src/main/thrift/birdname.thrift.erb
64
- - lib/template/src/test/scala/com/twitter/birdname/BirdNameServiceSpec.scala
64
+ - lib/template/src/test/scala/com/twitter/birdname/AbstractSpec.scala.erb
65
+ - lib/template/src/test/scala/com/twitter/birdname/BirdNameServiceSpec.scala.erb
65
66
  - scala-bootstrapper.gemspec
66
67
  - vendor/sbt-launch-0.7.4.jar
67
68
  - vendor/trollop.rb
@@ -1,24 +0,0 @@
1
- package com.twitter.birdname
2
-
3
- import org.specs.Specification
4
- import com.twitter.admin._
5
-
6
- class BirdNameServiceSpec extends Specification {
7
- // If you do multiple integration tests, you might want to factor this
8
- // into a superclass.
9
- val env = RuntimeEnvironment(this, Array("-f", "config/test.scala"))
10
- val impl = env.loadRuntimeConfig[BirdNameService]
11
-
12
- // You don't really want the thrift server active, particularly if you
13
- // are running repetitively via ~test
14
- ServiceTracker.shutdown // all services
15
-
16
- "BirdNameService" should {
17
-
18
- // TODO: Please implement your own tests
19
-
20
- "hello world" in {
21
- impl.hello.get() mustEqual "world"
22
- }
23
- }
24
- }