k_sequencing 0.1.9 → 0.1.20

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
  SHA1:
3
- metadata.gz: 23b6db8241a4510805973239cd6a022a98d4cfd9
4
- data.tar.gz: d21d56ce3af28d1986544d273b26f897f9cc473c
3
+ metadata.gz: e8d6a4ba1664a4bd2cbcf698fc5fbe1c1ef8d3ca
4
+ data.tar.gz: 780853d5fe701091f80941713a5f7d863d777950
5
5
  SHA512:
6
- metadata.gz: eddfa6d3dc3edb85e9bf820e14ea05d72554d939b4218dc74d07698261e2ca539778c1e5173e0f75fee89a29965aa66fc42a5512cab4b091e5ae89d72540f116
7
- data.tar.gz: 10be4f0b6e72bbdff897fe32b75904cc2b290ae147a6bc4042d1810f68e11949591d50d2fb227379b586cb6f22397e41113fc73ecb16d9581b4be596fb2a3c0c
6
+ metadata.gz: 233b837e68bc0b6af049b2cd0ced08e2b4ea461d6e4a20d1985565d895f0d423a71835fc3775b100db57bc55d9c7add3109da2a808f8c97c79f5fbf7e8b3e7db
7
+ data.tar.gz: 6d02dd5a2888a7e7fd6501883f1537815f91f89d191e7b193eb9101d8e86529bfc9b016d3fe7aae83a56020930e69cf35a6070aef3a10a36914f994d82fb52ea
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'k_sequencing'
8
- s.version = '0.1.9'
8
+ s.version = '0.1.20'
9
9
  s.date = '2017-05-24'
10
10
  s.summary = 'KSequencing is a moderator service for your online content'
11
11
  s.description = 'Moderation suite'
@@ -21,26 +21,67 @@ module KSequencing
21
21
  connection.post('/api/images/photo_tags', options)
22
22
  end
23
23
 
24
+ def create_prediction(options = {})
25
+ options[:token] ||= KSequencing.project_key
26
+ connection.post('/api/prime/predictions', options)
27
+ end
28
+
29
+
30
+ # -------------------------------- list data ----------------------------------
24
31
  def get_image_choice(options = {})
25
32
  options[:token] ||= KSequencing.project_key
26
- connection.get('/api/images/choice', options)
33
+ connection.get('/api/images/choices', options)
27
34
  end
28
35
 
29
36
  def get_image_closed_question(options = {})
30
37
  options[:token] ||= KSequencing.project_key
31
- connection.get('/api/images/closed_question', options)
38
+ connection.get('/api/images/closed_questions', options)
32
39
  end
33
40
 
34
41
  def get_image_message(options = {})
35
42
  options[:token] ||= KSequencing.project_key
36
- connection.get('/api/images/message', options)
43
+ connection.get('/api/images/messages', options)
37
44
  end
38
45
 
39
46
  def get_image_photo_tag(options = {})
47
+ options[:token] ||= KSequencing.project_key
48
+ connection.get('/api/images/photo_tags', options)
49
+ end
50
+
51
+ def get_prediction(options = {})
52
+ options[:token] ||= KSequencing.project_key
53
+ connection.get('/api/prime/predictions' , options)
54
+ end
55
+
56
+
57
+ # ------------------------------ find by id -------------------------------
58
+ def find_by_id_image_choice(options = {})
59
+ options[:token] ||= KSequencing.project_key
60
+ connection.get('/api/images/choice', options)
61
+ end
62
+
63
+ def find_by_id_image_closed_question(options = {})
64
+ options[:token] ||= KSequencing.project_key
65
+ connection.get('/api/images/closed_question', options)
66
+ end
67
+
68
+ def find_by_id_image_message(options = {})
69
+ options[:token] ||= KSequencing.project_key
70
+ connection.get('/api/images/message', options)
71
+ end
72
+
73
+ def find_by_id_image_photo_tag(options = {})
40
74
  options[:token] ||= KSequencing.project_key
41
75
  connection.get('/api/images/photo_tag', options)
42
76
  end
43
77
 
78
+ def find_by_id_prediction(options = {}, id)
79
+ options[:token] ||= KSequencing.project_key
80
+ connection.get("/api/prime/predictions/#{id}", options)
81
+ end
82
+
83
+
84
+
44
85
  private
45
86
 
46
87
  def connection
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k_sequencing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesdakorn Samittiauttakorn
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.5.1
163
+ rubygems_version: 2.6.13
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: KSequencing is a moderator service for your online content