bespokify 0.1.1 → 0.1.2

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: 213effad84deed4e4351d12d9b799d226b0aaf479b13fedb60b98efa186c19bb
4
- data.tar.gz: 0e8a6ed26a1d008c859459e300f2e7a46c5d4b2ba0183525c1d0a06bed40e3fe
3
+ metadata.gz: ed6d14ff8d4dddd7c57c14a4ad1c4e37eb8531fe91fda87ae3025fec73d52340
4
+ data.tar.gz: aa285fd0cf39ab2ddd29d72dafb0828d970812164b22dababaf9b15d92fa797d
5
5
  SHA512:
6
- metadata.gz: d15cf3a72db8cdbcdb1b4cc7f454a20b22ad3b7dcba1f7e17d9134dd5112f2a76df3497d844f6ea9f05d88e05c0c374bd38d58243e0d38d72cc022fdca54efa8
7
- data.tar.gz: 9474c8a710741ce884b493e650605936f87786757725d4b004fb9ef08d5f20ede3c6d9a2e65a4a7516dfd9723da7bbb3a98a23ecfec25be09113e9f10f7dfae1
6
+ metadata.gz: 7e8092824458645739739d29cea5094dce7adb025498218ad72110f409ef782e829e816ccfea54ba27d9318a4f04d857c54cbc905ec74a83d04f98f47ec7fa19
7
+ data.tar.gz: ec7f960d76ebffebf27919a2e76f09f9fd3c905afe07d3340bdcb4285fb71eef96216a58131da8fc77166a374b63850632c066dc29241406bb233723f2409a61
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bespokify (0.1.1)
4
+ bespokify (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,37 @@
1
+ module Bespokify
2
+ class Client
3
+ module MeasurementProfile
4
+ def measurement_profiles(options = {})
5
+ get('/measurementProfiles', options)
6
+ end
7
+
8
+ def measurement_profile(measurement_id)
9
+ get("/measurementProfiles/#{measurement_id}")
10
+ end
11
+
12
+ def create_measurement_profile(options = {})
13
+ post('/measurementProfiles', options)
14
+ end
15
+
16
+ def update_measurement_profile(measurement_id, options = {})
17
+ patch("/measurementProfiles/#{measurement_id}", options)
18
+ end
19
+
20
+ def delete_measurement_profile(measurement_id)
21
+ delete("/measurementProfiles/#{measurement_id}")
22
+ end
23
+
24
+ def measurement_profille_revs(measurement_id, options = {})
25
+ get("/measurementProfiles/#{measurement_id}/revs", options)
26
+ end
27
+
28
+ def measurement_profille_rev(measurement_id, rev_id)
29
+ get("/measurementProfiles/#{measurement_id}/revs/#{rev_id}")
30
+ end
31
+
32
+ def measurement_profille_revert(measurement_id, options = {})
33
+ get("/measurementProfiles/#{measurement_id}/revert", options)
34
+ end
35
+ end
36
+ end
37
+ end
@@ -4,6 +4,7 @@ require 'bespokify/client/draft'
4
4
  require 'bespokify/client/pattern'
5
5
  require 'bespokify/client/prediction'
6
6
  require 'bespokify/client/export'
7
+ require 'bespokify/client/measurement_profile'
7
8
 
8
9
  module Bespokify
9
10
  class Client
@@ -14,6 +15,7 @@ module Bespokify
14
15
  include Bespokify::Client::Pattern
15
16
  include Bespokify::Client::Prediction
16
17
  include Bespokify::Client::Export
18
+ include Bespokify::Client::MeasurementProfile
17
19
  base_uri 'https://api.bespokify.com/v2'
18
20
 
19
21
  def initialize(login, password)
@@ -1,3 +1,3 @@
1
1
  module Bespokify
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bespokify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ED1FF
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-19 00:00:00.000000000 Z
11
+ date: 2019-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,6 +77,7 @@ files:
77
77
  - lib/bespokify/client/draft.rb
78
78
  - lib/bespokify/client/export.rb
79
79
  - lib/bespokify/client/material.rb
80
+ - lib/bespokify/client/measurement_profile.rb
80
81
  - lib/bespokify/client/pattern.rb
81
82
  - lib/bespokify/client/prediction.rb
82
83
  - lib/bespokify/version.rb