diff options
| -rw-r--r-- | .rubocop.yml | 8 | ||||
| -rw-r--r-- | Gemfile | 2 | ||||
| -rw-r--r-- | Rakefile | 2 | ||||
| -rwxr-xr-x | exe/net-hippie | 1 | ||||
| -rw-r--r-- | lib/net/hippie.rb | 2 | ||||
| -rw-r--r-- | lib/net/hippie/api.rb | 2 | ||||
| -rw-r--r-- | lib/net/hippie/client.rb | 2 | ||||
| -rw-r--r-- | lib/net/hippie/content_type_mapper.rb | 2 | ||||
| -rw-r--r-- | lib/net/hippie/version.rb | 4 | ||||
| -rw-r--r-- | net-hippie.gemspec | 2 |
10 files changed, 26 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..f1b7cd2 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,8 @@ +AllCops: + Exclude: + - 'coverage/**/*' + - 'pkg/**/*' + - 'test/**/*' + - 'tmp/**/*' + - 'vendor/**/*' + TargetRubyVersion: 2.5 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/gem_tasks' require 'rake/testtask' require 'rubocop/rake_task' diff --git a/exe/net-hippie b/exe/net-hippie index 710cb7c..f0529cb 100755 --- a/exe/net-hippie +++ b/exe/net-hippie @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'net/hippie' diff --git a/lib/net/hippie.rb b/lib/net/hippie.rb index 6117512..11d0b73 100644 --- a/lib/net/hippie.rb +++ b/lib/net/hippie.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'json' require 'logger' require 'net/http' diff --git a/lib/net/hippie/api.rb b/lib/net/hippie/api.rb index 3ade661..f77ba4e 100644 --- a/lib/net/hippie/api.rb +++ b/lib/net/hippie/api.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Net module Hippie # A no nonsense class to perform HTTP requests. diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb index 33cc729..0042e92 100644 --- a/lib/net/hippie/client.rb +++ b/lib/net/hippie/client.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Net module Hippie # A simple client for connecting with http resources. diff --git a/lib/net/hippie/content_type_mapper.rb b/lib/net/hippie/content_type_mapper.rb index 2051c27..6c8b284 100644 --- a/lib/net/hippie/content_type_mapper.rb +++ b/lib/net/hippie/content_type_mapper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Net module Hippie # Converts a ruby hash into a JSON string diff --git a/lib/net/hippie/version.rb b/lib/net/hippie/version.rb index 8b1ed79..92cdd4e 100644 --- a/lib/net/hippie/version.rb +++ b/lib/net/hippie/version.rb @@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Net module Hippie - VERSION = '0.1.6'.freeze + VERSION = '0.1.6' end end diff --git a/net-hippie.gemspec b/net-hippie.gemspec index 224c150..360ec1e 100644 --- a/net-hippie.gemspec +++ b/net-hippie.gemspec @@ -1,4 +1,6 @@ +# frozen_string_literal: true + lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'net/hippie/version' |
