Skip to content

Commit 0fe6bf3

Browse files
author
7sharp9
committed
Update changelog, readme, gen files
1 parent b9ed878 commit 0fe6bf3

File tree

5 files changed

+26
-20
lines changed

5 files changed

+26
-20
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.82]
10+
### Changed
11+
Updated FSharp.Compiler.Service to 41.0.6 Thanks @AlexeyRaga
12+
### Fixed
13+
MyriadSdk path is now quoted which fixes #159 and allows the path to have spaces. Thanks @lucasteles
14+
915
## [0.8.1]
1016
### Changed
1117
- Added support for generator filters with msbuild property `<Generators>...</Generators>` only the named generators are run, all others are excluded, the Generators element is added under the Compile element as follows:

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<GitHome>https://github.com/$(gitOwner)</GitHome>
66
<GitUrl>$(gitHome)/$(gitName)</GitUrl>
77
<NupkgsDir>$([System.IO.Path]::GetFullPath("$(MSBuildThisFileDirectory)/bin/nupkg"))</NupkgsDir>
8-
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">0.8.1</VersionPrefix>
8+
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">0.8.2</VersionPrefix>
99
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)$(VersionSuffix)</Version>
1010
<!-- pack stuff -->
1111
<TargetFrameworks>net6.0;netstandard2.1</TargetFrameworks>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ dotnet new myriadgenerator -n myMyriadPlugin
257257

258258
1. Update [CHANGELOG.md](./CHANGELOG.md) by adding new entry (`## [0.X.X]`) and commit it.
259259
2. Create version tag (`git tag v0.X.X`)
260-
3. Update the `VersionPrefix` in `build.proj` to match the tag above.
260+
3. Update the `VersionPrefix` in `Directory.Build.props` to match the tag above.
261261
4. Run `dotnet build -t:Pack` to create the nuget package and test/examine it locally.
262262
5. Push the tag to the repo `git push origin v0.X.X` - this will start CI process that will create GitHub release and put generated NuGet packages in it
263263
6. Upload generated packages into NuGet.org

test/Myriad.IntegrationPluginTests/FieldsLensDus.fs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ module Test1 =
193193
(mapthree: float -> float)
194194
(mapfour: float32 -> float32)
195195
(record': Test1)
196-
=
196+
: Test1 =
197197
{ record' with
198198
one = mapone record'.one
199199
two = maptwo record'.two
@@ -205,51 +205,51 @@ namespace rec TestDus
205205
module Currency =
206206
open Input
207207

208-
let toString (x: Currency) =
208+
let toString (x: Currency) : string =
209209
match x with
210210
| CAD -> "CAD"
211211
| PLN -> "PLN"
212212
| EUR -> "EUR"
213213
| USD -> "USD"
214214
| Custom _ -> "Custom"
215215

216-
let fromString (x: string) =
216+
let fromString (x: string) : Option<Currency> =
217217
match x with
218218
| "CAD" -> Some CAD
219219
| "PLN" -> Some PLN
220220
| "EUR" -> Some EUR
221221
| "USD" -> Some USD
222222
| _ -> None
223223

224-
let toTag (x: Currency) =
224+
let toTag (x: Currency) : int =
225225
match x with
226226
| CAD -> 0
227227
| PLN -> 1
228228
| EUR -> 2
229229
| USD -> 3
230230
| Custom _ -> 4
231231

232-
let isCAD (x: Currency) =
232+
let isCAD (x: Currency) : bool =
233233
match x with
234234
| CAD -> true
235235
| _ -> false
236236

237-
let isPLN (x: Currency) =
237+
let isPLN (x: Currency) : bool =
238238
match x with
239239
| PLN -> true
240240
| _ -> false
241241

242-
let isEUR (x: Currency) =
242+
let isEUR (x: Currency) : bool =
243243
match x with
244244
| EUR -> true
245245
| _ -> false
246246

247-
let isUSD (x: Currency) =
247+
let isUSD (x: Currency) : bool =
248248
match x with
249249
| USD -> true
250250
| _ -> false
251251

252-
let isCustom (x: Currency) =
252+
let isCustom (x: Currency) : bool =
253253
match x with
254254
| Custom _ -> true
255255
| _ -> false

test/Myriad.IntegrationPluginTests/InputSelfGenerate.fs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ module Test1 =
271271
(mapthree: float -> float)
272272
(mapfour: float32 -> float32)
273273
(record': Test1)
274-
=
274+
: Test1 =
275275
{ record' with
276276
ones = mapones record'.ones
277277
two = maptwo record'.two
@@ -283,51 +283,51 @@ namespace rec SelfTestDus
283283
module Currency =
284284
open InputSelfGenerated
285285

286-
let toString (x: Currency) =
286+
let toString (x: Currency) : string =
287287
match x with
288288
| CAD -> "CAD"
289289
| PLN -> "PLN"
290290
| EUR -> "EUR"
291291
| USD -> "USD"
292292
| Custom _ -> "Custom"
293293

294-
let fromString (x: string) =
294+
let fromString (x: string) : Option<Currency> =
295295
match x with
296296
| "CAD" -> Some CAD
297297
| "PLN" -> Some PLN
298298
| "EUR" -> Some EUR
299299
| "USD" -> Some USD
300300
| _ -> None
301301

302-
let toTag (x: Currency) =
302+
let toTag (x: Currency) : int =
303303
match x with
304304
| CAD -> 0
305305
| PLN -> 1
306306
| EUR -> 2
307307
| USD -> 3
308308
| Custom _ -> 4
309309

310-
let isCAD (x: Currency) =
310+
let isCAD (x: Currency) : bool =
311311
match x with
312312
| CAD -> true
313313
| _ -> false
314314

315-
let isPLN (x: Currency) =
315+
let isPLN (x: Currency) : bool =
316316
match x with
317317
| PLN -> true
318318
| _ -> false
319319

320-
let isEUR (x: Currency) =
320+
let isEUR (x: Currency) : bool =
321321
match x with
322322
| EUR -> true
323323
| _ -> false
324324

325-
let isUSD (x: Currency) =
325+
let isUSD (x: Currency) : bool =
326326
match x with
327327
| USD -> true
328328
| _ -> false
329329

330-
let isCustom (x: Currency) =
330+
let isCustom (x: Currency) : bool =
331331
match x with
332332
| Custom _ -> true
333333
| _ -> false

0 commit comments

Comments
 (0)