brocade 1.2.0 → 1.2.1
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/brocade.gemspec +1 -0
- data/lib/brocade/has_barcode.rb +4 -4
- data/lib/brocade/version.rb +1 -1
- metadata +26 -10
data/brocade.gemspec
CHANGED
data/lib/brocade/has_barcode.rb
CHANGED
@@ -50,7 +50,7 @@ module Brocade
|
|
50
50
|
# http://github.com/toretore/barby/blob/master/lib/barby/outputter/png_outputter.rb
|
51
51
|
f.write barcode.to_png(self.class.options.merge(opts))
|
52
52
|
end
|
53
|
-
FileUtils.chmod
|
53
|
+
FileUtils.chmod (0666&~File.umask), path
|
54
54
|
end
|
55
55
|
|
56
56
|
def update_barcode(opts = {})
|
@@ -68,11 +68,11 @@ module Brocade
|
|
68
68
|
while true
|
69
69
|
path = File.dirname path
|
70
70
|
FileUtils.rmdir path
|
71
|
+
break if File.exists?(path) # Ruby 1.9.2 does not raise if the removal failed.
|
71
72
|
end
|
72
|
-
rescue Errno::EEXIST, Errno::ENOTEMPTY, Errno::ENOENT, Errno::EINVAL, Errno::ENOTDIR
|
73
|
+
rescue Errno::EEXIST, Errno::ENOTEMPTY, Errno::ENOENT, Errno::EINVAL, Errno::ENOTDIR, Errno::EACCES
|
73
74
|
# Stop trying to remove parent directories
|
74
75
|
rescue SystemCallError => e
|
75
|
-
#log("There was an unexpected error while deleting directories: #{e.class}")
|
76
76
|
# Ignore it
|
77
77
|
end
|
78
78
|
end
|
@@ -82,7 +82,7 @@ module Brocade
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def barcode_path
|
85
|
-
"#{
|
85
|
+
"#{::Rails.root}/public/system/barcodes/#{klass}/#{partitioned_id}/#{symbology}.png"
|
86
86
|
end
|
87
87
|
|
88
88
|
def klass
|
data/lib/brocade/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brocade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Stewart
|
@@ -15,13 +15,13 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-18 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: barby
|
23
23
|
prerelease: false
|
24
|
-
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
@@ -32,11 +32,11 @@ dependencies:
|
|
32
32
|
- 5
|
33
33
|
version: "0.5"
|
34
34
|
type: :runtime
|
35
|
-
|
35
|
+
requirement: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: chunky_png
|
38
38
|
prerelease: false
|
39
|
-
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -47,7 +47,23 @@ dependencies:
|
|
47
47
|
- 2
|
48
48
|
version: "1.2"
|
49
49
|
type: :runtime
|
50
|
-
|
50
|
+
requirement: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: rake
|
53
|
+
prerelease: false
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - "="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 49
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 8
|
63
|
+
- 7
|
64
|
+
version: 0.8.7
|
65
|
+
type: :runtime
|
66
|
+
requirement: *id003
|
51
67
|
description: Generates barcodes for Rails ActiveRecord models.
|
52
68
|
email: boss@airbladesoftware.com
|
53
69
|
executables: []
|
@@ -98,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
114
|
requirements: []
|
99
115
|
|
100
116
|
rubyforge_project:
|
101
|
-
rubygems_version: 1.
|
117
|
+
rubygems_version: 1.6.2
|
102
118
|
signing_key:
|
103
119
|
specification_version: 3
|
104
120
|
summary: Generates barcodes for Rails ActiveRecord models.
|