mirador 0.0.3 → 0.0.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjUwNGI0MWY1NGIxYzZlYmVjNzQyZGFhN2E0ZmQ4NTQxOGQyZmZlNw==
4
+ Zjc0NzZjMDljNTNiZjlhNTlhMDlhZGZmYjg1NjRjZmEzZDFiZWU2MA==
5
5
  data.tar.gz: !binary |-
6
- ZDkyNmUyMmM4MDUxOWZjYTJmMjhkMWVlMGY5Yjk1NWNhNDc3MjBmOQ==
6
+ NTg0ZDE2NzYwNmVjOTVhNmU2MDYzMzljODhiNWQzYzE2NTA4NjNhNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Yzg1OThhODBlN2VlODQyNDY0NDczNDUxYWEwNDJmMjA5YzdhZDllOTZiNjYx
10
- MTNiMTAyNWRhYjkwZTAzYzA3NzZlYTYwNGRjMmYyZTE5ZGI5ODUyNmZjMTNh
11
- Mjg1NzU2Yzk1MWUxNWY5YTkyZTk2MWU1YWI5YmJiYTQxOTllZmY=
9
+ Nzg1NDIxOWExZWFjZjQ5YTg3M2YxN2IyYmMyYjZjOGI5MTQ2ODdkYWRhOTJk
10
+ NzYzMTQ3MjU4ZWVkNjU5NTlhZjg0ZWIwNDhkNjhkOWFjZTkwOTk0YTlhZTE4
11
+ MjRmNzc1NmQyZTAzNGMwMTUwN2E4MmU4NmU4ZGQwYjc2YzE4OWM=
12
12
  data.tar.gz: !binary |-
13
- ZGIwNWU1NTA1YTUxMTAxOWJiYWU1NjY4NzM5NjU4M2Q5ZGY4YjZjM2EyNWNk
14
- YzRiNDdjYjI5YTRhNzFkMjlhY2I4YjUwZjkyMGU0NjVkYjI4NmEzMjRmMWZl
15
- ZTEwYTZjN2IyMDAzMTE1Y2FkZDI4MDI5Mzg4ZjY5NWMyMGUwY2U=
13
+ YzBhODExNjc5OWE2N2E2OThjNDBjOTIwNmJiYjE3ZThlNTBjNzMyMGZiZjFi
14
+ ZWRkMjhmOWVhYWY1ZGRkNzhjNTViNWNiNDgwMGUzMTgxZDRiNzNiZDE2MWM3
15
+ MzY4NDlmMmVjYmRjOTM1NTUxYTRlMzQ4NDM3ZDQ5NjYxMzJmMDM=
@@ -1,3 +1,3 @@
1
1
  module Mirador
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/mirador.rb CHANGED
@@ -21,7 +21,7 @@ module Mirador
21
21
  def self.parse_results reqs, results
22
22
 
23
23
  if not results
24
- return nil
24
+ raise ApiError, "no results for: #{ reqs }"
25
25
  end
26
26
 
27
27
  results.each_with_index.map do |v, i|
@@ -70,7 +70,7 @@ module Mirador
70
70
  raise ApiError, "no response: #{ res.code }"
71
71
  end
72
72
 
73
- Result.parse_results urls, res['results']
73
+ return Result.parse_results urls, res['results']
74
74
  end
75
75
 
76
76
  def classify_files files
@@ -111,8 +111,6 @@ module Mirador
111
111
  return self.classify_encoded names, processed
112
112
  end
113
113
 
114
- protected
115
-
116
114
  def process_file file
117
115
  data = File.read(file)
118
116
  Base64.encode64(data).gsub("\n", '')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirador
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -78,4 +78,3 @@ test_files:
78
78
  - test/images/nsfw.jpg
79
79
  - test/images/sfw.jpg
80
80
  - test/test_mirador.rb
81
- has_rdoc: