perplexity_api 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f134dd6fd6ac47f11b94ed74f4a6c361de0859a73b7845c9c642769e4e340b0
4
- data.tar.gz: b0e6576ed1173b6702d6382d2711f34b8ddae1570b2a793a19a216744b330ec1
3
+ metadata.gz: 10cccc1a9dad1b047e3bd0e8f23e28fe8a9f3aa1fdc74913508425ac5f0a6a02
4
+ data.tar.gz: 1459050a00ee3ed660ffeda383e57844f070468d4493b514cace04d80e32b7c7
5
5
  SHA512:
6
- metadata.gz: f891118c6640903373100e66654c59c15900eb36d4ed3d7c6b428e4c624b81d9930bd6b7569f39d1255753edf58acf664e57adbf80e92efe10bf189449b2586d
7
- data.tar.gz: '0097f6120b11a3ddde782cd0673bb4442a9c45f7e308f16363821ed9ae11b0a455191712e7c2cf8813498271d6bad826cef22e930cee822d7338c7bb44f11186'
6
+ metadata.gz: fe6ff45b5e5790e4b0677489f9e11d50c1009386756797bd315bbfe93c097f9bc269ef203d3e2b973fc51c4fee19ecde6e99ab084b092c0b84ce58f4b3b5671e
7
+ data.tar.gz: c22d078676a41db9f88e1494910787e0420e83d679eaee7455d53351f9471cf339f90165b8b8090e13b7557a4ff6b09d6ec873c6feaab696291d7752ab81699e
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.4.1] - 2025-01-07
6
+
7
+ ### Fixed
8
+ - Corrected homepage and source code URLs in gemspec
9
+
10
+ ## [0.4.0] - 2025-01-07
11
+
12
+ ### Changed
13
+ - **BREAKING**: Minimum Ruby version requirement updated from 2.6.0 to 3.1.0
14
+ - Updated development dependencies:
15
+ - Bundler from ~> 1.17 to ~> 2.0
16
+ - Rake from ~> 10.0 to ~> 13.0
17
+
18
+ ### Tested
19
+ - Verified compatibility with Ruby 3.4.4
20
+ - All 42 tests passing on Ruby 3.1.0+
21
+
5
22
  ## [0.3.0] - 2025-01-07
6
23
 
