trackler 2.1.0.15 → 2.1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/tracks/java/exercises/flatten-array/src/test/java/FlattenerTest.java +1 -1
- data/tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java +7 -6
- data/tracks/java/exercises/gigasecond/src/main/java/Gigasecond.java +18 -0
- data/tracks/java/exercises/gigasecond/src/test/java/GigasecondTest.java +0 -1
- data/tracks/java/exercises/ocr-numbers/src/test/java/OpticalCharacterReaderTest.java +1 -1
- data/tracks/java/exercises/secret-handshake/src/test/java/HandshakeCalculatorTest.java +1 -1
- data/tracks/java/exercises/settings.gradle +2 -0
- metadata +3 -3
- data/tracks/java/exercises/gigasecond/src/main/java/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 298c9a6dd5a77188f3eda4b9bae0043cdcee2291
|
4
|
+
data.tar.gz: 356a73cc121f532af8ce9d5880f8d6f05978e3bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 649d9fe4541ac648ca71d1c4a1dfcad6c4d348e016b1811430be0f8ee53f64b2b881d5797be3eb67375c632d219168949e1cafbdaad6969c0b8e7d5a08b047b2
|
7
|
+
data.tar.gz: 5fc503835598a7a5c065e4bdb07393cdd18d9440a5e2a269c611ed85ea3127e522c1678f6c22ab6dc302bd04574904fb81dc2379f331399f29305258e6edc707
|
data/lib/trackler/version.rb
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
import java.time.LocalDateTime;
|
2
2
|
import java.time.LocalDate;
|
3
3
|
|
4
|
-
|
4
|
+
class Gigasecond {
|
5
5
|
|
6
6
|
private LocalDateTime birthDateTime;
|
7
7
|
|
8
|
-
|
9
|
-
this.birthDateTime =
|
8
|
+
Gigasecond(LocalDate birthDate) {
|
9
|
+
this.birthDateTime = birthDate.atTime(0, 0);
|
10
10
|
}
|
11
11
|
|
12
|
-
|
13
|
-
this.birthDateTime =
|
12
|
+
Gigasecond(LocalDateTime birthDateTime) {
|
13
|
+
this.birthDateTime = birthDateTime;
|
14
14
|
}
|
15
15
|
|
16
|
-
|
16
|
+
LocalDateTime getDate() {
|
17
17
|
return birthDateTime.plusSeconds(1000000000);
|
18
18
|
}
|
19
|
+
|
19
20
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import java.time.LocalDate;
|
2
|
+
import java.time.LocalDateTime;
|
3
|
+
|
4
|
+
class Gigasecond {
|
5
|
+
|
6
|
+
Gigasecond(LocalDate birthDate) {
|
7
|
+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
|
8
|
+
}
|
9
|
+
|
10
|
+
Gigasecond(LocalDateTime birthDateTime) {
|
11
|
+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
|
12
|
+
}
|
13
|
+
|
14
|
+
LocalDateTime getDate() {
|
15
|
+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
|
16
|
+
}
|
17
|
+
|
18
|
+
}
|
@@ -7,7 +7,7 @@ import java.util.Arrays;
|
|
7
7
|
|
8
8
|
import static org.junit.Assert.assertEquals;
|
9
9
|
|
10
|
-
public
|
10
|
+
public class OpticalCharacterReaderTest {
|
11
11
|
|
12
12
|
/*
|
13
13
|
* See https://github.com/junit-team/junit4/wiki/Rules for information on JUnit Rules in general and
|
@@ -7,7 +7,7 @@ import static java.util.Collections.emptyList;
|
|
7
7
|
import static java.util.Collections.singletonList;
|
8
8
|
import static org.junit.Assert.assertEquals;
|
9
9
|
|
10
|
-
public
|
10
|
+
public class HandshakeCalculatorTest {
|
11
11
|
private HandshakeCalculator handshakeCalculator;
|
12
12
|
|
13
13
|
|
@@ -25,6 +25,7 @@ include 'hamming'
|
|
25
25
|
include 'hexadecimal'
|
26
26
|
include 'hello-world'
|
27
27
|
include 'isogram'
|
28
|
+
include 'kindergarten-garden'
|
28
29
|
include 'largest-series-product'
|
29
30
|
include 'linked-list'
|
30
31
|
include 'list-ops'
|
@@ -51,6 +52,7 @@ include 'rna-transcription'
|
|
51
52
|
include 'robot-name'
|
52
53
|
include 'robot-simulator'
|
53
54
|
include 'roman-numerals'
|
55
|
+
include 'run-length-encoding'
|
54
56
|
include 'saddle-points'
|
55
57
|
include 'scrabble-score'
|
56
58
|
include 'secret-handshake'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Owen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -4387,7 +4387,7 @@ files:
|
|
4387
4387
|
- tracks/java/exercises/flatten-array/src/test/java/FlattenerTest.java
|
4388
4388
|
- tracks/java/exercises/gigasecond/build.gradle
|
4389
4389
|
- tracks/java/exercises/gigasecond/src/example/java/Gigasecond.java
|
4390
|
-
- tracks/java/exercises/gigasecond/src/main/java
|
4390
|
+
- tracks/java/exercises/gigasecond/src/main/java/Gigasecond.java
|
4391
4391
|
- tracks/java/exercises/gigasecond/src/test/java/GigasecondTest.java
|
4392
4392
|
- tracks/java/exercises/grade-school/build.gradle
|
4393
4393
|
- tracks/java/exercises/grade-school/src/example/java/School.java
|
File without changes
|