ruby-openai 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a7d27bf0f52788ef3941a6b77e0fba8896fe93cebedf04a034a10a2612bf82d
4
- data.tar.gz: 0f2428ce0a634438124e9c9e3155b58e323aa79ba1fc5b423d5ef0b975b09b43
3
+ metadata.gz: 2b8fe14b8e08b05f4743569e5c94f92552032802bf0eb4fd39fd8168ea6e1105
4
+ data.tar.gz: 70933cec4140ffe73c52e0bc25e5afc2bb65d4348b1c8138f95acc8b7ccdb500
5
5
  SHA512:
6
- metadata.gz: 4a516cc0f45ec8d7e4085dc67b0db380c34be6712eb822de199b0c8b83f9623c681828c76259d5d17478cca279ae6227c372cbb755151159a0f868146772e579
7
- data.tar.gz: bf7f2bd1ffd7064d4f553f87a3eda924871d8a6d60140290af1b4edd01b689af3792b651b7084904fc711a4e27209ed257c20b9076759a213f30f2b98c1207cb
6
+ metadata.gz: 58572f5ea0262e16d9b6a916e5a1ae04e786804cdb04771e443ce8c6010b4d6ba2956e1cb5c82a03d743d83e8511f91e9510b6ac5b36ab257435c5cd02dc41f2
7
+ data.tar.gz: b655c9054c7d89c8dfb8b1f364acc7e70a8aece46bdaf4c365a693d81dc97db83f8e6fe325e8e7eabdec12c079aca9c12e402ac909fe485e721cf8613d46f403
data/.circleci/config.yml CHANGED
@@ -8,7 +8,7 @@ jobs:
8
8
  rubocop:
9
9
  parallelism: 1
10
10
  docker:
11
- - image: cimg/ruby:2.7-node
11
+ - image: cimg/ruby:3.0-node
12
12
  steps:
13
13
  - checkout
14
14
  - ruby/install-deps
@@ -16,9 +16,12 @@ jobs:
16
16
  name: Run Rubocop
17
17
  command: bundle exec rubocop
18
18
  test:
19
+ parameters:
20
+ ruby-image:
21
+ type: string
19
22
  parallelism: 1
20
23
  docker:
21
- - image: cimg/ruby:2.7-node
24
+ - image: << parameters.ruby-image >>
22
25
  steps:
23
26
  - checkout
24
27
  - ruby/install-deps
@@ -31,4 +34,7 @@ workflows:
31
34
  checks:
32
35
  jobs:
33
36
  - rubocop
34
- - test
37
+ - test:
38
+ matrix:
39
+ parameters:
40
+ ruby-image: ['cimg/ruby:2.5-node', 'cimg/ruby:2.6-node', 'cimg/ruby:2.7-node', 'cimg/ruby:3.0-node']
@@ -0,0 +1,15 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ open-pull-requests-limit: 10
8
+ ignore:
9
+ - dependency-name: webmock
10
+ versions:
11
+ - 3.11.1
12
+ - 3.11.3
13
+ - dependency-name: rspec
14
+ versions:
15
+ - 3.10.0
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7
2
+ TargetRubyVersion: 2.5
3
3
  NewCops: enable
4
4
  SuggestExtensions: false
5
5
 
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.3.1] - 2021-07-14
9
+
10
+ ### Changed
11
+
12
+ - Add backwards compatibility from Ruby 2.5+.
13
+
8
14
  ## [1.3.0] - 2021-04-18
9
15
 
10
16
  ### Added
data/Gemfile CHANGED
@@ -6,6 +6,6 @@ gemspec
6
6
  gem "byebug", "~> 11.1.3"
7
7
  gem "rake", "~> 13.0"
8
8
  gem "rspec", "~> 3.10"
9
- gem "rubocop", "~> 1.12.1"
9
+ gem "rubocop", "~> 1.18.3"
10
10
  gem "vcr", "~> 6.0.0"
11
- gem "webmock", "~> 3.12.2"
11
+ gem "webmock", "~> 3.13.0"
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-openai (1.3.0)
4
+ ruby-openai (1.3.1)
5
5
  dotenv (~> 2.7.6)
6
6
  httparty (~> 0.18.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.7.0)
11
+ addressable (2.8.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.2)
14
14
  byebug (11.1.3)
@@ -22,16 +22,16 @@ GEM
22
22
  multi_xml (>= 0.5.2)
23
23
  mime-types (3.3.1)
24
24
  mime-types-data (~> 3.2015)
25
- mime-types-data (3.2021.0225)
25
+ mime-types-data (3.2021.0704)
26
26
  multi_xml (0.6.0)
27
27
  parallel (1.20.1)
28
- parser (3.0.0.0)
28
+ parser (3.0.1.1)
29
29
  ast (~> 2.4.1)
30
30
  public_suffix (4.0.6)
31
31
  rainbow (3.0.0)
32
- rake (13.0.3)
32
+ rake (13.0.6)
33
33
  regexp_parser (2.1.1)
34
- rexml (3.2.4)
34
+ rexml (3.2.5)
35
35
  rspec (3.10.0)
36
36
  rspec-core (~> 3.10.0)
37
37
  rspec-expectations (~> 3.10.0)
@@ -45,21 +45,21 @@ GEM
45
45
  diff-lcs (>= 1.2.0, < 2.0)
46
46
  rspec-support (~> 3.10.0)
47
47
  rspec-support (3.10.1)
48
- rubocop (1.12.1)
48
+ rubocop (1.18.3)
49
49
  parallel (~> 1.10)
50
50
  parser (>= 3.0.0.0)
51
51
  rainbow (>= 2.2.2, < 4.0)
52
52
  regexp_parser (>= 1.8, < 3.0)
53
53
  rexml
54
- rubocop-ast (>= 1.2.0, < 2.0)
54
+ rubocop-ast (>= 1.7.0, < 2.0)
55
55
  ruby-progressbar (~> 1.7)
56
56
  unicode-display_width (>= 1.4.0, < 3.0)
57
- rubocop-ast (1.4.1)
58
- parser (>= 2.7.1.5)
57
+ rubocop-ast (1.7.0)
58
+ parser (>= 3.0.1.1)
59
59
  ruby-progressbar (1.11.0)
60
60
  unicode-display_width (2.0.0)
61
61
  vcr (6.0.0)
62
- webmock (3.12.2)
62
+ webmock (3.13.0)
63
63
  addressable (>= 2.3.6)
64
64
  crack (>= 0.3.2)
65
65
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -71,10 +71,10 @@ DEPENDENCIES
71
71
  byebug (~> 11.1.3)
72
72
  rake (~> 13.0)
73
73
  rspec (~> 3.10)
74
- rubocop (~> 1.12.1)
74
+ rubocop (~> 1.18.3)
75
75
  ruby-openai!
76
76
  vcr (~> 6.0.0)
77
- webmock (~> 3.12.2)
77
+ webmock (~> 3.13.0)
78
78
 
79
79
  BUNDLED WITH
80
80
  2.2.3
data/README.md CHANGED
@@ -149,7 +149,7 @@ Or use the ID of a file you've uploaded:
149
149
 
150
150
  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.
151
151
 
152
- 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).
152
+ 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`, update `CHANGELOG.md`, 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).
153
153
 
154
154
  ## Contributing
155
155
 
@@ -1,5 +1,5 @@
1
1
  module Ruby
2
2
  module OpenAI
3
- VERSION = "1.3.0".freeze
3
+ VERSION = "1.3.1".freeze
4
4
  end
5
5
  end
data/ruby-openai.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.summary = "A Ruby gem for the OpenAI GPT-3 API"
10
10
  spec.homepage = "https://github.com/alexrudall/ruby-openai"
11
11
  spec.license = "MIT"
12
- spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
12
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
13
13
 
14
14
  spec.metadata["homepage_uri"] = spec.homepage
15
15
  spec.metadata["source_code_uri"] = "https://github.com/alexrudall/ruby-openai"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-18 00:00:00.000000000 Z
11
+ date: 2021-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -48,6 +48,7 @@ files:
48
48
  - ".circleci/config.yml"
49
49
  - ".github/ISSUE_TEMPLATE/bug_report.md"
50
50
  - ".github/ISSUE_TEMPLATE/feature_request.md"
51
+ - ".github/dependabot.yml"
51
52
  - ".gitignore"
52
53
  - ".rspec"
53
54
  - ".rubocop.yml"
@@ -83,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
84
  requirements:
84
85
  - - ">="
85
86
  - !ruby/object:Gem::Version
86
- version: 2.7.0
87
+ version: 2.5.0
87
88
  required_rubygems_version: !ruby/object:Gem::Requirement
88
89
  requirements:
89
90
  - - ">="