shiny-sdk 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shiny-sdk.rb +2 -2
  3. data/shiny-sdk.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9d06204c2a6b099daddda6ff242e731a5369fd8
4
- data.tar.gz: 240e2e78af8e9be29714ea1b3d2b305f572758e3
3
+ metadata.gz: 56f3aaede8a828302d70b50a9d08195e5cde3047
4
+ data.tar.gz: e5512e3ec167d8c0a23ae907e3317d1813f7d3d9
5
5
  SHA512:
6
- metadata.gz: c5c59472a8dda7b4c886c49e646e328ede39f16b88d048860ae5edeb56f5d490e6854ecb3d09313fb3cfb21176ef0978129d38340d4ea283510063bcf92456e4
7
- data.tar.gz: 594ec0e27f42e3f1326dbec123b73d2aec79267febc908993af7f73433a969902402e8454756a48e428a9200466c16d948801ae2f068f9004b3d877dc99a1fef
6
+ metadata.gz: 54fe92825571f5e7c1a95dc0cce93879127f513a9e0d8fefa1e342e07d0dcd3e4711bb6755cafda9879a4b1b563d876e7e0d0840fd4085ab1da767e5326567de
7
+ data.tar.gz: 83ef04ef5ae4f71663d77e18995339db3b946fd02e6b17084b2436546da32deb05cb0d0f1955a44087cc27462a9327418630041297d96bd8f5e5ebb6c8d45aeb
data/lib/shiny-sdk.rb CHANGED
@@ -47,7 +47,7 @@ class Shiny
47
47
  payload["event"] = event.to_json
48
48
 
49
49
  response = Net::HTTP.post_form(URI.parse(url), payload)
50
- if response.code != 200
50
+ if response.code == '200'
51
51
  return JSON.parse(response.body)
52
52
  else
53
53
  raise ShinyError.new('Network error:' + response.code)
@@ -60,7 +60,7 @@ class Shiny
60
60
  uri = URI.parse(url)
61
61
  req = Net::HTTP::Get.new(uri)
62
62
  response = Net::HTTP.start(uri.host, uri.port) {|http| http.request req }
63
- if response.code != 200
63
+ if response.code == '200'
64
64
  return JSON.parse(response.body)
65
65
  else
66
66
  raise ShinyError.new('Network error:' + response.code)
data/shiny-sdk.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shiny-sdk'
3
- s.version = '0.1.7'
3
+ s.version = '0.2.0'
4
4
  s.date = `git log --pretty="%ai" -n 1`.split(" ").first
5
5
  s.summary = "Shiny SDK"
6
6
  s.description = "Shiny Ruby SDK"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiny-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koell