flydata 0.0.2 → 0.0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flydata"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Koichi Fujikawa"]
@@ -2,7 +2,7 @@ require 'rest_client'
2
2
  require 'singleton'
3
3
 
4
4
  module Flydata
5
- FLYDATA_API_HOST = ENV['FLYDATA_API_HOST'] || 'flydata.co'
5
+ FLYDATA_API_HOST = ENV['FLYDATA_API_HOST'] || 'https://flydata.co'
6
6
 
7
7
  class ApiClient
8
8
  include Singleton
@@ -15,19 +15,19 @@ module Flydata
15
15
 
16
16
  # row level api
17
17
  def post(path, params=nil)
18
- uri = "http://#{FLYDATA_API_HOST}#{path}"
18
+ uri = "#{FLYDATA_API_HOST}#{path}"
19
19
  resource = RestClient::Resource.new(uri, resource_opts)
20
20
  @response = resource.post(params, :accept => :json)
21
21
  handle_response response
22
22
  end
23
23
  def put(path, params=nil)
24
- uri = "http://#{FLYDATA_API_HOST}#{path}"
24
+ uri = "#{FLYDATA_API_HOST}#{path}"
25
25
  resource = RestClient::Resource.new(uri, resource_opts)
26
26
  @response = resource.put(params, :accept => :json)
27
27
  handle_response response
28
28
  end
29
29
  def get(path)
30
- uri = "http://#{FLYDATA_API_HOST}#{path}"
30
+ uri = "#{FLYDATA_API_HOST}#{path}"
31
31
  resource = RestClient::Resource.new(uri, resource_opts)
32
32
  @response = resource.get(:accept => :json)
33
33
  handle_response response
@@ -55,3 +55,4 @@ module Flydata
55
55
  end
56
56
  end
57
57
  end
58
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flydata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  segments:
277
277
  - 0
278
- hash: -3264182143550012927
278
+ hash: -2387953954133037807
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements: