From dacdda777f8b57aa2c31613afa65e9e7510ce2a9 Mon Sep 17 00:00:00 2001
From: nattanon <nattanon@hospital-os.com>
Date: Wed, 7 Jul 2021 10:34:53 +0700
Subject: [PATCH] Config .gemspec files

---
 Gemfile                 |  3 ++-
 latias-influxdb.gemspec | 28 ++++++++++++++--------------
 2 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/Gemfile b/Gemfile
index 6781b7b..71ad12b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -5,7 +5,8 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
 gemspec
 
 group :development do
-  gem 'sqlite3'
+  # gem 'sqlite3'
+  gem 'influxdb-client', git: 'git://github.com/karn18/influxdb-client-ruby.git'
 end
 
 # To use a debugger
diff --git a/latias-influxdb.gemspec b/latias-influxdb.gemspec
index d29928d..b21e12c 100644
--- a/latias-influxdb.gemspec
+++ b/latias-influxdb.gemspec
@@ -1,24 +1,24 @@
-require_relative "lib/latias/influxdb/version"
+require_relative 'lib/latias/influxdb/version'
 
 Gem::Specification.new do |spec|
-  spec.name        = "latias-influxdb"
+  spec.name        = 'latias-influxdb'
   spec.version     = Latias::Influxdb::VERSION
-  spec.authors     = ["nattanon"]
-  spec.email       = ["nattanon@hospital-os.com"]
-  spec.homepage    = "TODO"
-  spec.summary     = "TODO: Summary of Latias::Influxdb."
-  spec.description = "TODO: Description of Latias::Influxdb."
-  spec.license     = "MIT"
+  spec.authors     = ['nattanon']
+  spec.email       = ['nattanon@hospital-os.com']
+  spec.homepage    = 'https://gitlab.opensource-technology.com/nattanon/latias-influxdb'
+  spec.summary     = 'Ruby library for InfluxDB 2. to use in rails.'
+  spec.description = 'Ruby library for InfluxDB 2. to use in rails'
+  spec.license     = 'MIT'
 
   # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
   # to allow pushing to a single host or delete this section to allow pushing to any host.
-  spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
+  spec.metadata['allowed_push_host'] = spec.homepage
 
-  spec.metadata["homepage_uri"] = spec.homepage
-  spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
-  spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
+  spec.metadata['homepage_uri'] = spec.homepage
+  spec.metadata['source_code_uri'] = spec.homepage
+  spec.metadata['changelog_uri'] = spec.homepage
 
-  spec.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
+  spec.files = Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md']
 
-  spec.add_dependency "rails", "~> 6.1.4"
+  spec.add_dependency 'rails', '~> 6.1.4'
 end
-- 
GitLab