rack-user_agent 0.5.2 → 0.6.0

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.
Files changed (72) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/release.yml +46 -0
  3. data/.github/workflows/test.yml +32 -0
  4. data/.github_changelog_generator +2 -0
  5. data/CHANGELOG.md +35 -2
  6. data/README.md +4 -1
  7. data/lib/rack/user_agent/version.rb +1 -1
  8. data/rack-user_agent.gemspec +4 -2
  9. data/spec/lib/rack/user_agent/detector_spec.rb +5 -1
  10. metadata +13 -76
  11. data/.travis.yml +0 -13
  12. data/rails_sample/.gitignore +0 -16
  13. data/rails_sample/Gemfile +0 -15
  14. data/rails_sample/Gemfile.lock +0 -142
  15. data/rails_sample/README.rdoc +0 -28
  16. data/rails_sample/Rakefile +0 -6
  17. data/rails_sample/app/assets/images/.keep +0 -0
  18. data/rails_sample/app/assets/javascripts/application.js +0 -16
  19. data/rails_sample/app/assets/stylesheets/application.css +0 -15
  20. data/rails_sample/app/controllers/application_controller.rb +0 -15
  21. data/rails_sample/app/controllers/concerns/.keep +0 -0
  22. data/rails_sample/app/helpers/application_helper.rb +0 -2
  23. data/rails_sample/app/mailers/.keep +0 -0
  24. data/rails_sample/app/models/.keep +0 -0
  25. data/rails_sample/app/models/concerns/.keep +0 -0
  26. data/rails_sample/app/views/application/index.html.erb +0 -4
  27. data/rails_sample/app/views/layouts/application.html.erb +0 -14
  28. data/rails_sample/bin/bundle +0 -3
  29. data/rails_sample/bin/rails +0 -8
  30. data/rails_sample/bin/rake +0 -8
  31. data/rails_sample/bin/spring +0 -18
  32. data/rails_sample/config/application.rb +0 -24
  33. data/rails_sample/config/boot.rb +0 -4
  34. data/rails_sample/config/database.yml +0 -25
  35. data/rails_sample/config/environment.rb +0 -5
  36. data/rails_sample/config/environments/development.rb +0 -37
  37. data/rails_sample/config/environments/production.rb +0 -82
  38. data/rails_sample/config/environments/test.rb +0 -39
  39. data/rails_sample/config/initializers/assets.rb +0 -8
  40. data/rails_sample/config/initializers/backtrace_silencers.rb +0 -7
  41. data/rails_sample/config/initializers/cookies_serializer.rb +0 -3
  42. data/rails_sample/config/initializers/filter_parameter_logging.rb +0 -4
  43. data/rails_sample/config/initializers/inflections.rb +0 -16
  44. data/rails_sample/config/initializers/mime_types.rb +0 -4
  45. data/rails_sample/config/initializers/session_store.rb +0 -3
  46. data/rails_sample/config/initializers/wrap_parameters.rb +0 -14
  47. data/rails_sample/config/locales/en.yml +0 -23
  48. data/rails_sample/config/routes.rb +0 -3
  49. data/rails_sample/config/secrets.yml +0 -22
  50. data/rails_sample/config.ru +0 -4
  51. data/rails_sample/db/seeds.rb +0 -7
  52. data/rails_sample/lib/assets/.keep +0 -0
  53. data/rails_sample/lib/tasks/.keep +0 -0
  54. data/rails_sample/log/.keep +0 -0
  55. data/rails_sample/public/404.html +0 -67
  56. data/rails_sample/public/422.html +0 -67
  57. data/rails_sample/public/500.html +0 -66
  58. data/rails_sample/public/favicon.ico +0 -0
  59. data/rails_sample/public/robots.txt +0 -5
  60. data/rails_sample/test/controllers/.keep +0 -0
  61. data/rails_sample/test/fixtures/.keep +0 -0
  62. data/rails_sample/test/helpers/.keep +0 -0
  63. data/rails_sample/test/integration/.keep +0 -0
  64. data/rails_sample/test/mailers/.keep +0 -0
  65. data/rails_sample/test/models/.keep +0 -0
  66. data/rails_sample/test/test_helper.rb +0 -10
  67. data/rails_sample/vendor/assets/javascripts/.keep +0 -0
  68. data/rails_sample/vendor/assets/stylesheets/.keep +0 -0
  69. data/sinatra_sample/Gemfile +0 -5
  70. data/sinatra_sample/Gemfile.lock +0 -34
  71. data/sinatra_sample/app.rb +0 -16
  72. data/sinatra_sample/config.ru +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9dfdaa5fa63d148d8578c1226ee7af39a06f6b04
4
- data.tar.gz: 500c8f135ef36c53ba523a9c6b31a0f102918f27
2
+ SHA256:
3
+ metadata.gz: '029834281c0a906ec52bb95f00d254510c78ebb8404f1a5356aa0299786a48fd'
4
+ data.tar.gz: 56f3f56c8ac67496f1485c6a1b225b41f14265a8e531d7499755d66b1f1cb2ab
5
5
  SHA512:
6
- metadata.gz: 886513a383b59e21982f9ccff999c4a39fbaaef66c101cfcd6ebb3f1fd370f24740f1a204b95353ad56b274c98919e89f7b5e60f5e6b9233db1c318119ec9c8a
7
- data.tar.gz: a874b814bb6fbfd01e85413c8bc24cbdd1b8aace7a443ff315b6bbae707ac35d0d8e332d070b60b0c34198496f3d84da49f4c0cee1768bff5dfeabd18e31d81c
6
+ metadata.gz: 52d6d293404e6da6cedb73a566cebc6f6ebc00e1c4bdeceff77f1a53e25d69760a4f9a27b1baec5d157f3135e397b887eef18fdf803ed42c19564a7c94989d7c
7
+ data.tar.gz: 95fc30963d403185a5875221cfdcf3676d8f57cf4e9b593b3d9e608933ef88e58e501c9a9c7d3e377331ee318b84f17220942438c7688679cae968f1500142b6
@@ -0,0 +1,46 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ push:
13
+ if: github.repository_owner == 'k0kubun'
14
+ runs-on: ubuntu-latest
15
+
16
+ environment:
17
+ name: rubygems.org
18
+ url: https://rubygems.org/gems/rack-user_agent
19
+
20
+ permissions:
21
+ contents: write
22
+ id-token: write
23
+
24
+ steps:
25
+ - name: Harden Runner
26
+ uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
27
+ with:
28
+ egress-policy: audit
29
+
30
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31
+
32
+ - name: Set up Ruby
33
+ uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
34
+ with:
35
+ ruby-version: ruby
36
+ bundler-cache: true
37
+
38
+ - name: Publish to RubyGems
39
+ uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
40
+
41
+ - name: Create GitHub release
42
+ run: |
43
+ tag_name="$(git describe --tags --abbrev=0)"
44
+ gh release create "${tag_name}" --verify-tag --generate-notes
45
+ env:
46
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,32 @@
1
+ name: test
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
7
+ types:
8
+ - opened
9
+ - synchronize
10
+ - reopened
11
+ schedule:
12
+ - cron: "00 15 * * *" # 7:00 PST (-8), 8:00 PDT (-7)
13
+ jobs:
14
+ test:
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ ruby:
20
+ - '3.2'
21
+ - '3.3'
22
+ - '3.4'
23
+ steps:
24
+ - uses: actions/checkout@v5
25
+ - name: Set up Ruby
26
+ uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: ${{ matrix.ruby }}
29
+ bundler-cache: true
30
+ - name: bundle install
31
+ run: bundle config path vendor/bundle && bundle install -j$(nproc) --retry 3
32
+ - run: bundle exec rake
@@ -0,0 +1,2 @@
1
+ user=k0kubun
2
+ project=rack-user_agent
data/CHANGELOG.md CHANGED
@@ -1,11 +1,30 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ ## v0.6.0
4
+
5
+ - Bump required Ruby version to 3.2
6
+
7
+ ## [v0.5.3](https://github.com/k0kubun/rack-user_agent/tree/v0.5.3) (2022-01-22)
8
+
9
+ [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.5.2...v0.5.3)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Exclude sample directories from spec.files [\#12](https://github.com/k0kubun/rack-user_agent/pull/12) ([lnit](https://github.com/lnit))
14
+ - Restrict minitest version to lower than 6 [\#11](https://github.com/k0kubun/rack-user_agent/pull/11) ([unasuke](https://github.com/unasuke))
15
+ - Add/Remove Ruby versions on CI [\#10](https://github.com/k0kubun/rack-user_agent/pull/10) ([unasuke](https://github.com/unasuke))
16
+ - Add undocument method to README.md [\#9](https://github.com/k0kubun/rack-user_agent/pull/9) ([cutmail](https://github.com/cutmail))
2
17
 
3
18
  ## [v0.5.2](https://github.com/k0kubun/rack-user_agent/tree/v0.5.2) (2016-07-11)
19
+
4
20
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.5.1...v0.5.2)
5
21
 
22
+ **Merged pull requests:**
23
+
6
24
  - Support woothee 1.1+ [\#8](https://github.com/k0kubun/rack-user_agent/pull/8) ([amatsuda](https://github.com/amatsuda))
7
25
 
8
26
  ## [v0.5.1](https://github.com/k0kubun/rack-user_agent/tree/v0.5.1) (2016-05-28)
27
+
9
28
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.5.0...v0.5.1)
10
29
 
11
30
  **Merged pull requests:**
@@ -13,6 +32,7 @@
13
32
  - Detect as 'from\_ios' when os is iOS [\#7](https://github.com/k0kubun/rack-user_agent/pull/7) ([vividmuimui](https://github.com/vividmuimui))
14
33
 
15
34
  ## [v0.5.0](https://github.com/k0kubun/rack-user_agent/tree/v0.5.0) (2016-05-17)
35
+
16
36
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.4.2...v0.5.0)
17
37
 
18
38
  **Merged pull requests:**
@@ -20,6 +40,7 @@
20
40
  - Add methods to detect os [\#6](https://github.com/k0kubun/rack-user_agent/pull/6) ([knjko](https://github.com/knjko))
21
41
 
22
42
  ## [v0.4.2](https://github.com/k0kubun/rack-user_agent/tree/v0.4.2) (2015-12-19)
43
+
23
44
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.4.1...v0.4.2)
24
45
 
25
46
  **Merged pull requests:**
@@ -27,6 +48,7 @@
27
48
  - ActionDispatch::Request is not \< Rack::Request in Rails 5 [\#5](https://github.com/k0kubun/rack-user_agent/pull/5) ([amatsuda](https://github.com/amatsuda))
28
49
 
29
50
  ## [v0.4.1](https://github.com/k0kubun/rack-user_agent/tree/v0.4.1) (2015-12-18)
51
+
30
52
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.4.0...v0.4.1)
31
53
 
32
54
  **Merged pull requests:**
@@ -34,6 +56,7 @@
34
56
  - Rails 5 doesn't rack ActionDispatch::ParamsParser [\#4](https://github.com/k0kubun/rack-user_agent/pull/4) ([amatsuda](https://github.com/amatsuda))
35
57
 
36
58
  ## [v0.4.0](https://github.com/k0kubun/rack-user_agent/tree/v0.4.0) (2015-12-18)
59
+
37
60
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.3.1...v0.4.0)
38
61
 
39
62
  **Merged pull requests:**
@@ -41,6 +64,7 @@
41
64
  - Support rack 2.x [\#3](https://github.com/k0kubun/rack-user_agent/pull/3) ([amatsuda](https://github.com/amatsuda))
42
65
 
43
66
  ## [v0.3.1](https://github.com/k0kubun/rack-user_agent/tree/v0.3.1) (2015-08-05)
67
+
44
68
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.3.0...v0.3.1)
45
69
 
46
70
  **Merged pull requests:**
@@ -48,6 +72,7 @@
48
72
  - Add `from ipod?` to Detectors [\#2](https://github.com/k0kubun/rack-user_agent/pull/2) ([matsuhisa](https://github.com/matsuhisa))
49
73
 
50
74
  ## [v0.3.0](https://github.com/k0kubun/rack-user_agent/tree/v0.3.0) (2015-07-01)
75
+
51
76
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.3...v0.3.0)
52
77
 
53
78
  **Merged pull requests:**
@@ -55,21 +80,29 @@
55
80
  - expect that devise\_type is a symobol [\#1](https://github.com/k0kubun/rack-user_agent/pull/1) ([osdakira](https://github.com/osdakira))
56
81
 
57
82
  ## [v0.2.3](https://github.com/k0kubun/rack-user_agent/tree/v0.2.3) (2014-11-25)
83
+
58
84
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.2...v0.2.3)
59
85
 
60
86
  ## [v0.2.2](https://github.com/k0kubun/rack-user_agent/tree/v0.2.2) (2014-11-21)
87
+
61
88
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.1...v0.2.2)
62
89
 
63
90
  ## [v0.2.1](https://github.com/k0kubun/rack-user_agent/tree/v0.2.1) (2014-11-21)
91
+
64
92
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.0...v0.2.1)
65
93
 
66
94
  ## [v0.2.0](https://github.com/k0kubun/rack-user_agent/tree/v0.2.0) (2014-11-21)
95
+
67
96
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.1.0...v0.2.0)
68
97
 
69
98
  ## [v0.1.0](https://github.com/k0kubun/rack-user_agent/tree/v0.1.0) (2014-11-21)
99
+
70
100
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.0.1...v0.1.0)
71
101
 
72
102
  ## [v0.0.1](https://github.com/k0kubun/rack-user_agent/tree/v0.0.1) (2014-11-20)
73
103
 
104
+ [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/18b4495a925091bc97453ac54bee88b9da23a810...v0.0.1)
105
+
106
+
74
107
 
75
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
108
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rack::UserAgent [![Build Status](https://travis-ci.org/k0kubun/rack-user_agent.svg)](https://travis-ci.org/k0kubun/rack-user_agent)
1
+ # Rack::UserAgent [![test](https://github.com/k0kubun/rack-user_agent/actions/workflows/test.yml/badge.svg)](https://github.com/k0kubun/rack-user_agent/actions/workflows/test.yml)
2
2
 
3
3
  Rack::Request extension for handling User-Agent.
4
4
  Thanks to [woothee](https://github.com/woothee/woothee-ruby), Rack::UserAgent supports various User-Agents.
@@ -88,9 +88,12 @@ APIs compatible with [rack-smartphone\_detector](https://github.com/ihara2525/ra
88
88
  - request.smartphone\_version
89
89
  - request.from\_iphone?
90
90
  - request.from\_ipad?
91
+ - request.from\_ipod?
91
92
  - request.from\_android?
92
93
  - request.from\_android\_tablet?
93
94
  - request.from\_windows\_phone?
95
+ - request.from\_ios?
96
+ - request.from\_android\_os?
94
97
 
95
98
  ## License
96
99
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class UserAgent
3
- VERSION = "0.5.2"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
@@ -18,11 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = '>= 3.2.0'
22
+
21
23
  spec.add_dependency "rack", ">= 1.5"
22
24
  spec.add_dependency "woothee", ">= 1.0.0"
23
25
 
24
- spec.add_development_dependency "bundler", "~> 1.7"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "bundler", ">= 1.10"
27
+ spec.add_development_dependency "rake", ">= 10.0"
26
28
  spec.add_development_dependency "pry"
27
29
  spec.add_development_dependency "minitest"
28
30
  spec.add_development_dependency "rack-test"
@@ -127,7 +127,11 @@ describe "Rack::UserAgent::Detector" do
127
127
  info[:user_agents].each do |ua|
128
128
  header "User-Agent", ua
129
129
  get "/"
130
- last_request.smartphone_version.must_equal info[:version]
130
+ if info[:version].nil?
131
+ assert_nil last_request.smartphone_version
132
+ else
133
+ last_request.smartphone_version.must_equal info[:version]
134
+ end
131
135
  end
132
136
  end
133
137
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-user_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rack
@@ -42,28 +41,28 @@ dependencies:
42
41
  name: bundler
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - "~>"
44
+ - - ">="
46
45
  - !ruby/object:Gem::Version
47
- version: '1.7'
46
+ version: '1.10'
48
47
  type: :development
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - "~>"
51
+ - - ">="
53
52
  - !ruby/object:Gem::Version
54
- version: '1.7'
53
+ version: '1.10'
55
54
  - !ruby/object:Gem::Dependency
56
55
  name: rake
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - "~>"
58
+ - - ">="
60
59
  - !ruby/object:Gem::Version
61
60
  version: '10.0'
62
61
  type: :development
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
- - - "~>"
65
+ - - ">="
67
66
  - !ruby/object:Gem::Version
68
67
  version: '10.0'
69
68
  - !ruby/object:Gem::Dependency
@@ -115,8 +114,10 @@ executables: []
115
114
  extensions: []
116
115
  extra_rdoc_files: []
117
116
  files:
117
+ - ".github/workflows/release.yml"
118
+ - ".github/workflows/test.yml"
119
+ - ".github_changelog_generator"
118
120
  - ".gitignore"
119
- - ".travis.yml"
120
121
  - CHANGELOG.md
121
122
  - Gemfile
122
123
  - LICENSE.txt
@@ -129,67 +130,6 @@ files:
129
130
  - lib/rack/user_agent/result.rb
130
131
  - lib/rack/user_agent/version.rb
131
132
  - rack-user_agent.gemspec
132
- - rails_sample/.gitignore
133
- - rails_sample/Gemfile
134
- - rails_sample/Gemfile.lock
135
- - rails_sample/README.rdoc
136
- - rails_sample/Rakefile
137
- - rails_sample/app/assets/images/.keep
138
- - rails_sample/app/assets/javascripts/application.js
139
- - rails_sample/app/assets/stylesheets/application.css
140
- - rails_sample/app/controllers/application_controller.rb
141
- - rails_sample/app/controllers/concerns/.keep
142
- - rails_sample/app/helpers/application_helper.rb
143
- - rails_sample/app/mailers/.keep
144
- - rails_sample/app/models/.keep
145
- - rails_sample/app/models/concerns/.keep
146
- - rails_sample/app/views/application/index.html.erb
147
- - rails_sample/app/views/layouts/application.html.erb
148
- - rails_sample/bin/bundle
149
- - rails_sample/bin/rails
150
- - rails_sample/bin/rake
151
- - rails_sample/bin/spring
152
- - rails_sample/config.ru
153
- - rails_sample/config/application.rb
154
- - rails_sample/config/boot.rb
155
- - rails_sample/config/database.yml
156
- - rails_sample/config/environment.rb
157
- - rails_sample/config/environments/development.rb
158
- - rails_sample/config/environments/production.rb
159
- - rails_sample/config/environments/test.rb
160
- - rails_sample/config/initializers/assets.rb
161
- - rails_sample/config/initializers/backtrace_silencers.rb
162
- - rails_sample/config/initializers/cookies_serializer.rb
163
- - rails_sample/config/initializers/filter_parameter_logging.rb
164
- - rails_sample/config/initializers/inflections.rb
165
- - rails_sample/config/initializers/mime_types.rb
166
- - rails_sample/config/initializers/session_store.rb
167
- - rails_sample/config/initializers/wrap_parameters.rb
168
- - rails_sample/config/locales/en.yml
169
- - rails_sample/config/routes.rb
170
- - rails_sample/config/secrets.yml
171
- - rails_sample/db/seeds.rb
172
- - rails_sample/lib/assets/.keep
173
- - rails_sample/lib/tasks/.keep
174
- - rails_sample/log/.keep
175
- - rails_sample/public/404.html
176
- - rails_sample/public/422.html
177
- - rails_sample/public/500.html
178
- - rails_sample/public/favicon.ico
179
- - rails_sample/public/robots.txt
180
- - rails_sample/test/controllers/.keep
181
- - rails_sample/test/fixtures/.keep
182
- - rails_sample/test/helpers/.keep
183
- - rails_sample/test/integration/.keep
184
- - rails_sample/test/mailers/.keep
185
- - rails_sample/test/models/.keep
186
- - rails_sample/test/test_helper.rb
187
- - rails_sample/vendor/assets/javascripts/.keep
188
- - rails_sample/vendor/assets/stylesheets/.keep
189
- - sinatra_sample/Gemfile
190
- - sinatra_sample/Gemfile.lock
191
- - sinatra_sample/app.rb
192
- - sinatra_sample/config.ru
193
133
  - spec/lib/rack/user_agent/checker_spec.rb
194
134
  - spec/lib/rack/user_agent/detector_spec.rb
195
135
  - spec/lib/rack/user_agent/result_spec.rb
@@ -199,7 +139,6 @@ homepage: https://github.com/k0kubun/rack-user_agent
199
139
  licenses:
200
140
  - MIT
201
141
  metadata: {}
202
- post_install_message:
203
142
  rdoc_options: []
204
143
  require_paths:
205
144
  - lib
@@ -207,16 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
146
  requirements:
208
147
  - - ">="
209
148
  - !ruby/object:Gem::Version
210
- version: '0'
149
+ version: 3.2.0
211
150
  required_rubygems_version: !ruby/object:Gem::Requirement
212
151
  requirements:
213
152
  - - ">="
214
153
  - !ruby/object:Gem::Version
215
154
  version: '0'
216
155
  requirements: []
217
- rubyforge_project:
218
- rubygems_version: 2.5.1
219
- signing_key:
156
+ rubygems_version: 3.6.7
220
157
  specification_version: 4
221
158
  summary: Rack::Request extension for handling User-Agent.
222
159
  test_files:
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- rvm:
5
- - 2.0.0
6
- - 2.1
7
- - 2.2
8
- - 2.3.0
9
- branches:
10
- only:
11
- - master
12
- script:
13
- - "bundle exec rake"
@@ -1,16 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*.log
16
- /tmp
data/rails_sample/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '4.1.5'
4
- gem 'sqlite3'
5
- gem 'sass-rails', '~> 4.0.3'
6
- gem 'uglifier', '>= 1.3.0'
7
- gem 'coffee-rails', '~> 4.0.0'
8
- gem 'jquery-rails'
9
- gem 'turbolinks'
10
- gem 'jbuilder', '~> 2.0'
11
- gem 'sdoc', '~> 0.4.0', group: :doc
12
- gem 'spring', group: :development
13
- gem 'pry'
14
-
15
- gem 'rack-user_agent', path: '..'
@@ -1,142 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- rack-user_agent (0.2.1)
5
- rack (~> 1.5)
6
- woothee (~> 1.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (4.1.5)
12
- actionpack (= 4.1.5)
13
- actionview (= 4.1.5)
14
- mail (~> 2.5.4)
15
- actionpack (4.1.5)
16
- actionview (= 4.1.5)
17
- activesupport (= 4.1.5)
18
- rack (~> 1.5.2)
19
- rack-test (~> 0.6.2)
20
- actionview (4.1.5)
21
- activesupport (= 4.1.5)
22
- builder (~> 3.1)
23
- erubis (~> 2.7.0)
24
- activemodel (4.1.5)
25
- activesupport (= 4.1.5)
26
- builder (~> 3.1)
27
- activerecord (4.1.5)
28
- activemodel (= 4.1.5)
29
- activesupport (= 4.1.5)
30
- arel (~> 5.0.0)
31
- activesupport (4.1.5)
32
- i18n (~> 0.6, >= 0.6.9)
33
- json (~> 1.7, >= 1.7.7)
34
- minitest (~> 5.1)
35
- thread_safe (~> 0.1)
36
- tzinfo (~> 1.1)
37
- arel (5.0.1.20140414130214)
38
- builder (3.2.2)
39
- coderay (1.1.0)
40
- coffee-rails (4.0.1)
41
- coffee-script (>= 2.2.0)
42
- railties (>= 4.0.0, < 5.0)
43
- coffee-script (2.3.0)
44
- coffee-script-source
45
- execjs
46
- coffee-script-source (1.8.0)
47
- erubis (2.7.0)
48
- execjs (2.2.2)
49
- hike (1.2.3)
50
- i18n (0.6.11)
51
- jbuilder (2.2.5)
52
- activesupport (>= 3.0.0, < 5)
53
- multi_json (~> 1.2)
54
- jquery-rails (3.1.2)
55
- railties (>= 3.0, < 5.0)
56
- thor (>= 0.14, < 2.0)
57
- json (1.8.1)
58
- mail (2.5.4)
59
- mime-types (~> 1.16)
60
- treetop (~> 1.4.8)
61
- method_source (0.8.2)
62
- mime-types (1.25.1)
63
- minitest (5.4.3)
64
- multi_json (1.10.1)
65
- polyglot (0.3.5)
66
- pry (0.10.0)
67
- coderay (~> 1.1.0)
68
- method_source (~> 0.8.1)
69
- slop (~> 3.4)
70
- rack (1.5.2)
71
- rack-test (0.6.2)
72
- rack (>= 1.0)
73
- rails (4.1.5)
74
- actionmailer (= 4.1.5)
75
- actionpack (= 4.1.5)
76
- actionview (= 4.1.5)
77
- activemodel (= 4.1.5)
78
- activerecord (= 4.1.5)
79
- activesupport (= 4.1.5)
80
- bundler (>= 1.3.0, < 2.0)
81
- railties (= 4.1.5)
82
- sprockets-rails (~> 2.0)
83
- railties (4.1.5)
84
- actionpack (= 4.1.5)
85
- activesupport (= 4.1.5)
86
- rake (>= 0.8.7)
87
- thor (>= 0.18.1, < 2.0)
88
- rake (10.3.2)
89
- rdoc (4.1.2)
90
- json (~> 1.4)
91
- sass (3.2.19)
92
- sass-rails (4.0.4)
93
- railties (>= 4.0.0, < 5.0)
94
- sass (~> 3.2.2)
95
- sprockets (~> 2.8, < 2.12)
96
- sprockets-rails (~> 2.0)
97
- sdoc (0.4.1)
98
- json (~> 1.7, >= 1.7.7)
99
- rdoc (~> 4.0)
100
- slop (3.6.0)
101
- spring (1.1.3)
102
- sprockets (2.11.3)
103
- hike (~> 1.2)
104
- multi_json (~> 1.0)
105
- rack (~> 1.0)
106
- tilt (~> 1.1, != 1.3.0)
107
- sprockets-rails (2.2.0)
108
- actionpack (>= 3.0)
109
- activesupport (>= 3.0)
110
- sprockets (>= 2.8, < 4.0)
111
- sqlite3 (1.3.10)
112
- thor (0.19.1)
113
- thread_safe (0.3.4)
114
- tilt (1.4.1)
115
- treetop (1.4.15)
116
- polyglot
117
- polyglot (>= 0.3.1)
118
- turbolinks (2.5.2)
119
- coffee-rails
120
- tzinfo (1.2.2)
121
- thread_safe (~> 0.1)
122
- uglifier (2.5.3)
123
- execjs (>= 0.3.0)
124
- json (>= 1.8.0)
125
- woothee (1.0.0)
126
-
127
- PLATFORMS
128
- ruby
129
-
130
- DEPENDENCIES
131
- coffee-rails (~> 4.0.0)
132
- jbuilder (~> 2.0)
133
- jquery-rails
134
- pry
135
- rack-user_agent!
136
- rails (= 4.1.5)
137
- sass-rails (~> 4.0.3)
138
- sdoc (~> 0.4.0)
139
- spring
140
- sqlite3
141
- turbolinks
142
- uglifier (>= 1.3.0)
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
File without changes
@@ -1,16 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require turbolinks
16
- //= require_tree .