sentra 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sentra.rb +1 -14
  3. data/lib/sentra/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f96c80bf02ed5fcebc41a36e098d65cc853d66d4
4
- data.tar.gz: 927d249d6fd68cd014a3882cad60d0d2aa8dbaf3
3
+ metadata.gz: 396500a96608ba34a8af57c4e4f88cfe437c1448
4
+ data.tar.gz: 3f1bfe3d8d8fd5161db274c28ec800692f3dc3d2
5
5
  SHA512:
6
- metadata.gz: 0f53e3241d4dc276f7083f9f71925e2cd369c201f49bdb6badd07dd6635888ec9ff1cd8678754d860761c0782d6bf7d31ca525561516d830f0c90b0a02a150a3
7
- data.tar.gz: c2809e02bad9b176307620e66cbc00b0b0b4bb979d3624bbef7d79962752c39cdba90340aee68903930db3afb25e6939b39348ae447f901561e5e5d20b4a5a81
6
+ metadata.gz: 4e0a07d70a361775bdb6590ee060534254af6ec55940debec95b0e6a885b1ea74c9539501c0b41f062e53c5b2bc04960b48ecbf027b1f593d060a7c9ba195bae
7
+ data.tar.gz: 5ee35f7a3bf2cee85ebb0441ae8818c09917e7343e2712b6176fb2c981b8931741067949e0834485f4e068e0fa0f83553982f9dfed95f5b69f914a925433a317
data/lib/sentra.rb CHANGED
@@ -52,22 +52,9 @@ module Sentra
52
52
 
53
53
  query = request.body.read.to_s
54
54
 
55
- json = settings.drpc.execute("computeProductSum", query)
56
- #p json
57
- begin
58
- response = JSON.parse json
59
- json_object = []
60
- response.each do |r|
61
- json_object.push r['sentimentsTotal']
62
- end
63
- json = json_object.to_json
55
+ settings.drpc.execute("computeProductSum", query)
64
56
 
65
57
 
66
- rescue
67
- json = [].to_json
68
-
69
- end
70
-
71
58
  end
72
59
 
73
60
 
@@ -1,3 +1,3 @@
1
1
  module Sentra
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - kshakirov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-29 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler