ydocx 1.1.8 → 1.1.9

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.9 / 10.05.2012
2
+
3
+ * Updating image file should not be prevented if image file already exists.
4
+
1
5
  === 1.1.8 / 10.05.2012
2
6
 
3
7
  * Fixed image reference option for fi/pi format
@@ -211,7 +211,9 @@ div#container {
211
211
  def organize_image(origin_path, source_path)
212
212
  if reference = @references.shift
213
213
  new_source_path = source_path.dirname.to_s + '/' + File.basename(reference)
214
- FileUtils.copy reference, @files.join(new_source_path)
214
+ if reference != @files.join(new_source_path).realpath # same file
215
+ FileUtils.copy reference, @files.join(new_source_path)
216
+ end
215
217
  else
216
218
  copy_or_convert(origin_path, source_path)
217
219
  end
data/lib/ydocx.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  require 'ydocx/document'
5
5
 
6
6
  module YDocx
7
- VERSION = '1.1.8'
7
+ VERSION = '1.1.9'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ydocx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-10 00:00:00.000000000 Z
12
+ date: 2012-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &24290600 !ruby/object:Gem::Requirement
16
+ requirement: &10924400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.10'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *24290600
24
+ version_requirements: *10924400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &24290180 !ruby/object:Gem::Requirement
27
+ requirement: &10923980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.13'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *24290180
35
+ version_requirements: *10923980
36
36
  description: ''
37
37
  email:
38
38
  - yasaka@ywesee.com, zdavatz@ywesee.com