rack-user_agent 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/test.yml +38 -0
  3. data/.github_changelog_generator +2 -0
  4. data/CHANGELOG.md +31 -2
  5. data/README.md +4 -1
  6. data/lib/rack/user_agent/version.rb +1 -1
  7. data/rack-user_agent.gemspec +2 -2
  8. data/spec/lib/rack/user_agent/detector_spec.rb +5 -1
  9. metadata +14 -75
  10. data/.travis.yml +0 -13
  11. data/rails_sample/.gitignore +0 -16
  12. data/rails_sample/Gemfile +0 -15
  13. data/rails_sample/Gemfile.lock +0 -142
  14. data/rails_sample/README.rdoc +0 -28
  15. data/rails_sample/Rakefile +0 -6
  16. data/rails_sample/app/assets/images/.keep +0 -0
  17. data/rails_sample/app/assets/javascripts/application.js +0 -16
  18. data/rails_sample/app/assets/stylesheets/application.css +0 -15
  19. data/rails_sample/app/controllers/application_controller.rb +0 -15
  20. data/rails_sample/app/controllers/concerns/.keep +0 -0
  21. data/rails_sample/app/helpers/application_helper.rb +0 -2
  22. data/rails_sample/app/mailers/.keep +0 -0
  23. data/rails_sample/app/models/.keep +0 -0
  24. data/rails_sample/app/models/concerns/.keep +0 -0
  25. data/rails_sample/app/views/application/index.html.erb +0 -4
  26. data/rails_sample/app/views/layouts/application.html.erb +0 -14
  27. data/rails_sample/bin/bundle +0 -3
  28. data/rails_sample/bin/rails +0 -8
  29. data/rails_sample/bin/rake +0 -8
  30. data/rails_sample/bin/spring +0 -18
  31. data/rails_sample/config/application.rb +0 -24
  32. data/rails_sample/config/boot.rb +0 -4
  33. data/rails_sample/config/database.yml +0 -25
  34. data/rails_sample/config/environment.rb +0 -5
  35. data/rails_sample/config/environments/development.rb +0 -37
  36. data/rails_sample/config/environments/production.rb +0 -82
  37. data/rails_sample/config/environments/test.rb +0 -39
  38. data/rails_sample/config/initializers/assets.rb +0 -8
  39. data/rails_sample/config/initializers/backtrace_silencers.rb +0 -7
  40. data/rails_sample/config/initializers/cookies_serializer.rb +0 -3
  41. data/rails_sample/config/initializers/filter_parameter_logging.rb +0 -4
  42. data/rails_sample/config/initializers/inflections.rb +0 -16
  43. data/rails_sample/config/initializers/mime_types.rb +0 -4
  44. data/rails_sample/config/initializers/session_store.rb +0 -3
  45. data/rails_sample/config/initializers/wrap_parameters.rb +0 -14
  46. data/rails_sample/config/locales/en.yml +0 -23
  47. data/rails_sample/config/routes.rb +0 -3
  48. data/rails_sample/config/secrets.yml +0 -22
  49. data/rails_sample/config.ru +0 -4
  50. data/rails_sample/db/seeds.rb +0 -7
  51. data/rails_sample/lib/assets/.keep +0 -0
  52. data/rails_sample/lib/tasks/.keep +0 -0
  53. data/rails_sample/log/.keep +0 -0
  54. data/rails_sample/public/404.html +0 -67
  55. data/rails_sample/public/422.html +0 -67
  56. data/rails_sample/public/500.html +0 -66
  57. data/rails_sample/public/favicon.ico +0 -0
  58. data/rails_sample/public/robots.txt +0 -5
  59. data/rails_sample/test/controllers/.keep +0 -0
  60. data/rails_sample/test/fixtures/.keep +0 -0
  61. data/rails_sample/test/helpers/.keep +0 -0
  62. data/rails_sample/test/integration/.keep +0 -0
  63. data/rails_sample/test/mailers/.keep +0 -0
  64. data/rails_sample/test/models/.keep +0 -0
  65. data/rails_sample/test/test_helper.rb +0 -10
  66. data/rails_sample/vendor/assets/javascripts/.keep +0 -0
  67. data/rails_sample/vendor/assets/stylesheets/.keep +0 -0
  68. data/sinatra_sample/Gemfile +0 -5
  69. data/sinatra_sample/Gemfile.lock +0 -34
  70. data/sinatra_sample/app.rb +0 -16
  71. 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: 196193c319b01ca515b88528abd0e71594f8d320679255234465022eb353bf5b
4
+ data.tar.gz: 9d46fb2122d7e4e971b056f8ce5d7ac9c5132f6fa8198665520a70661ec0d348
5
5
  SHA512:
