bespokify 0.1.0 → 0.1.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: fef37a8d7fa39ea1558d8925349cb6c59a3c4d98cdb2b5c3c1c7bf2aea31048e
4
- data.tar.gz: 5b48803b23825774b10d00d26c04326daf2f772ae53a5ba0da19125af8c0dc2f
3
+ metadata.gz: 213effad84deed4e4351d12d9b799d226b0aaf479b13fedb60b98efa186c19bb
4
+ data.tar.gz: 0e8a6ed26a1d008c859459e300f2e7a46c5d4b2ba0183525c1d0a06bed40e3fe
5
5
  SHA512:
6
- metadata.gz: e16ed09761277340e3517ad99c53dfcbe0242d202322b1968e37fb022acf8cdc7d1f8b964dd8e32d4e36e7f8c056eba943cfc2ac18ca106927ca376146d2afda
7
- data.tar.gz: ffccfdbdf15786d884c69c83e7b4b657e3c2a196477a40c491418642fa151365da58225d3d99a8b39497eb89f7f368a9e2a9175329584241dd820872ba30a278
6
+ metadata.gz: d15cf3a72db8cdbcdb1b4cc7f454a20b22ad3b7dcba1f7e17d9134dd5112f2a76df3497d844f6ea9f05d88e05c0c374bd38d58243e0d38d72cc022fdca54efa8
7
+ data.tar.gz: 9474c8a710741ce884b493e650605936f87786757725d4b004fb9ef08d5f20ede3c6d9a2e65a4a7516dfd9723da7bbb3a98a23ecfec25be09113e9f10f7dfae1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bespokify (0.1.0)
4
+ bespokify (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,13 @@
1
+ module Bespokify
2
+ class Client
3
+ module Export
4
+ def export(export_id)
5
+ get("/exports/#{export_id}")
6
+ end
7
+
8
+ def create_export(options = {})
9
+ post('/exports', options)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -3,6 +3,7 @@ require 'bespokify/client/material'
3
3
  require 'bespokify/client/draft'
4
4
  require 'bespokify/client/pattern'
5
5
  require 'bespokify/client/prediction'
6
+ require 'bespokify/client/export'
6
7
 
7
8
  module Bespokify
8
9
  class Client
@@ -12,6 +13,7 @@ module Bespokify
12
13
  include Bespokify::Client::Draft
13
14
  include Bespokify::Client::Pattern
14
15
  include Bespokify::Client::Prediction
16
+ include Bespokify::Client::Export
15
17
  base_uri 'https://api.bespokify.com/v2'
16
18
 
17
19
  def initialize(login, password)
@@ -1,3 +1,3 @@
1
1
  module Bespokify
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bespokify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ED1FF
@@ -75,6 +75,7 @@ files:
75
75
  - lib/bespokify/client.rb
76
76
  - lib/bespokify/client/connection.rb
77
77
  - lib/bespokify/client/draft.rb
78
+ - lib/bespokify/client/export.rb
78
79
  - lib/bespokify/client/material.rb
79
80
  - lib/bespokify/client/pattern.rb
80
81
  - lib/bespokify/client/prediction.rb