informant-rails 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df2bebded0f01d0d92c6feda1b4405a6dd0cf0c0
4
- data.tar.gz: 53129acf760d019260f87e0d6df979467a99d2c5
3
+ metadata.gz: c1e2831661a181fd46873e1a67eea335e84ffab1
4
+ data.tar.gz: 0e6f326c3373eb8716be5b09ec006dcc0a0fcce2
5
5
  SHA512:
6
- metadata.gz: 5e6f98ae025c8ef282f83f4c7483e13c178ac289501e921db85eaa1bcb58d2dd2fab3be05334a7f755bd2b37f4e422d37946b7d895c60e00dc7ef4bf2dfb36fd
7
- data.tar.gz: 320aba0ca4bc6eadbea74dd0cb81a4d97b67d31981201f952740cb00d905c825433a4e09c227496b50ef8169a8343888dfe337a25a5f8e1e9db1008069573ed1
6
+ metadata.gz: 0cabe2ffa1e527c286924329ae3c11740cbdeb9445a0698205c5c05157184cadff6c1c97d80b7ce6490790875f905b25f78550494b2a53974eda8946dbce9c59
7
+ data.tar.gz: c4f0308b365db3ddded71bc6263a2d077038fc3c34ef843aff54d438746c8f36568b9a77963d30fc1d15e0c306c4af8d96d043b0d035a8643a4f1ab70f0c759e
@@ -1,3 +1,5 @@
1
+ require 'net/http'
2
+
1
3
  module InformantRails
2
4
  class Client
3
5
 
@@ -57,7 +59,7 @@ module InformantRails
57
59
  end
58
60
 
59
61
  def self.api_endpoint
60
- @api_endpoint ||= URI('https://api.informantapp.com/api/v1/form_submissions')
62
+ @api_endpoint ||= URI("#{Config.collector_host}/api/v1/form_submissions")
61
63
  end
62
64
 
63
65
  end
@@ -17,4 +17,8 @@ module InformantRails::Config
17
17
  def self.enabled?
18
18
  api_token.present?
19
19
  end
20
+
21
+ def self.collector_host
22
+ @collector_host ||= ENV['INFORMANT_COLLECTOR_HOST'] || 'https://collector-api.informantapp.com'
23
+ end
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module InformantRails
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: informant-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Informant, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-10 00:00:00.000000000 Z
11
+ date: 2017-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  requirements: []
71
71
  rubyforge_project:
72
- rubygems_version: 2.5.1
72
+ rubygems_version: 2.6.8
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: The Informant tracks server-side validation errors and gives you metrics