ean 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -4,3 +4,6 @@
4
4
  * validates 8. 12. 13. 14 GTIN/UPC/EAN identifiers
5
5
  * generates 8. 12. 13. 14 GTIN/UPC/EAN identifiers
6
6
 
7
+ === 0.2.0 / 2010-02-15
8
+
9
+ Fixed: ean? answers true when passed a string with no numbers
data/TODO CHANGED
@@ -1,3 +1,3 @@
1
1
  * Integration with upcdatabase.com (either via XML-RPC or downloaded filed, need to decide what's needed first)
2
2
 
3
- * Support more formats. Which one is the real question. Will take contributions (with specs!)
3
+ * Support more formats. Which ones is the real question. Will take contributions (with specs!)
@@ -48,7 +48,7 @@ module EAN
48
48
  when 14
49
49
  0.upto(numbers.length-2) do |i| checksum += numbers[i].to_i * ((i-1)%2*3 +i%2) end
50
50
  else
51
- 0
51
+ return false
52
52
  end
53
53
 
54
54
  return numbers[-1].to_i == (10 - checksum % 10)%10
@@ -1,7 +1,7 @@
1
1
  module EAN #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 1
4
+ MINOR = 2
5
5
  TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pascal Belloncle (nano RAILS)
@@ -30,17 +30,38 @@ cert_chain:
30
30
  TCvXyw==
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2008-02-23 00:00:00 -08:00
33
+ date: 2010-02-15 00:00:00 -08:00
34
34
  default_executable:
35
35
  dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: rubyforge
38
+ type: :development
39
+ version_requirement:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 2.0.3
45
+ version:
46
+ - !ruby/object:Gem::Dependency
47
+ name: gemcutter
48
+ type: :development
49
+ version_requirement:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.3.0
55
+ version:
36
56
  - !ruby/object:Gem::Dependency
37
57
  name: hoe
58
+ type: :development
38
59
  version_requirement:
39
60
  version_requirements: !ruby/object:Gem::Requirement
40
61
  requirements:
41
62
  - - ">="
42
63
  - !ruby/object:Gem::Version
43
- version: 1.5.0
64
+ version: 2.5.0
44
65
  version:
45
66
  description: Provide validation/generation for UPC/EAN/GTIN numbers
46
67
  email: psq@nanorails.com
@@ -72,6 +93,8 @@ files:
72
93
  - tasks/rspec.rake
73
94
  has_rdoc: true
74
95
  homepage: http://blog.nanorails.com/ean-upc
96
+ licenses: []
97
+
75
98
  post_install_message:
76
99
  rdoc_options:
77
100
  - --main
@@ -93,9 +116,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
116
  requirements: []
94
117
 
95
118
  rubyforge_project: ean
96
- rubygems_version: 1.0.0
119
+ rubygems_version: 1.3.5
97
120
  signing_key:
98
- specification_version: 2
121
+ specification_version: 3
99
122
  summary: Provide validation/generation for UPC/EAN/GTIN numbers
100
123
  test_files: []
101
124
 
metadata.gz.sig CHANGED
Binary file