eep_client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/eep_client.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0f27b56c72f0be65e77fab3edee05c69a69f1c7
4
- data.tar.gz: 4f1714fb51a69cda64e381126ef38d873dd4afd9
3
+ metadata.gz: b7b5a6fa352b55489b5a435871b6a66002d6eb0c
4
+ data.tar.gz: 6578f9e4ade789687b3eb36805388e2afd364581
5
5
  SHA512:
6
- metadata.gz: ab6f685df7ddd049f674ea1c26f41e406c3e1e4a2980e3bdb78bde1f8389db3578d9e7208bc491819d9a0eb8165710dc6b0302e18b0a8c177803a6dc4d7d90e7
7
- data.tar.gz: 03a8577eee00ab6588b481cbe33c3b8eef8919ad5be317bf1dc95cb7a00a595f8b2cfeb103f4d09af15f968658ca94aa99c05b7059f831a7adb057d08db3a1f8
6
+ metadata.gz: 9e4db355cf4b8d507db3e6e28f1b7df2a57b6c7902ffc48a7f9e708990ed2ca5a12b439404fc3218e390a266d64ba20533fa215785bb371d0d17d639df487d99
7
+ data.tar.gz: f921facff9366ca2594b58f3c7bd4d676f58bb7c6f64a53bffcf725e6347fe6bd6fa4f12415518004dff17942866bddba042377a81367401e0e7683df361c8fe
data/lib/eep_client.rb CHANGED
@@ -11,7 +11,7 @@ CLEAR = 'clear'
11
11
  OK = 'ok'
12
12
 
13
13
  # urls
14
- BASE_URL = 'https://bender.lab.pdist.net'
14
+ BASE_URL = 'https://eep.eventenrichment.com'
15
15
  BASE_RESOURCE = '/api/v1/'
16
16
  EVENT_RESOURCE = BASE_RESOURCE + EVENT
17
17
  CLEAR_RESOURCE = BASE_RESOURCE + CLEAR
@@ -26,9 +26,10 @@ class EepClient
26
26
  def initialize(api_token, options = { })
27
27
  @api_token = api_token
28
28
  @debug = options[:debug]
29
+ @base_url = options[:base_url] || BASE_URL
29
30
 
30
31
  unless options[:no_send]
31
- uri = URI(BASE_URL)
32
+ uri = URI(@base_url)
32
33
  @http = Net::HTTP.new(uri.host, uri.port)
33
34
  @http.use_ssl = true
34
35
  @http.verify_mode = OpenSSL::SSL::VERIFY_NONE if options[:no_verify]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eep_client
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
  - Mike Lewis