agilix 0.6.7 → 0.7.0

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: 0e68037c5c65e4329816ad44e6ae2ba6fcb4c1ce94b39b8b70dbf52e6b6167db
4
- data.tar.gz: 7b523879a3d067b47c97a5c966676c4b8591d9f6f6b137c2f1ed2e68cdb17baf
3
+ metadata.gz: 62e0a47d865172b276fe66e6668293c09c91345aba87d6fea238439ed9189325
4
+ data.tar.gz: e3494ff0f870b175308c74ff5bea5fbae4629f69b7f99b0935e1be5fb29707fe
5
5
  SHA512:
6
- metadata.gz: 81e9f7a1f7a2a1961ebd7181f943a9250538b50ae1fcdca70589ba9a99dc3841849a1203f4273bcbd6cefde98040a8a8d8db4e8cf46cb491f8af462cdbb7582f
7
- data.tar.gz: 77bc067dc3f3a950ef5487003dd7fbcf544ec93678a4fb0516d2bd53d34110600414f25e3c5ac9ea2ec2246e22292d80f7156629eb4ac4562aee40807aadcf80
6
+ metadata.gz: faa776508b61013223110a30083ad1bb85cf22d5f239228390ee1012864912f01e72ff8afa601b4c9f81116afc54d915077e1830f62797ddc2d243397a3b11af
7
+ data.tar.gz: 74ec95d50534648bce2e564c75b0ec804f6d1eff764c9fe99bcb6fa7b12dd17492ba3f9775344ab3b92daea22f04c6cd55dc57016f3b83e037589794181e5165
@@ -8,6 +8,7 @@ require "agilix/buzz/commands/course"
8
8
  require "agilix/buzz/commands/domain"
9
9
  require "agilix/buzz/commands/enrollment"
10
10
  require "agilix/buzz/commands/general"
11
+ require "agilix/buzz/commands/library"
11
12
  require "agilix/buzz/commands/report"
12
13
  require "agilix/buzz/commands/resource"
13
14
  require "agilix/buzz/commands/right"
@@ -8,6 +8,7 @@ module Agilix
8
8
  include Agilix::Buzz::Commands::Domain
9
9
  include Agilix::Buzz::Commands::Enrollment
10
10
  include Agilix::Buzz::Commands::General
11
+ include Agilix::Buzz::Commands::Library
11
12
  include Agilix::Buzz::Commands::Report
12
13
  include Agilix::Buzz::Commands::Resource
13
14
  include Agilix::Buzz::Commands::Right
@@ -160,14 +161,14 @@ module Agilix
160
161
  ENV["AGILIX_BUZZ_DEFAULT_DOMAIN"]
161
162
  end
162
163
 
163
- def agilix_url_endpoint
164
+ def agilix_url_endpoint
164
165
  @agilix_url_endpoint ||= ENV.fetch("AGILIX_BUZZ_URL", "https://api.agilixbuzz.com")
165
166
  end
166
167
 
167
168
  def agilix_url_base
168
169
  @agilix_url_base ||= "#{agilix_url_endpoint}/cmd"
169
- end
170
-
170
+ end
171
+
171
172
  end
172
173
  end
173
174
  end
@@ -0,0 +1,43 @@
1
+ module Agilix
2
+ module Buzz
3
+ module Commands
4
+ module Library
5
+
6
+ # api.get_library_page domainid: 57031, pageid: "230433194a1e4699bfa576aa6e6743c6"
7
+ def get_library_page(options = {})
8
+ options = argument_cleaner(required_params: %i( domainid pageid ), optional_params: %i( ), options: options )
9
+ authenticated_get cmd: "getlibrarypage", **options
10
+ end
11
+
12
+ # api.list_library_pages domainid: 57031
13
+ def list_library_pages(options = {})
14
+ options = argument_cleaner(required_params: %i( domainid ), optional_params: %i( libraryid limit select ), options: options )
15
+ authenticated_get cmd: "listlibrarypages", **options
16
+ end
17
+
18
+ # api.create_library_page domainid: 57031, libraryid: 'testlib', title: "Greatest ever", description: "This really is the best", body: "<h1>Check it out!</h1><iframe src='https://www.google.com'></iframe>"
19
+ def create_library_page(options = {})
20
+ optional_params = argument_cleaner(required_params: %i( domainid libraryid title description ), optional_params: %i( body id name 'meta-featured' 'meta-type' 'meta-category' ), options: options )
21
+ # authenticated_query_post cmd: "putresource", **options
22
+ authenticated_post cmd: "createlibrarypage", **options
23
+ end
24
+
25
+ # # api.search_library_pages domainid: 57031, path: "banner.css"
26
+ # def search_library_pages(options = {})
27
+ # options = argument_cleaner(required_params: %i( domainid ), optional_params: %i( libraryid limit select q ), options: options )
28
+ # authenticated_get cmd: "searchlibrarypages", **options
29
+ # end
30
+
31
+ end
32
+ end
33
+ end
34
+ end
35
+
36
+ # createlibrarypagebookmark
37
+ # deletelibrarypage
38
+ # deletelibrarypagebookmark
39
+ # listlibrarypagebookmarks
40
+ # populatelibrarypageedits
41
+ # populatelibrarypageedits
42
+ # reindexlibrarypages
43
+ # updatelibrarypage
@@ -1,3 +1,3 @@
1
1
  module Agilix
2
- VERSION = "0.6.7"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-26 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -190,6 +190,7 @@ files:
190
190
  - lib/agilix/buzz/commands/domain.rb
191
191
  - lib/agilix/buzz/commands/enrollment.rb
192
192
  - lib/agilix/buzz/commands/general.rb
193
+ - lib/agilix/buzz/commands/library.rb
193
194
  - lib/agilix/buzz/commands/report.rb
194
195
  - lib/agilix/buzz/commands/resource.rb
195
196
  - lib/agilix/buzz/commands/right.rb