trackler 2.1.0.39 → 2.1.0.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43fe0629dad3d0b500e6730ef76d0002b38dd014
4
- data.tar.gz: 893254e57fdf5b9c203ba05c321213ca0591b695
3
+ metadata.gz: eb7b55ba97eeed894dce4891877a33184b8ff108
4
+ data.tar.gz: 7e5d39a933d5f377fca1d19b0211815877a46df8
5
5
  SHA512:
6
- metadata.gz: 44b750e05d0ff6c96874cd27198d71ec9150c99ba14ac614647761c858e0de97deb18de3088babcdeb53e08a9b464e971f6b550f272964869c48d3723bd1372c
7
- data.tar.gz: dc7aa22e873d99ddbdeee029eead7fd91923ca28008cb4b8c8be21b7a4e0660944d8e99444a2ad2bafc8abb4a9c04cdba5fa770a4da401850d05aa464a8efaa5
6
+ metadata.gz: fab2f459cf90bc7993f1f86a95b33093b2affb33bf0751d58a9004bf34e2fa6f9bfffbd572cb6a5c422178ab35456fef648affeed00a03524f926f7b66547826
7
+ data.tar.gz: 2745237c7192a89c5e98515770eadf7387bba1c3d302f11d35b3e1f6db8e3574fac00f871b4f032d72f1b6d9a7a32b12477b2df432374f5c456d61e2a0390f00
@@ -129,11 +129,7 @@ module Trackler
129
129
  private
130
130
 
131
131
  def track_hints_filename
132
- current = [File.join('docs', 'EXERCISE_README_INSERT.md')]
133
- deprecated = [File.join('exercises', 'TRACK_HINTS.md'), 'SETUP.md']
134
-
135
- filepaths = (current + deprecated).map { |name| dir.join(name) }
136
- filepaths.find(-> { '' }) { |filepath| File.exist? filepath }
132
+ File.join(dir, 'docs', 'EXERCISE_README_INSERT.md')
137
133
  end
138
134
 
139
135
  def active_slugs
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.1.0.39"
2
+ VERSION = "2.1.0.40"
3
3
  end
@@ -1,16 +1,9 @@
1
1
  (ns flatten-array
2
2
  (:refer-clojure :exclude [flatten]))
3
3
 
4
- (defn flatten
5
- "Flattens the given list and removes any nil values"
6
- [coll]
7
- (loop
8
- [results nil
9
- [elem & remaining] coll]
10
- (if (or elem remaining)
11
- (if (coll? elem)
12
- (if (empty? elem)
13
- (recur results remaining)
14
- (recur results (conj remaining (rest elem) (first elem))))
15
- (recur (conj results elem) remaining))
16
- (reverse (remove nil? results)))))
4
+ (defn flatten [s]
5
+ (->> s
6
+ (tree-seq sequential? seq)
7
+ rest
8
+ (remove sequential?)
9
+ (remove nil?)))
@@ -32,6 +32,15 @@
32
32
  "text formatting",
33
33
  "quotations"
34
34
  ]
35
+ },
36
+ {
37
+ "slug": "isogram",
38
+ "difficulty": 1,
39
+ "topics": [
40
+ "word definition",
41
+ "stack effect",
42
+ "strings"
43
+ ]
35
44
  }
36
45
  ],
