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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 210d22edd427ccc8c4c72fa6665469d792f783ea
4
- data.tar.gz: 00655dcf25f8f6d8b3746395a07631a4fa1e6e38
3
+ metadata.gz: 3f51fa8da06af9a3edb8f5c6e24692ba0542b1d3
4
+ data.tar.gz: e7bc0ee925a663c2df4a7d4ff8e50774991cee91
5
5
  SHA512:
6
- metadata.gz: f1d515001bf9ef0f29e9b8e9cd5c1d82744cf04e6aab74aa6b2779b732415880e0c4733087f4ffbacc11e22aff9f399ebcc3ae5132a6a0632f22a1ce3a5c56c3
7
- data.tar.gz: e1bdca3cc311c7cf1bc08056f58fb03cea4af9e346170997e67e217ff9865cf175e821c360816f61945d41af85e7a6a66832afce6a0c3c131c5165584826029b
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 "#{ENV['MSHARD_URI']}/shards"
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
@@ -1,3 +1,3 @@
1
1
  module MShard
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty