-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
510 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:root-dir: {asciidoctorconfigdir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
# YAML should be space separated see https://en.wikipedia.org/wiki/YAML#Pitfalls_and_implementation_defects | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
on: | ||
schedule: | ||
- cron: '30 0 * * *' | ||
jobs: | ||
update-bom: | ||
name: Updates Version and Opens PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Fetch Segment Maven descriptor | ||
run: curl https://repo1.maven.org/maven2/com/segment/analytics/java/analytics/maven-metadata.xml -o /tmp/maven-descriptor.xml | ||
- name: Extract the latest version | ||
uses: QwerMike/xpath-action@v1 | ||
id: xpath | ||
with: | ||
filename: '/tmp/maven-descriptor.xml' | ||
expression: '/metadata/versioning/latest/text()' | ||
- name: Upgrade Segment Version Number | ||
run: | | ||
sed -i 's/segmentLibrariesVersion.*/segmentLibrariesVersion = ${{ steps.xpath.outputs.result }}/' gradle.properties | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Upgraded to Segment Analytics ${{ steps.xpath.outputs.result }} | ||
title: '[Upgrade] Upgraded to the Segment Analytics ${{ steps.xpath.outputs.result }}' | ||
body: | | ||
There is a newer version ${{ steps.xpath.outputs.result }} of Segment Analytics is available. The dependency has been updated. | ||
labels: chore,upgrade | ||
assignees: musketyr | ||
branch: upgrade/segment-analytics | ||
- name: Check outputs | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#Lazybones saved template parameters | ||
#Tue Apr 13 09:06:19 CEST 2021 | ||
name=Micronaut Segment | ||
id=micronaut-segment | ||
dev.name=Vladimir Orany | ||
dev.id=musketyr | ||
bintray.repo=�libs | ||
bintray.org=agorapulse | ||
desc=Micronaut Segment Library | ||
pkg=com.agorapulse.micronaut.segment | ||
vendor=Agorapulse | ||
group=com.agorapulse | ||
org=agorapulse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
= Micronaut Segment | ||
|
||
-- | ||
image::https://img.shields.io/maven-central/v/com.agorapulse/micronaut-segment.svg?label=Maven%20Central[link="https://search.maven.org/search?q=g:%22com.agorapulse%22%20AND%20a:%22micronaut-segment%22",float="left"] | ||
image::https://github.com/agorapulse/micronaut-segment/workflows/Check/badge.svg["Build Status", link="https://github.com/agorapulse/micronaut-segment/actions?query=workflow%3ACheck"float="left"] | ||
image::https://coveralls.io/repos/github/agorapulse/micronaut-segment/badge.svg?branch=master[link=https://coveralls.io/github/agorapulse/micronaut-segment?branch=master",float="left"] | ||
-- | ||
|
||
''' | ||
|
||
http://segment.com[Segment] integration for http://micronaut.io[Micronaut]. | ||
|
||
See https://agorapulse.github.io/micronaut-segment[Full Documentation]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2019-2021 Agorapulse. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
config { | ||
docs { | ||
guide { | ||
publish { | ||
enabled = true | ||
} | ||
} | ||
} | ||
} | ||
|
||
configurations { | ||
asciidoctorExtensions | ||
} | ||
|
||
dependencies { | ||
asciidoctorExtensions 'com.bmuschko:asciidoctorj-tabbed-code-extension:0.3' | ||
} | ||
|
||
asciidoctor { | ||
configurations 'asciidoctorExtensions' | ||
|
||
baseDirFollowsSourceDir() | ||
|
||
attributes = [ | ||
'gradle-version': project.gradle.gradleVersion, | ||
'source-highlighter': 'prettify', | ||
'root-dir': rootDir, | ||
'project-slug': slug | ||
] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:includedir: {asciidoctorconfigdir} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
[[_configuration]] | ||
= Configuration | ||
|
||
You need to provide `segment.api-key` configuration property to send information to Segment. | ||
|
||
[source,yaml] | ||
---- | ||
segment: | ||
api-key: some-key | ||
---- | ||
|
||
You can rely on `SegmentService` bean being always present but if the API key is missing then no-op implementation is provided. |
Oops, something went wrong.