7
24
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- perplexity_api (0.3.0)
4
+ perplexity_api (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # PerplexityApi
2
- [![Gem Version](https://badge.fury.io/rb/perplexity_api.svg?v=0.2.1)](https://badge.fury.io/rb/perplexity_api)
2
+ [![Gem Version](https://badge.fury.io/rb/perplexity_api.svg?v=0.4.0)](https://badge.fury.io/rb/perplexity_api)
3
3
  [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.txt)
4
4
 
5
5
  A Ruby wrapper gem for Perplexity AI's API. This gem allows you to easily integrate Perplexity AI's powerful language models into your Ruby applications.
@@ -1,3 +1,3 @@
1
1
  module PerplexityApi
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -5,12 +5,12 @@ require "perplexity_api/version"
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "perplexity_api"
7
7
  spec.version = PerplexityApi::VERSION
8
- spec.authors = ["Hisafumi Kikkawa"]
8
+ spec.authors = ["Delightech"]
9
9
  spec.email = ["hisafumi.kikkawa@gmail.com"]
10
10
 
11
11
  spec.summary = %q{Ruby wrapper for Perplexity API}
12
12
  spec.description = %q{A Ruby library for easily using Perplexity AI's API. Allows setting API keys, selecting models, and customizing options.}
13
- spec.homepage = "https://github.com/hisafumi-kikkawa/perplexity_api"
13
+ spec.homepage = "https://github.com/delightech/perplexity_api"
14
14
  spec.license = "MIT"
15
15
 
16
16
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
20
20
 
21
21
  spec.metadata["homepage_uri"] = spec.homepage
22
- spec.metadata["source_code_uri"] = "https://github.com/hisafumi-kikkawa/perplexity_api"
23
- spec.metadata["changelog_uri"] = "https://github.com/hisafumi-kikkawa/perplexity_api/blob/master/CHANGELOG.md"
22
+ spec.metadata["source_code_uri"] = "https://github.com/delightech/perplexity_api"
23
+ spec.metadata["changelog_uri"] = "https://github.com/delightech/perplexity_api/blob/main/CHANGELOG.md"
24
24
  else
25
25
  raise "RubyGems 2.0 or newer is required to protect against " \
26
26
  "public gem pushes."
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perplexity_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
- - Hisafumi Kikkawa
8
- autorequire:
7
+ - Delightech
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-07-07 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -63,13 +62,13 @@ files:
63
62
  - ".env.example"
64
63
  - ".gitignore"
65
64
  - ".rspec"
65
+ - ".ruby-version"
66
66
  - ".travis.yml"
67
67
  - CHANGELOG.md
68
68
  - CODE_OF_CONDUCT.md
69
69
  - Gemfile
70
70
  - Gemfile.lock
71
71
  - LICENSE.txt
72
- - PUBLISHING.md
73
72
  - README.md
74
73
  - Rakefile
75
74
  - bin/console
@@ -85,15 +84,14 @@ files:
85
84
  - lib/perplexity_api/stream_client.rb
86
85
  - lib/perplexity_api/version.rb
87
86
  - perplexity_api.gemspec
88
- homepage: https://github.com/hisafumi-kikkawa/perplexity_api
87
+ homepage: https://github.com/delightech/perplexity_api
89
88
  licenses:
90
89
  - MIT
91
90
  metadata:
92
91
  allowed_push_host: https://rubygems.org
93
- homepage_uri: https://github.com/hisafumi-kikkawa/perplexity_api
94
- source_code_uri: https://github.com/hisafumi-kikkawa/perplexity_api
95
- changelog_uri: https://github.com/hisafumi-kikkawa/perplexity_api/blob/master/CHANGELOG.md
96
- post_install_message:
92
+ homepage_uri: https://github.com/delightech/perplexity_api
93
+ source_code_uri: https://github.com/delightech/perplexity_api
94
+ changelog_uri: https://github.com/delightech/perplexity_api/blob/main/CHANGELOG.md
97
95
  rdoc_options: []
98
96
  require_paths:
99
97
  - lib
@@ -108,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
106
  - !ruby/object:Gem::Version
109
107
  version: '0'
110
108
  requirements: []
111
- rubygems_version: 3.3.3
112
- signing_key:
109
+ rubygems_version: 3.6.7
113
110
  specification_version: 4
114
111
  summary: Ruby wrapper for Perplexity API
115
112
  test_files: []
data/PUBLISHING.md DELETED
@@ -1,101 +0,0 @@
1
- # Publishing Guide for Perplexity API Gem
2
-
3
- This document explains the steps to publish the Perplexity API Gem to [RubyGems.org](https://rubygems.org).
4
-
5
- ## Prerequisites
6
-
7
- 1. Have a RubyGems account
8
- 2. Have the `gem` command installed
9
- 3. Have git installed
10
-
11
- ## Publishing Steps
12
-
13
- ### 1. Check the gemspec file
14
-
15
- Verify that the `perplexity_api.gemspec` file has the following items correctly set:
16
-
17
- - `spec.authors` - Your name
18
- - `spec.email` - Your email address
19
- - `spec.summary` - A brief description of the gem
20
- - `spec.description` - A detailed description of the gem
21
- - `spec.homepage` - The URL of the gem's homepage (usually a GitHub repository URL)
22
- - `spec.metadata["source_code_uri"]` - The URI of the source code
23
- - `spec.metadata["changelog_uri"]` - The URI of the changelog
24
-
25
- ### 2. Check the version number
26
-
27
- Verify that the version number in `lib/perplexity_api/version.rb` is appropriate.
28
-
29
- ### 3. Run the tests
30
-
31
- Make sure all tests pass:
32
-
33
- ```
34
- $ bundle exec rake spec
35
- ```
36
-
37
- ### 4. Build the gem
38
-
39
- Build the gem:
40
-
41
- ```
42
- $ gem build perplexity_api.gemspec
43
- ```
44
-
45
- This will create a `perplexity_api-x.y.z.gem` file (where x.y.z is the version number).
46
-
47
- ### 5. Test the gem installation (optional)
48
-
49
- Install the built gem locally to verify it works correctly:
50
-
51
- ```
52
- $ gem install ./perplexity_api-x.y.z.gem
53
- ```
54
-
55
- ### 6. Publish to RubyGems
56
-
57
- Publish the gem to RubyGems:
58
-
59
- ```
60
- $ gem push perplexity_api-x.y.z.gem
61
- ```
62
-
63
- If this is your first time, you'll be prompted for your RubyGems username and password.
64
-
65
- ### 7. Verify the publication
66
-
67
- Visit [RubyGems.org](https://rubygems.org) to verify that the gem was published successfully:
68
-
69
- ```
70
- https://rubygems.org/gems/perplexity_api
71
- ```
72
-
73
- ## Version Update Steps
74
-
75
- 1. Make code changes
76
- 2. Add/update tests
77
- 3. Update the version number in `lib/perplexity_api/version.rb`
78
- 4. Update the changelog (if you have a CHANGELOG.md)
79
- 5. Follow steps 3-7 from the "Publishing Steps" section above
80
-
81
- ## Creating Git Tags (Recommended)
82
-
83
- It's recommended to create git tags for each version:
84
-
85
- ```
86
- $ git tag -a v0.1.0 -m "Version 0.1.0"
87
- $ git push origin v0.1.0
88
- ```
89
-
90
- ## Troubleshooting
91
-
92
- ### If publication fails
93
-
94
- - Check that there are no `TODO` items left in the gemspec file
95
- - Verify your RubyGems account information
96
- - Check your network connection
97
-
98
- ### If installation fails
99
-
100
- - Verify that dependencies are correctly set
101
- - Check that the Ruby version requirement is appropriate