miles 0.0.1 → 0.0.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.
data/README.md ADDED
@@ -0,0 +1,9 @@
1
+ libmiles-ruby
2
+ =============
3
+
4
+ Ruby implimentation of the Miles Platform API
5
+
6
+ Installation
7
+ ------------
8
+
9
+ `gem install miles`
@@ -0,0 +1,48 @@
1
+ require 'httparty'
2
+ require 'json'
3
+
4
+ module Miles
5
+ class Scheduler
6
+ include HTTParty
7
+
8
+ attr_reader :host, :port, :base_uri
9
+
10
+ def initialize(host, port=80)
11
+ @host = host
12
+ @port = port
13
+ @base_uri = "#{host}#{port != 80 ? ':' + @port.to_s : ''}"
14
+ self.class.base_uri @base_uri
15
+ end
16
+
17
+ def create_individual(callback, data, description, method, time)
18
+ req = {'callback' => callback, 'data' => data, 'description' => description, 'method' => method, 'time' => time}
19
+ response = self.class.post('/individual', :body => req.to_json, :headers => {'Content-type' => 'application/json'})
20
+ return JSON.parse(response.body)
21
+ end
22
+
23
+ def get_individual(id)
24
+ response = self.class.get("/individual/#{id}")
25
+ ret = JSON.parse(response.body)
26
+ ret['time'] = DateTime.parse(ret['time'])
27
+ return ret
28
+ end
29
+
30
+ def create_reoccurring(callback, data, description, method, delay, interval)
31
+ req = {'callback' => callback, 'data' => data, 'description' => description, 'method' => method, 'delay' => delay, 'interval' => interval}
32
+ response = self.class.post('/reoccurring', :body => req.to_json, :headers => {'Content-type' => 'application/json'})
33
+ return JSON.parse(response.body)
34
+ end
35
+
36
+ def get_reoccurring(id)
37
+ response = self.class.get("/reoccurring/#{id}")
38
+ ret = JSON.parse(response.body)
39
+ ret['last_ran'] = DateTime.parse(ret['last_ran'])
40
+ return ret
41
+ end
42
+
43
+ def delete_reoccurring(id)
44
+ response = self.class.delete("/reoccurring/#{id}")
45
+ return response.code == 200
46
+ end
47
+ end
48
+ end
data/lib/miles/stt.rb ADDED
@@ -0,0 +1,23 @@
1
+ require 'httparty'
2
+ require 'json'
3
+
4
+ module Miles
5
+ class Stt
6
+ include HTTParty
7
+
8
+ attr_reader :host, :port, :base_uri
9
+
10
+ def initialize(host, port=80)
11
+ @host = host
12
+ @port = port
13
+ @base_uri = "#{host}#{port != 80 ? ':' + @port.to_s : ''}"
14
+ self.class.base_uri @base_uri
15
+ end
16
+
17
+ def get_text(file_path)
18
+ contents = open(file_path, "rb") {|io| io.read }
19
+ response = self.class.post('/recognize', :body => contents, :headers => {'Content-type' => 'audio/mpeg'})
20
+ return JSON.parse(response.body)
21
+ end
22
+ end
23
+ end
data/lib/miles/tts.rb ADDED
@@ -0,0 +1,24 @@
1
+ require 'httparty'
2
+ require 'json'
3
+
4
+ module Miles
5
+ class Tts
6
+ include HTTParty
7
+
8
+ attr_reader :host, :port, :base_uri
9
+
10
+ def initialize(host, port=80)
11
+ @host = host
12
+ @port = port
13
+ @base_uri = "#{host}#{port != 80 ? ':' + @port.to_s : ''}"
14
+ self.class.base_uri @base_uri
15
+ end
16
+
17
+ def get_mp3(text)
18
+ req = {'text' => text}
19
+ response = self.class.post('/tts', :body => JSON.dump(req))
20
+ audio = response.body
21
+ return audio
22
+ end
23
+ end
24
+ end
data/lib/miles/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Miles
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/miles.rb CHANGED
@@ -1 +1,4 @@
1
- require 'miles/endpoint'
1
+ require 'miles/endpoint'
2
+ require 'miles/tts'
3
+ require 'miles/stt'
4
+ require 'miles/scheduler'
@@ -0,0 +1,33 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://127.0.0.1:4567/individual
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"callback":"https://api.github.com/repos/MilesPlatform/libmiles-ruby","data":"","description":"Individual
9
+ task test","method":"get","time":"2013-03-03 15:36:32 -0500"}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json
13
+ response:
14
+ status:
15
+ code: 201
16
+ message: ! 'Created '
17
+ headers:
18
+ Content-Type:
19
+ - application/json;charset=utf-8
20
+ Content-Length:
21
+ - '8'
22
+ Server:
23
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
24
+ Date:
25
+ - Sun, 03 Mar 2013 20:36:27 GMT
26
+ Connection:
27
+ - Keep-Alive
28
+ body:
29
+ encoding: US-ASCII
30
+ string: ! '{"id":1}'
31
+ http_version:
32
+ recorded_at: Sun, 03 Mar 2013 20:36:27 GMT
33
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,33 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://127.0.0.1:4567/reoccurring
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"callback":"https://api.github.com/repos/MilesPlatform/libmiles-ruby","data":"","description":"Individual
9
+ task test","method":"get","delay":30,"interval":"seconds"}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json
13
+ response:
14
+ status:
15
+ code: 201
16
+ message: ! 'Created '
17
+ headers:
18
+ Content-Type:
19
+ - application/json;charset=utf-8
20
+ Content-Length:
21
+ - '8'
22
+ Server:
23
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
24
+ Date:
25
+ - Sun, 03 Mar 2013 21:09:06 GMT
26
+ Connection:
27
+ - Keep-Alive
28
+ body:
29
+ encoding: US-ASCII
30
+ string: ! '{"id":1}'
31
+ http_version:
32
+ recorded_at: Sun, 03 Mar 2013 21:09:06 GMT
33
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,30 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://127.0.0.1:4567/reoccurring/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: ! 'OK '
14
+ headers:
15
+ Content-Type:
16
+ - application/json;charset=utf-8
17
+ Content-Length:
18
+ - '0'
19
+ Server:
20
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
21
+ Date:
22
+ - Sun, 03 Mar 2013 21:14:42 GMT
23
+ Connection:
24
+ - Keep-Alive
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ''
28
+ http_version:
29
+ recorded_at: Sun, 03 Mar 2013 21:14:42 GMT
30
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,30 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://127.0.0.1:4567/individual/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: ! 'OK '
14
+ headers:
15
+ Content-Type:
16
+ - application/json;charset=utf-8
17
+ Content-Length:
18
+ - '6637'
19
+ Server:
20
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
21
+ Date:
22
+ - Sun, 03 Mar 2013 20:39:59 GMT
23
+ Connection:
24
+ - Keep-Alive
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{"id":1,"description":"Individual task test","time":"2013-03-03T15:36:32-05:00","callback":"https://api.github.com/repos/MilesPlatform/libmiles-ruby","method":"get","data":"","ran":true,"response_status":200,"response_body":"{\"id\":8532559,\"name\":\"libmiles-ruby\",\"full_name\":\"MilesPlatform/libmiles-ruby\",\"owner\":{\"login\":\"MilesPlatform\",\"id\":3429048,\"avatar_url\":\"https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png\",\"gravatar_id\":\"d41d8cd98f00b204e9800998ecf8427e\",\"url\":\"https://api.github.com/users/MilesPlatform\",\"html_url\":\"https://github.com/MilesPlatform\",\"followers_url\":\"https://api.github.com/users/MilesPlatform/followers\",\"following_url\":\"https://api.github.com/users/MilesPlatform/following\",\"gists_url\":\"https://api.github.com/users/MilesPlatform/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/MilesPlatform/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/MilesPlatform/subscriptions\",\"organizations_url\":\"https://api.github.com/users/MilesPlatform/orgs\",\"repos_url\":\"https://api.github.com/users/MilesPlatform/repos\",\"events_url\":\"https://api.github.com/users/MilesPlatform/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/MilesPlatform/received_events\",\"type\":\"Organization\"},\"private\":false,\"html_url\":\"https://github.com/MilesPlatform/libmiles-ruby\",\"description\":\"\",\"fork\":false,\"url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby\",\"forks_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/forks\",\"keys_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/keys{/key_id}\",\"collaborators_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/collaborators{/collaborator}\",\"teams_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/teams\",\"hooks_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/hooks\",\"issue_events_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/issues/events{/number}\",\"events_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/events\",\"assignees_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/assignees{/user}\",\"branches_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/branches{/branch}\",\"tags_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/tags{/tag}\",\"blobs_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/blobs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/tags{/sha}\",\"git_refs_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/refs{/sha}\",\"trees_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/trees{/sha}\",\"statuses_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/statuses/{sha}\",\"languages_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/languages\",\"stargazers_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/stargazers\",\"contributors_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/contributors\",\"subscribers_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/subscribers\",\"subscription_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/subscription\",\"commits_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/commits{/sha}\",\"git_commits_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/commits{/sha}\",\"comments_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/comments{/number}\",\"issue_comment_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/issues/comments/{number}\",\"contents_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/contents/{+path}\",\"compare_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/compare/{base}...{head}\",\"merges_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/merges\",\"archive_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/{archive_format}{/ref}\",\"downloads_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/downloads\",\"issues_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/issues{/number}\",\"pulls_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/pulls{/number}\",\"milestones_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/milestones{/number}\",\"notifications_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/notifications{?since,all,participating}\",\"labels_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/labels{/name}\",\"created_at\":\"2013-03-03T06:12:07Z\",\"updated_at\":\"2013-03-03T20:04:34Z\",\"pushed_at\":\"2013-03-03T20:04:34Z\",\"git_url\":\"git://github.com/MilesPlatform/libmiles-ruby.git\",\"ssh_url\":\"git@github.com:MilesPlatform/libmiles-ruby.git\",\"clone_url\":\"https://github.com/MilesPlatform/libmiles-ruby.git\",\"svn_url\":\"https://github.com/MilesPlatform/libmiles-ruby\",\"homepage\":null,\"size\":216,\"watchers_count\":0,\"language\":\"Ruby\",\"has_issues\":true,\"has_downloads\":true,\"has_wiki\":true,\"forks_count\":0,\"mirror_url\":null,\"open_issues_count\":0,\"forks\":0,\"open_issues\":0,\"watchers\":0,\"master_branch\":\"master\",\"default_branch\":\"master\",\"network_count\":0,\"organization\":{\"login\":\"MilesPlatform\",\"id\":3429048,\"avatar_url\":\"https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png\",\"gravatar_id\":\"d41d8cd98f00b204e9800998ecf8427e\",\"url\":\"https://api.github.com/users/MilesPlatform\",\"html_url\":\"https://github.com/MilesPlatform\",\"followers_url\":\"https://api.github.com/users/MilesPlatform/followers\",\"following_url\":\"https://api.github.com/users/MilesPlatform/following\",\"gists_url\":\"https://api.github.com/users/MilesPlatform/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/MilesPlatform/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/MilesPlatform/subscriptions\",\"organizations_url\":\"https://api.github.com/users/MilesPlatform/orgs\",\"repos_url\":\"https://api.github.com/users/MilesPlatform/repos\",\"events_url\":\"https://api.github.com/users/MilesPlatform/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/MilesPlatform/received_events\",\"type\":\"Organization\"}}"}'
28
+ http_version:
29
+ recorded_at: Sun, 03 Mar 2013 20:39:59 GMT
30
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,30 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://127.0.0.1:4567/reoccurring/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: ! 'OK '
14
+ headers:
15
+ Content-Type:
16
+ - application/json;charset=utf-8
17
+ Content-Length:
18
+ - '6662'
19
+ Server:
20
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
21
+ Date:
22
+ - Sun, 03 Mar 2013 21:12:36 GMT
23
+ Connection:
24
+ - Keep-Alive
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{"id":1,"description":"Individual task test","delay":30,"interval":"seconds","callback":"https://api.github.com/repos/MilesPlatform/libmiles-ruby","method":"get","data":"","last_ran":"2013-03-03T16:12:07-05:00","response_status":200,"response_body":"{\"id\":8532559,\"name\":\"libmiles-ruby\",\"full_name\":\"MilesPlatform/libmiles-ruby\",\"owner\":{\"login\":\"MilesPlatform\",\"id\":3429048,\"avatar_url\":\"https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png\",\"gravatar_id\":\"d41d8cd98f00b204e9800998ecf8427e\",\"url\":\"https://api.github.com/users/MilesPlatform\",\"html_url\":\"https://github.com/MilesPlatform\",\"followers_url\":\"https://api.github.com/users/MilesPlatform/followers\",\"following_url\":\"https://api.github.com/users/MilesPlatform/following\",\"gists_url\":\"https://api.github.com/users/MilesPlatform/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/MilesPlatform/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/MilesPlatform/subscriptions\",\"organizations_url\":\"https://api.github.com/users/MilesPlatform/orgs\",\"repos_url\":\"https://api.github.com/users/MilesPlatform/repos\",\"events_url\":\"https://api.github.com/users/MilesPlatform/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/MilesPlatform/received_events\",\"type\":\"Organization\"},\"private\":false,\"html_url\":\"https://github.com/MilesPlatform/libmiles-ruby\",\"description\":\"\",\"fork\":false,\"url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby\",\"forks_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/forks\",\"keys_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/keys{/key_id}\",\"collaborators_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/collaborators{/collaborator}\",\"teams_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/teams\",\"hooks_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/hooks\",\"issue_events_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/issues/events{/number}\",\"events_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/events\",\"assignees_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/assignees{/user}\",\"branches_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/branches{/branch}\",\"tags_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/tags{/tag}\",\"blobs_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/blobs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/tags{/sha}\",\"git_refs_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/refs{/sha}\",\"trees_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/trees{/sha}\",\"statuses_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/statuses/{sha}\",\"languages_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/languages\",\"stargazers_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/stargazers\",\"contributors_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/contributors\",\"subscribers_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/subscribers\",\"subscription_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/subscription\",\"commits_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/commits{/sha}\",\"git_commits_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/git/commits{/sha}\",\"comments_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/comments{/number}\",\"issue_comment_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/issues/comments/{number}\",\"contents_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/contents/{+path}\",\"compare_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/compare/{base}...{head}\",\"merges_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/merges\",\"archive_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/{archive_format}{/ref}\",\"downloads_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/downloads\",\"issues_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/issues{/number}\",\"pulls_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/pulls{/number}\",\"milestones_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/milestones{/number}\",\"notifications_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/notifications{?since,all,participating}\",\"labels_url\":\"https://api.github.com/repos/MilesPlatform/libmiles-ruby/labels{/name}\",\"created_at\":\"2013-03-03T06:12:07Z\",\"updated_at\":\"2013-03-03T20:50:55Z\",\"pushed_at\":\"2013-03-03T20:50:54Z\",\"git_url\":\"git://github.com/MilesPlatform/libmiles-ruby.git\",\"ssh_url\":\"git@github.com:MilesPlatform/libmiles-ruby.git\",\"clone_url\":\"https://github.com/MilesPlatform/libmiles-ruby.git\",\"svn_url\":\"https://github.com/MilesPlatform/libmiles-ruby\",\"homepage\":null,\"size\":216,\"watchers_count\":0,\"language\":\"Ruby\",\"has_issues\":true,\"has_downloads\":true,\"has_wiki\":true,\"forks_count\":0,\"mirror_url\":null,\"open_issues_count\":0,\"forks\":0,\"open_issues\":0,\"watchers\":0,\"master_branch\":\"master\",\"default_branch\":\"master\",\"network_count\":0,\"organization\":{\"login\":\"MilesPlatform\",\"id\":3429048,\"avatar_url\":\"https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png\",\"gravatar_id\":\"d41d8cd98f00b204e9800998ecf8427e\",\"url\":\"https://api.github.com/users/MilesPlatform\",\"html_url\":\"https://github.com/MilesPlatform\",\"followers_url\":\"https://api.github.com/users/MilesPlatform/followers\",\"following_url\":\"https://api.github.com/users/MilesPlatform/following\",\"gists_url\":\"https://api.github.com/users/MilesPlatform/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/MilesPlatform/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/MilesPlatform/subscriptions\",\"organizations_url\":\"https://api.github.com/users/MilesPlatform/orgs\",\"repos_url\":\"https://api.github.com/users/MilesPlatform/repos\",\"events_url\":\"https://api.github.com/users/MilesPlatform/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/MilesPlatform/received_events\",\"type\":\"Organization\"}}"}'
28
+ http_version:
29
+ recorded_at: Sun, 03 Mar 2013 21:12:36 GMT
30
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,169 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://127.0.0.1:4567/recognize
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: !binary |-
9
+ //OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAIgAAF+8AAQECAgISEhIfHx8vLy9B
10
+ QUFMTExXV1dnZ2d3d3eHh4eUlJSkpKS2trbKysrf39/s7O3t7e/v7/Dw8PHx
11
+ 8fLy8vPz8/T09PX19fb29vj4+Pn5+fr6+vv7+/z8/P39/f7+/v//AAAAUExB
12
+ TUUzLjk4cgRuAAAAAC4aAAA0CCQFniEAAeAAABfv/LbZ8AAAAAAAAAAAAAAA
13
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zEMQAAAADSAAAAAABAQBg
14
+ MCgYDAcDgcCg//MQxA0AAANIAUAAAE8DCAgkR8DknQOeN8D/87DEGlGsdxpf
15
+ lLAcwgQZ/8MdBtIDAsAL8DDMD4AELY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VZbq6VwLthjHB2uVsu+rc6C
131
+ EA8AKyQBAXvrRqJP9Gqv/jvmvlTvR+nrInEQ98olDt6U2asSi0dcL62WX/lV
132
+ xgamhhlqyXxaayFSiG4lHZqHs5VPSmAWGvzreEpvcq1bOvxmq3ZqtmxljCVi
133
+ 72jMGjTZlPwW/8jo5fFYGiWNa1/61vHHWX5b1l3//X/r///9EZibB0W3QV3e
134
+ ZS3sgdxxtymBqZ8XJiXxLUqvympLpp/r8SjWf48x5Wx5//////vf///////S
135
+ hZzdhFVMQU1FMy45OC4y//MQxAoAAAP8AcAAAFVVVVVVVVVVVVVVVVX/8xDE
136
+ FwAAA0gAAAAAVVVVVVVVVVVVVVVVVf/zEMQkAAADSAAAAABVVVVVVVVVVVVV
137
+ VVVV//MQxDEAAANIAAAAAFVVVVVVVVVVVVVVVVX/8xDEPgAAA0gAAAAAVVVV
138
+ VVVVVVVVVVVVVf/zEMRLAAADSAAAAABVVVVVVVVVVVVVVVVV//MQxFgAAANI
139
+ AAAAAFVVVVVVVVVVVVVVVVX/8xDEZQAAA0gAAAAAVVVVVVVVVVVVVVVVVf/z
140
+ EMRyAAADSAAAAABVVVVVVVVVVVVVVVVV//MQxH8AAANIAAAAAFVVVVVVVVVV
141
+ VVVVVVX/8xDEjAAAA0gAAAAAVVVVVVVVVVVVVVVVVf/zEMSZAAADSAAAAABV
142
+ VVVVVVVVVVVVVVVV//MQxKYAAANIAAAAAFVVVVVVVVVVVVVVVVX/8xDEswAA
143
+ A0gAAAAAVVVVVVVVVVVVVVVVVf/zEMTAAAADSAAAAABVVVVVVVVVVVVVVVVV
144
+ //MQxM0AAANIAAAAAFVVVVVVVVVVVVVVVVX/8xDE2gAAA0gAAAAAVVVVVVVV
145
+ VVVVVVVVVQ==
146
+ headers:
147
+ Content-Type:
148
+ - audio/mpeg
149
+ response:
150
+ status:
151
+ code: 200
152
+ message: ! 'OK '
153
+ headers:
154
+ Content-Type:
155
+ - application/json;charset=utf-8
156
+ Content-Length:
157
+ - '82'
158
+ Server:
159
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
160
+ Date:
161
+ - Sun, 03 Mar 2013 20:01:11 GMT
162
+ Connection:
163
+ - Keep-Alive
164
+ body:
165
+ encoding: US-ASCII
166
+ string: ! '{"text":"that","score":0.25311786,"hypotheses":[["that",0.25311786],["cat",null]]}'
167
+ http_version:
168
+ recorded_at: Sun, 03 Mar 2013 20:01:11 GMT
169
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,167 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://192.168.1.119:4567/tts
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"text":"test"}'
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: ! 'OK '
14
+ headers:
15
+ Content-Type:
16
+ - audio/mpeg
17
+ Content-Length:
18
+ - '6127'
19
+ Server:
20
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
21
+ Date:
22
+ - Sun, 03 Mar 2013 19:33:21 GMT
23
+ Connection:
24
+ - Keep-Alive
25
+ body:
26
+ encoding: ASCII-8BIT
27
+ string: !binary |-
28
+ //OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAIgAAF+8AAQECAgISEhIfHx8vLy9B
29
+ QUFMTExXV1dnZ2d3d3eHh4eUlJSkpKS2trbKysrf39/s7O3t7e/v7/Dw8PHx
30
+ 8fLy8vPz8/T09PX19fb29vj4+Pn5+fr6+vv7+/z8/P39/f7+/v//AAAAUExB
31
+ TUUzLjk4cgRuAAAAAC4aAAA0CCQFniEAAeAAABfv/LbZ8AAAAAAAAAAAAAAA
32
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zEMQAAAADSAAAAAABAQBg
33
+ MCgYDAcDgcCg//MQxA0AAANIAUAAAE8DCAgkR8DknQOeN8D/87DEGlGsdxpf
34
+ lLAcwgQZ/8MdBtIDAsAL8DDMD4AELYGG8F/+BjrDKBhCD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su+rc6C
150
+ EA8AKyQBAXvrRqJP9Gqv/jvmvlTvR+nrInEQ98olDt6U2asSi0dcL62WX/lV
151
+ xgamhhlqyXxaayFSiG4lHZqHs5VPSmAWGvzreEpvcq1bOvxmq3ZqtmxljCVi
152
+ 72jMGjTZlPwW/8jo5fFYGiWNa1/61vHHWX5b1l3//X/r///9EZibB0W3QV3e
153
+ ZS3sgdxxtymBqZ8XJiXxLUqvympLpp/r8SjWf48x5Wx5//////vf///////S
154
+ hZzdhFVMQU1FMy45OC4y//MQxAoAAAP8AcAAAFVVVVVVVVVVVVVVVVX/8xDE
155
+ FwAAA0gAAAAAVVVVVVVVVVVVVVVVVf/zEMQkAAADSAAAAABVVVVVVVVVVVVV
156
+ VVVV//MQxDEAAANIAAAAAFVVVVVVVVVVVVVVVVX/8xDEPgAAA0gAAAAAVVVV
157
+ VVVVVVVVVVVVVf/zEMRLAAADSAAAAABVVVVVVVVVVVVVVVVV//MQxFgAAANI
158
+ AAAAAFVVVVVVVVVVVVVVVVX/8xDEZQAAA0gAAAAAVVVVVVVVVVVVVVVVVf/z
159
+ EMRyAAADSAAAAABVVVVVVVVVVVVVVVVV//MQxH8AAANIAAAAAFVVVVVVVVVV
160
+ VVVVVVX/8xDEjAAAA0gAAAAAVVVVVVVVVVVVVVVVVf/zEMSZAAADSAAAAABV
161
+ VVVVVVVVVVVVVVVV//MQxKYAAANIAAAAAFVVVVVVVVVVVVVVVVX/8xDEswAA
162
+ A0gAAAAAVVVVVVVVVVVVVVVVVf/zEMTAAAADSAAAAABVVVVVVVVVVVVVVVVV
163
+ //MQxM0AAANIAAAAAFVVVVVVVVVVVVVVVVX/8xDE2gAAA0gAAAAAVVVVVVVV
164
+ VVVVVVVVVQ==
165
+ http_version:
166
+ recorded_at: Sun, 03 Mar 2013 19:20:35 GMT
167
+ recorded_with: VCR 2.4.0
Binary file
@@ -0,0 +1,118 @@
1
+ require 'spec_helper'
2
+
3
+ describe Miles::Scheduler do
4
+
5
+ before(:all) do
6
+ @scheduler = Miles::Scheduler.new('127.0.0.1', 4567)
7
+ end
8
+
9
+ it 'should instantiate' do
10
+ scheduler = Miles::Scheduler.new('127.0.0.1', 4567)
11
+
12
+ scheduler.should_not be_nil
13
+ scheduler.host.should == '127.0.0.1'
14
+ scheduler.port.should == 4567
15
+ scheduler.base_uri.should == "127.0.0.1:4567"
16
+ end
17
+
18
+ it 'should create an individual task' do
19
+ VCR.use_cassette('scheduler_create_individual') do
20
+ callback = "https://api.github.com/repos/MilesPlatform/libmiles-ruby"
21
+ data = ""
22
+ description = "Individual task test"
23
+ method = "get"
24
+ time = Time.new + 5
25
+ resp = @scheduler.create_individual(callback, data, description, method, time)
26
+
27
+ resp.should_not be_nil
28
+ resp.should be_a_kind_of(Hash)
29
+ resp.should have_key('id')
30
+ resp['id'].should eq(1)
31
+ end
32
+ end
33
+
34
+ it 'should get an existing individual task' do
35
+ VCR.use_cassette('scheduler_get_individual') do
36
+ task = @scheduler.get_individual(1)
37
+
38
+ task.should_not be_nil
39
+ task.should be_a_kind_of(Hash)
40
+
41
+ task.should have_key('id')
42
+ task.should have_key('description')
43
+ task.should have_key('time')
44
+ task.should have_key('callback')
45
+ task.should have_key('method')
46
+ task.should have_key('data')
47
+ task.should have_key('ran')
48
+ task.should have_key('response_status')
49
+ task.should have_key('response_body')
50
+
51
+ task['id'].should eq(1)
52
+ task['description'].should == "Individual task test"
53
+ task['time'].should be_a_kind_of(DateTime)
54
+ task['callback'].should == "https://api.github.com/repos/MilesPlatform/libmiles-ruby"
55
+ task['method'].should == "get"
56
+ task['data'].should eq("")
57
+ task['ran'].should eq(true)
58
+ task['response_status'].should eq(200)
59
+ task['response_body'].should be_a_kind_of(String)
60
+ end
61
+ end
62
+
63
+ it 'should create a reoccurring task' do
64
+ VCR.use_cassette('scheduler_create_reoccurring') do
65
+ callback = "https://api.github.com/repos/MilesPlatform/libmiles-ruby"
66
+ data = ""
67
+ description = "Individual task test"
68
+ method = "get"
69
+ delay = 30
70
+ interval = "seconds"
71
+ resp = @scheduler.create_reoccurring(callback, data, description, method, delay, interval)
72
+
73
+ resp.should_not be_nil
74
+ resp.should be_a_kind_of(Hash)
75
+ resp.should have_key('id')
76
+ resp['id'].should eq(1)
77
+ end
78
+ end
79
+
80
+ it 'should get an existing reoccurring task' do
81
+ VCR.use_cassette('scheduler_get_reoccurring') do
82
+ task = @scheduler.get_reoccurring(1)
83
+
84
+ task.should_not be_nil
85
+ task.should be_a_kind_of(Hash)
86
+
87
+ task.should have_key('id')
88
+ task.should have_key('description')
89
+ task.should have_key('delay')
90
+ task.should have_key('interval')
91
+ task.should have_key('callback')
92
+ task.should have_key('method')
93
+ task.should have_key('data')
94
+ task.should have_key('last_ran')
95
+ task.should have_key('response_status')
96
+ task.should have_key('response_body')
97
+
98
+ task['id'].should eq(1)
99
+ task['description'].should == "Individual task test"
100
+ task['delay'].should eq(30)
101
+ task['interval'].should == "seconds"
102
+ task['callback'].should == "https://api.github.com/repos/MilesPlatform/libmiles-ruby"
103
+ task['method'].should == "get"
104
+ task['data'].should eq("")
105
+ task['last_ran'].should be_a_kind_of(DateTime)
106
+ task['response_status'].should eq(200)
107
+ task['response_body'].should be_a_kind_of(String)
108
+ end
109
+ end
110
+
111
+ it 'should delete a reoccurring task' do
112
+ VCR.use_cassette('scheduler_delete_reoccurring') do
113
+ response = @scheduler.delete_reoccurring(1)
114
+
115
+ response.should eq(true)
116
+ end
117
+ end
118
+ end
data/spec/stt_spec.rb ADDED
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+
3
+ describe Miles::Stt do
4
+
5
+ before(:all) do
6
+ @stt = Miles::Stt.new('127.0.0.1', 4567)
7
+ end
8
+
9
+ it 'should instantiate' do
10
+ stt = Miles::Stt.new('127.0.0.1', 4567)
11
+
12
+ stt.should_not be_nil
13
+ stt.host.should == '127.0.0.1'
14
+ stt.port.should == 4567
15
+ stt.base_uri.should == "127.0.0.1:4567"
16
+ end
17
+
18
+ it 'should retrieve text from MP3' do
19
+ VCR.use_cassette('stt_get_text') do
20
+ response = @stt.get_text('spec/resources/test.mp3')
21
+
22
+ response.should be_a_kind_of(Hash)
23
+ response.should have_key('text')
24
+ response.should have_key('score')
25
+ response.should have_key('hypotheses')
26
+ end
27
+ end
28
+ end
data/spec/tts_spec.rb ADDED
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe Miles::Tts do
4
+
5
+ before(:all) do
6
+ @tts = Miles::Tts.new('192.168.1.119', 4567)
7
+ end
8
+
9
+ it 'should instantiate' do
10
+ tts = Miles::Tts.new('192.168.1.119', 4567)
11
+
12
+ tts.should_not be_nil
13
+ tts.host.should == '192.168.1.119'
14
+ tts.port.should == 4567
15
+ tts.base_uri.should == "192.168.1.119:4567"
16
+ end
17
+
18
+ it 'should retrieve MP3 from request' do
19
+ VCR.use_cassette('tts_get_mp3') do
20
+ audio = @tts.get_mp3("test")
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -22,9 +22,13 @@ files:
22
22
  - .travis.yml
