social_snippet-registry_core 0.0.7 → 0.0.8
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
|
+
ZDA0NWYzZDE0NDI2ZjNmMmQyNzY0MDQ1MWY3YjZkYzkzNGIyNzc3Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWQwODRiYTIyYTJmYTllMTQ1OWE4OTVkODEyYjA1M2E1NDZhNmRiZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTUyZTExMzMzYWEzNWQyNDRiMDY0MDU1YTVhNGM0YmU4ZDA4NzZkNWNmMTcx
|
10
|
+
YjYyZWM5ZTFmODRhOTBjYWQzNzI3ZDlhZTZkMTE1NDg4NDlkMWM2YmQ5OTQ2
|
11
|
+
NjQ5Y2M4M2FmNzg1ZDFjZWVjOTI2MTFkMDNiZGEyZmNhZDExMzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzVlMmI0MzE4NmFjMTM3MDQ4ZGU2ZDM2YThkMmUzNjVkODljNDM4NzhmODY0
|
14
|
+
MTUxYmQ3ZTNhMzIzMjM4ZDRkOWFlMWEwNDk2MzAxNjVlMzljOTVlMTQ1Njhj
|
15
|
+
NTJiZTgxMTBjYThmNjU3NWVkMjgxZDYwMDUxY2MxZDJlZGU0NGU=
|
@@ -20,7 +20,7 @@ module SocialSnippet::Registry::WebAPI
|
|
20
20
|
# POST /repositories
|
21
21
|
#
|
22
22
|
# @param url [String]
|
23
|
-
post :index do
|
23
|
+
post :index, :provides => :json do
|
24
24
|
repo_url = normalize_url(params[:url])
|
25
25
|
fetcher = create_fetcher(repo_url)
|
26
26
|
|
@@ -29,7 +29,10 @@ module SocialSnippet::Registry::WebAPI
|
|
29
29
|
repo.url = repo_url
|
30
30
|
repo.save!
|
31
31
|
|
32
|
-
|
32
|
+
{
|
33
|
+
:name => repo.name,
|
34
|
+
:status => "ok",
|
35
|
+
}.to_json
|
33
36
|
end
|
34
37
|
|
35
38
|
end # controllers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_snippet-registry_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroyuki Sano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|