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
- YzRmZGQ0NGFmZjFjMjk2ODhmYTE5YjEyOTE0NTJkZDljYjVjMzk0Yg==
4
+ ZDA0NWYzZDE0NDI2ZjNmMmQyNzY0MDQ1MWY3YjZkYzkzNGIyNzc3Mw==
5
5
  data.tar.gz: !binary |-
6
- Mjc3NGRjZDliZDYzMTJjMTllOGFmMDlkMWM2ODk2NTFjNWEwNTBkOQ==
6
+ NWQwODRiYTIyYTJmYTllMTQ1OWE4OTVkODEyYjA1M2E1NDZhNmRiZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmU3ODEyZWY2ZWZkNDMzZThhMGQxY2UwMjIxYWQ5ODU5YjFmNGRhODBiZmRm
10
- YWI1NjEyNGFlMjNmZDA5ZGQzODZjZDU5ZWIwNjkzODFkNzFjNzE2OTZjZGRh
11
- OWYxMzUxYTk5ZWM0MDkxODc0N2UyOWYyMTZkNDdhZmQ3YzFjMzQ=
9
+ ZTUyZTExMzMzYWEzNWQyNDRiMDY0MDU1YTVhNGM0YmU4ZDA4NzZkNWNmMTcx
10
+ YjYyZWM5ZTFmODRhOTBjYWQzNzI3ZDlhZTZkMTE1NDg4NDlkMWM2YmQ5OTQ2
11
+ NjQ5Y2M4M2FmNzg1ZDFjZWVjOTI2MTFkMDNiZGEyZmNhZDExMzM=
12
12
  data.tar.gz: !binary |-
13
- Y2I5OTE3ZGM3NWIwNzgwYmE2YzYzMjc1NzcyZGMxNTA4MTczYTE2YjRmYzM3
14
- YzkzYzQzZmY4YjE5YjZlNjFmZWVhYjcyYTcwNGM5NGU1YWU4MjYwOGQxMjhl
15
- MjU5NzgzYTk0NWVlOTk3NzNmMDllOWZkNmY5MWYzMGUzNTBjMWY=
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
- "ok"
32
+ {
33
+ :name => repo.name,
34
+ :status => "ok",
35
+ }.to_json
33
36
  end
34
37
 
35
38
  end # controllers
@@ -1,5 +1,5 @@
1
1
  module SocialSnippet
2
2
  module RegistryCore
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
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.7
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-20 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler