molasses 0.1.1 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2d9cea9373b20e0129025da3220b21b5b8e5146ed35e6acabc972657d8d1259
4
- data.tar.gz: 78b3cb5ba295d6d1686f943933bc7e6f7cfba12b4145612d92637957e1fd574e
3
+ metadata.gz: 6bee138ba8251caae8600f56a1ed7516ed6e1d9917b6b65f8f6073b778877b95
4
+ data.tar.gz: f9371eb4ae9c3af3da69b35e99c893debbe1ac0d607aaf9962908423b7269fb3
5
5
  SHA512:
6
- metadata.gz: af49bc877c10a7896e680f0b09dbc9364219b37a5a1ebbe80948ff66d5fe825901f19b23bb9af5df27578bd77de28f0c70648e734421d57f265d2539ee40927b
7
- data.tar.gz: e0a8843a3802340adbbee06369eb901de8d802aa44c0d06cffd5f01a8c92f0e39c7558174bfba7eb7adb522dd55919895acee176ddf918157dbff3cce4ca6848
6
+ metadata.gz: 03c03e1c64c638a1cd0cdf5ef621d05db9c0ad38625f42c39c044cc56f0ffd331f0da2fd90593fc830f2e87eb91143075ef2344570c4fdfcc09a369533d43927
7
+ data.tar.gz: 966c6ac094b09cdcc44e60ca3f8127407bed2976764ae63901db31b2ffb473f91ee63b3952cf553304cab6997ee79aac41c33164e6ce5742792ba5e5d136110a
@@ -10,7 +10,7 @@ module Molasses
10
10
  if base_url != ""
11
11
  @base_url = base_url
12
12
  else
13
- @base_url = 'https://us-central1-molasses-36bff.cloudfunctions.net'
13
+ @base_url = 'https://sdk.molasses.app/v1'
14
14
  end
15
15
  @conn = Faraday.new(
16
16
  url: @base_url,
@@ -168,7 +168,7 @@ module Molasses
168
168
  end
169
169
 
170
170
  def fetch_features()
171
- response = @conn.get('get-features')
171
+ response = @conn.get('features')
172
172
  if response.status == 200
173
173
  data = JSON.parse(response.body)
174
174
  if data.include?("data") and data["data"].include?("features")
@@ -231,7 +231,7 @@ RSpec.describe Molasses::Client do
231
231
  let(:conn) { Faraday.new { |b| b.adapter(:test, stubs) } }
232
232
  let(:client) { Molasses::Client.new("test_api_key", false) }
233
233
  it "can do basic molasses" do
234
- stub_request(:get, 'https://us-central1-molasses-36bff.cloudfunctions.net/get-features').
234
+ stub_request(:get, 'https://sdk.molasses.app/v1/features').
235
235
  to_return(body:responseA.to_json, headers: {
236
236
  'Content-Type'=>'application/json',
237
237
  },)
@@ -245,7 +245,7 @@ RSpec.describe Molasses::Client do
245
245
  "isBetaUser"=>"true"}})).to be_truthy
246
246
  end
247
247
  it "can do advanced molasses" do
248
- stub_request(:get, 'https://us-central1-molasses-36bff.cloudfunctions.net/get-features').
248
+ stub_request(:get, 'https://sdk.molasses.app/v1/features').
249
249
  to_return(body:responseB.to_json, headers: {
250
250
  'Content-Type'=>'application/json',
251
251
  },)
@@ -261,7 +261,7 @@ RSpec.describe Molasses::Client do
261
261
  "isBetaUser"=>"true"}})).to be_truthy
262
262
  end
263
263
  it "can do even more advanced molasses" do
264
- stub_request(:get, 'https://us-central1-molasses-36bff.cloudfunctions.net/get-features').
264
+ stub_request(:get, 'https://sdk.molasses.app/v1/features').
265
265
  to_return(body:responseC.to_json, headers: {
266
266
  'Content-Type'=>'application/json',
267
267
  },)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: molasses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hrisho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2021-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday