replicate-ruby 0.1.2 → 0.1.4

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: 6ad53464a361eeeb5bac077b1e7e997eceae6e70648634ac12d8139f6d3926cc
4
- data.tar.gz: a7304c1a101ee4b9bfb0dfccc76af2b0d55805bbd856125edf6ee7432e2c0034
3
+ metadata.gz: c4b445afdad565b11f6456385d9c947b20fc257330f1c81454780cfa0a95b960
4
+ data.tar.gz: 70a6fc73b854cffd4b4daff1cae5913d3a783b04163ea31dcf40a5e7ebbbed5f
5
5
  SHA512:
6
- metadata.gz: ef7e5a987822959b24a9872b76d6728983b7857c4d08339b2b56e6d24ce98b433fc961af0128a4ece3b8af36bb13ebd24570515557a3b6ff7385f4d09318cf72
7
- data.tar.gz: c43a37df64ea431e77b217803a3b4d86d5e092e01d4bf7d2e6d3347e5631b158ce7167edbbb520cd0418f03200e2ca44a69f618a54cd04a07da4d0d407c88bd1
6
+ metadata.gz: 2eee8935e75ded9fc9c143859d666bf0a39d6c3416609ea5563e2da915c49c62f2dc97129b264a209a59b7b2d8e966f218193e8c27dc72120a06dc3bcc138c17
7
+ data.tar.gz: 4898ebb685097d47b724210ca4094a420bb94c728b22b18bbec079884010e2a6b20795ca32eba4c98bc31c134636cba2426b9c1f2bfdf40d772414f9963a5b2c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- replicate-ruby (0.1.1)
4
+ replicate-ruby (0.1.4)
5
5
  addressable
6
6
  faraday (>= 2.0)
7
7
  faraday-retry
@@ -15,10 +15,10 @@ GEM
15
15
  coderay (1.1.3)
16
16
  crack (0.4.5)
17
17
  rexml
18
- faraday (2.6.0)
18
+ faraday (2.7.1)
19
19
  faraday-net_http (>= 2.0, < 3.1)
20
20
  ruby2_keywords (>= 0.0.4)
21
- faraday-net_http (3.0.1)
21
+ faraday-net_http (3.0.2)
22
22
  faraday-retry (2.0.0)
23
23
  faraday (~> 2.0)
24
24
  hashdiff (1.0.1)
@@ -68,4 +68,4 @@ DEPENDENCIES
68
68
  webmock
69
69
 
70
70
  BUNDLED WITH
71
- 2.3.7
71
+ 2.3.26
@@ -4,6 +4,7 @@ module Replicate
4
4
  module Record
5
5
  class Base
6
6
  attr_accessor :data
7
+ attr_reader :client
7
8
 
8
9
  def initialize(client, params)
9
10
  @client = client
@@ -4,11 +4,11 @@ module Replicate
4
4
  module Record
5
5
  class Prediction < Base
6
6
  def refetch
7
- self.assign_attributes = client.retrieve_prediction(id)
7
+ @data = client.retrieve_prediction(id).data
8
8
  end
9
9
 
10
10
  def cancel
11
- self.assign_attributes = client.cancel_prediction(id)
11
+ @data = client.cancel_prediction(id).data
12
12
  end
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Replicate
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: replicate-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dreaming Tulpa
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2022-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description:
83
+ description:
84
84
  email:
85
85
  - hey@dreamingtulpa.com
86
86
  executables: []
@@ -111,7 +111,7 @@ metadata:
111
111
  homepage_uri: https://github.com/dreamingtulpa/replicate-ruby
112
112
  source_code_uri: https://github.com/dreamingtulpa/replicate-ruby
113
113
  changelog_uri: https://github.com/dreamingtulpa/replicate-ruby/blob/master/CHANGELOG.md
114
- post_install_message:
114
+ post_install_message:
115
115
  rdoc_options: []
116
116
  require_paths:
117
117
  - lib
@@ -126,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.0.3.1
130
- signing_key:
129
+ rubygems_version: 3.3.26
130
+ signing_key:
131
131
  specification_version: 4
132
132
  summary: Ruby client for Replicate
133
133
  test_files: []