From 8e0a2f11d5d47a7e074373aa0ba233c8fbe5f281 Mon Sep 17 00:00:00 2001 From: Edgar Espina Date: Sun, 10 Jun 2018 21:53:37 -0300 Subject: [PATCH] v4.1.0 --- handlebars-guava-cache/pom.xml | 2 +- handlebars-helpers/pom.xml | 2 +- .../jknack/handlebars/helper/JodaHelper.java | 2 +- .../jknack/handlebars/helper/NumberHelper.java | 9 ++++++--- handlebars-humanize/pom.xml | 2 +- .../github/jknack/handlebars/HumanizeHelper.java | 6 ++++-- handlebars-jackson2/pom.xml | 2 +- handlebars-markdown/pom.xml | 2 +- .../github/jknack/handlebars/MarkdownHelper.java | 2 +- handlebars-maven-plugin-tests/pom.xml | 2 +- handlebars-maven-plugin/pom.xml | 2 +- handlebars-proto/pom.xml | 2 +- handlebars-springmvc/pom.xml | 2 +- handlebars/pom.xml | 2 +- .../com/github/jknack/handlebars/Handlebars.java | 14 +++++++------- .../jknack/handlebars/helper/InlineDecorator.java | 2 +- .../jknack/handlebars/helper/LookupHelper.java | 2 +- .../jknack/handlebars/internal/Variable.java | 2 +- .../jknack/handlebars/io/TemplateSource.java | 4 ++-- pom.xml | 2 +- 20 files changed, 35 insertions(+), 30 deletions(-) diff --git a/handlebars-guava-cache/pom.xml b/handlebars-guava-cache/pom.xml index e0f91b4a1..0cd1be11d 100644 --- a/handlebars-guava-cache/pom.xml +++ b/handlebars-guava-cache/pom.xml @@ -5,7 +5,7 @@ com.github.jknack handlebars.java - 4.1.0-SNAPSHOT + 4.1.0 4.0.0 diff --git a/handlebars-helpers/pom.xml b/handlebars-helpers/pom.xml index ec26a30c1..53d7db9cf 100644 --- a/handlebars-helpers/pom.xml +++ b/handlebars-helpers/pom.xml @@ -4,7 +4,7 @@ com.github.jknack handlebars.java - 4.1.0-SNAPSHOT + 4.1.0 4.0.0 diff --git a/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/JodaHelper.java b/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/JodaHelper.java index 7840a9e4f..869e68a66 100644 --- a/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/JodaHelper.java +++ b/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/JodaHelper.java @@ -29,7 +29,7 @@ /** * Handlebars Helper for JodaTime ReadableInstance objects. * - * @author @mrhanlon https://github.com/mrhanlon + * @author mrhanlon */ public enum JodaHelper implements Helper { diff --git a/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/NumberHelper.java b/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/NumberHelper.java index d2d2c9f69..33942c3a4 100644 --- a/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/NumberHelper.java +++ b/handlebars-helpers/src/main/java/com/github/jknack/handlebars/helper/NumberHelper.java @@ -36,8 +36,9 @@ public enum NumberHelper implements Helper { * You can use the isEven helper to return a value only if the first argument * is even. Otherwise return null. * + *
{@code
    * 
  • - * + * }
  • * If value is 2, the output will be "leftBox". * */ @@ -52,8 +53,9 @@ public CharSequence safeApply(final Number value, final Options options) { * You can use the isOdd helper to return a value only if the first argument * is odd. Otherwise return null. * + *
    {@code
        * 
  • - * + * }
  • * If value is 3, the output will be "rightBox". * */ @@ -68,8 +70,9 @@ public CharSequence safeApply(final Number value, final Options options) { * You can use the stripes helper to return different value if the passed * argument is odd or even. * + *
    {@code
        * 
    -   *
    +   * }
    * If value is 2, the output will be "row-even". * */ diff --git a/handlebars-humanize/pom.xml b/handlebars-humanize/pom.xml index 916285ebc..19716ec3a 100644 --- a/handlebars-humanize/pom.xml +++ b/handlebars-humanize/pom.xml @@ -4,7 +4,7 @@ com.github.jknack handlebars.java - 4.1.0-SNAPSHOT + 4.1.0 4.0.0 diff --git a/handlebars-humanize/src/main/java/com/github/jknack/handlebars/HumanizeHelper.java b/handlebars-humanize/src/main/java/com/github/jknack/handlebars/HumanizeHelper.java index cad7a7f1e..ead797f8e 100644 --- a/handlebars-humanize/src/main/java/com/github/jknack/handlebars/HumanizeHelper.java +++ b/handlebars-humanize/src/main/java/com/github/jknack/handlebars/HumanizeHelper.java @@ -235,7 +235,7 @@ public Object apply(final Object value, final Options options) *

    * Constructs a message with pluralization logic from the given template. *

    - *
    Examples:
    + * Examples: * *
        * MessageFormat msg =
    @@ -274,7 +274,7 @@ public Object apply(final Object value, final Options options)
        * {{pluralize "pattern" arg0, arg1, ..., argn [locale="default"]}}
        * 
    * - * @see Humanize#pluralize(String, Locale) + * @see Humanize#pluralizeFormat(String, Locale) */ pluralize { @Override @@ -289,6 +289,7 @@ public Object apply(final Object value, final Options options) *

    * Transforms a text into a representation suitable to be used in an URL. *

    + *
    {@code
        * 
        * 
        * 
    @@ -303,6 +304,7 @@ public Object apply(final Object value, final Options options)
        * 
        * 
        * 
    Input"lo-siento-no-hablo-espanol"
    + * }
    * *
        * {{slugify string}}
    diff --git a/handlebars-jackson2/pom.xml b/handlebars-jackson2/pom.xml
    index 2d84bfeae..5819cde8f 100644
    --- a/handlebars-jackson2/pom.xml
    +++ b/handlebars-jackson2/pom.xml
    @@ -4,7 +4,7 @@
       
         com.github.jknack
         handlebars.java
    -    4.1.0-SNAPSHOT
    +    4.1.0
       
     
       4.0.0
    diff --git a/handlebars-markdown/pom.xml b/handlebars-markdown/pom.xml
    index 32c86d517..9e5fd4458 100644
    --- a/handlebars-markdown/pom.xml
    +++ b/handlebars-markdown/pom.xml
    @@ -4,7 +4,7 @@
       
         com.github.jknack
         handlebars.java
    -    4.1.0-SNAPSHOT
    +    4.1.0
       
     
       4.0.0
    diff --git a/handlebars-markdown/src/main/java/com/github/jknack/handlebars/MarkdownHelper.java b/handlebars-markdown/src/main/java/com/github/jknack/handlebars/MarkdownHelper.java
    index 6af5cc42e..640cba3df 100644
    --- a/handlebars-markdown/src/main/java/com/github/jknack/handlebars/MarkdownHelper.java
    +++ b/handlebars-markdown/src/main/java/com/github/jknack/handlebars/MarkdownHelper.java
    @@ -30,7 +30,7 @@
     public class MarkdownHelper implements Helper {
     
       /**
    -   * A singleton version of {@link Jackson2Helper}.
    +   * A singleton version of {@link MarkdownHelper}.
        */
       public static final Helper INSTANCE = new MarkdownHelper();
     
    diff --git a/handlebars-maven-plugin-tests/pom.xml b/handlebars-maven-plugin-tests/pom.xml
    index 7d09a75d3..462b0844e 100644
    --- a/handlebars-maven-plugin-tests/pom.xml
    +++ b/handlebars-maven-plugin-tests/pom.xml
    @@ -4,7 +4,7 @@
       
         com.github.jknack
         handlebars.java
    -    4.1.0-SNAPSHOT
    +    4.1.0
       
     
       4.0.0
    diff --git a/handlebars-maven-plugin/pom.xml b/handlebars-maven-plugin/pom.xml
    index dd5867e49..6ed90b454 100644
    --- a/handlebars-maven-plugin/pom.xml
    +++ b/handlebars-maven-plugin/pom.xml
    @@ -4,7 +4,7 @@
       
         com.github.jknack
         handlebars.java
    -    4.1.0-SNAPSHOT
    +    4.1.0
       
     
       4.0.0
    diff --git a/handlebars-proto/pom.xml b/handlebars-proto/pom.xml
    index 685bec6a6..5416ac101 100644
    --- a/handlebars-proto/pom.xml
    +++ b/handlebars-proto/pom.xml
    @@ -4,7 +4,7 @@
       
         com.github.jknack
         handlebars.java
    -    4.1.0-SNAPSHOT
    +    4.1.0
       
     
       4.0.0
    diff --git a/handlebars-springmvc/pom.xml b/handlebars-springmvc/pom.xml
    index cf7962b38..113255863 100644
    --- a/handlebars-springmvc/pom.xml
    +++ b/handlebars-springmvc/pom.xml
    @@ -4,7 +4,7 @@
       
         com.github.jknack
         handlebars.java
    -    4.1.0-SNAPSHOT
    +    4.1.0
       
     
       4.0.0
    diff --git a/handlebars/pom.xml b/handlebars/pom.xml
    index 0675c48ce..85e107e89 100644
    --- a/handlebars/pom.xml
    +++ b/handlebars/pom.xml
    @@ -6,7 +6,7 @@
       
         com.github.jknack
         handlebars.java
    -    4.1.0-SNAPSHOT
    +    4.1.0
       
     
       4.0.0
    diff --git a/handlebars/src/main/java/com/github/jknack/handlebars/Handlebars.java b/handlebars/src/main/java/com/github/jknack/handlebars/Handlebars.java
    index ee215a899..c46d664ac 100644
    --- a/handlebars/src/main/java/com/github/jknack/handlebars/Handlebars.java
    +++ b/handlebars/src/main/java/com/github/jknack/handlebars/Handlebars.java
    @@ -790,7 +790,7 @@ public Handlebars registerHelpers(final String filename, final InputStream sourc
        * @param filename The file name (just for debugging purpose). Required.
        * @param source The JavaScript source. Required.
        * @return This handlebars object.
    -   * @throws Exception If the JavaScript helpers can't be registered.
    +   * @throws IOException If the JavaScript helpers can't be registered.
        */
       @Override
       public Handlebars registerHelpers(final String filename, final String source) throws IOException {
    @@ -1251,9 +1251,9 @@ public Handlebars parentScopeResolution(final boolean parentScopeResolution) {
       /**
        * If true, partial blocks will implicitly be evaluated before the partials will actually
        * be executed. If false, you need to explicitly evaluate and render partial blocks with
    -   * 
    +   * 
    {@code
        *     {{> @partial-block}}
    -   * 
    + * }
    * Attention: If this is set to true, Handlebars works *much* slower! while rendering * partial blocks. Default is: true for compatibility reasons. * @@ -1269,9 +1269,9 @@ public boolean preEvaluatePartialBlocks() { /** * If true, partial blocks will implicitly be evaluated before the partials will actually * be executed. If false, you need to explicitly evaluate and render partial blocks with - *
    +   * 
    {@code
        *     {{> @partial-block}}
    -   * 
    + * }
    * Attention: If this is set to true, Handlebars works *much* slower! while rendering * partial blocks. Default is: true for compatibility reasons. * @@ -1289,9 +1289,9 @@ public void setPreEvaluatePartialBlocks(final boolean preEvaluatePartialBlocks) * If true, partial blocks will implicitly be evaluated before the partials will actually * be executed. If false, you need to explicitly evaluate and render partial blocks with * - *
    +   * 
    {@code
        *     {{> @partial-block}}
    -   * 
    + * }
    * Attention: If this is set to true, Handlebars works *much* slower! while rendering * partial blocks. Default is: true for compatibility reasons. * diff --git a/handlebars/src/main/java/com/github/jknack/handlebars/helper/InlineDecorator.java b/handlebars/src/main/java/com/github/jknack/handlebars/helper/InlineDecorator.java index 0ddea23ff..411561020 100644 --- a/handlebars/src/main/java/com/github/jknack/handlebars/helper/InlineDecorator.java +++ b/handlebars/src/main/java/com/github/jknack/handlebars/helper/InlineDecorator.java @@ -30,7 +30,7 @@ * Inline partials via {@link Decorator} API. * *
    - * {{#*inline \"myPartial\"}}success{{/inline}}{{> myPartial}}
    + * {{#*inline \"myPartial\"}}success{{/inline}}{{> myPartial}}
      * 
    * * @author edgar diff --git a/handlebars/src/main/java/com/github/jknack/handlebars/helper/LookupHelper.java b/handlebars/src/main/java/com/github/jknack/handlebars/helper/LookupHelper.java index 108538f3a..22623c956 100644 --- a/handlebars/src/main/java/com/github/jknack/handlebars/helper/LookupHelper.java +++ b/handlebars/src/main/java/com/github/jknack/handlebars/helper/LookupHelper.java @@ -29,7 +29,7 @@ * It was introduced with dynamic partials: * *
    - * {{> (lookup '.' 'myVariable') }}
    + * {{> (lookup '.' 'myVariable') }}
      * 
    * * @author edgar diff --git a/handlebars/src/main/java/com/github/jknack/handlebars/internal/Variable.java b/handlebars/src/main/java/com/github/jknack/handlebars/internal/Variable.java index d5e8112aa..d5274d658 100644 --- a/handlebars/src/main/java/com/github/jknack/handlebars/internal/Variable.java +++ b/handlebars/src/main/java/com/github/jknack/handlebars/internal/Variable.java @@ -43,7 +43,7 @@ * key, nothing will be rendered. * All variables are HTML escaped by default. If you want to return unescaped * HTML, use the triple mustache: {{{name}}}. - * You can also use & to unescape a variable: {{& name}}. This may be useful + * You can also use & to unescape a variable: {{& name}}. This may be useful * when changing delimiters. * * @author edgar.espina diff --git a/handlebars/src/main/java/com/github/jknack/handlebars/io/TemplateSource.java b/handlebars/src/main/java/com/github/jknack/handlebars/io/TemplateSource.java index 5a5f6872d..28d66167d 100644 --- a/handlebars/src/main/java/com/github/jknack/handlebars/io/TemplateSource.java +++ b/handlebars/src/main/java/com/github/jknack/handlebars/io/TemplateSource.java @@ -22,8 +22,8 @@ /** * The template source. Implementation of {@link TemplateSource} must implement - * {@link #equals(Object)} and {@link #hashCode()} methods. This two methods are the core of the - * cache system. + * equals(Object) and hashCode() methods. This two methods are the core + * of the cache system. * * @author edgar.espina * @since 0.11.0 diff --git a/pom.xml b/pom.xml index 3d80d9c14..148b805d6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.github.jknack handlebars.java - 4.1.0-SNAPSHOT + 4.1.0 pom Handlebars.java