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 +4 -4
- data/lib/ossy/cli/releases/generate.rb +9 -1
- data/lib/ossy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 293d5356dff91ea8e81f4743a6d3b4a5e3a1811b1c3fe2e58ae44d741ea06bee
|
4
|
+
data.tar.gz: 5cfb961445bff9d039d42deac7a559eb43d9ed322f7c442e75f65d6ed3c749ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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)
|
data/lib/ossy/version.rb
CHANGED