correios-sro 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.rdoc +1 -1
- data/lib/track.rb +4 -4
- metadata +30 -36
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2011
|
1
|
+
Copyright (c) 2011 Formaweb
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
data/README.rdoc
CHANGED
data/lib/track.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
class Track
|
2
2
|
attr_reader :number, :status
|
3
|
-
|
3
|
+
|
4
4
|
def initialize(number)
|
5
5
|
@number = number
|
6
6
|
@status = Array.new
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
def <<(status)
|
10
10
|
@status << status
|
11
11
|
@status.sort! do |a, b|
|
12
12
|
a.date <=> b.date
|
13
13
|
end
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def first
|
17
17
|
@status.first
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
def last
|
21
21
|
@status.last
|
22
22
|
end
|
metadata
CHANGED
@@ -1,68 +1,62 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: correios-sro
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.3
|
4
5
|
prerelease:
|
5
|
-
version: 2.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
-
|
7
|
+
authors:
|
8
|
+
- Formaweb
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-10-09 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: nokogiri
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70274336513220 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.4.4
|
24
22
|
type: :runtime
|
25
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70274336513220
|
26
25
|
description: Tracking object system from Correios (Brazil).
|
27
|
-
email:
|
26
|
+
email: tecnologia@formaweb.com.br
|
28
27
|
executables: []
|
29
|
-
|
30
28
|
extensions: []
|
31
|
-
|
32
|
-
extra_rdoc_files:
|
29
|
+
extra_rdoc_files:
|
33
30
|
- README.rdoc
|
34
|
-
files:
|
31
|
+
files:
|
35
32
|
- README.rdoc
|
36
33
|
- LICENSE
|
37
34
|
- lib/correios-sro.rb
|
38
35
|
- lib/status.rb
|
39
36
|
- lib/track.rb
|
40
|
-
homepage: http://github.com/
|
37
|
+
homepage: http://github.com/formaweb/correios-sro
|
41
38
|
licenses: []
|
42
|
-
|
43
39
|
post_install_message:
|
44
|
-
rdoc_options:
|
40
|
+
rdoc_options:
|
45
41
|
- --charset=UTF-8
|
46
|
-
require_paths:
|
42
|
+
require_paths:
|
47
43
|
- - lib
|
48
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
45
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
51
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version:
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
60
56
|
requirements: []
|
61
|
-
|
62
57
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.8.5
|
64
59
|
signing_key:
|
65
60
|
specification_version: 3
|
66
61
|
summary: Tracking object system from Correios (Brazil).
|
67
62
|
test_files: []
|
68
|
-
|