bespokify 0.1.1 → 0.1.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bespokify/client/measurement_profile.rb +37 -0
- data/lib/bespokify/client.rb +2 -0
- data/lib/bespokify/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed6d14ff8d4dddd7c57c14a4ad1c4e37eb8531fe91fda87ae3025fec73d52340
|
4
|
+
data.tar.gz: aa285fd0cf39ab2ddd29d72dafb0828d970812164b22dababaf9b15d92fa797d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e8092824458645739739d29cea5094dce7adb025498218ad72110f409ef782e829e816ccfea54ba27d9318a4f04d857c54cbc905ec74a83d04f98f47ec7fa19
|
7
|
+
data.tar.gz: ec7f960d76ebffebf27919a2e76f09f9fd3c905afe07d3340bdcb4285fb71eef96216a58131da8fc77166a374b63850632c066dc29241406bb233723f2409a61
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/bespokify/client.rb
CHANGED
@@ -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)
|
data/lib/bespokify/version.rb
CHANGED
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.
|
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-
|
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
|