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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a1bfb7a05011f162483225610abcfa1b94708cd
4
- data.tar.gz: 69aede8fc1542cec07ce9d8af80c9d82470f8064
3
+ metadata.gz: 1840a5b4711752acc85de5a89825519866a0fe73
4
+ data.tar.gz: 4653ef12c7cfb525952807de871d19125cc11af8
5
5
  SHA512:
6
- metadata.gz: 0734cc0d8ab0a35c474e20fdeb3d76c01286bacb7e490ea6bf435402635bd6f32b5a2e6239be02cf3715015aaf11e04116f96e8863b2a4ddd23d21d937a2b15d
7
- data.tar.gz: 96af024fea259a53604e7dbc907f2b32e8fc08d441c45ed4c3091f38a560d5ed9143320a985c355ebac541bd1099ad82dc4e9635a8b622827e3b18d02ee91672
6
+ metadata.gz: 3b4cbccd6960bd155359d7acfcec86a8af849668add15aec30f98913aa9af1258d8b870c95fe944f83b79e1b1930fcfa01d32e5a51db207b9b5e6906ab8bcc57
7
+ data.tar.gz: 1a0073efa31ca5b180cef643918d1f61e62245d0034faf3db194dbc606cd9ea34b7d480a4257520a91d1db44b365f77142fe43a6324d2d66c19e9389e882e973
@@ -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
- ## [0.1.0](https://github.com/chrismytton/the_community_farm/tag/v0.1.0) 2016-10-01
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/chrismytton/the_community_farm.
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(title)
13
+ id.update(type)
14
14
  id.update(items.join("\n"))
15
15
  end.hexdigest
16
16
  end
17
17
 
18
- def title
19
- @title ||= noko.at_css('.lead').text.strip
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
- "#{title} #{box_size}".strip
38
+ name
35
39
  end
36
40
 
37
41
  private
@@ -1,3 +1,3 @@
1
1
  module TheCommunityFarm
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
@@ -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/chrismytton/the_community_farm'
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.1.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/chrismytton/the_community_farm
120
+ homepage: https://github.com/communityfarm/the_community_farm
121
121
  licenses:
122
122
  - MIT
123
123
  metadata: {}