timezone_detection 0.0.4 → 0.1.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.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +44 -0
- data/README.rdoc +1 -1
- data/Rakefile +1 -39
- data/app/assets/images/timezone_detection/.gitkeep +0 -0
- data/app/models/timezone_detection/ip_timezone.rb +0 -1
- data/lib/timezone_detection/version.rb +1 -1
- data/lib/timezone_detection.rb +1 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/timezone_detection.gemspec +21 -0
- metadata +92 -78
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -114
- data/test/dummy/log/test.log +0 -968
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Boris Babusenko
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# TimezoneDetection
|
2
|
+
|
3
|
+
This gem used for setting user's timezone based on IP.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'timezone_detection'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install timezone_detection
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
$ rails generate timezone_detection:install
|
22
|
+
$ rake db:migrate
|
23
|
+
|
24
|
+
This gem uses IpInfoDb web service to determine your timezone. API KEY required for dealing with site API, so you should register your own and set it in initializer file ( for this visit http://ipinfodb.com/ ):
|
25
|
+
|
26
|
+
For example: *config/initializers/my_own_timezone_initializer.rb*
|
27
|
+
|
28
|
+
TimezoneDetection.config do |cnf|
|
29
|
+
cnf.api_key = "SOME_API_KEY_PROVIDED_FROM_IP_INFO_DB_SITE"
|
30
|
+
end
|
31
|
+
|
32
|
+
Set before_filter in your ApplicationController or wherever you need.
|
33
|
+
|
34
|
+
before_filter :set_timezone
|
35
|
+
|
36
|
+
That's it. You are ready to go!
|
37
|
+
|
38
|
+
## Contributing
|
39
|
+
|
40
|
+
1. Fork it
|
41
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
42
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
43
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
44
|
+
5. Create new Pull Request
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,40 +1,2 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
rescue LoadError
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
14
|
-
|
15
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = 'TimezoneDetection'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
22
|
-
|
23
|
-
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
24
|
-
load 'rails/tasks/engine.rake'
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
Bundler::GemHelper.install_tasks
|
29
|
-
|
30
|
-
require 'rake/testtask'
|
31
|
-
|
32
|
-
Rake::TestTask.new(:test) do |t|
|
33
|
-
t.libs << 'lib'
|
34
|
-
t.libs << 'test'
|
35
|
-
t.pattern = 'test/**/*_test.rb'
|
36
|
-
t.verbose = false
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
task :default => :test
|
2
|
+
require "bundler/gem_tasks"
|
File without changes
|
data/lib/timezone_detection.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/timezone_detection/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Boris Babusenko"]
|
6
|
+
gem.email = ["boris.bbk@gmail.com"]
|
7
|
+
gem.homepage = "https://github.com/Bor1s/timezone-detection"
|
8
|
+
gem.summary = %q{"Detects timezone by IP address."}
|
9
|
+
gem.description = "Visit #{gem.homepage} for more information."
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "timezone_detection"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = TimezoneDetection::VERSION
|
17
|
+
|
18
|
+
gem.add_development_dependency "rspec"
|
19
|
+
gem.add_development_dependency "rails"
|
20
|
+
gem.add_development_dependency "sqlite3"
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timezone_detection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,27 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
15
|
+
name: rspec
|
16
|
+
requirement: &83446620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- - '
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - '='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.7
|
24
|
+
version_requirements: *83446620
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
26
|
+
name: rails
|
27
|
+
requirement: &83445830 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ! '>='
|
@@ -37,12 +32,18 @@ dependencies:
|
|
37
32
|
version: '0'
|
38
33
|
type: :development
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
35
|
+
version_requirements: *83445830
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sqlite3
|
38
|
+
requirement: &83445220 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
41
|
- - ! '>='
|
44
42
|
- !ruby/object:Gem::Version
|
45
43
|
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *83445220
|
46
47
|
description: Visit https://github.com/Bor1s/timezone-detection for more information.
|
47
48
|
email:
|
48
49
|
- boris.bbk@gmail.com
|
@@ -50,64 +51,71 @@ executables: []
|
|
50
51
|
extensions: []
|
51
52
|
extra_rdoc_files: []
|
52
53
|
files:
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
54
|
+
- .gitignore
|
55
|
+
- .rspec
|
56
|
+
- Gemfile
|
57
|
+
- LICENSE
|
58
|
+
- MIT-LICENSE
|
59
|
+
- README.md
|
60
|
+
- README.rdoc
|
61
|
+
- Rakefile
|
62
|
+
- app/assets/images/timezone_detection/.gitkeep
|
57
63
|
- app/assets/javascripts/timezone_detection/application.js
|
64
|
+
- app/assets/stylesheets/timezone_detection/application.css
|
58
65
|
- app/controllers/timezone_detection/application_controller.rb
|
66
|
+
- app/helpers/timezone_detection/application_helper.rb
|
67
|
+
- app/models/timezone_detection/ip_timezone.rb
|
68
|
+
- app/views/layouts/timezone_detection/application.html.erb
|
59
69
|
- config/initializers/root_app_extension.rb
|
60
70
|
- config/routes.rb
|
61
|
-
- lib/generators/timezone_detection/migrations/ip_timezone.rb
|
62
71
|
- lib/generators/timezone_detection/install_generator.rb
|
72
|
+
- lib/generators/timezone_detection/migrations/ip_timezone.rb
|
63
73
|
- lib/tasks/timezone_detection_tasks.rake
|
64
|
-
- lib/timezone_detection
|
74
|
+
- lib/timezone_detection.rb
|
65
75
|
- lib/timezone_detection/application_controller_extension.rb
|
66
|
-
- lib/timezone_detection/ip_convertion.rb
|
67
76
|
- lib/timezone_detection/engine.rb
|
77
|
+
- lib/timezone_detection/ip_convertion.rb
|
78
|
+
- lib/timezone_detection/ip_info_db.rb
|
68
79
|
- lib/timezone_detection/version.rb
|
69
|
-
-
|
70
|
-
- MIT-LICENSE
|
71
|
-
- Rakefile
|
72
|
-
- README.rdoc
|
80
|
+
- test/dummy/README.rdoc
|
73
81
|
- test/dummy/Rakefile
|
74
|
-
- test/dummy/
|
75
|
-
- test/dummy/
|
76
|
-
- test/dummy/
|
77
|
-
- test/dummy/
|
78
|
-
- test/dummy/
|
82
|
+
- test/dummy/app/assets/javascripts/application.js
|
83
|
+
- test/dummy/app/assets/stylesheets/application.css
|
84
|
+
- test/dummy/app/controllers/application_controller.rb
|
85
|
+
- test/dummy/app/helpers/application_helper.rb
|
86
|
+
- test/dummy/app/mailers/.gitkeep
|
87
|
+
- test/dummy/app/models/.gitkeep
|
88
|
+
- test/dummy/app/views/layouts/application.html.erb
|
89
|
+
- test/dummy/config.ru
|
79
90
|
- test/dummy/config/application.rb
|
91
|
+
- test/dummy/config/boot.rb
|
80
92
|
- test/dummy/config/database.yml
|
93
|
+
- test/dummy/config/environment.rb
|
94
|
+
- test/dummy/config/environments/development.rb
|
95
|
+
- test/dummy/config/environments/production.rb
|
96
|
+
- test/dummy/config/environments/test.rb
|
97
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
81
98
|
- test/dummy/config/initializers/inflections.rb
|
82
|
-
- test/dummy/config/initializers/
|
99
|
+
- test/dummy/config/initializers/mime_types.rb
|
83
100
|
- test/dummy/config/initializers/secret_token.rb
|
101
|
+
- test/dummy/config/initializers/session_store.rb
|
84
102
|
- test/dummy/config/initializers/wrap_parameters.rb
|
85
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
86
|
-
- test/dummy/config/initializers/mime_types.rb
|
87
|
-
- test/dummy/config/environment.rb
|
88
|
-
- test/dummy/config/routes.rb
|
89
103
|
- test/dummy/config/locales/en.yml
|
90
|
-
- test/dummy/
|
91
|
-
- test/dummy/log/development.log
|
92
|
-
- test/dummy/db/structure.sql
|
104
|
+
- test/dummy/config/routes.rb
|
93
105
|
- test/dummy/db/migrate/20120808173854_create_ip_timezones.rb
|
94
|
-
- test/dummy/db/development.sqlite3
|
95
106
|
- test/dummy/db/schema.rb
|
96
|
-
- test/dummy/db/
|
97
|
-
- test/dummy/
|
98
|
-
- test/dummy/
|
99
|
-
- test/dummy/public/500.html
|
107
|
+
- test/dummy/db/structure.sql
|
108
|
+
- test/dummy/lib/assets/.gitkeep
|
109
|
+
- test/dummy/log/.gitkeep
|
100
110
|
- test/dummy/public/404.html
|
101
|
-
- test/dummy/public/favicon.ico
|
102
111
|
- test/dummy/public/422.html
|
103
|
-
- test/dummy/
|
104
|
-
- test/dummy/
|
105
|
-
- test/dummy/
|
106
|
-
- test/
|
107
|
-
- test/dummy/app/controllers/application_controller.rb
|
112
|
+
- test/dummy/public/500.html
|
113
|
+
- test/dummy/public/favicon.ico
|
114
|
+
- test/dummy/script/rails
|
115
|
+
- test/integration/navigation_test.rb
|
108
116
|
- test/test_helper.rb
|
109
117
|
- test/timezone_detection_test.rb
|
110
|
-
-
|
118
|
+
- timezone_detection.gemspec
|
111
119
|
homepage: https://github.com/Bor1s/timezone-detection
|
112
120
|
licenses: []
|
113
121
|
post_install_message:
|
@@ -120,54 +128,60 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
128
|
- - ! '>='
|
121
129
|
- !ruby/object:Gem::Version
|
122
130
|
version: '0'
|
131
|
+
segments:
|
132
|
+
- 0
|
133
|
+
hash: -725788451
|
123
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
135
|
none: false
|
125
136
|
requirements:
|
126
137
|
- - ! '>='
|
127
138
|
- !ruby/object:Gem::Version
|
128
139
|
version: '0'
|
140
|
+
segments:
|
141
|
+
- 0
|
142
|
+
hash: -725788451
|
129
143
|
requirements: []
|
130
144
|
rubyforge_project:
|
131
|
-
rubygems_version: 1.8.
|
145
|
+
rubygems_version: 1.8.17
|
132
146
|
signing_key:
|
133
147
|
specification_version: 3
|
134
|
-
summary:
|
148
|
+
summary: ! '"Detects timezone by IP address."'
|
135
149
|
test_files:
|
150
|
+
- test/dummy/README.rdoc
|
136
151
|
- test/dummy/Rakefile
|
137
|
-
- test/dummy/
|
138
|
-
- test/dummy/
|
139
|
-
- test/dummy/
|
140
|
-
- test/dummy/
|
141
|
-
- test/dummy/
|
152
|
+
- test/dummy/app/assets/javascripts/application.js
|
153
|
+
- test/dummy/app/assets/stylesheets/application.css
|
154
|
+
- test/dummy/app/controllers/application_controller.rb
|
155
|
+
- test/dummy/app/helpers/application_helper.rb
|
156
|
+
- test/dummy/app/mailers/.gitkeep
|
157
|
+
- test/dummy/app/models/.gitkeep
|
158
|
+
- test/dummy/app/views/layouts/application.html.erb
|
159
|
+
- test/dummy/config.ru
|
142
160
|
- test/dummy/config/application.rb
|
161
|
+
- test/dummy/config/boot.rb
|
143
162
|
- test/dummy/config/database.yml
|
163
|
+
- test/dummy/config/environment.rb
|
164
|
+
- test/dummy/config/environments/development.rb
|
165
|
+
- test/dummy/config/environments/production.rb
|
166
|
+
- test/dummy/config/environments/test.rb
|
167
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
144
168
|
- test/dummy/config/initializers/inflections.rb
|
145
|
-
- test/dummy/config/initializers/
|
169
|
+
- test/dummy/config/initializers/mime_types.rb
|
146
170
|
- test/dummy/config/initializers/secret_token.rb
|
171
|
+
- test/dummy/config/initializers/session_store.rb
|
147
172
|
- test/dummy/config/initializers/wrap_parameters.rb
|
148
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
149
|
-
- test/dummy/config/initializers/mime_types.rb
|
150
|
-
- test/dummy/config/environment.rb
|
151
|
-
- test/dummy/config/routes.rb
|
152
173
|
- test/dummy/config/locales/en.yml
|
153
|
-
- test/dummy/
|
154
|
-
- test/dummy/log/development.log
|
155
|
-
- test/dummy/db/structure.sql
|
174
|
+
- test/dummy/config/routes.rb
|
156
175
|
- test/dummy/db/migrate/20120808173854_create_ip_timezones.rb
|
157
|
-
- test/dummy/db/development.sqlite3
|
158
176
|
- test/dummy/db/schema.rb
|
159
|
-
- test/dummy/db/
|
160
|
-
- test/dummy/
|
161
|
-
- test/dummy/
|
162
|
-
- test/dummy/public/500.html
|
177
|
+
- test/dummy/db/structure.sql
|
178
|
+
- test/dummy/lib/assets/.gitkeep
|
179
|
+
- test/dummy/log/.gitkeep
|
163
180
|
- test/dummy/public/404.html
|
164
|
-
- test/dummy/public/favicon.ico
|
165
181
|
- test/dummy/public/422.html
|
166
|
-
- test/dummy/
|
167
|
-
- test/dummy/
|
168
|
-
- test/dummy/
|
169
|
-
- test/
|
170
|
-
- test/dummy/app/controllers/application_controller.rb
|
182
|
+
- test/dummy/public/500.html
|
183
|
+
- test/dummy/public/favicon.ico
|
184
|
+
- test/dummy/script/rails
|
185
|
+
- test/integration/navigation_test.rb
|
171
186
|
- test/test_helper.rb
|
172
187
|
- test/timezone_detection_test.rb
|
173
|
-
- test/integration/navigation_test.rb
|
Binary file
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,114 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
Connecting to database specified by database.yml
|
3
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
-
[1m[35m (184.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
5
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
6
|
-
[1m[35m (120.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
8
|
-
Migrating to CreateIpTimezones (20120808161228)
|
9
|
-
[1m[35m (0.1ms)[0m begin transaction
|
10
|
-
[1m[36m (0.7ms)[0m [1mCREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) [0m
|
11
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
12
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")[0m
|
13
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
|
14
|
-
[1m[36m (172.5ms)[0m [1mcommit transaction[0m
|
15
|
-
[1m[35m (0.6ms)[0m select sqlite_version(*)
|
16
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
17
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
18
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_info('index_ip_timezones_on_ip_in_longint')[0m
|
19
|
-
Connecting to database specified by database.yml
|
20
|
-
[1m[36m (2.9ms)[0m [1mSELECT version FROM schema_migrations ORDER BY version[0m
|
21
|
-
Connecting to database specified by database.yml
|
22
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
23
|
-
[1m[35m (172.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
24
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
25
|
-
[1m[35m (116.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
26
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
27
|
-
Migrating to CreateIpTimezones (20120808161228)
|
28
|
-
[1m[35m (0.1ms)[0m begin transaction
|
29
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) [0m
|
30
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
31
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")[0m
|
32
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
|
33
|
-
[1m[36m (172.9ms)[0m [1mcommit transaction[0m
|
34
|
-
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
35
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
36
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
37
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_info('index_ip_timezones_on_ip_in_longint')[0m
|
38
|
-
Connecting to database specified by database.yml
|
39
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
40
|
-
[1m[35m (169.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
41
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
42
|
-
[1m[35m (117.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
43
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
44
|
-
Migrating to CreateIpTimezones (20120808161228)
|
45
|
-
[1m[35m (0.1ms)[0m begin transaction
|
46
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) [0m
|
47
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
48
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")[0m
|
49
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
|
50
|
-
[1m[36m (160.3ms)[0m [1mcommit transaction[0m
|
51
|
-
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
52
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
53
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
54
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_info('index_ip_timezones_on_ip_in_longint')[0m
|
55
|
-
Connecting to database specified by database.yml
|
56
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
57
|
-
[1m[35m (183.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
58
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
59
|
-
[1m[35m (121.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
60
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
61
|
-
Migrating to CreateIpTimezones (20120808161228)
|
62
|
-
[1m[35m (0.1ms)[0m begin transaction
|
63
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) [0m
|
64
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
65
|
-
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")[0m
|
66
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
|
67
|
-
[1m[36m (167.6ms)[0m [1mcommit transaction[0m
|
68
|
-
[1m[35m (0.6ms)[0m select sqlite_version(*)
|
69
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
70
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("ip_timezones")
|
71
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_info('index_ip_timezones_on_ip_in_longint')[0m
|
72
|
-
Connecting to database specified by database.yml
|
73
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
74
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
75
|
-
Migrating to CreateIpTimezones (20120808161228)
|
76
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
77
|
-
[1m[35m (0.1ms)[0m begin transaction
|
78
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("ip_timezones")[0m
|
79
|
-
[1m[35m (0.1ms)[0m PRAGMA index_info('index_ip_timezones_on_ip_in_longint')
|
80
|
-
[1m[36m (0.6ms)[0m [1mDROP INDEX "index_ip_timezones_on_ip_in_longint"[0m
|
81
|
-
[1m[35m (0.3ms)[0m DROP TABLE "ip_timezones"
|
82
|
-
[1m[36m (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20120808161228'[0m
|
83
|
-
[1m[35m (132.7ms)[0m commit transaction
|
84
|
-
[1m[36m (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
85
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
86
|
-
Connecting to database specified by database.yml
|
87
|
-
Connecting to database specified by database.yml
|
88
|
-
Connecting to database specified by database.yml
|
89
|
-
Connecting to database specified by database.yml
|
90
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
91
|
-
[1m[35m (179.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
92
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
93
|
-
[1m[35m (104.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
94
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
95
|
-
Migrating to CreateIpTimezones (20120808173854)
|
96
|
-
[1m[35m (0.1ms)[0m begin transaction
|
97
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
98
|
-
Connecting to database specified by database.yml
|
99
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
100
|
-
Migrating to CreateIpTimezones (20120808173854)
|
101
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
102
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
103
|
-
[1m[35m (0.7ms)[0m CREATE TABLE "timezone_detection_ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer)
|
104
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("timezone_detection_ip_timezones")[0m
|
105
|
-
[1m[35m (0.2ms)[0m CREATE INDEX "index_timezone_detection_ip_timezones_on_ip_in_longint" ON "timezone_detection_ip_timezones" ("ip_in_longint")
|
106
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120808173854')[0m
|
107
|
-
[1m[35m (187.0ms)[0m commit transaction
|
108
|
-
[1m[36m (0.4ms)[0m [1mselect sqlite_version(*)[0m
|
109
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
110
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("timezone_detection_ip_timezones")[0m
|
111
|
-
[1m[35m (0.1ms)[0m PRAGMA index_info('index_timezone_detection_ip_timezones_on_ip_in_longint')
|
112
|
-
Connecting to database specified by database.yml
|
113
|
-
[1m[36m (3.2ms)[0m [1mSELECT version FROM schema_migrations ORDER BY version[0m
|
114
|
-
Connecting to database specified by database.yml
|