the_community_farm 0.1.0 → 0.2.0
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/the_community_farm/organic_boxes/box.rb +8 -4
- data/lib/the_community_farm/version.rb +1 -1
- data/the_community_farm.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1840a5b4711752acc85de5a89825519866a0fe73
|
4
|
+
data.tar.gz: 4653ef12c7cfb525952807de871d19125cc11af8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b4cbccd6960bd155359d7acfcec86a8af849668add15aec30f98913aa9af1258d8b870c95fe944f83b79e1b1930fcfa01d32e5a51db207b9b5e6906ab8bcc57
|
7
|
+
data.tar.gz: 1a0073efa31ca5b180cef643918d1f61e62245d0034faf3db194dbc606cd9ea34b7d480a4257520a91d1db44b365f77142fe43a6324d2d66c19e9389e882e973
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
7
7
|
|
8
|
-
## [
|
8
|
+
## [Unreleased](https://github.com/communityfarm/the_community_farm/compare/v0.1.0...HEAD)
|
9
|
+
|
10
|
+
## [0.2.0](https://github.com/communityfarm/the_community_farm/compare/v0.1.0...v0.2.0) 2016-10-01
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- There is now a `Box#name` method that returns the box type and the box size.
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
|
18
|
+
- The `Box#title` attribute has been renamed to `Box#type` to more accurately reflect its contents.
|
19
|
+
|
20
|
+
## [0.1.0](https://github.com/communityfarm/the_community_farm/releases/tag/v0.1.0) 2016-10-01
|
9
21
|
|
10
22
|
### Added
|
11
23
|
|
data/README.md
CHANGED
@@ -89,7 +89,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
89
89
|
|
90
90
|
## Contributing
|
91
91
|
|
92
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
92
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/communityfarm/the_community_farm.
|
93
93
|
|
94
94
|
## License
|
95
95
|
|
@@ -10,13 +10,13 @@ module TheCommunityFarm
|
|
10
10
|
|
11
11
|
def id
|
12
12
|
Digest::MD5.new.tap do |id|
|
13
|
-
id.update(
|
13
|
+
id.update(type)
|
14
14
|
id.update(items.join("\n"))
|
15
15
|
end.hexdigest
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
@
|
18
|
+
def type
|
19
|
+
@type ||= noko.at_css('.lead').text.strip
|
20
20
|
end
|
21
21
|
|
22
22
|
def box_size
|
@@ -30,8 +30,12 @@ module TheCommunityFarm
|
|
30
30
|
@items ||= item_doc.css('li').map { |li| li.text.strip }
|
31
31
|
end
|
32
32
|
|
33
|
+
def name
|
34
|
+
"#{type} #{box_size}".strip
|
35
|
+
end
|
36
|
+
|
33
37
|
def to_s
|
34
|
-
|
38
|
+
name
|
35
39
|
end
|
36
40
|
|
37
41
|
private
|
data/the_community_farm.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['chrismytton@gmail.com']
|
11
11
|
|
12
12
|
spec.summary = 'Unofficial API for The Community Farm Bristol'
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/communityfarm/the_community_farm'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_community_farm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Mytton
|
@@ -117,7 +117,7 @@ files:
|
|
117
117
|
- lib/the_community_farm/organic_boxes/box.rb
|
118
118
|
- lib/the_community_farm/version.rb
|
119
119
|
- the_community_farm.gemspec
|
120
|
-
homepage: https://github.com/
|
120
|
+
homepage: https://github.com/communityfarm/the_community_farm
|
121
121
|
licenses:
|
122
122
|
- MIT
|
123
123
|
metadata: {}
|