23
23
  - Gemfile
24
24
  - Gemfile.lock
25
+ - README.md
25
26
  - Rakefile
26
27
  - lib/miles.rb
27
28
  - lib/miles/endpoint.rb
29
+ - lib/miles/scheduler.rb
30
+ - lib/miles/stt.rb
31
+ - lib/miles/tts.rb
28
32
  - lib/miles/version.rb
29
33
  - miles.gemspec
30
34
  - spec/endpoint_spec.rb
@@ -35,7 +39,18 @@ files:
35
39
  - spec/fixtures/vcr_cassettes/endpoint_set_pin_low.yml
36
40
  - spec/fixtures/vcr_cassettes/endpoint_set_pin_mode.yml
37
41
  - spec/fixtures/vcr_cassettes/endpoint_temperature.yml
42
+ - spec/fixtures/vcr_cassettes/scheduler_create_individual.yml
43
+ - spec/fixtures/vcr_cassettes/scheduler_create_reoccurring.yml
44
+ - spec/fixtures/vcr_cassettes/scheduler_delete_reoccurring.yml
45
+ - spec/fixtures/vcr_cassettes/scheduler_get_individual.yml
46
+ - spec/fixtures/vcr_cassettes/scheduler_get_reoccurring.yml
47
+ - spec/fixtures/vcr_cassettes/stt_get_text.yml
48
+ - spec/fixtures/vcr_cassettes/tts_get_mp3.yml
49
+ - spec/resources/test.mp3
50
+ - spec/scheduler_spec.rb
38
51
  - spec/spec_helper.rb
