Skip to content

Commit a3fc0c7

Browse files
Update docs and bump to 0.1.0 (#6)
1 parent da84efe commit a3fc0c7

File tree

7 files changed

+133
-15
lines changed

7 files changed

+133
-15
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ build-iPhoneSimulator/
7777
Gemfile.lock
7878
gemfiles/*.lock
7979
.DS_Store!
80-
spec/workspace
80+
spec/workspace
81+
*.tgz*

CONTRIBUTING.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Contributing to Apache SkyWalking Ruby
2+
3+
Firstly, thanks for your interest in contributing! We hope that this will be a pleasant experience for you,
4+
so that you will return to continue contributing.
5+
6+
## Code of Conduct
7+
8+
The project and everyone participating in it is governed by the Apache software Foundation's [Code of Conduct](http://www.apache.org/foundation/policies/conduct.html).
9+
By participating, you are expected to adhere to this code. If you are aware of unacceptable behavior, please visit the [Reporting Guidelines page](http://www.apache.org/foundation/policies/conduct.html#reporting-guidelines)
10+
and follow the instructions there.
11+
12+
## Contribute
13+
14+
Most of the contributions that we receive are code contributions, but you can also contribute to the documentation or simply report solid bugs for us to fix.
15+
16+
## Report a bug
17+
18+
* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/apache/skywalking/issues).
19+
20+
* If you're unable to find an issue addressing the problem, [open a new one](https://github.com/apache/skywalking/issues/new).
21+
Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not happening.
22+
23+
## Compiling and building
24+
25+
We recommend using a Ruby base image of at least 3.0 to build skywalking-ruby project
26+
27+
```shell
28+
docker run -it --rm -v $(pwd)/skywalking-ruby:/workspace -w /workspace ruby:3.0 bash
29+
```
30+
31+
Then run the following commands to build the project:
32+
33+
```shell
34+
gem build skywalking.gemspec
35+
```
36+
37+
## Add a new feature or enhance an existing one
38+
39+
_Before making any significant changes, please [open an issue](https://github.com/apache/skywalking/issues)._
40+
Discussing your proposed changes ahead of time will make the contribution process smooth for everyone.
41+
42+
Once we've discussed your changes and you've got your code ready, make sure that tests are passing and open your pull request. Your PR is most likely to be accepted if it:
43+
44+
* Update the README.md with details of changes to the interface.
45+
* Includes tests for new functionality.
46+
* References the original issue in description, e.g. "Resolves #123", "Closes #123", or "Fixes #123", etc.
47+
* Has a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
48+
49+
## Questions about the source code
50+
51+
* Join `#skywalking` channel at [Apache Slack](https://s.apache.org/slack-invite)

Makefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
.PHONY: license
18+
license: license
19+
docker run -it --rm -v $(shell pwd):/github/workspace ghcr.io/apache/skywalking-eyes/license-eye:20da317d1ad158e79e24355fdc28f53370e94c8a header check
20+
21+
.PHONY: clean
22+
clean:
23+
rm -rf skywalking-ruby*.tgz*
24+
rm -rf skywalking*.gem
25+
26+
.PHONY: release
27+
release: clean
28+
tar -zcvf "skywalking-ruby-src-${VERSION}.tgz" \
29+
--exclude .git \
30+
--exclude .idea \
31+
--exclude .cache \
32+
--exclude .DS_Store \
33+
--exclude .github \
34+
--exclude .gitignore \
35+
--exclude .gitmodules \
36+
--exclude "skywalking-ruby-*.tgz*" *
37+
gpg --batch --yes --armor --detach-sig skywalking-ruby-src-${VERSION}.tgz
38+
shasum -a 512 skywalking-ruby-src-${VERSION}.tgz > skywalking-ruby-src-${VERSION}.tgz.sha512

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ Apache SkyWalking Ruby Agent
88
**SkyWalking**: an APM(application performance monitor) system, especially designed for
99
microservices, cloud native and container-based (Docker, Kubernetes, Mesos) architectures.
1010

11-
# Documentation
11+
## Documentation
1212
- [Official documentation](https://skywalking.apache.org/docs/#RubyAgent)
1313

14+
## Contributing
15+
Before submitting a pull request or pushing a commit, please read our [contributing](CONTRIBUTING.md).
16+
1417
## Contact Us
1518
* Submit [an issue](https://github.com/apache/skywalking/issues/new) by using [Ruby] as title prefix.
1619
* Mail list: **[email protected]**. Mail to `[email protected]`, follow the reply to subscribe the mail list.

docs/en/development-and-contribution/how-to-release.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export VERSION=<the version to release>
2525
git clone --recurse-submodules [email protected]:apache/skywalking-ruby && cd skywalking-ruby
2626
git tag -a "v$VERSION" -m "Release Apache SkyWalking-Ruby $VERSION"
2727
git push --tags
28-
28+
make release
2929
```
3030

3131
## Upload to Apache svn
@@ -37,11 +37,17 @@ cp skywalking-ruby/skywalking*.tgz release/skywalking/ruby/"$VERSION"
3737
cp skywalking-ruby/skywalking*.tgz.asc release/skywalking/ruby/"$VERSION"
3838
cp skywalking-ruby/skywalking*.tgz.sha512 release/skywalking/ruby/"$VERSION"
3939

40-
cd release/skywalking && svn add ruby/$VERSION && svn commit ruby -m "Draft Apache SkyWalking-Ruby release $VERSION"
40+
cd release/skywalking/ruby && svn add $VERSION && svn commit -m "Draft Apache SkyWalking-Ruby release $VERSION"
4141
```
4242

4343
## Call for vote in dev@ mailing list
4444

45+
First, generate a sha512sum for the source code package generated in last step:
46+
47+
```shell
48+
sha512sum release/skywalking/ruby/"$VERSION"/skywalking-ruby-src-"$VERSION".tgz
49+
```
50+
4551
Call for vote in `[email protected]`.
4652

4753
```text
@@ -52,6 +58,9 @@ Content:
5258
Hi the SkyWalking Community:
5359
This is a call for vote to release Apache SkyWalking Ruby version $VERSION.
5460
61+
We welcome any comments you may have, and will take all feedback into
62+
account if a quality vote is called for this build.
63+
5564
Release notes:
5665
5766
* https://github.com/apache/skywalking-ruby/blob/v$VERSION/CHANGELOG.md
@@ -76,17 +85,10 @@ Keys to verify the Release Candidate :
7685
7786
Guide to build the release from source :
7887
79-
* https://github.com/apache/skywalking-ruby/blob/master/CONTRIBUTING.md#compiling-and-building
80-
81-
Voting will start now and will remain open for at least 72 hours, all PMC members are required to give their votes.
82-
83-
[ ] +1 Release this package.
84-
[ ] +0 No opinion.
85-
[ ] -1 Do not release this package because....
86-
87-
Thanks.
88+
* https://github.com/apache/skywalking-ruby/blob/main/CONTRIBUTING.md#compiling-and-building
8889
89-
[1] https://github.com/apache/skywalking-ruby/blob/master/docs/How-to-release.md#vote-check
90+
A vote regarding the quality of this test build will be initiated
91+
within the next couple of days.
9092
```
9193

9294
## Vote Check

docs/en/setup/quick-start.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,29 @@ gem "skywalking"
1919

2020
Besides, you can also make installation as simple as `gem install skywalking`.
2121

22+
## Installing from Source Code
23+
24+
**Download the source tar from the [official website](http://skywalking.apache.org/downloads/), and run the following commands to build from source**
25+
26+
**Make sure you have Ruby 3.0+ and the `gem` command available**
27+
28+
~~~shell
29+
tar -zxf skywalking-ruby-src-<version>.tgz
30+
cd skywalking-ruby-src-<version>
31+
gem build skywalking.gemspec
32+
~~~
33+
34+
If successful, the following will be displayed:
35+
36+
```ruby
37+
Successfully built RubyGem
38+
Name: skywalking
39+
Version: <version>
40+
File: skywalking-<version>.gem
41+
```
42+
43+
Then you can use `skywalking-<version>.gem` to your gemfile.
44+
2245
## Getting started with Rails
2346

2447
You need to manually add `Skywalking.start` under config/initializers directory.

lib/skywalking/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# limitations under the License.
1515

1616
module Skywalking
17-
VERSION = "0.0.0.beta2".freeze
17+
VERSION = "0.1.0".freeze
1818
end

0 commit comments

Comments
 (0)