pika_sdk 0.1.0 → 0.2.0

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: f659b6d06293ce587938c8bf9c68173d5a76c0f361c505e5b1b6958720fe18b3
4
- data.tar.gz: 2900dfb5af5863c96bca8c8d0d439f48f41d8974c2b6cadea3cc8209224da18f
3
+ metadata.gz: f985e61fa1c2e22769641a1f921ab539bef8572a042128097daa3463658a9d92
4
+ data.tar.gz: d9660b2175c777320ddeee3a22dcc7ac50737ed6399295f8789aa8aca16afad8
5
5
  SHA512:
6
- metadata.gz: 56aa314045257aea4f5c5eefa0d21bb01208d464108868a39ad68dd785596d83a81a5718b6f99dfc4eff50a8e7f2cf8cff7069f150d45757c317f6dc8b0fad5c
7
- data.tar.gz: effe28274f13987d4a688e120867d63adbe304f9cfce7d3b0eab9e453e8ff13b70bdfe7a701cdb227642f8f8766054c6dfad6a114ec20e02b0f3c5a9ebe74b07
6
+ metadata.gz: 581bb27999e356b902858a85ba1dee5e2b5cdf08be4262b314c95d85e69d6cdac5b9ee90b13f5ef66ee3878cbe39fa5ca468046cfecbb2bd381ec638d6ee649a
7
+ data.tar.gz: b0ba5c4ff79bf8bb5e78a43d1e9941b7bb88021a232ccbe2c67ffc07aec5af6b83b93790771fe385b56c9fef781c5c7c741c2b87389329a9794a34bd4e17dfe5
data/README.md CHANGED
@@ -25,7 +25,7 @@ Initialise a client
25
25
  ```ruby
26
26
  require 'pika_sdk'
27
27
 
28
- client = PikaApi::Client.new('sk-he2jdus1cbz1dpt4mktgjyvx')
28
+ client = PikaSdk::Client.new('sk-he2jdus1cbz1dpt4mktgjyvx')
29
29
  ```
30
30
 
31
31
  If you don't have your API key, get one from [Pika.style](https://pika.style).
@@ -44,7 +44,7 @@ puts response['data']['base64']
44
44
  ```ruby
45
45
  require 'pika_sdk'
46
46
 
47
- client = PikaApi::Client.new('sk-he2jdus1cbz1dpt4mktgjyvx')
47
+ client = PikaSdk::Client.new('sk-he2jdus1cbz1dpt4mktgjyvx')
48
48
 
49
49
  response = client.generate_image_from_template('open-graph-image-1', {'title': 'From ruby sdk'}, 'base64')
50
50
  puts response['data']['base64']
@@ -61,7 +61,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAJ2CAYAAABPQHtcAAAAAXNSR0IArs
61
61
  ```ruby
62
62
  require 'pika_sdk'
63
63
 
64
- client = PikaApi::Client.new('sk-he2jdus1cbz1dpt4mktgjyvx')
64
+ client = PikaSdk::Client.new('sk-he2jdus1cbz1dpt4mktgjyvx')
65
65
 
66
66
  File.open("og.png", "w") do |file|
67
67
  response = client.generate_image_from_template('open-graph-image-1', {'title': 'From ruby sdk'}, 'binary')
@@ -92,7 +92,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
92
92
 
93
93
  ## Contributing
94
94
 
95
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pika_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
95
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rishimohan/pika-api-ruby-gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
96
96
 
97
97
  ## License
98
98
 
@@ -100,4 +100,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
100
100
 
101
101
  ## Code of Conduct
102
102
 
103
- Everyone interacting in the PikaApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pika_api/blob/master/CODE_OF_CONDUCT.md).
103
+ Everyone interacting in the PikaApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rishimohan/pika-api-ruby-gem/blob/master/CODE_OF_CONDUCT.md).
@@ -3,7 +3,7 @@ require "json"
3
3
  require "net/http"
4
4
  require "httparty"
5
5
 
6
- module PikaApi
6
+ module PikaSdk
7
7
  class Client
8
8
  def initialize(api_key)
9
9
  @api_key = api_key
@@ -1,3 +1,3 @@
1
- module PikaApi
2
- VERSION = "0.1.0"
1
+ module PikaSdk
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/pika_sdk.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'pika_sdk/version'
2
2
  require 'pika_sdk/client'
3
3
 
4
- module PikaApi
4
+ module PikaSdk
5
5
  class Error < StandardError; end
6
6
  end
data/pika_sdk.gemspec CHANGED
@@ -5,7 +5,7 @@ require "pika_sdk/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "pika_sdk"
8
- spec.version = PikaApi::VERSION
8
+ spec.version = PikaSdk::VERSION
9
9
  spec.authors = ["rishimohan"]
10
10
  spec.email = ["iamrishi.ms@gmail.com"]
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pika_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rishimohan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-11 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler