cxf 0.0.7 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c123fda538897107fd834d22ba99bd34af42f958169df7c319b76cdbb34f0153
4
- data.tar.gz: 69b588b4a37f37b321178a555fc4ef9aff6987c6e0aac41595dc6058e2b83be6
3
+ metadata.gz: c0a71c504ca9f2b229b5d68535c6f96d0d2aed4647c5f09a496f7c4e6dfe39e8
4
+ data.tar.gz: 26ad78974ffd6995bfa896b76bce187f3f9b6d04e5c35918193702b61b8d1ee7
5
5
  SHA512:
6
- metadata.gz: 6f7d29677c76eb5122f41f066e381d5dd23c8e2ffe8ff2b4657d93a6f3629892f7587a9830e7c0b2bcc00966c6f383ffccbbd425e9190395e0d515b2ef8a8071
7
- data.tar.gz: fd8df808d7f7ecf6b11bd1c584ff29326b49177a10f5bfbf97550f30e19c4d0fbf465e7c19d01caab3060ae1d8e31ffb50aea23fac3f9615123af3388e57c242
6
+ metadata.gz: a6862001d7e884971f6d1fc23504a0156fa97f62a14826d08799760374d75edb0a23be70d83d2779872d5612c547bd1b3af75d68b7d93dde7fdc5b929d614181
7
+ data.tar.gz: 9c7eda03f2587846b5c222bbc9ff1fe7d3629f33511fec4c6ffc127533918d7d8737464874e9888354202c5fee8a88cd329f8d682a55f92c1bbce8923c3686f3
@@ -3,11 +3,11 @@
3
3
  ### V1/CONTENT ###
4
4
 
5
5
  require_relative './assets'
6
- require_relative './content_prints'
7
6
  require_relative './print_versions'
7
+ require_relative './content_prints'
8
8
 
9
9
  module PublicContent
10
10
  include PublicAssets
11
- include ContentPrints
12
- include PrintVersions
11
+ include PublicContentPrints
12
+ include PublicPrintVersions
13
13
  end
@@ -1,30 +1,5 @@
1
1
  # frozen_string_literal: true
2
- module ContentPrints
3
- # === Get content print.
4
- # Get a collection of content print.
5
- #
6
- # ==== Parameters
7
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
8
- # use_post:: (Boolean) -- Variable to determine if the request is by 'post' or 'get' functions.
9
- #
10
- # ==== First Example
11
- # @data = @cxf_user.get_content_prints
12
- #
13
- # ==== Second Example
14
- # options = {
15
- # fields: 'id, slug'
16
- # }
17
- # @data = @cxf_user.get_content_prints(options)
18
- #
19
- # ==== Third Example
20
- # options = {
21
- # fields: 'id, slug'
22
- # }
23
- # @data = @cxf_user.get_content_prints(options, true)
24
- def get_content_prints(options = nil, use_post = true)
25
- get_query_results('/content/content-prints', options, use_post)
26
- end
27
-
2
+ module PublicContentPrints
28
3
  # === Get content print.
29
4
  # Get a content print info.
30
5
  #
@@ -41,7 +16,7 @@ module ContentPrints
41
16
  # }
42
17
  # @data = @cxf_user.get_content_print(1, options)
43
18
  def get_content_print(id, options = nil)
44
- @client.raw('get', "/content/content-prints/#{id}", options, nil)
19
+ @client.raw('get', "/content/prints/#{id}", options, nil)
45
20
  end
46
21
 
47
22
  # === Create content print.
@@ -61,7 +36,7 @@ module ContentPrints
61
36
  #
62
37
  # @data = @cxf_user.create_content_print(data, options)
63
38
  def create_content_print(data, options = nil)
64
- @client.raw('post', '/content/content-prints', options, data_transform(data))
39
+ @client.raw('post', '/content/prints', options, data_transform(data))
65
40
  end
66
41
 
67
42
  # === Update content print.
@@ -78,7 +53,7 @@ module ContentPrints
78
53
  # }
79
54
  # @data = @cxf_user.update_content_print(5, data)
80
55
  def update_content_print(id, data, options = nil)
81
- @client.raw('put', "/content/content-prints/#{id}", options, data_transform(data))
56
+ @client.raw('put', "/content/prints/#{id}", options, data_transform(data))
82
57
  end
83
58
 
84
59
  # === Delete content print.
@@ -90,6 +65,6 @@ module ContentPrints
90
65
  # ==== Example
91
66
  # @data = @cxf_user.delete_content_print(6)
92
67
  def delete_content_print(id)
93
- @client.raw('delete', "/content/content-prints/#{id}", nil, nil)
68
+ @client.raw('delete', "/content/prints/#{id}", nil, nil)
94
69
  end
95
70
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module PrintVersions
3
+ module PublicPrintVersions
4
4
  # === Get print versions.
5
5
  # Get a collection of print versions.
6
6
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cxf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Gomez Garcia, Omar Mora, Luis Hesiquio