Skip to content

Commit

Permalink
Merge pull request #44 from nanoframework/release-1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Oct 16, 2018
2 parents 0abc6c1 + c0d48f1 commit 082e2f6
Show file tree
Hide file tree
Showing 188 changed files with 2,280 additions and 913 deletions.
14 changes: 14 additions & 0 deletions .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
user=nanoframework
project=lib-CoreLibrary
issues=true
add_issues_wo_labels=false
add_pr_wo_labels=false
add_issues_wo_labels=false
filter_issues_by_milestone=false
exclude_labels=Area: Config-and-Build,Area: Infrastructure-and-Organization,reverted
enhancement_labels=Type: enhancement
bug_labels=Type: bug
merge_prefix=**Documentation and other chores:**
unreleased_label=**Changes available only in 'Preview' NuGet packages:**
issue_line_labels=Breaking-Change,documentation
author=false
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ artifacts/
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
Expand Down
108 changes: 108 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Change Log

## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/lib-CoreLibrary/tree/HEAD)

[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview028...HEAD)

**Implemented enhancements:**

- Add GetCustomAttributes method to MemberInfo and derived classes [\#27](https://github.com/nanoframework/lib-CoreLibrary/pull/27)
- Add Encoding.GetString\(\) method [\#20](https://github.com/nanoframework/lib-CoreLibrary/pull/20)
- Implement missing GetHashCode\(\) on several classes/structs [\#17](https://github.com/nanoframework/lib-CoreLibrary/pull/17)
- Improve System.Single [\#16](https://github.com/nanoframework/lib-CoreLibrary/pull/16)
- Work on Convert\(\) class [\#15](https://github.com/nanoframework/lib-CoreLibrary/pull/15) [[documentation](https://github.com/nanoframework/lib-CoreLibrary/labels/documentation)]
- Work on TimeSpan [\#14](https://github.com/nanoframework/lib-CoreLibrary/pull/14)
- Add overloads with float parameters to Math methods [\#13](https://github.com/nanoframework/lib-CoreLibrary/pull/13)
- Add String.Format [\#12](https://github.com/nanoframework/lib-CoreLibrary/pull/12)
- Add Timeout.InfiniteTimeSpan and Sleep\(timespan\) [\#11](https://github.com/nanoframework/lib-CoreLibrary/pull/11)
- Update Assembly info [\#4](https://github.com/nanoframework/lib-CoreLibrary/pull/4)

**Fixed bugs:**

- Fix Assembly.GetType\(string, bool\) throws ArgumentException [\#26](https://github.com/nanoframework/lib-CoreLibrary/pull/26)
- Fix PostProcessInteger in System.Number [\#25](https://github.com/nanoframework/lib-CoreLibrary/pull/25)
- Constructor should copy only the desired chars [\#24](https://github.com/nanoframework/lib-CoreLibrary/pull/24)
- Fix Hashtable.CopyTo [\#23](https://github.com/nanoframework/lib-CoreLibrary/pull/23)
- Fix issue with ToString for doubles and floats [\#22](https://github.com/nanoframework/lib-CoreLibrary/pull/22)
- Remove implementations of GetHashCode\(\) from several classes [\#21](https://github.com/nanoframework/lib-CoreLibrary/pull/21)
- Fix infinite loop in Append\(object value\) [\#10](https://github.com/nanoframework/lib-CoreLibrary/pull/10)
- Update Number.cs [\#6](https://github.com/nanoframework/lib-CoreLibrary/pull/6)

**Documentation and other chores:**

- Add all missing comments for documentation and Intellisense [\#18](https://github.com/nanoframework/lib-CoreLibrary/pull/18) [[documentation](https://github.com/nanoframework/lib-CoreLibrary/labels/documentation)]
- Update comment on Random class [\#9](https://github.com/nanoframework/lib-CoreLibrary/pull/9) [[documentation](https://github.com/nanoframework/lib-CoreLibrary/labels/documentation)]

## [v1.0.0-preview028](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview028) (2017-08-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview027...v1.0.0-preview028)

## [v1.0.0-preview027](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview027) (2017-08-30)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview026...v1.0.0-preview027)

## [v1.0.0-preview026](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview026) (2017-08-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview025...v1.0.0-preview026)

## [v1.0.0-preview025](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview025) (2017-08-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview024...v1.0.0-preview025)

## [v1.0.0-preview024](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview024) (2017-08-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview023...v1.0.0-preview024)

## [v1.0.0-preview023](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview023) (2017-08-18)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview022...v1.0.0-preview023)

## [v1.0.0-preview022](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview022) (2017-06-28)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview021...v1.0.0-preview022)

## [v1.0.0-preview021](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview021) (2017-06-28)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview020...v1.0.0-preview021)

## [v1.0.0-preview020](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview020) (2017-05-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview019...v1.0.0-preview020)

## [v1.0.0-preview019](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview019) (2017-05-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview018...v1.0.0-preview019)

## [v1.0.0-preview018](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview018) (2017-05-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview017...v1.0.0-preview018)

## [v1.0.0-preview017](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview017) (2017-05-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview016...v1.0.0-preview017)

## [v1.0.0-preview016](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview016) (2017-05-13)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview015...v1.0.0-preview016)

## [v1.0.0-preview015](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview015) (2017-05-12)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview014...v1.0.0-preview015)

## [v1.0.0-preview014](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview014) (2017-05-09)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview013...v1.0.0-preview014)

## [v1.0.0-preview013](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview013) (2017-05-08)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview012...v1.0.0-preview013)

## [v1.0.0-preview012](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview012) (2017-05-05)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview011...v1.0.0-preview012)

## [v1.0.0-preview011](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview011) (2017-05-04)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview010...v1.0.0-preview011)

## [v1.0.0-preview010](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview010) (2017-05-04)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview009...v1.0.0-preview010)

## [v1.0.0-preview009](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview009) (2017-05-03)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview008...v1.0.0-preview009)

## [v1.0.0-preview008](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview008) (2017-05-03)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview007...v1.0.0-preview008)

## [v1.0.0-preview007](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview007) (2017-05-02)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview006...v1.0.0-preview007)

## [v1.0.0-preview006](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview006) (2017-04-28)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview005...v1.0.0-preview006)

## [v1.0.0-preview005](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview005) (2017-04-28)


\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
18 changes: 14 additions & 4 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
next-version: 1.0.0
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
assembly-informational-format: '{LegacySemVerPadded}'
build-metadata-padding: 3
legacy-semver-padding: 3
assembly-informational-format: '{LegacySemVerPadded}'
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
commit-message-incrementing: MergeMessageOnly
branches:
master:
mode: ContinuousDelivery
Expand All @@ -15,14 +15,24 @@ branches:
prevent-increment-of-merged-branch-version: true
track-merge-target: false
develop:
regex: dev(elop)?(ment)?$
mode: ContinuousDeployment
tag: preview
increment: Minor
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: true
tracks-release-branches: true
is-release-branch: false
release:
tag: rc
(pull|pull\-requests|pr)[/-]:
pull-request:
regex: (pull|pull\-requests|pr)[/-]
tag: alpha
mode: ContinuousDelivery
increment: Inherit
prevent-increment-of-merged-branch-version: false
track-merge-target: false
tracks-release-branches: false
is-release-branch: false
ignore:
sha: []
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/nanoframework/Home/blob/master/LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.CoreLibrary.svg)]() [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md)
[![Discord](https://img.shields.io/discord/478725473862549535.svg)](https://discord.gg/gCyBu8T)


![nanoFramework logo](https://github.com/nanoframework/Home/blob/master/resources/logo/nanoFramework-repo-logo.png)

-----

### Welcome to the **nanoFramework** Core Library repository!

[![NuGet](https://img.shields.io/nuget/dt/nanoFramework.CoreLibrary.svg)]() [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md)


## Build status

| Component | Build Status | NuGet Package |
|:-|---|---|
| Core Library | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/master) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.CoreLibrary.svg)]() |
| Core Library (preview) | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.CoreLibrary.svg)]() |
| Core Library | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/master) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.CoreLibrary.svg)](https://www.nuget.org/packages/nanoFramework.CoreLibrary/) |
| Core Library (preview) | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/develop?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/develop) | [![MyGet Pre Release](https://img.shields.io/myget/nanoframework-dev/vpre/nanoFramework.CoreLibrary.svg)](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.CoreLibrary) |


## Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).

Join our Slack community by filling in this [invite form](https://nanoframework.wordpress.com/slack-invite-form/).
Join our Discord community [here](https://discord.gg/gCyBu8T).


## Credits
Expand Down
82 changes: 82 additions & 0 deletions appveyor-discord.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright (c) 2017 The nanoFramework project contributors
# Portions Copyright (c) Sankarsan Kampa (a.k.a. k3rn31p4nic). All rights reserved.
# See LICENSE file in the project root for full license information.

$STATUS=$args[0]
$WEBHOOK_URL=$args[1]

Write-Output "[Webhook]: Sending webhook to Discord..."

Switch ($STATUS) {
"success" {
$EMBED_COLOR=3066993
$STATUS_MESSAGE="Passed"
Break
}
"failure" {
$EMBED_COLOR=15158332
$STATUS_MESSAGE="Failed"
Break
}
default {
Write-Output "Default!"
Break
}
}

if (!$env:APPVEYOR_REPO_COMMIT) {
$env:APPVEYOR_REPO_COMMIT="$(git log -1 --pretty="%H")"
}

$AUTHOR_NAME="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%aN")"
$COMMITTER_NAME="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%cN")"
$COMMIT_SUBJECT="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%s")"
$COMMIT_MESSAGE="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%b")"

if ($AUTHOR_NAME -eq $COMMITTER_NAME) {
$CREDITS = "$AUTHOR_NAME authored & committed"
}
else {
$CREDITS = "$AUTHOR_NAME authored & $COMMITTER_NAME committed"
}

if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
$URL="https://github.com/$env:APPVEYOR_REPO_NAME/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER"
}
else {
$URL=""
}

$BUILD_VERSION = [uri]::EscapeDataString($env:APPVEYOR_BUILD_VERSION)

$WEBHOOK_DATA="{
""embeds"": [ {
""color"": $EMBED_COLOR,
""author"": {
""name"": ""Job #$env:APPVEYOR_JOB_NUMBER (Build #$env:APPVEYOR_BUILD_NUMBER) $STATUS_MESSAGE - $env:APPVEYOR_REPO_NAME"",
""url"": ""https://ci.appveyor.com/project/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/build/$BUILD_VERSION"",
""icon_url"": ""$AVATAR""
},
""title"": ""$COMMIT_SUBJECT"",
""url"": ""$URL"",
""description"": ""$COMMIT_MESSAGE $CREDITS"",
""fields"": [
{
""name"": ""Commit"",
""value"": ""[``$($env:APPVEYOR_REPO_COMMIT.substring(0, 7))``](https://github.com/$env:APPVEYOR_REPO_NAME/commit/$env:APPVEYOR_REPO_COMMIT)"",
""inline"": true
},
{
""name"": ""Branch/Tag"",
""value"": ""[``$env:APPVEYOR_REPO_BRANCH``](https://github.com/$env:APPVEYOR_REPO_NAME/tree/$env:APPVEYOR_REPO_BRANCH)"",
""inline"": true
}
]
} ],
""content"" : """",
""file"": """"
}"

Invoke-RestMethod -Uri $WEBHOOK_URL -Method POST -UserAgent AppVeyor-Webhook -ContentType 'application/json' -Body $WEBHOOK_DATA

Write-Output "[Webhook]: Successfully sent the webhook."
Loading

0 comments on commit 082e2f6

Please sign in to comment.