mshard 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mshard/mshard.rb +3 -3
- data/lib/mshard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f51fa8da06af9a3edb8f5c6e24692ba0542b1d3
|
4
|
+
data.tar.gz: e7bc0ee925a663c2df4a7d4ff8e50774991cee91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a043497e015e0ebf7adf094953589784bc1f9fe76a772c4b5c2ef055198bb51b001eb143256ff32d36336b1c4a085fd80f8c98d2689c7fb2dbf190591aa3023b
|
7
|
+
data.tar.gz: 713e52cf6adab1bab1ad2f840f4d0f250f71f1f34f445e10089aaf3f23f272fce9a79fd217b69015cd4be91de32c71963debfca9df7fb513bb7ff60a07a7ac99
|
data/lib/mshard/mshard.rb
CHANGED
@@ -3,14 +3,14 @@ require 'httparty'
|
|
3
3
|
module MShard
|
4
4
|
class MShard
|
5
5
|
include HTTParty
|
6
|
-
base_uri
|
6
|
+
base_uri ENV['MSHARD_URI']
|
7
7
|
|
8
8
|
def get(id)
|
9
|
-
self.class.get("/#{id}")['contents']
|
9
|
+
self.class.get("/shards/#{id}")['contents']
|
10
10
|
end
|
11
11
|
|
12
12
|
def set(params)
|
13
|
-
self.class.post('', body: params)['id']
|
13
|
+
self.class.post('/shards', body: params)['id']
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/mshard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mshard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minwoo Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|