shiny-sdk 0.0.2 → 0.0.3

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 +3 -3
  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: 4417beee129d43df1bce23a3baa0550a414a64d8
4
- data.tar.gz: 4991de25eb9cb7a85fa1aa61d35feb93ef907076
3
+ metadata.gz: b07e4ffae3c7771790ed6e89ee7397a558196e08
4
+ data.tar.gz: 3a568514c8bf86834f0da965d82ede96b0363fc3
5
5
  SHA512:
6
- metadata.gz: 3f20740dc89742d4c7419a29288f4c95e3a6a988d4295bcb8769fa6624bc6c45fe1c2501aeccf5de155116e6c1570b8be926f958e3274a8b5b4ab5b89a23bd82
7
- data.tar.gz: 152e231db508e10fe5113faba4f8a94e353bddaf7957b419b3afa7d7f95b830a1d4f98eee02122042476543ca58416df6add72a9d501556456669128b6154790
6
+ metadata.gz: e9894341a1c99428a99133160de8778809b05056d5bf61241b63689d964f143dac897bc837433119c4fb4812bfb5361995697f9f034f8615e1b8ac9a91fe1731
7
+ data.tar.gz: eb1509fff3848c92314f7c8547fa429c1024b6cbe1da05aebb500bf2da7e7632755de91f4725e0b9d101bb9ba4079d5421e8224c57bf689d0dda7032b64fde07
data/lib/shiny-sdk.rb CHANGED
@@ -37,7 +37,7 @@ class Shiny
37
37
  event['hash'] = Digest::MD5.hexdigest(data.to_json)
38
38
  end
39
39
  rescue
40
- ShinyError.new('Fail to generate hash.')
40
+ raise ShinyError.new('Fail to generate hash.')
41
41
  end
42
42
 
43
43
  event['data'] = data
@@ -50,7 +50,7 @@ class Shiny
50
50
  response = RestClient.post(url, payload)
51
51
  return JSON.parser(response.body)
52
52
  rescue => e
53
- ShinyError.new('Network error:' + e.to_s)
53
+ raise ShinyError.new('Network error:' + e.to_s)
54
54
  end
55
55
  end
56
56
 
@@ -61,7 +61,7 @@ class Shiny
61
61
  response = RestClient.get(url)
62
62
  return JSON.parse(response.body)
63
63
  rescue => e
64
- ShinyError.new('Network error:' + e.to_s)
64
+ raise ShinyError.new('Network error:' + e.to_s)
65
65
  end
66
66
  end
67
67
  end
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.0.2'
3
+ s.version = '0.0.3'
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.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koell