37
46
  "deprecated": [
@@ -0,0 +1,5 @@
1
+ USING: kernel sets ;
2
+ IN: isogram
3
+
4
+ : isogram? ( str -- ? )
5
+ dup "" set-like = ;
@@ -0,0 +1,31 @@
1
+ USING: io isogram tools.test ;
2
+ IN: isogram.tests
3
+
4
+ "Isogram:" print
5
+
6
+ "empty string" print
7
+ { t } [ "" isogram? ] unit-test
8
+
9
+ "isogram with only lower case characters" print
10
+ { t } [ "isogram" isogram? ] unit-test
11
+
12
+ "word with one duplicated character" print
13
+ { f } [ "eleven" isogram? ] unit-test
14
+
15
+ "longest reported english isogram" print
16
+ { t } [ "subdermatoglyphic" isogram? ] unit-test
17
+
18
+ "word with duplicated character in mixed case" print
19
+ { f } [ "Alphabet" isogram? ] unit-test
20
+
21
+ "hypothetical isogrammic word with hyphen" print
22
+ { t } [ "thumbscrew-japingly" isogram? ] unit-test
23
+
24
+ "isogram with duplicated non letter character" print
25
+ { t } [ "Hjelmqvist-Gryb-Zock-Pfund-Wax" isogram? ] unit-test
26
+
27
+ "made-up name that is an isogram" print
28
+ { t } [ "Emily Jung Schwartzkopf" isogram? ] unit-test
29
+
30
+ "duplicated character in the middle" print
31
+ { f } [ "accentor" isogram? ] unit-test
@@ -12,6 +12,7 @@ The tests depend on the following modules:
12
12
  DateTime
13
13
  Test::Exception
14
14
  List::MoreUtils
15
+ Path::Tiny (for canonical-data tests)
15
16
 
16
17
  ## Testing the Tests
17
18
 
@@ -1,4 +1,5 @@
1
- requires 'JSON', 0;
2
- requires 'DateTime', 0;
3
- requires 'Test::Exception', 0;
4
- requires 'List::MoreUtils', 0;
1
+ requires 'JSON';
2
+ requires 'DateTime';
3
+ requires 'Test::Exception';
4
+ requires 'List::MoreUtils';
5
+ requires 'Path::Tiny';
@@ -34,6 +34,6 @@ There are some utility methods in the `Makefile` to help with development. The b
34
34
 
35
35
  ## Contributing Guide
36
36
 
37
- Please see the [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data)
37
+ Please see the [contributing guide](https://github.com/exercism/x-common/blob/master/CONTRIBUTING.md)
38
38
 
39
39
 
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.39
4
+ version: 2.1.0.40
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-06-16 00:00:00.000000000 Z
11
+ date: 2017-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -465,9 +465,7 @@ files:
465
465
  - fixtures/common/exercises/two/description.md
466
466
  - fixtures/common/exercises/two/metadata.yml
467
467
  - fixtures/tracks/animal/.meta/include-in-fish.txt
468
- - fixtures/tracks/animal/SETUP.md
469
468
  - fixtures/tracks/animal/config.json
470
- - fixtures/tracks/animal/exercises/TRACK_HINTS.md
471
469
  - fixtures/tracks/animal/exercises/dog/a_dog.animal
472
470
  - fixtures/tracks/animal/exercises/dog/a_dog_2.animal
473
471
  - fixtures/tracks/animal/exercises/dog/a_test_example_for.animal
@@ -500,7 +498,6 @@ files:
500
498
  - fixtures/tracks/fake/exercises/two/example.ext
501
499
  - fixtures/tracks/fake/exercises/two/two_test.ext
502
500
  - fixtures/tracks/fake/img/icon.png
503
- - fixtures/tracks/fruit/SETUP.md
504
501
  - fixtures/tracks/fruit/config.json
505
502
  - fixtures/tracks/fruit/docs/ABOUT.md
506
503
  - fixtures/tracks/fruit/exercises/apple/apple.ext
@@ -519,7 +516,6 @@ files:
519
516
  - fixtures/tracks/fruit/exercises/imbe/imbe.txt
520
517
  - fixtures/tracks/fruit/img/icon.svg
521
518
  - fixtures/tracks/jewels/config.json
522
- - fixtures/tracks/jewels/exercises/TRACK_HINTS.md
523
519
  - fixtures/tracks/jewels/exercises/hello-world/example.ext
524
520
  - fixtures/tracks/jewels/exercises/hello-world/hello_world_test.ext
525
521
  - fixtures/tracks/shoes/config.json
@@ -3171,6 +3167,8 @@ files:
3171
3167
  - tracks/factor/exercises/hello-world/hello-world-example.factor
3172
3168
  - tracks/factor/exercises/hello-world/hello-world-tests.factor
3173
3169
  - tracks/factor/exercises/hello-world/hello-world.factor
3170
+ - tracks/factor/exercises/isogram/isogram-example.factor
3171
+ - tracks/factor/exercises/isogram/isogram-tests.factor
3174
3172
  - tracks/factor/exercises/leap/leap-example.factor
3175
3173
  - tracks/factor/exercises/leap/leap-tests.factor
3176
3174
  - tracks/factor/exercises/two-fer/two-fer-example.factor
@@ -1 +0,0 @@
1
- This is the content of the setup.md file, which will be overwritten when track_hints.md exists.
@@ -1 +0,0 @@
1
- This is the content of the track hints file
@@ -1 +0,0 @@
1
- The SETUP.md file is deprecated, and docs/EXERCISE_README_INSERT.md should be used.
@@ -1 +0,0 @@
1
- This is the content of the track hints file