elibri_watermarking 0.8.2 → 0.8.3

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.
@@ -21,8 +21,8 @@ module ElibriWatermarking
21
21
 
22
22
  def watermark(ident, formats, visible_watermark, title_postfix, customer_ip, client_symbol = nil, supplier = nil)
23
23
  ident =~ /^[0-9]+$/ ? ident_type = 'isbn' : ident_type = 'record_reference'
24
- raise WrongFormats.new if formats.is_a?(String) && !formats =~ /^(epub|mobi|pdf|,)+$/
25
- raise WrongFormats.new if formats.is_a?(Array) && ((formats - ['epub','mobi','pdf']) != [] || (formats & ['epub','mobi','pdf']).count < 1)
24
+ raise WrongFormats.new if formats.is_a?(String) && !formats =~ /^(epub|mobi|pdf|mp3_in_zip|,)+$/
25
+ raise WrongFormats.new if formats.is_a?(Array) && ((formats - ['epub','mobi','pdf','mp3_in_zip']) != [] || (formats & ['epub','mobi','pdf','mp3_in_zip']).count < 1)
26
26
  formats = formats.join(",") if formats.is_a?(Array)
27
27
  data = {ident_type => ident, 'formats' => formats, 'visible_watermark' => visible_watermark,
28
28
  'title_postfix' => title_postfix, 'client_symbol' => client_symbol}
@@ -1,3 +1,3 @@
1
1
  module ElibriWatermarking
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_watermarking
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 2
10
- version: 0.8.2
9
+ - 3
10
+ version: 0.8.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Piotr Szmielew
@@ -16,8 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-12-10 00:00:00 +01:00
20
- default_executable:
19
+ date: 2012-12-21 00:00:00 Z
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
22
  name: rake
@@ -67,7 +66,6 @@ files:
67
66
  - lib/elibri_watermarking/client.rb
68
67
  - lib/elibri_watermarking/exceptions.rb
69
68
  - lib/elibri_watermarking/version.rb
70
- has_rdoc: true
71
69
  homepage: http://elibri.com.pl
72
70
  licenses: []
73
71
 
@@ -97,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
95
  requirements: []
98
96
 
99
97
  rubyforge_project: elibri_watermarking
100
- rubygems_version: 1.5.2
98
+ rubygems_version: 1.8.21
101
99
  signing_key:
102
100
  specification_version: 3
103
101
  summary: Gem designed to help in use of Elibri watermarking API.