company 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49d635d99039ba1f2dd9e2fc68794b7430b49890b9ccfdacd34c420ed7d38e6d
4
- data.tar.gz: 0d4e6da3fae824c5db9af413d5be87b94db532c336bccd1194896381eb5245cd
3
+ metadata.gz: 25ecca18513633e93192c25059e8b94701440313c7d2c57c507cc82737bca5c7
4
+ data.tar.gz: 7dafceaf23f066daf45ab29d79de66a829843a0d70f2cfbd958e3b0d6a6c53e7
5
5
  SHA512:
6
- metadata.gz: '0524899dee91ba36a54f37ca834cd770e27a202ae3b65e79efc7aeb9bb889697184ec186724a62c015f589a51e27c866aad7ef27c8dfebc3f67b62fbd491aa86'
7
- data.tar.gz: ff4a532ba721b64b33bab772235c17c5f3ea2bdc15622c4cd9bd4e7b3ef9d361c15862cecc9f667b4d9b84f28f8fe8f4cae6d0b2f96c7dff828c562906479028
6
+ metadata.gz: 515ccd1ff8052f0d2ae739c6c86eeb5ab1d21b6324cae13dd83a1dc0e4793a99d30f117380efcb893e95f512993261370b542f73025c85e475f76e96b93ae16d
7
+ data.tar.gz: 5c91bb934528ac9e0cd8d392b2b16e9aff925ac97730f45af02930b5c2316a77a09c17c685c7a4b4b95527b42f3d60cdf1158ca071e073c347c07757a24d5b54
@@ -28,5 +28,11 @@ module Company
28
28
 
29
29
  # @return [Collection] the same list, narrowed to the stops of leads.
30
30
  def for_leads = Selection.new(collection: self, &:lead)
31
+
32
+ # Booked time a platform can say something about: the stops of jobs and of leads together,
33
+ # without the hours blocked out around them, which name no work and cost a list of their own
34
+ # on a platform that files them apart.
35
+ # @return [Collection] the same list, narrowed to the stops of work of either kind.
36
+ def for_work = Selection.new(collection: self) { |visit| visit.job || visit.lead }
31
37
  end
32
38
  end
@@ -1,5 +1,5 @@
1
1
  # The vocabulary two platform gems share: an account opens a business and the records it holds.
2
2
  module Company
3
3
  # The version of this gem, as RubyGems knows it.
4
- VERSION = '3.0.0'
4
+ VERSION = '3.1.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: company
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo