trackler 2.1.0.55 → 2.2.0.0

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: fcf1b4e3a418a1b6e38d52e48f1b09e5346ebfb4
4
- data.tar.gz: 845b9d0880335ad3e455b5dce0027a95fb2a8fbb
3
+ metadata.gz: 62baf7af4680765a500baffa2c4a38ef0c95e3bc
4
+ data.tar.gz: 9dd310ae339c9f442f91e265d432aa9f588ad56c
5
5
  SHA512:
6
- metadata.gz: de75cf1b074f7a60575593c029bbe119128e86a7d9861eaeb6810b3c590eba7a46f01325589273206e17f9bf0aa16bb4898320ddbeb1d86ed2ac655a3524f314
7
- data.tar.gz: 0cedb46549a6cb19ada088084b789109438e5f700d4ae1772152c23e564c354e202fbc96c61222d030b171c1be43b56f051dfc5d7d9ab35a924071a16d62aa3e
6
+ metadata.gz: 1aa96e32e99c1ee254602da3d2aca1bc7fe25338bed444fcc884c3402ea155257c0f01588d66734f5fa315f2d2cdec46c9aba0a458adc436da88ccd0891b54e3
7
+ data.tar.gz: f52eb36aa07b34e9f88cdf156d64895ab65d16a4d40682d7659b4a19b783e29261bc794f750893413c5bfbbae17654acde82023fa748f7c3322f879243c63896
data/CHANGELOG.md CHANGED
@@ -15,6 +15,14 @@ The changelog will not be updated for content updates.
15
15
  ## Next Release
16
16
  * **Your contribution here**
17
17
 
18
+ ## v2.2.0.0 (2017-07-16)
19
+ * Use static exercise README if it is present
20
+ * Move exercise readme insert and exercise hints, handling deprecated locations
21
+ * Add generic support for orgmode doc files
22
+ * Rename problems to specifications
23
+ * Make implementation adhere to problem interface
24
+ * Suppress blurb if it starts the description
25
+
18
26
  ## v2.1.0.0 (2017-04-21)
19
27
 
20
28
  * Add customizable ignore pattern
@@ -0,0 +1,7 @@
1
+ {
2
+ "exercises": [
3
+ {
4
+ "slug": "foo"
5
+ }
6
+ ]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "exercises": [
3
+ {
4
+ "slug": "foo"
5
+ }
6
+ ]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "exercises": [
3
+ {
4
+ "slug": "foo"
5
+ }
6
+ ]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "exercises": [
3
+ {
4
+ "slug": "foo"
5
+ }
6
+ ]
7
+ }
@@ -0,0 +1 @@
1
+ custom readme for 'two'
@@ -48,7 +48,7 @@ module Trackler
48
48
  end
49
49
 
50
50
  def readme
51
- @readme ||= assemble_readme
51
+ @readme ||= static_readme || assemble_readme
52
52
  end
53
53
 
54
54
  def git_url
@@ -84,6 +84,11 @@ module Trackler
84
84
  File.join('exercises', slug)
85
85
  end
86
86
 
87
+ def static_readme
88
+ path = File.join(implementation_dir, 'README.md')
89
+ return File.read(path) if File.exist?(path)
90
+ end
91
+
87
92
  def assemble_readme
88
93
  <<-README
89
94
  # #{name}
@@ -112,8 +117,11 @@ It's possible to submit an incomplete solution so you can see how others have co
112
117
  end
113
118
 
114
119
  def implementation_hints
115
- hints_file = File.join(implementation_dir, 'HINTS.md')
116
- File.exist?(hints_file) ? File.read(hints_file) : ''
120
+ [File.join('.meta', 'hints.md'), 'HINTS.md'].each do |filename|
121
+ path = File.join(implementation_dir, filename)
122
+ return File.read(path) if File.exist?(path)
123
+ end
124
+ ""
117
125
  end
118
126
  end
119
127
  end
@@ -116,6 +116,8 @@ module Trackler
116
116
  end
117
117
 
118
118
  def hints
119
+ path = File.join(dir, 'config', 'exercise-readme-insert.md')
120
+ return File.read(path) if File.exist?(path)
119
121
  DocFile.find(basename: 'EXERCISE_README_INSERT', track_dir: dir).render
120
122
  end
121
123
 
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.1.0.55"
2
+ VERSION = "2.2.0.0"
3
3
  end
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.55
4
+ version: 2.2.0.0
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-07-13 00:00:00.000000000 Z
11
+ date: 2017-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -106,6 +106,20 @@ files:
106
106
  - bin/update
107
107
  - bin/verify-configs
108
108
  - bin/verify-metadata
109
+ - fixtures/deprecation-fixtures/problem-specifications/exercises/foo/description.md
110
+ - fixtures/deprecation-fixtures/problem-specifications/exercises/foo/metadata.yml
111
+ - fixtures/deprecation-fixtures/tracks/hints-both/config.json
112
+ - fixtures/deprecation-fixtures/tracks/hints-both/exercises/foo/.meta/hints.md
113
+ - fixtures/deprecation-fixtures/tracks/hints-both/exercises/foo/HINTS.md
114
+ - fixtures/deprecation-fixtures/tracks/hints-old/config.json
115
+ - fixtures/deprecation-fixtures/tracks/hints-old/exercises/foo/HINTS.md
116
+ - fixtures/deprecation-fixtures/tracks/inserts-both/config.json
117
+ - fixtures/deprecation-fixtures/tracks/inserts-both/config/exercise-readme-insert.md
118
+ - fixtures/deprecation-fixtures/tracks/inserts-both/docs/EXERCISE_README_INSERT.md
119
+ - fixtures/deprecation-fixtures/tracks/inserts-both/exercises/foo/.keep
120
+ - fixtures/deprecation-fixtures/tracks/inserts-old/config.json
121
+ - fixtures/deprecation-fixtures/tracks/inserts-old/docs/EXERCISE_README_INSERT.md
122
+ - fixtures/deprecation-fixtures/tracks/inserts-old/exercises/foo/.keep
109
123
  - fixtures/problem-specifications/exercises/apple/canonical-data.json
110
124
  - fixtures/problem-specifications/exercises/apple/description.md
111
125
  - fixtures/problem-specifications/exercises/apple/metadata.yml
@@ -165,6 +179,7 @@ files:
165
179
  - fixtures/tracks/fake/exercises/one/sub/src/stubfile.ext
166
180
  - fixtures/tracks/fake/exercises/three/example.ext
167
181
  - fixtures/tracks/fake/exercises/three/three_test.ext
182
+ - fixtures/tracks/fake/exercises/two/README.md
168
183
  - fixtures/tracks/fake/exercises/two/example.ext
169
184
  - fixtures/tracks/fake/exercises/two/two_test.ext
170
185
  - fixtures/tracks/fake/img/icon.png