ossy 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 888c62267952b5f24a66741016179765c541c7fe9f28576ed892484b48e4ce52
4
- data.tar.gz: '01885a2a26f4b3c8e02be23419c9165ade07ed4aeedd2c047c537d4793cd61f9'
3
+ metadata.gz: 293d5356dff91ea8e81f4743a6d3b4a5e3a1811b1c3fe2e58ae44d741ea06bee
4
+ data.tar.gz: 5cfb961445bff9d039d42deac7a559eb43d9ed322f7c442e75f65d6ed3c749ca
5
5
  SHA512:
6
- metadata.gz: a62e32830553990689776251581d2c9bdc91e3f3b40dee67b2c1f0fccfe114774ae9ad67552f92b6a10222a1484455c26251fc781d4bb5fa2478fd5264ee538c
7
- data.tar.gz: 900e60b374b75b8ea0e957b60938fb9c6a3571136b111cef7731e4b113a950565ad33908279e5bacd11c33b9fdc99cca757e3ae6819cd094c4522bd3fd1af321
6
+ metadata.gz: 4d8ded74f12c33f88f184ff43f7452710e29b5a22d8247335076f2784783c259a3d2e7382bef8b652821acfe4b186a258c94e7c442d7d9443645d3372761b0f6
7
+ data.tar.gz: e4d08d31c1cbb34f8da36a316603d89a7f3c7d2bb453b9c5e3425993e0e849650da1f021e7ba288dc863a6c1dedfb5a05b9d47414f8f6d0104257eaceec9f9f3
@@ -13,7 +13,15 @@ module Ossy
13
13
  module Releases
14
14
  class Context < OpenStruct
15
15
  def self.new(data)
16
- super(releases: [data.map(&Release).first])
16
+ super(releases: data.map(&Release))
17
+ end
18
+
19
+ def latest_release
20
+ releases.first
21
+ end
22
+
23
+ def previous_release
24
+ releases[1]
17
25
  end
18
26
 
19
27
  def update(hash)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ossy
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ossy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica