useragent_api 0.1.2 → 0.1.3

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
- SHA1:
3
- metadata.gz: 50d0a5516a9f9a1a255a2120037c2944e22a726f
4
- data.tar.gz: 473e752b24737254d0230dc2b1b18ef96a641361
2
+ SHA256:
3
+ metadata.gz: f4822ba81d53259fd6ce54a9942ea22ac462cf8d1a1e526b75d9e773a98d2304
4
+ data.tar.gz: aa748a5368a7d2fc862e3783eac99bfbe189bd9f74a0983b441927b9124707b0
5
5
  SHA512:
6
- metadata.gz: f388bf9f9f25c53b0cf3633af1161356129391a4f550eabb63e8f7132b4cf6e1254a7db96fdb9deb44d8356e4b659a3ce74f73ae8b07cb90c17d71f603546584
7
- data.tar.gz: 9ad5313e68c153cdfae263e6c2db85b212a390da755967549d305bcafbe9b60ee1e5486d4ac12b6bd7f3ea82a0ec9007ceff8e7033e7e78e95bbf1ad58e99cf0
6
+ metadata.gz: 995e1d00a97c85e7133133ad9b7da4c49ce62857acaf2be915e45348087dfaedb033ba9210974c890375b355b56b4937d93ad38cefffd8915b4638e65c6e54fe
7
+ data.tar.gz: dfc3b5c44bcdc071e0d25e74927ac512a62feec4d1d4338dc6ebde27b5b2147bbb2d889583faa6c70daf3d5193eee35222a3069254aa11126e6c22181c17a8bf
@@ -3,6 +3,7 @@ AllCops:
3
3
  - Rakefile
4
4
  - bin/*
5
5
  - vendor/**/*
6
+ TargetRubyVersion: 2.3
6
7
 
7
8
  Metrics/BlockLength:
8
9
  Exclude:
@@ -19,5 +20,8 @@ Style/FormatString:
19
20
  Style/FormatStringToken:
20
21
  EnforcedStyle: unannotated
21
22
 
22
- Style/TrailingCommaInLiteral:
23
+ Style/TrailingCommaInArrayLiteral:
24
+ Enabled: false
25
+
26
+ Style/TrailingCommaInHashLiteral:
23
27
  Enabled: false
@@ -1,9 +1,10 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.2.9
5
- - 2.3.6
6
- - 2.4.3
7
- - 2.5.0
4
+ - 2.5.1
5
+ - 2.4.4
6
+ - 2.3.7
8
7
  before_install: gem install bundler -v 1.16.1
9
- before_script: bundle exec rubocop
8
+ before_script:
9
+ - ./bin/validate-target-ruby-version.rb
10
+ - bundle exec rubocop
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in useragent_api.gemspec
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'yaml'
4
+
5
+ # rubocop's TargetRubyVersion should be the oldest version in .travis.yml
6
+
7
+ target = YAML.load_file('.rubocop.yml')['AllCops']['TargetRubyVersion'].to_s
8
+ oldest = YAML.load_file('.travis.yml')['rvm'].min
9
+
10
+ exit 1 unless oldest.start_with?(target)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'useragent_api/version'
2
4
 
3
5
  # :nodoc:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'cgi'
2
4
  require 'json'
3
5
  require 'net/https'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module UseragentApi
2
- VERSION = '0.1.2'.freeze
4
+ VERSION = '0.1.3'
3
5
  end
@@ -1,4 +1,6 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'useragent_api/version'
4
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Masuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,6 +98,7 @@ files:
98
98
  - Rakefile
99
99
  - bin/console
100
100
  - bin/setup
101
+ - bin/validate-target-ruby-version.rb
101
102
  - lib/useragent_api.rb
102
103
  - lib/useragent_api/client.rb
103
104
  - lib/useragent_api/version.rb
@@ -122,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  requirements: []
124
125
  rubyforge_project:
125
- rubygems_version: 2.6.14
126
+ rubygems_version: 2.7.6
126
127
  signing_key:
127
128
  specification_version: 4
128
129
  summary: Ruby toolkit for working with the UserAgent API