Skip to content

Commit 5d295c8

Browse files
Init
0 parents  commit 5d295c8

File tree

19 files changed

+517
-0
lines changed

19 files changed

+517
-0
lines changed

.circleci/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2.1
2+
jobs:
3+
build:
4+
docker:
5+
- image: ruby:3.0.0
6+
steps:
7+
- checkout
8+
- run:
9+
name: Run the default task
10+
command: |
11+
gem install bundler -v 2.4.0
12+
bundle install
13+
bundle exec rake

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
push:
8+
branches:
9+
- master
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
ruby: ["2.7", "3.0", "3.1", "3.2"]
16+
17+
steps:
18+
- uses: actions/checkout@master
19+
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby }}
24+
bundler: default
25+
bundler-cache: true
26+
27+
- name: StandardRb check
28+
run: bundle exec standardrb
29+
30+
- name: Run tests
31+
run: |
32+
bundle exec rspec

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## [Unreleased]
2+
3+
## [0.1.0] - 2023-05-23
4+
5+
- Initial release

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Specify your gem's dependencies in google_palm_api.gemspec
6+
gemspec
7+
8+
gem "rake", "~> 13.0"
9+
10+
gem "rspec", "~> 3.0"
11+
12+
gem "standard", "~> 1.28.0"

Gemfile.lock

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
PATH
2+
remote: .
3+
specs:
4+
google_palm_api (0.1.0)
5+
faraday (>= 1.0.0)
6+
faraday_middleware (>= 1.0.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
ast (2.4.2)
12+
byebug (11.1.3)
13+
coderay (1.1.3)
14+
diff-lcs (1.5.0)
15+
faraday (1.10.3)
16+
faraday-em_http (~> 1.0)
17+
faraday-em_synchrony (~> 1.0)
18+
faraday-excon (~> 1.1)
19+
faraday-httpclient (~> 1.0)
20+
faraday-multipart (~> 1.0)
21+
faraday-net_http (~> 1.0)
22+
faraday-net_http_persistent (~> 1.0)
23+
faraday-patron (~> 1.0)
24+
faraday-rack (~> 1.0)
25+
faraday-retry (~> 1.0)
26+
ruby2_keywords (>= 0.0.4)
27+
faraday-em_http (1.0.0)
28+
faraday-em_synchrony (1.0.0)
29+
faraday-excon (1.1.0)
30+
faraday-httpclient (1.0.1)
31+
faraday-multipart (1.0.4)
32+
multipart-post (~> 2)
33+
faraday-net_http (1.0.1)
34+
faraday-net_http_persistent (1.2.0)
35+
faraday-patron (1.0.0)
36+
faraday-rack (1.0.0)
37+
faraday-retry (1.0.3)
38+
faraday_middleware (1.2.0)
39+
faraday (~> 1.0)
40+
json (2.6.3)
41+
language_server-protocol (3.17.0.3)
42+
lint_roller (1.0.0)
43+
method_source (1.0.0)
44+
multipart-post (2.3.0)
45+
parallel (1.23.0)
46+
parser (3.2.2.1)
47+
ast (~> 2.4.1)
48+
pry (0.14.2)
49+
coderay (~> 1.1)
50+
method_source (~> 1.0)
51+
pry-byebug (3.10.1)
52+
byebug (~> 11.0)
53+
pry (>= 0.13, < 0.15)
54+
rainbow (3.1.1)
55+
rake (13.0.6)
56+
regexp_parser (2.8.0)
57+
rexml (3.2.5)
58+
rspec (3.12.0)
59+
rspec-core (~> 3.12.0)
60+
rspec-expectations (~> 3.12.0)
61+
rspec-mocks (~> 3.12.0)
62+
rspec-core (3.12.2)
63+
rspec-support (~> 3.12.0)
64+
rspec-expectations (3.12.3)
65+
diff-lcs (>= 1.2.0, < 2.0)
66+
rspec-support (~> 3.12.0)
67+
rspec-mocks (3.12.5)
68+
diff-lcs (>= 1.2.0, < 2.0)
69+
rspec-support (~> 3.12.0)
70+
rspec-support (3.12.0)
71+
rubocop (1.50.2)
72+
json (~> 2.3)
73+
parallel (~> 1.10)
74+
parser (>= 3.2.0.0)
75+
rainbow (>= 2.2.2, < 4.0)
76+
regexp_parser (>= 1.8, < 3.0)
77+
rexml (>= 3.2.5, < 4.0)
78+
rubocop-ast (>= 1.28.0, < 2.0)
79+
ruby-progressbar (~> 1.7)
80+
unicode-display_width (>= 2.4.0, < 3.0)
81+
rubocop-ast (1.28.1)
82+
parser (>= 3.2.1.0)
83+
rubocop-performance (1.16.0)
84+
rubocop (>= 1.7.0, < 2.0)
85+
rubocop-ast (>= 0.4.0)
86+
ruby-progressbar (1.13.0)
87+
ruby2_keywords (0.0.5)
88+
standard (1.28.2)
89+
language_server-protocol (~> 3.17.0.2)
90+
lint_roller (~> 1.0)
91+
rubocop (~> 1.50.2)
92+
standard-custom (~> 1.0.0)
93+
standard-performance (~> 1.0.1)
94+
standard-custom (1.0.0)
95+
lint_roller (~> 1.0)
96+
standard-performance (1.0.1)
97+
lint_roller (~> 1.0)
98+
rubocop-performance (~> 1.16.0)
99+
unicode-display_width (2.4.2)
100+
101+
PLATFORMS
102+
x86_64-darwin-19
103+
104+
DEPENDENCIES
105+
google_palm_api!
106+
pry-byebug (~> 3.9)
107+
rake (~> 13.0)
108+
rspec (~> 3.0)
109+
standard (~> 1.28.0)
110+
111+
BUNDLED WITH
112+
2.4.0

LICENSE.txt

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

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# GooglePalmApi
2+
3+
TODO: Delete this and the text below, and describe your gem
4+
5+
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/google_palm_api`. To experiment with that code, run `bin/console` for an interactive prompt.
6+
7+
## Installation
8+
9+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10+
11+
Install the gem and add to the application's Gemfile by executing:
12+
13+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14+
15+
If bundler is not being used to manage dependencies, install the gem by executing:
16+
17+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18+
19+
## Usage
20+
21+
TODO: Write usage instructions here
22+
23+
## Development
24+
25+
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.
26+
27+
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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28+
29+
## Contributing
30+
31+
Bug reports and pull requests are welcome on GitHub at https://github.com/andreibondarev/google_palm_api.
32+
33+
## License
34+
35+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
5+
6+
RSpec::Core::RakeTask.new(:spec)
7+
8+
task default: :spec

0 commit comments

Comments
 (0)