Skip to content

Commit be5a76e

Browse files
author
unabris
committed
Release v0.1.0.pre
1 parent 69a4887 commit be5a76e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6053
-46
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99

1010
# rspec failure tracking
1111
.rspec_status
12+
13+
# Environment variables
14+
.env
15+
16+
# Apple file system
17+
.DS_Store

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--tag beyond_api.scopes:"Scopes"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### 0.1.0.pre
2+
3+
* features
4+
* All endpoints offered by the Beyond API

CONTRIBUTING.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Contributing to Beyond API Ruby Client
2+
3+
We love pull requests from everyone. Here are some ways _you_ can contribute:
4+
5+
* by using alpha, beta, and prerelease versions
6+
* by reporting bugs
7+
* by suggesting new features
8+
* by writing or editing documentation
9+
* by writing specifications
10+
* by writing code (**no patch is too small**: fix typos, add comments, clean up inconsistent whitespace)
11+
* by refactoring code
12+
* by closing [issues][]
13+
* by reviewing patches
14+
15+
[issues]: https://github.com/ePages-de/beyond_api-ruby_client/issues
16+
17+
## Submitting an Issue
18+
19+
* We use the [GitHub issue tracker][issues] to track bugs and features.
20+
* Before submitting a bug report or feature request, check to make sure it hasn't already been submitted.
21+
* When submitting a bug report, please include a [Gist][] that includes a stack trace and any details that may be necessary to reproduce the bug, including your gem version, Ruby version, and operating system. Ideally, a bug report should include a pull request with failing specs.
22+
23+
[gist]: https://gist.github.com/
24+
25+
## Cleaning up issues
26+
27+
* Issues that have no response from the submitter will be closed after 30 days.
28+
* Issues will be closed once they're assumed to be fixed or answered. If the maintainer is wrong, it can be opened again.
29+
* If your issue is closed by mistake, please understand and explain the issue. We will happily reopen the issue.
30+
31+
## Submitting a Pull Request
32+
33+
1. [Fork][fork] the [official repository][repo].
34+
2. [Create a topic branch.][branch]
35+
3. Implement your feature or bug fix.
36+
4. Add, commit, and push your changes.
37+
5. [Submit a pull request.][pr]
38+
39+
## Notes
40+
41+
* Please don't update the Gem version.
42+
43+
[repo]: https://github.com/ePages-de/beyond_api-ruby_client/tree/master
44+
[fork]: https://help.github.com/articles/fork-a-repo/
45+
[branch]: https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/
46+
[pr]: https://help.github.com/articles/using-pull-requests/
47+
48+
Inspired by https://github.com/thoughtbot/factory_bot/blob/master/CONTRIBUTING.md

GETTING_STARTED.md

Whitespace-only changes.

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ source "https://rubygems.org"
22

33
# Specify your gem's dependencies in beyond_api.gemspec
44
gemspec
5+
6+
gem "pry"

Gemfile.lock

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
PATH
2+
remote: .
3+
specs:
4+
beyond_api (0.1.0.pre)
5+
faraday (~> 0.15)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
coderay (1.1.2)
11+
concurrent-ruby (1.1.5)
12+
diff-lcs (1.3)
13+
dotenv (2.7.5)
14+
faker (2.4.0)
15+
i18n (~> 1.6.0)
16+
faraday (0.15.4)
17+
multipart-post (>= 1.2, < 3)
18+
i18n (1.6.0)
19+
concurrent-ruby (~> 1.0)
20+
method_source (0.9.2)
21+
multipart-post (2.1.1)
22+
pry (0.12.2)
23+
coderay (~> 1.1.0)
24+
method_source (~> 0.9.0)
25+
rake (10.5.0)
26+
rspec (3.8.0)
27+
rspec-core (~> 3.8.0)
28+
rspec-expectations (~> 3.8.0)
29+
rspec-mocks (~> 3.8.0)
30+
rspec-core (3.8.2)
31+
rspec-support (~> 3.8.0)
32+
rspec-expectations (3.8.4)
33+
diff-lcs (>= 1.2.0, < 2.0)
34+
rspec-support (~> 3.8.0)
35+
rspec-mocks (3.8.1)
36+
diff-lcs (>= 1.2.0, < 2.0)
37+
rspec-support (~> 3.8.0)
38+
rspec-support (3.8.2)
39+
yard (0.9.20)
40+
41+
PLATFORMS
42+
ruby
43+
44+
DEPENDENCIES
45+
beyond_api!
46+
bundler (~> 2.0)
47+
dotenv (~> 2.7)
48+
faker (~> 2.2)
49+
pry
50+
rake (~> 10.0)
51+
rspec (~> 3.0)
52+
yard (~> 0.9)
53+
54+
BUNDLED WITH
55+
2.0.2

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2019 ePages GmbH
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
19+
OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,51 @@
1-
# BeyondApi
2-
3-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/beyond_api`. To experiment with that code, run `bin/console` for an interactive prompt.
4-
5-
TODO: Delete this and the text above, and describe your gem
1+
# Beyond API Ruby Client
62

73
## Installation
84

95
Add this line to your application's Gemfile:
106

117
```ruby
12-
gem 'beyond_api'
8+
gem "beyond_api"
139
```
1410

1511
And then execute:
1612

17-
$ bundle
13+
```bash
14+
$ bundle install
15+
```
16+
17+
Next, you need to run the generator:
18+
19+
```bash
20+
$ rails generate beyond_api:install
21+
```
22+
23+
This will generate the configuration file on `config/initializers/beyond_api.rb`. Set the `client_id` and `client_secret` values to get started.
1824

19-
Or install it yourself as:
25+
> ⚠️ **Be careful!** Don't expose your `client_id` and `client_secret` or publish them on GitHub or any other service. Use [Rails Credentials](https://guides.rubyonrails.org/security.html#custom-credentials) or a gem like [dotenv](https://github.com/bkeepers/dotenv) to save your environment variables.
2026
21-
$ gem install beyond_api
27+
To install the gem manually from your shell, run:
2228

23-
## Usage
29+
```bash
30+
$ gem install beyond_api
31+
```
2432

25-
TODO: Write usage instructions here
33+
## Documentation
2634

2735
## Development
2836

29-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
37+
Check out the repo an run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
3038

31-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39+
To install this gem onto your local machine, run `bundle exec rake install`.
3240

3341
## Contributing
3442

35-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/beyond_api.
43+
Please see [CONTRIBUTING](https://github.com/ePages-de/beyond_api-ruby_client/blob/master/CONTRIBUTING.md).
44+
45+
## Changelog
46+
47+
Beyond API's changelog is available [here](https://github.com/ePages-de/beyond_api-ruby_client/blob/master/CHANGELOG.md).
48+
49+
## License
50+
51+
beyond_api is Copyright © 2019 ePages GmbH. It is free software, and may be redistributed under the terms specified in the [LICENSE](https://github.com/ePages-de/beyond_api-ruby_client/blob/master/LICENSE) file.

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
require "bundler/gem_tasks"
22
require "rspec/core/rake_task"
3+
require "yard"
34

45
RSpec::Core::RakeTask.new(:spec)
56

67
task :default => :spec
8+
9+
YARD::Rake::YardocTask.new do |t|
10+
t.files = ['lib/**/*.rb']
11+
end

0 commit comments

Comments
 (0)