From 369c66326bf8d6995d3e7c786265ec513a53afa9 Mon Sep 17 00:00:00 2001 From: Krzysztof Zablocki Date: Thu, 22 Dec 2016 09:08:01 +0100 Subject: [PATCH] docs: update metadata for 0.4.7 release --- CHANGELOG.md | 11 +++++++---- README.md | 14 ++++++-------- Sourcery.podspec | 2 +- Sourcery/Sourcery.swift | 2 +- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 492d9788f..336c77a66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Sourcery CHANGELOG --- +## 0.4.7 +### New Features +- Added `contains`, `hasPrefix`, `hasPrefix` filters + +### Bug Fixes +- AccessLevel is now stored as string + ## 0.4.6 ### Bug Fixes @@ -12,10 +19,6 @@ * Swift Package Manager support. -## Master - -* added contains, hasSuffix and hasPrefix filters for string values - ## 0.4.4 ### New Features diff --git a/README.md b/README.md index 4df679020..7299e9c2a 100644 --- a/README.md +++ b/README.md @@ -242,6 +242,12 @@ For each type you can access following properties: - `writeAccess` <- what is the protection access for writing? - `annotations` <- dictionary with configured [annotations](#source-annotations) +## Custom Stencil tags and filter + +- `{{ name|upperFirst }}` - makes first letter in `name` uppercase +- `{% if name|contains: "Foo" %}` - check if `name` contains arbitrary substring +- `{% if name|hasPrefix: "Foo" %}`- check if `name` starts with arbitrary substring +- `{% if name|hasSuffix: "Foo" %}`- check if `name` ends with arbitrary substring ## Source Annotations @@ -284,14 +290,6 @@ If you want to attribute multiple items with same attributes, you can use sectio {% endif %} ``` -## Custom Stencil tags and filter - -- `{{ name|upperFirst }}` - makes first letter in `name` lowercase -- `{% if name|contains: "Foo" %}` - check if `name` contains arbitrary substring -- `{% if name|hasPrefix: "Foo" %}`- check if `name` starts with arbitrary substring -- `{% if name|hasSuffix: "Foo" %}`- check if `name` ends with arbitrary substring - - # Installing ## Installation diff --git a/Sourcery.podspec b/Sourcery.podspec index 5b704a083..e20367de2 100644 --- a/Sourcery.podspec +++ b/Sourcery.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Sourcery" - s.version = "0.4.6" + s.version = "0.4.7" s.summary = "A tool that brings meta-programming to Swift, allowing you to code generate Swift code." s.description = <<-DESC diff --git a/Sourcery/Sourcery.swift b/Sourcery/Sourcery.swift index 671b824e0..ba9d90bf0 100644 --- a/Sourcery/Sourcery.swift +++ b/Sourcery/Sourcery.swift @@ -12,7 +12,7 @@ import SwiftTryCatch /// If you specify templatePath as a folder, it will create a Generated[TemplateName].swift file /// If you specify templatePath as specific file, it will put all generated results into that single file public class Sourcery { - public static let version: String = inUnitTests ? "Major.Minor.Patch" : "0.4.6" + public static let version: String = inUnitTests ? "Major.Minor.Patch" : "0.4.7" public static let generationMarker: String = "// Generated using Sourcery" let verbose: Bool