clarify 1.1.1 → 2.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -16
- data/.rspec +2 -0
- data/.simplecov +3 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +4 -0
- data/Dockerfile +11 -0
- data/Gemfile +2 -2
- data/LICENSE +1 -1
- data/README.md +202 -47
- data/Rakefile +62 -4
- data/clarify.gemspec +10 -7
- data/cucumber.yml +1 -0
- data/features/create-bundles.feature +10 -0
- data/features/delete-bundle.feature +7 -0
- data/features/identity-steps.feature +6 -0
- data/features/list-bundles.feature +13 -0
- data/features/search-bundles.feature +10 -0
- data/features/step_definitions/curied_url_steps.rb +6 -0
- data/features/step_definitions/error_steps.rb +4 -0
- data/features/step_definitions/http_verification_step.rb +4 -0
- data/features/step_definitions/identity_steps.rb +12 -0
- data/features/step_definitions/list_steps.rb +76 -0
- data/features/support/env.rb +36 -0
- data/features/support/lib/curies.rb +19 -0
- data/features/support/lib/customer.rb +41 -0
- data/features/support/lib/exceptions.rb +27 -0
- data/features/support/lib/names.rb +16 -0
- data/lib/clarify.rb +16 -14
- data/lib/clarify/bundle_repository.rb +26 -0
- data/lib/clarify/client.rb +51 -0
- data/lib/clarify/collection_iterator.rb +27 -0
- data/lib/clarify/configuration.rb +29 -7
- data/lib/clarify/errors.rb +22 -0
- data/lib/clarify/response.rb +29 -0
- data/lib/clarify/response_factory.rb +34 -0
- data/lib/clarify/responses/bundle.rb +11 -0
- data/lib/clarify/responses/collection.rb +31 -0
- data/lib/clarify/responses/no_body.rb +13 -0
- data/lib/clarify/responses/search_collection.rb +18 -0
- data/lib/clarify/responses/tracks.rb +15 -0
- data/lib/clarify/rest_client.rb +129 -0
- data/lib/clarify/version.rb +3 -1
- data/spec/clarify/bundle_repository_spec.rb +37 -0
- data/spec/clarify/client_spec.rb +93 -0
- data/spec/clarify/collection_iterator_spec.rb +86 -0
- data/spec/clarify/configuration_spec.rb +77 -0
- data/spec/clarify/errors_spec.rb +15 -0
- data/spec/clarify/response_factory_spec.rb +51 -0
- data/spec/clarify/response_spec.rb +69 -0
- data/spec/clarify/responses/bundle_spec.rb +8 -0
- data/spec/clarify/responses/collection_spec.rb +58 -0
- data/spec/clarify/responses/search_collection_spec.rb +40 -0
- data/spec/clarify/responses/tracks_spec.rb +18 -0
- data/spec/clarify/rest_client_spec.rb +222 -0
- data/spec/spec_helper.rb +4 -9
- data/src_readme/README_no_output.md +186 -0
- data/src_readme/examples/bundle_create.rb +11 -0
- data/src_readme/examples/bundle_fetch.rb +9 -0
- data/src_readme/examples/bundles_list_fetch.rb +11 -0
- data/src_readme/examples/bundles_paged_over.rb +8 -0
- data/src_readme/examples/bundles_search.rb +20 -0
- data/src_readme/examples/list_bundles.rb +6 -0
- data/src_readme/examples/searches_paged_over.rb +10 -0
- data/src_readme/examples/setup.rb +5 -0
- data/src_readme/make.rb +56 -0
- data/src_readme/readme.md.erb +55 -0
- metadata +127 -62
- data/LICENSE.txt +0 -24
- data/examples/create.rb +0 -14
- data/examples/delete.rb +0 -12
- data/examples/list.rb +0 -14
- data/examples/search.rb +0 -26
- data/examples/test.rb +0 -15
- data/lib/clarify/bundle.rb +0 -40
- data/lib/clarify/metadata.rb +0 -26
- data/lib/clarify/request.rb +0 -37
- data/lib/clarify/search.rb +0 -10
- data/lib/clarify/track.rb +0 -40
- data/spec/lib/clarify/bundle_spec.rb +0 -43
- data/spec/lib/clarify/configuration_spec.rb +0 -19
- data/spec/lib/clarify/metadata_spec.rb +0 -36
- data/spec/lib/clarify/search_spec.rb +0 -22
- data/spec/lib/clarify/track_spec.rb +0 -81
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,7 @@
|
|
1
|
+
require 'simplecov'
|
1
2
|
|
2
|
-
|
3
|
-
require "debugger"
|
3
|
+
$LOAD_PATH << File.dirname(__FILE__) + '/../../lib/'
|
4
4
|
|
5
|
-
|
6
|
-
config.api_key = ENV['CLARIFY_API_KEY']
|
7
|
-
end
|
5
|
+
require 'clarify'
|
8
6
|
|
9
|
-
|
10
|
-
RSpec.configure do |config|
|
11
|
-
config.order = :random
|
12
|
-
end
|
7
|
+
srand RSpec.configuration.seed
|
@@ -0,0 +1,186 @@
|
|
1
|
+
|
2
|
+
[![Build Status][travis-image]][travis-url] [![Code Climate][cc-image]][cc-url]
|
3
|
+
|
4
|
+
# How To
|
5
|
+
|
6
|
+
You can get started in minutes using our Quickstarts:
|
7
|
+
|
8
|
+
[http://clarify.io/docs/quickstarts/](http://clarify.io/docs/quickstarts/)
|
9
|
+
|
10
|
+
## Basic Setup and Examples
|
11
|
+
|
12
|
+
Require the library and initialize the Client, which takes care of
|
13
|
+
configuration and http client setup.
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
# setup.rb
|
17
|
+
require 'clarify'
|
18
|
+
require 'pp'
|
19
|
+
|
20
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
21
|
+
pp clarify
|
22
|
+
```
|
23
|
+
|
24
|
+
### Search for bundles
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# bundles_search.rb
|
28
|
+
require 'clarify'
|
29
|
+
|
30
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
31
|
+
|
32
|
+
results = clarify.bundles.search('plane')
|
33
|
+
|
34
|
+
results.each do |bundle_results, bundle_url|
|
35
|
+
# Fetch the bundle:
|
36
|
+
bundle = clarify.get(bundle_url)
|
37
|
+
|
38
|
+
puts "#{bundle.name} - #{bundle_url}"
|
39
|
+
bundle_results['term_results'].each do |term_result|
|
40
|
+
term_result['matches'].each do |match|
|
41
|
+
type = match['type']
|
42
|
+
match['hits'].each do |hit|
|
43
|
+
puts "\tmatched #{type} content at #{hit['start']} to #{hit['end']}"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
Example output of bundles_search.rb:
|
51
|
+
```
|
52
|
+
<output of bundles_search.rb>
|
53
|
+
```
|
54
|
+
|
55
|
+
### Get a list of bundles
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
# list_bundles.rb
|
59
|
+
require 'clarify'
|
60
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
61
|
+
|
62
|
+
clarify.bundles.fetch.each do |bundle_url|
|
63
|
+
puts " - #{bundle_url}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
Example output of list_bundles.rb:
|
68
|
+
```
|
69
|
+
<output of list_bundles.rb>
|
70
|
+
```
|
71
|
+
|
72
|
+
### Fetch a particular bundle
|
73
|
+
|
74
|
+
```ruby
|
75
|
+
# bundle_fetch.rb
|
76
|
+
require 'clarify'
|
77
|
+
require 'pp'
|
78
|
+
|
79
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
80
|
+
|
81
|
+
bundle_url = '/v1/bundles/3fbca3fe3678495fb08fe939dbe4f1cd'
|
82
|
+
bundle = clarify.get(bundle_url)
|
83
|
+
puts "Bundle Name: #{bundle.name}"
|
84
|
+
pp bundle
|
85
|
+
```
|
86
|
+
|
87
|
+
Example output of bundle_fetch.rb:
|
88
|
+
```
|
89
|
+
<output of bundle_fetch.rb>
|
90
|
+
```
|
91
|
+
|
92
|
+
### Get a list of bundles and their names
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
# bundles_list_fetch.rb
|
96
|
+
require 'clarify'
|
97
|
+
require 'pp'
|
98
|
+
|
99
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
100
|
+
|
101
|
+
bundles = clarify.bundles.fetch
|
102
|
+
|
103
|
+
bundles.each do |url|
|
104
|
+
bundle = clarify.get(url)
|
105
|
+
puts " - Bundle Name: #{bundle.name}"
|
106
|
+
end
|
107
|
+
```
|
108
|
+
|
109
|
+
Example output of bundles_list_fetch.rb:
|
110
|
+
```
|
111
|
+
<output of bundles_list_fetch.rb>
|
112
|
+
```
|
113
|
+
|
114
|
+
### Create a bundle
|
115
|
+
|
116
|
+
Here you will need your own API key. Creating the bundle will return a 204,
|
117
|
+
which means it has been Created, but is not done processing.
|
118
|
+
|
119
|
+
```ruby
|
120
|
+
# bundle_create.rb
|
121
|
+
require 'clarify'
|
122
|
+
require 'pp'
|
123
|
+
|
124
|
+
clarify = Clarify::Client.new(api_key: ENV['CLARIFY_API_KEY'])
|
125
|
+
|
126
|
+
created_bundle = clarify.bundles.create!(
|
127
|
+
name: 'Harvard Sentences #1',
|
128
|
+
media_url: 'http://media.clarify.io/audio/samples/harvard-sentences-1.wav'
|
129
|
+
)
|
130
|
+
|
131
|
+
pp created_bundle
|
132
|
+
```
|
133
|
+
|
134
|
+
Example output of bundle_create.rb:
|
135
|
+
```
|
136
|
+
<output of bundle_create.rb>
|
137
|
+
```
|
138
|
+
|
139
|
+
## More Advanced Usage
|
140
|
+
#
|
141
|
+
### Get all of your searches over many pages
|
142
|
+
|
143
|
+
```ruby
|
144
|
+
# searches_paged_over.rb
|
145
|
+
require 'clarify'
|
146
|
+
require 'pp'
|
147
|
+
|
148
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
149
|
+
|
150
|
+
first_page = clarify.bundles.search('flight')
|
151
|
+
clarify.pager(first_page).each do |result, bundle_url|
|
152
|
+
puts " - #{clarify.get(bundle_url).name}"
|
153
|
+
pp result
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
Example output of searches_paged_over.rb:
|
158
|
+
```
|
159
|
+
<output of searches_paged_over.rb>
|
160
|
+
```
|
161
|
+
|
162
|
+
### Get all of your bundles over many pages
|
163
|
+
|
164
|
+
```ruby
|
165
|
+
# bundles_paged_over.rb
|
166
|
+
require 'clarify'
|
167
|
+
|
168
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
169
|
+
|
170
|
+
first_page = clarify.bundles.fetch
|
171
|
+
clarify.pager(first_page).each do |bundle_url|
|
172
|
+
puts " - #{clarify.get(bundle_url).name}"
|
173
|
+
end
|
174
|
+
```
|
175
|
+
|
176
|
+
Example output of bundles_paged_over.rb:
|
177
|
+
```
|
178
|
+
<output of bundles_paged_over.rb>
|
179
|
+
```
|
180
|
+
|
181
|
+
|
182
|
+
[travis-image]: https://travis-ci.org/Clarify/clarify-ruby.svg
|
183
|
+
[travis-url]: https://travis-ci.org/Clarify/clarify-ruby
|
184
|
+
|
185
|
+
[cc-image]: https://codeclimate.com/github/Clarify/clarify-ruby/badges/gpa.svg
|
186
|
+
[cc-url]: https://codeclimate.com/github/Clarify/clarify-ruby
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'clarify'
|
2
|
+
require 'pp'
|
3
|
+
|
4
|
+
clarify = Clarify::Client.new(api_key: ENV['CLARIFY_API_KEY'])
|
5
|
+
|
6
|
+
created_bundle = clarify.bundles.create!(
|
7
|
+
name: 'Harvard Sentences #1',
|
8
|
+
media_url: 'http://media.clarify.io/audio/samples/harvard-sentences-1.wav'
|
9
|
+
)
|
10
|
+
|
11
|
+
pp created_bundle
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'clarify'
|
2
|
+
|
3
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
4
|
+
|
5
|
+
results = clarify.bundles.search('plane')
|
6
|
+
|
7
|
+
results.each do |bundle_results, bundle_url|
|
8
|
+
# Fetch the bundle:
|
9
|
+
bundle = clarify.get(bundle_url)
|
10
|
+
|
11
|
+
puts "#{bundle.name} - #{bundle_url}"
|
12
|
+
bundle_results['term_results'].each do |term_result|
|
13
|
+
term_result['matches'].each do |match|
|
14
|
+
type = match['type']
|
15
|
+
match['hits'].each do |hit|
|
16
|
+
puts "\tmatched #{type} content at #{hit['start']} to #{hit['end']}"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'clarify'
|
2
|
+
require 'pp'
|
3
|
+
|
4
|
+
clarify = Clarify::Client.new(api_key: 'docs-api-key')
|
5
|
+
|
6
|
+
first_page = clarify.bundles.search('flight')
|
7
|
+
clarify.pager(first_page).each do |result, bundle_url|
|
8
|
+
puts " - #{clarify.get(bundle_url).name}"
|
9
|
+
pp result
|
10
|
+
end
|
data/src_readme/make.rb
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'erb'
|
4
|
+
|
5
|
+
# Build context and helpers for generating the documentation.
|
6
|
+
class Context
|
7
|
+
def initialize(opts = {})
|
8
|
+
@output = opts.fetch(:include_output, true)
|
9
|
+
end
|
10
|
+
|
11
|
+
def example_with_output(file)
|
12
|
+
"#{example(file)}\n\n#{output_with_lead(file)}"
|
13
|
+
end
|
14
|
+
|
15
|
+
def example(file)
|
16
|
+
"```ruby\n# #{file}\n#{File.read(fn(file))}```"
|
17
|
+
end
|
18
|
+
|
19
|
+
def output_with_lead(file)
|
20
|
+
"Example output of #{file}:\n#{output(file)}"
|
21
|
+
end
|
22
|
+
|
23
|
+
def output(file)
|
24
|
+
"```\n#{run_file(file)}```"
|
25
|
+
end
|
26
|
+
|
27
|
+
def run_file(file)
|
28
|
+
return "<output of #{file}>\n" unless @output
|
29
|
+
|
30
|
+
result = nil
|
31
|
+
IO.popen(['ruby', fn(file)], 'r', err: [:child, :out]) do |io|
|
32
|
+
result = io.read
|
33
|
+
end
|
34
|
+
|
35
|
+
result
|
36
|
+
end
|
37
|
+
|
38
|
+
def fn(file)
|
39
|
+
"src_readme/examples/#{file}"
|
40
|
+
end
|
41
|
+
|
42
|
+
def bound
|
43
|
+
binding
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def write_out(file, opts = {})
|
48
|
+
template = File.read('src_readme/readme.md.erb')
|
49
|
+
erb = ERB.new(template)
|
50
|
+
context = Context.new(opts)
|
51
|
+
|
52
|
+
File.write(file, erb.result(context.bound))
|
53
|
+
end
|
54
|
+
|
55
|
+
write_out('README.md')
|
56
|
+
write_out('src_readme/README_no_output.md', include_output: false)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
|
2
|
+
[![Build Status][travis-image]][travis-url] [![Code Climate][cc-image]][cc-url]
|
3
|
+
|
4
|
+
# How To
|
5
|
+
|
6
|
+
You can get started in minutes using our Quickstarts:
|
7
|
+
|
8
|
+
[http://clarify.io/docs/quickstarts/](http://clarify.io/docs/quickstarts/)
|
9
|
+
|
10
|
+
## Basic Setup and Examples
|
11
|
+
|
12
|
+
Require the library and initialize the Client, which takes care of
|
13
|
+
configuration and http client setup.
|
14
|
+
|
15
|
+
<%= example('setup.rb') %>
|
16
|
+
|
17
|
+
### Search for bundles
|
18
|
+
|
19
|
+
<%= example_with_output('bundles_search.rb') %>
|
20
|
+
|
21
|
+
### Get a list of bundles
|
22
|
+
|
23
|
+
<%= example_with_output('list_bundles.rb') %>
|
24
|
+
|
25
|
+
### Fetch a particular bundle
|
26
|
+
|
27
|
+
<%= example_with_output('bundle_fetch.rb') %>
|
28
|
+
|
29
|
+
### Get a list of bundles and their names
|
30
|
+
|
31
|
+
<%= example_with_output('bundles_list_fetch.rb') %>
|
32
|
+
|
33
|
+
### Create a bundle
|
34
|
+
|
35
|
+
Here you will need your own API key. Creating the bundle will return a 204,
|
36
|
+
which means it has been Created, but is not done processing.
|
37
|
+
|
38
|
+
<%= example_with_output('bundle_create.rb') %>
|
39
|
+
|
40
|
+
## More Advanced Usage
|
41
|
+
#
|
42
|
+
### Get all of your searches over many pages
|
43
|
+
|
44
|
+
<%= example_with_output('searches_paged_over.rb') %>
|
45
|
+
|
46
|
+
### Get all of your bundles over many pages
|
47
|
+
|
48
|
+
<%= example_with_output('bundles_paged_over.rb') %>
|
49
|
+
|
50
|
+
|
51
|
+
[travis-image]: https://travis-ci.org/Clarify/clarify-ruby.svg
|
52
|
+
[travis-url]: https://travis-ci.org/Clarify/clarify-ruby
|
53
|
+
|
54
|
+
[cc-image]: https://codeclimate.com/github/Clarify/clarify-ruby/badges/gpa.svg
|
55
|
+
[cc-url]: https://codeclimate.com/github/Clarify/clarify-ruby
|
metadata
CHANGED
@@ -1,69 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clarify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Clarify Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.13.1
|
23
|
-
type: :runtime
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.13.1
|
26
|
+
version: '1.5'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: rake
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - ~>
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
33
|
+
version: '10.0'
|
40
34
|
type: :development
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - ~>
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
40
|
+
version: '10.0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
42
|
+
name: cucumber
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
-
- - '>='
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 10.0.0
|
47
|
+
version: 1.3.0
|
57
48
|
type: :development
|
58
49
|
prerelease: false
|
59
50
|
version_requirements: !ruby/object:Gem::Requirement
|
60
51
|
requirements:
|
61
52
|
- - ~>
|
62
53
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
64
|
-
- - '>='
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 10.0.0
|
54
|
+
version: 1.3.0
|
67
55
|
- !ruby/object:Gem::Dependency
|
68
56
|
name: rspec
|
69
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,9 +59,6 @@ dependencies:
|
|
71
59
|
- - ~>
|
72
60
|
- !ruby/object:Gem::Version
|
73
61
|
version: '3.0'
|
74
|
-
- - '>='
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 3.0.0
|
77
62
|
type: :development
|
78
63
|
prerelease: false
|
79
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -81,64 +66,122 @@ dependencies:
|
|
81
66
|
- - ~>
|
82
67
|
- !ruby/object:Gem::Version
|
83
68
|
version: '3.0'
|
84
|
-
- - '>='
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 3.0.0
|
87
69
|
- !ruby/object:Gem::Dependency
|
88
|
-
name:
|
70
|
+
name: rspec-expectations
|
89
71
|
requirement: !ruby/object:Gem::Requirement
|
90
72
|
requirements:
|
91
73
|
- - ~>
|
92
74
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
94
|
-
|
75
|
+
version: 3.2.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.2.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
95
88
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
89
|
+
version: 0.29.0
|
97
90
|
type: :development
|
98
91
|
prerelease: false
|
99
92
|
version_requirements: !ruby/object:Gem::Requirement
|
100
93
|
requirements:
|
101
94
|
- - ~>
|
102
95
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
104
|
-
|
96
|
+
version: 0.29.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
105
109
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
110
|
+
version: 0.9.0
|
107
111
|
description: Use the Clarify API to make your audio and video files searchable in
|
108
112
|
just a few lines of code.
|
109
113
|
email:
|
110
|
-
-
|
114
|
+
- support@clarify.io
|
111
115
|
executables: []
|
112
116
|
extensions: []
|
113
117
|
extra_rdoc_files: []
|
114
118
|
files:
|
115
119
|
- .gitignore
|
116
120
|
- .rspec
|
121
|
+
- .simplecov
|
122
|
+
- .travis.yml
|
123
|
+
- CHANGELOG.md
|
124
|
+
- Dockerfile
|
117
125
|
- Gemfile
|
118
126
|
- LICENSE
|
119
|
-
- LICENSE.txt
|
120
127
|
- README.md
|
121
128
|
- Rakefile
|
122
129
|
- clarify.gemspec
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
130
|
+
- cucumber.yml
|
131
|
+
- features/create-bundles.feature
|
132
|
+
- features/delete-bundle.feature
|
133
|
+
- features/identity-steps.feature
|
134
|
+
- features/list-bundles.feature
|
135
|
+
- features/search-bundles.feature
|
136
|
+
- features/step_definitions/curied_url_steps.rb
|
137
|
+
- features/step_definitions/error_steps.rb
|
138
|
+
- features/step_definitions/http_verification_step.rb
|
139
|
+
- features/step_definitions/identity_steps.rb
|
140
|
+
- features/step_definitions/list_steps.rb
|
141
|
+
- features/support/env.rb
|
142
|
+
- features/support/lib/curies.rb
|
143
|
+
- features/support/lib/customer.rb
|
144
|
+
- features/support/lib/exceptions.rb
|
145
|
+
- features/support/lib/names.rb
|
128
146
|
- lib/clarify.rb
|
129
|
-
- lib/clarify/
|
147
|
+
- lib/clarify/bundle_repository.rb
|
148
|
+
- lib/clarify/client.rb
|
149
|
+
- lib/clarify/collection_iterator.rb
|
130
150
|
- lib/clarify/configuration.rb
|
131
|
-
- lib/clarify/
|
132
|
-
- lib/clarify/
|
133
|
-
- lib/clarify/
|
134
|
-
- lib/clarify/
|
151
|
+
- lib/clarify/errors.rb
|
152
|
+
- lib/clarify/response.rb
|
153
|
+
- lib/clarify/response_factory.rb
|
154
|
+
- lib/clarify/responses/bundle.rb
|
155
|
+
- lib/clarify/responses/collection.rb
|
156
|
+
- lib/clarify/responses/no_body.rb
|
157
|
+
- lib/clarify/responses/search_collection.rb
|
158
|
+
- lib/clarify/responses/tracks.rb
|
159
|
+
- lib/clarify/rest_client.rb
|
135
160
|
- lib/clarify/version.rb
|
136
|
-
- spec/
|
137
|
-
- spec/
|
138
|
-
- spec/
|
139
|
-
- spec/
|
140
|
-
- spec/
|
161
|
+
- spec/clarify/bundle_repository_spec.rb
|
162
|
+
- spec/clarify/client_spec.rb
|
163
|
+
- spec/clarify/collection_iterator_spec.rb
|
164
|
+
- spec/clarify/configuration_spec.rb
|
165
|
+
- spec/clarify/errors_spec.rb
|
166
|
+
- spec/clarify/response_factory_spec.rb
|
167
|
+
- spec/clarify/response_spec.rb
|
168
|
+
- spec/clarify/responses/bundle_spec.rb
|
169
|
+
- spec/clarify/responses/collection_spec.rb
|
170
|
+
- spec/clarify/responses/search_collection_spec.rb
|
171
|
+
- spec/clarify/responses/tracks_spec.rb
|
172
|
+
- spec/clarify/rest_client_spec.rb
|
141
173
|
- spec/spec_helper.rb
|
174
|
+
- src_readme/README_no_output.md
|
175
|
+
- src_readme/examples/bundle_create.rb
|
176
|
+
- src_readme/examples/bundle_fetch.rb
|
177
|
+
- src_readme/examples/bundles_list_fetch.rb
|
178
|
+
- src_readme/examples/bundles_paged_over.rb
|
179
|
+
- src_readme/examples/bundles_search.rb
|
180
|
+
- src_readme/examples/list_bundles.rb
|
181
|
+
- src_readme/examples/searches_paged_over.rb
|
182
|
+
- src_readme/examples/setup.rb
|
183
|
+
- src_readme/make.rb
|
184
|
+
- src_readme/readme.md.erb
|
142
185
|
homepage: http://www.clarify.io
|
143
186
|
licenses:
|
144
187
|
- MIT
|
@@ -154,9 +197,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
197
|
version: '0'
|
155
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
199
|
requirements:
|
157
|
-
- - '
|
200
|
+
- - '>'
|
158
201
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
202
|
+
version: 1.3.1
|
160
203
|
requirements: []
|
161
204
|
rubyforge_project:
|
162
205
|
rubygems_version: 2.4.4
|
@@ -164,9 +207,31 @@ signing_key:
|
|
164
207
|
specification_version: 4
|
165
208
|
summary: Search audio and video in a few lines of code
|
166
209
|
test_files:
|
167
|
-
-
|
168
|
-
-
|
169
|
-
-
|
170
|
-
-
|
171
|
-
-
|
210
|
+
- features/create-bundles.feature
|
211
|
+
- features/delete-bundle.feature
|
212
|
+
- features/identity-steps.feature
|
213
|
+
- features/list-bundles.feature
|
214
|
+
- features/search-bundles.feature
|
215
|
+
- features/step_definitions/curied_url_steps.rb
|
216
|
+
- features/step_definitions/error_steps.rb
|
217
|
+
- features/step_definitions/http_verification_step.rb
|
218
|
+
- features/step_definitions/identity_steps.rb
|
219
|
+
- features/step_definitions/list_steps.rb
|
220
|
+
- features/support/env.rb
|
221
|
+
- features/support/lib/curies.rb
|
222
|
+
- features/support/lib/customer.rb
|
223
|
+
- features/support/lib/exceptions.rb
|
224
|
+
- features/support/lib/names.rb
|
225
|
+
- spec/clarify/bundle_repository_spec.rb
|
226
|
+
- spec/clarify/client_spec.rb
|
227
|
+
- spec/clarify/collection_iterator_spec.rb
|
228
|
+
- spec/clarify/configuration_spec.rb
|
229
|
+
- spec/clarify/errors_spec.rb
|
230
|
+
- spec/clarify/response_factory_spec.rb
|
231
|
+
- spec/clarify/response_spec.rb
|
232
|
+
- spec/clarify/responses/bundle_spec.rb
|
233
|
+
- spec/clarify/responses/collection_spec.rb
|
234
|
+
- spec/clarify/responses/search_collection_spec.rb
|
235
|
+
- spec/clarify/responses/tracks_spec.rb
|
236
|
+
- spec/clarify/rest_client_spec.rb
|
172
237
|
- spec/spec_helper.rb
|