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
- NGVmMjM0OGNmMTU3YThjOTZjMWNiZjM0NzhkNTVjZGRmYzNkZjQ5NA==
4
+ YzExN2MyNmYyM2ZmN2IyY2ZjZDI4Y2RhOTcxYzQ1ZGU4MWQ5OTI2Mw==
5
5
  data.tar.gz: !binary |-
6
- MDBlYWQ2MzhjOTFiNTFhZDdiNDBmYmQxODY4NDk2NDc4ZmNjYjI1YQ==
6
+ OTRjMzhlYzc0ZTI4ODQwY2Q2ODM0ZDAxNmViYmU3M2ZiOWIwNjg0Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2QzOTEzY2YxOGE5ZjQ5YjdhMmRhNjlmZjgzOGZhZTQyMzgzOTc2NWFlZjli
10
- NmJiMzJjOTc0MzU1ZjkyNzkzYjRkZDM0NTVkMDVjMjZkMTFkODA2ZWU2OTZj
11
- YWNkYjQyN2QxMDQyZDlhYTZkYTIzNjhkMzAzMjE4YTAxYzc4Yjg=
9
+ ZTljMmRjYTE3N2ZjZWIwYWM4ZDgxYzI2ZWY4MTBkYWM4ODU0MGVjMzg2Yzk4
10
+ MWFjOGFkOGI5ZjJhMmFlYWQ1MjZiZTE2NzljZTg5Y2M2ODRmNGViZjc0Mjdj
11
+ MmRlMjJhNjZhYTIyOTJlZThlMjQyY2YxMmE1MzNhMmY5ZmM0MWE=
12
12
  data.tar.gz: !binary |-
13
- MTVlM2FkNzA2ZTU3ODZlZjUzNGFmN2Y0NGNhZTYyYzNhZTllZWQ5ZWJhOTll
14
- N2UxOTY2N2NhN2NmYzZlZGI2MjcyNWU4MWMxYjgyNmVmNDM0MTdmNDU5Y2Y0
15
- OTJkZGY5NGZkZmMzMGFhOTVkYzJhMDQzZjg2ZWM5ZWRmMGMzMTc=
13
+ ZmJlMjkyMThhZjMxZGU3MDQ3ZjE1MDVmZmZlMGU3ZWZiZWFhNDJmZDllMDBi
14
+ Mzg2YTAxMGVmZWM2MGZkYjg5MGM3MjcyYThhYTJjZmJkNmNmNzY0ZmM0MDBh
15
+ MjllYmE4ZDBkMDNlYzJlZjk0YTUxZGJjYTY5Njg0ZDk5NmRjYzQ=
@@ -1,19 +1,23 @@
1
- class SocialSnippet::RegistryCore::Fetcher::FetcherBase
1
+ module SocialSnippet::RegistryCore
2
2
 
3
- require "version_sorter"
3
+ class Fetcher::FetcherBase
4
4
 
5
- def latest_version(vers)
6
- VersionSorter.rsort(vers).first
7
- end
5
+ require "version_sorter"
8
6
 
9
- def versions(owner_id, repo_id)
10
- refs_by(owner_id, repo_id).select do |ref|
11
- VersionHelpers.is_version?(ref)
7
+ def latest_version(vers)
8
+ ::VersionSorter.rsort(vers).first
12
9
  end
13
- end
14
10
 
15
- def snippet_json(url)
16
- raise "not implemented"
17
- end
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 # FetcherBase
23
+ end
@@ -1,6 +1,6 @@
1
- module SocialSnippet::RegistryCore::Fetcher
1
+ module SocialSnippet::RegistryCore
2
2
 
3
- class GitHubFetcher < FetcherBase
3
+ class Fetcher::GitHubFetcher < Fetcher::FetcherBase
4
4
 
5
5
  require "octokit"
6
6
  require "json"
@@ -1,5 +1,5 @@
1
1
  module SocialSnippet
2
2
  module RegistryCore
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_snippet-registry_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki Sano