rack-simple_user_agent 0.5.0 → 0.6.0

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
2
  SHA256:
3
- metadata.gz: e5095cb34b40a6038ba15a5d77f7038d89193d7aa5f15b16202b13b54a484cac
4
- data.tar.gz: cf962764c650b73ab17b821c3c3b51e07b0fb86cecc4150b99c1c464a1ece0be
3
+ metadata.gz: 2850c8a28e3a3ea0f8a5cbe99445f9ad3c3473ea899605552541bb96271029cd
4
+ data.tar.gz: d2a041c309d5f6137717cb19fa817887e0158ac6bf2d798243bcddfc72ed2d89
5
5
  SHA512:
6
- metadata.gz: 2e01b736edfdefa5d47feed11abad62cedf5fa50ce7d40376b5d47911b93d4342ffc0610316e48eb4c1689f5af4ff2ed0052b83a9e5bb490729f8fe809ef662c
7
- data.tar.gz: 4edfc9e7a3f8f0861b84a78d8eee809749c4fcbcfee4a19ad0c7559dc9e155a43ca5de6b0c0844b85949534e44a53d0bd15891f7670bcda15096eded048c626e
6
+ metadata.gz: 01656e709cce86d7a7d99cb73ce47a2314cbf3e4b2dc0f1e8db71d424dc84acb143be7e741c6438fd06b55ab87b6bf0b26745d9915e92d6863612797ecf9e1aa
7
+ data.tar.gz: 2f27ed3bb4edb1a8d1ef9f20a06460dd4b3188e3787e15c09d5ca081b243d4fdbbc7e610bf74a4be5221482924ab3e588197cda4666a17c615ed6d74b59acb82
@@ -0,0 +1,18 @@
1
+ name: Coverage
2
+ on: [push]
3
+ jobs:
4
+ build:
5
+ runs-on: ubuntu-latest
6
+ name: CodeClimate report
7
+ steps:
8
+ - uses: actions/checkout@v2
9
+ - name: Set up Ruby
10
+ uses: actions/setup-ruby@v1
11
+ with:
12
+ ruby-version: 2.6
13
+ - run: bundle install
14
+ - uses: paambaati/codeclimate-action@v2.5.4
15
+ env:
16
+ CC_TEST_REPORTER_ID: 40cc6409f7d531fa06fe880b7d7e4bd81ff89efcaa4dee782e03fb8fb3cdb902
17
+ with:
18
+ coverageCommand: bundle exec rake
@@ -0,0 +1,17 @@
1
+ name: Test
2
+ on: [push]
3
+ jobs:
4
+ build:
5
+ strategy:
6
+ matrix:
7
+ ruby: [2.4, 2.5, 2.6, 2.7]
8
+ runs-on: ubuntu-latest
9
+ name: Test
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - name: Set up Ruby
13
+ uses: actions/setup-ruby@v1
14
+ with:
15
+ ruby-version: ${{ matrix.ruby }}
16
+ - run: bundle install
17
+ - run: bundle exec rake
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- /.bundle/
1
+ .bundle/
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
4
  /_yardoc/
@@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml
3
3
  require: rubocop-minitest
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.3
6
+ TargetRubyVersion: 2.4
7
7
 
8
8
  Layout/LineLength:
9
9
  Enabled: false
data/Gemfile CHANGED
@@ -5,10 +5,10 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in rack-simple_user_agent.gemspec
6
6
  gemspec
7
7
 
8
- gem 'coveralls'
9
8
  gem 'minitest', '~> 5.0'
10
9
  gem 'minitest-reporters'
11
10
  gem 'rack-test'
12
11
  gem 'rake'
13
12
  gem 'rubocop'
14
13
  gem 'rubocop-minitest'
14
+ gem 'simplecov', '~> 0.17.1'
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Rack::SimpleUserAgent
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/rack-simple_user_agent.svg)](https://badge.fury.io/rb/rack-simple_user_agent)
4
- [![Build Status](https://travis-ci.org/toshimaru/rack-simple_user_agent.svg)](https://travis-ci.org/toshimaru/rack-simple_user_agent)
5
- [![Coverage Status](https://coveralls.io/repos/github/toshimaru/rack-simple_user_agent/badge.svg)](https://coveralls.io/github/toshimaru/rack-simple_user_agent)
4
+ ![Test](https://github.com/toshimaru/rack-simple_user_agent/workflows/Test/badge.svg)
5
+ ![RuboCop](https://github.com/toshimaru/rack-simple_user_agent/workflows/RuboCop/badge.svg)
6
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/576b6f673fc00d07da0d/test_coverage)](https://codeclimate.com/github/toshimaru/rack-simple_user_agent/test_coverage)
6
7
  [![Code Climate](https://codeclimate.com/github/toshimaru/rack-simple_user_agent/badges/gpa.svg)](https://codeclimate.com/github/toshimaru/rack-simple_user_agent)
7
8
 
8
9
  Rack::SimpleUserAgent is Rack::Request extension which detects user-agent from user-agent string. No complicated logic for the detection, it simply(stupidly) checks if user-agent includes particular string or not.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class SimpleUserAgent
5
- VERSION = '0.5.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.required_ruby_version = '>= 2.3'
23
+ spec.required_ruby_version = '>= 2.4'
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-simple_user_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rack::SimpleUserAgent is Rack::Request extension which detects user-agent
14
14
  from user-agent string. No complicated logic for the detection, it simply(stupidly)
@@ -20,11 +20,12 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - ".github/FUNDING.yml"
23
+ - ".github/workflows/coverage.yml"
23
24
  - ".github/workflows/rubocop.yml"
25
+ - ".github/workflows/test.yml"
24
26
  - ".gitignore"
25
27
  - ".rubocop.yml"
26
28
  - ".rubocop_todo.yml"
27
- - ".travis.yml"
28
29
  - CHANGELOG.md
29
30
  - CODE_OF_CONDUCT.md
30
31
  - Gemfile
@@ -54,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
55
  requirements:
55
56
  - - ">="
56
57
  - !ruby/object:Gem::Version
57
- version: '2.3'
58
+ version: '2.4'
58
59
  required_rubygems_version: !ruby/object:Gem::Requirement
59
60
  requirements:
60
61
  - - ">="
@@ -1,9 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.3.7
5
- - 2.4.5
6
- - 2.5.3
7
- - 2.6.4
8
- - 2.7.0
9
- before_install: gem update bundler