52
+ - spec/stt_spec.rb
53
+ - spec/tts_spec.rb
39
54
  homepage: https://github.com/MilesPlatform/libmiles-ruby
40
55
  licenses: []
41
56
  post_install_message:
@@ -50,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
65
  version: '0'
51
66
  segments:
52
67
  - 0
53
- hash: 3896679767492851176
68
+ hash: 3400744694015592574
54
69
  required_rubygems_version: !ruby/object:Gem::Requirement
55
70
  none: false
56
71
  requirements:
@@ -72,4 +87,15 @@ test_files:
72
87
  - spec/fixtures/vcr_cassettes/endpoint_set_pin_low.yml
73
88
  - spec/fixtures/vcr_cassettes/endpoint_set_pin_mode.yml
74
89
  - spec/fixtures/vcr_cassettes/endpoint_temperature.yml
90
+ - spec/fixtures/vcr_cassettes/scheduler_create_individual.yml
91
+ - spec/fixtures/vcr_cassettes/scheduler_create_reoccurring.yml
92
+ - spec/fixtures/vcr_cassettes/scheduler_delete_reoccurring.yml
93
+ - spec/fixtures/vcr_cassettes/scheduler_get_individual.yml
94
+ - spec/fixtures/vcr_cassettes/scheduler_get_reoccurring.yml
95
+ - spec/fixtures/vcr_cassettes/stt_get_text.yml
96
+ - spec/fixtures/vcr_cassettes/tts_get_mp3.yml
97
+ - spec/resources/test.mp3
98
+ - spec/scheduler_spec.rb
75
99
  - spec/spec_helper.rb
100
+ - spec/stt_spec.rb
101
+ - spec/tts_spec.rb