elibri_watermarking 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ module ElibriWatermarking
19
19
  self.servers = servers
20
20
  end
21
21
 
22
- def watermark(ident, formats, visible_watermark, title_postfix, customer_ip, client_symbol = nil, supplier = nil, delivery_form = nil)
22
+ def watermark(ident, formats, visible_watermark, title_postfix, customer_ip, client_symbol = nil, supplier = nil, delivery_form = nil, price = nil, promotion_id = nil)
23
23
  if ident =~ /^[0-9]+$/ && ident.size == 13
24
24
  ident_type = 'isbn'
25
25
  else
@@ -34,7 +34,8 @@ module ElibriWatermarking
34
34
  'title_postfix' => title_postfix, 'client_symbol' => client_symbol, 'delivery_form' => delivery_form}
35
35
  data.merge!(:supplier => supplier) if supplier
36
36
  data.merge!(:customer_ip => customer_ip) if customer_ip
37
-
37
+ data.merge!(:price => price) if price
38
+ data.merge!(:promotion_id => promotion_id) if promotion_id
38
39
  try_with_different_servers('watermark') do |uri|
39
40
  return get_response_from_server(uri, data, Net::HTTP::Post)
40
41
  end
@@ -1,3 +1,3 @@
1
1
  module ElibriWatermarking
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_watermarking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-19 00:00:00.000000000 Z
13
+ date: 2013-10-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 1832785913580236537
78
+ hash: 2862660958945275009
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  none: false
81
81
  requirements:
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: 1832785913580236537
87
+ hash: 2862660958945275009
88
88
  requirements: []
89
89
  rubyforge_project: elibri_watermarking
90
90
  rubygems_version: 1.8.25