social_snippet-registry_core 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzExN2MyNmYyM2ZmN2IyY2ZjZDI4Y2RhOTcxYzQ1ZGU4MWQ5OTI2Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTRjMzhlYzc0ZTI4ODQwY2Q2ODM0ZDAxNmViYmU3M2ZiOWIwNjg0Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTljMmRjYTE3N2ZjZWIwYWM4ZDgxYzI2ZWY4MTBkYWM4ODU0MGVjMzg2Yzk4
|
10
|
+
MWFjOGFkOGI5ZjJhMmFlYWQ1MjZiZTE2NzljZTg5Y2M2ODRmNGViZjc0Mjdj
|
11
|
+
MmRlMjJhNjZhYTIyOTJlZThlMjQyY2YxMmE1MzNhMmY5ZmM0MWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmJlMjkyMThhZjMxZGU3MDQ3ZjE1MDVmZmZlMGU3ZWZiZWFhNDJmZDllMDBi
|
14
|
+
Mzg2YTAxMGVmZWM2MGZkYjg5MGM3MjcyYThhYTJjZmJkNmNmNzY0ZmM0MDBh
|
15
|
+
MjllYmE4ZDBkMDNlYzJlZjk0YTUxZGJjYTY5Njg0ZDk5NmRjYzQ=
|
@@ -1,19 +1,23 @@
|
|
1
|
-
|
1
|
+
module SocialSnippet::RegistryCore
|
2
2
|
|
3
|
-
|
3
|
+
class Fetcher::FetcherBase
|
4
4
|
|
5
|
-
|
6
|
-
VersionSorter.rsort(vers).first
|
7
|
-
end
|
5
|
+
require "version_sorter"
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
VersionHelpers.is_version?(ref)
|
7
|
+
def latest_version(vers)
|
8
|
+
::VersionSorter.rsort(vers).first
|
12
9
|
end
|
13
|
-
end
|
14
10
|
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
def versions(owner_id, repo_id)
|
12
|
+
refs_by(owner_id, repo_id).select do |ref|
|
13
|
+
VersionHelpers.is_version?(ref)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def snippet_json(url)
|
18
|
+
raise "not implemented"
|
19
|
+
end
|
20
|
+
|
21
|
+
end # FetcherBase
|
18
22
|
|
19
|
-
end
|
23
|
+
end
|