physical 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/README.md +1 -1
- data/lib/physical/location.rb +8 -2
- data/lib/physical/version.rb +1 -1
- data/physical.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5071305935c7247bcd7f1cdc6f67693d5c8cb37
|
4
|
+
data.tar.gz: 6040fbc65b93b5d0aced798b9c4f4007952e954f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 346db67ecfe973dfcf2553331d0d67836e62cff6de2ea688227e37f01703cb1871a4d49b7670d71d0023d5a17cb92e4005bef7e9ebc9a2317c0320a8fbc5b89f
|
7
|
+
data.tar.gz: 937e4dbd4098d311d36622db26514e40b15e4f6c9690facb0fda1bc37056e68dc73f14b1c4b1ec03f406bd1e927b0c4172c06311fb0a02992e0dfe28c7b215c1
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,19 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
##
|
7
|
+
## Unreleased
|
8
|
+
|
9
|
+
## [0.4.3] - 2019-10-14
|
10
|
+
### Added
|
11
|
+
- Add `#latitude` and `#longitude` to `Physical::Location`
|
12
|
+
|
13
|
+
## [0.4.2] - 2019-09-04
|
14
|
+
### Changed
|
15
|
+
- Relax `Measured` Gem dependency
|
16
|
+
|
17
|
+
## [0.4.1] - 2019-07-15
|
18
|
+
### Added
|
19
|
+
- Add `max_weight` to `Physical::Package`
|
8
20
|
|
9
21
|
## [0.4.0] - 2019-07-10
|
10
22
|
### Added
|
data/README.md
CHANGED
@@ -143,7 +143,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
143
143
|
|
144
144
|
## Contributing
|
145
145
|
|
146
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
146
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/friendlycart/physical. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
147
147
|
|
148
148
|
## License
|
149
149
|
|
data/lib/physical/location.rb
CHANGED
@@ -18,7 +18,9 @@ module Physical
|
|
18
18
|
:fax,
|
19
19
|
:email,
|
20
20
|
:address_type,
|
21
|
-
:company_name
|
21
|
+
:company_name,
|
22
|
+
:latitude,
|
23
|
+
:longitude
|
22
24
|
|
23
25
|
def initialize(
|
24
26
|
name: nil,
|
@@ -33,7 +35,9 @@ module Physical
|
|
33
35
|
phone: nil,
|
34
36
|
fax: nil,
|
35
37
|
email: nil,
|
36
|
-
address_type: nil
|
38
|
+
address_type: nil,
|
39
|
+
latitude: nil,
|
40
|
+
longitude: nil
|
37
41
|
)
|
38
42
|
|
39
43
|
if country.is_a?(Carmen::Country)
|
@@ -59,6 +63,8 @@ module Physical
|
|
59
63
|
@fax = fax
|
60
64
|
@email = email
|
61
65
|
@address_type = address_type
|
66
|
+
@latitude = latitude
|
67
|
+
@longitude = longitude
|
62
68
|
end
|
63
69
|
|
64
70
|
def residential?
|
data/lib/physical/version.rb
CHANGED
data/physical.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = "A facade to deal with physical packages"
|
14
14
|
spec.description = "A package with boxes and items"
|
15
|
-
spec.homepage = "https://github.com/
|
15
|
+
spec.homepage = "https://github.com/friendlycart/physical"
|
16
16
|
spec.license = "MIT"
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: physical
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Meyerhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carmen
|
@@ -153,7 +153,7 @@ files:
|
|
153
153
|
- lib/physical/types.rb
|
154
154
|
- lib/physical/version.rb
|
155
155
|
- physical.gemspec
|
156
|
-
homepage: https://github.com/
|
156
|
+
homepage: https://github.com/friendlycart/physical
|
157
157
|
licenses:
|
158
158
|
- MIT
|
159
159
|
metadata: {}
|