6
- metadata.gz: 886513a383b59e21982f9ccff999c4a39fbaaef66c101cfcd6ebb3f1fd370f24740f1a204b95353ad56b274c98919e89f7b5e60f5e6b9233db1c318119ec9c8a
7
- data.tar.gz: a874b814bb6fbfd01e85413c8bc24cbdd1b8aace7a443ff315b6bbae707ac35d0d8e332d070b60b0c34198496f3d84da49f4c0cee1768bff5dfeabd18e31d81c
6
+ metadata.gz: a25fdf45a55784820fc006206c3ce7adfe106d66b56399ef779f089d94c7e9c9bd8d7e90dd98b6b32155a53d08af75fe9b6ffd06e3cfb11227a932b4d8bacae3
7
+ data.tar.gz: bdb3879111432d33451ef731bda1cd82fe70bf3586ed49ac873b7e73ad0aab96aa116b5fe7dfef274768ff6c3cdefa7e09b10a976d5ff8791e9fff0d0de5689e
@@ -0,0 +1,38 @@
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
+ - '2.5'
21
+ - '2.6'
22
+ - '2.7'
23
+ - '3.0'
24
+ - '3.1'
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+ - uses: actions/cache@v2
32
+ with:
33
+ path: vendor/bundle
34
+ key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
35
+ restore-keys: ${{ runner.os }}-gems-
36
+ - name: bundle install
37
+ run: bundle config path vendor/bundle && bundle install -j$(nproc) --retry 3
38
+ - run: bundle exec rake
@@ -0,0 +1,2 @@
1
+ user=k0kubun
2
+ project=rack-user_agent
data/CHANGELOG.md CHANGED
@@ -1,11 +1,26 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ ## [v0.5.3](https://github.com/k0kubun/rack-user_agent/tree/v0.5.3) (2022-01-22)
4
+
5
+ [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.5.2...v0.5.3)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Exclude sample directories from spec.files [\#12](https://github.com/k0kubun/rack-user_agent/pull/12) ([lnit](https://github.com/lnit))
10
+ - Restrict minitest version to lower than 6 [\#11](https://github.com/k0kubun/rack-user_agent/pull/11) ([unasuke](https://github.com/unasuke))
11
+ - Add/Remove Ruby versions on CI [\#10](https://github.com/k0kubun/rack-user_agent/pull/10) ([unasuke](https://github.com/unasuke))
12
+ - Add undocument method to README.md [\#9](https://github.com/k0kubun/rack-user_agent/pull/9) ([cutmail](https://github.com/cutmail))
2
13
 
3
14
  ## [v0.5.2](https://github.com/k0kubun/rack-user_agent/tree/v0.5.2) (2016-07-11)
15
+
4
16
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.5.1...v0.5.2)
5
17
 
18
+ **Merged pull requests:**
19
+
6
20
  - Support woothee 1.1+ [\#8](https://github.com/k0kubun/rack-user_agent/pull/8) ([amatsuda](https://github.com/amatsuda))
7
21
 
8
22
  ## [v0.5.1](https://github.com/k0kubun/rack-user_agent/tree/v0.5.1) (2016-05-28)
23
+
9
24
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.5.0...v0.5.1)
10
25
 
11
26
  **Merged pull requests:**
@@ -13,6 +28,7 @@
13
28
  - Detect as 'from\_ios' when os is iOS [\#7](https://github.com/k0kubun/rack-user_agent/pull/7) ([vividmuimui](https://github.com/vividmuimui))
14
29
 
15
30
  ## [v0.5.0](https://github.com/k0kubun/rack-user_agent/tree/v0.5.0) (2016-05-17)
31
+
16
32
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.4.2...v0.5.0)
17
33
 
18
34
  **Merged pull requests:**
@@ -20,6 +36,7 @@
20
36
  - Add methods to detect os [\#6](https://github.com/k0kubun/rack-user_agent/pull/6) ([knjko](https://github.com/knjko))
21
37
 
22
38
  ## [v0.4.2](https://github.com/k0kubun/rack-user_agent/tree/v0.4.2) (2015-12-19)
39
+
23
40
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.4.1...v0.4.2)
24
41
 
25
42
  **Merged pull requests:**
@@ -27,6 +44,7 @@
27
44
  - 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
45
 
29
46
  ## [v0.4.1](https://github.com/k0kubun/rack-user_agent/tree/v0.4.1) (2015-12-18)
47
+
30
48
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.4.0...v0.4.1)
31
49
 
32
50
  **Merged pull requests:**
@@ -34,6 +52,7 @@
34
52
  - Rails 5 doesn't rack ActionDispatch::ParamsParser [\#4](https://github.com/k0kubun/rack-user_agent/pull/4) ([amatsuda](https://github.com/amatsuda))
35
53
 
36
54
  ## [v0.4.0](https://github.com/k0kubun/rack-user_agent/tree/v0.4.0) (2015-12-18)
55
+
37
56
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.3.1...v0.4.0)
38
57
 
39
58
  **Merged pull requests:**
@@ -41,6 +60,7 @@
41
60
  - Support rack 2.x [\#3](https://github.com/k0kubun/rack-user_agent/pull/3) ([amatsuda](https://github.com/amatsuda))
42
61
 
43
62
  ## [v0.3.1](https://github.com/k0kubun/rack-user_agent/tree/v0.3.1) (2015-08-05)
63
+
44
64
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.3.0...v0.3.1)
45
65
 
46
66
  **Merged pull requests:**
@@ -48,6 +68,7 @@
48
68
  - Add `from ipod?` to Detectors [\#2](https://github.com/k0kubun/rack-user_agent/pull/2) ([matsuhisa](https://github.com/matsuhisa))
49
69
 
50
70
  ## [v0.3.0](https://github.com/k0kubun/rack-user_agent/tree/v0.3.0) (2015-07-01)
71
+
51
72
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.3...v0.3.0)
52
73
 
53
74
  **Merged pull requests:**
@@ -55,21 +76,29 @@
55
76
  - expect that devise\_type is a symobol [\#1](https://github.com/k0kubun/rack-user_agent/pull/1) ([osdakira](https://github.com/osdakira))
56
77
 
57
78
  ## [v0.2.3](https://github.com/k0kubun/rack-user_agent/tree/v0.2.3) (2014-11-25)
79
+
58
80
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.2...v0.2.3)
59
81
 
60
82
  ## [v0.2.2](https://github.com/k0kubun/rack-user_agent/tree/v0.2.2) (2014-11-21)
83
+
61
84
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.1...v0.2.2)
62
85
 
63
86
  ## [v0.2.1](https://github.com/k0kubun/rack-user_agent/tree/v0.2.1) (2014-11-21)
87
+
64
88
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.2.0...v0.2.1)
65
89
 
66
90
  ## [v0.2.0](https://github.com/k0kubun/rack-user_agent/tree/v0.2.0) (2014-11-21)
91
+
67
92
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.1.0...v0.2.0)
68
93
 
69
94
  ## [v0.1.0](https://github.com/k0kubun/rack-user_agent/tree/v0.1.0) (2014-11-21)
95
+
70
96
  [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/v0.0.1...v0.1.0)
71
97
 
72
98
  ## [v0.0.1](https://github.com/k0kubun/rack-user_agent/tree/v0.0.1) (2014-11-20)
73
99
 
100
+ [Full Changelog](https://github.com/k0kubun/rack-user_agent/compare/18b4495a925091bc97453ac54bee88b9da23a810...v0.0.1)
101
+
102
+
74
103
 
75
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
104
+ \* *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.5.3"
4
4
  end
5
5
  end
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "rack", ">= 1.5"
22
22
  spec.add_dependency "woothee", ">= 1.0.0"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.7"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler", ">= 1.10"
25
+ spec.add_development_dependency "rake", ">= 10.0"
26
26
  spec.add_development_dependency "pry"
27
27
  spec.add_development_dependency "minitest"
28
28
  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,14 @@
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.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
11
+ date: 2022-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -42,28 +42,28 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.7'
47
+ version: '1.10'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.7'
54
+ version: '1.10'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
69
  - !ruby/object:Gem::Dependency
@@ -115,8 +115,9 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
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,7 @@ homepage: https://github.com/k0kubun/rack-user_agent
199
139
  licenses:
200
140
  - MIT
201
141
  metadata: {}
202
- post_install_message:
142
+ post_install_message:
203
143
  rdoc_options: []
204
144
  require_paths:
205
145
  - lib
@@ -214,9 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
154
  - !ruby/object:Gem::Version
215
155
  version: '0'
216
156
  requirements: []
217
- rubyforge_project:
218
- rubygems_version: 2.5.1
219
- signing_key:
157
+ rubygems_version: 3.2.22
158
+ signing_key:
220
159
  specification_version: 4
221
160
  summary: Rack::Request extension for handling User-Agent.
222
161
  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 .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,15 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- REQUEST_METHODS = %i[
3
- device_type os os_version smartphone_version browser browser_version browser_vendor
4
- from_pc? from_smartphone? from_mobilephone? from_appliance? from_crawler?
5
- from_iphone? from_ipad? from_android? from_android_tablet? from_windows_phone?
6
- ].freeze
7
-
8
- def index
9
- @result = {}
10
-
11
- REQUEST_METHODS.each do |method|
12
- @result[method] = request.public_send(method)
13
- end
14
- end
15
- end
File without changes
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
File without changes
File without changes
File without changes
@@ -1,4 +0,0 @@
1
- <% @result.each do |key, value| %>
2
- <%= key %>: <%= value %>
3
- <br>
4
- <% end %>