useragent_api 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.rubocop.yml +5 -1
- data/.travis.yml +6 -5
- data/Gemfile +2 -0
- data/bin/validate-target-ruby-version.rb +10 -0
- data/lib/useragent_api.rb +2 -0
- data/lib/useragent_api/client.rb +2 -0
- data/lib/useragent_api/version.rb +3 -1
- data/useragent_api.gemspec +3 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f4822ba81d53259fd6ce54a9942ea22ac462cf8d1a1e526b75d9e773a98d2304
|
4
|
+
data.tar.gz: aa748a5368a7d2fc862e3783eac99bfbe189bd9f74a0983b441927b9124707b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 995e1d00a97c85e7133133ad9b7da4c49ce62857acaf2be915e45348087dfaedb033ba9210974c890375b355b56b4937d93ad38cefffd8915b4638e65c6e54fe
|
7
|
+
data.tar.gz: dfc3b5c44bcdc071e0d25e74927ac512a62feec4d1d4338dc6ebde27b5b2147bbb2d889583faa6c70daf3d5193eee35222a3069254aa11126e6c22181c17a8bf
|
data/.rubocop.yml
CHANGED
@@ -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/
|
23
|
+
Style/TrailingCommaInArrayLiteral:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Style/TrailingCommaInHashLiteral:
|
23
27
|
Enabled: false
|
data/.travis.yml
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
- 2.
|
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:
|
8
|
+
before_script:
|
9
|
+
- ./bin/validate-target-ruby-version.rb
|
10
|
+
- bundle exec rubocop
|
data/Gemfile
CHANGED
@@ -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)
|
data/lib/useragent_api.rb
CHANGED
data/lib/useragent_api/client.rb
CHANGED
data/useragent_api.gemspec
CHANGED
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.
|
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-
|
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
|
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
|