timezone_detection 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format d
2
+ --color
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in timezone_detection.gemspec
4
+ gemspec
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
@@ -6,7 +6,7 @@ This gem used for setting client's timezone based on his/her IP.
6
6
 
7
7
  Write it in your Gemfile
8
8
 
9
- gem "timezone_detection", '~> 0.0.3'
9
+ gem "timezone_detection", '~> 0.0.4'
10
10
 
11
11
  Next, execute following sequences of commands:
12
12
 
data/Rakefile CHANGED
@@ -1,40 +1,2 @@
1
1
  #!/usr/bin/env rake
2
- begin
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
@@ -5,7 +5,6 @@ module TimezoneDetection
5
5
 
6
6
  attr_accessor :ip
7
7
  attr_accessible :ip, :utc_offset
8
-
9
8
  before_save :cancel_if_current_ip_already_exists
10
9
 
11
10
  def self.find_ip(ip)
@@ -1,3 +1,3 @@
1
1
  module TimezoneDetection
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -2,6 +2,7 @@ require "timezone_detection/engine"
2
2
  require "timezone_detection/ip_convertion"
3
3
  require "timezone_detection/ip_info_db"
4
4
  require "timezone_detection/application_controller_extension"
5
+ require "timezone_detection/version"
5
6
 
6
7
  module TimezoneDetection
7
8
 
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
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-08-09 00:00:00.000000000 Z
12
+ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rails
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: 3.2.7
21
+ version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
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: sqlite3
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: !ruby/object:Gem::Requirement
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
- - app/views/layouts/timezone_detection/application.html.erb
54
- - app/helpers/timezone_detection/application_helper.rb
55
- - app/models/timezone_detection/ip_timezone.rb
56
- - app/assets/stylesheets/timezone_detection/application.css
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/ip_info_db.rb
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
- - lib/timezone_detection.rb
70
- - MIT-LICENSE
71
- - Rakefile
72
- - README.rdoc
80
+ - test/dummy/README.rdoc
73
81
  - test/dummy/Rakefile
74
- - test/dummy/script/rails
75
- - test/dummy/config/environments/production.rb
76
- - test/dummy/config/environments/test.rb
77
- - test/dummy/config/environments/development.rb
78
- - test/dummy/config/boot.rb
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/session_store.rb
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/log/test.log
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/test.sqlite3
97
- - test/dummy/README.rdoc
98
- - test/dummy/config.ru
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/app/views/layouts/application.html.erb
104
- - test/dummy/app/helpers/application_helper.rb
105
- - test/dummy/app/assets/stylesheets/application.css
106
- - test/dummy/app/assets/javascripts/application.js
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
- - test/integration/navigation_test.rb
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.24
145
+ rubygems_version: 1.8.17
132
146
  signing_key:
133
147
  specification_version: 3
134
- summary: Gem for detecting users timezone by IP address.
148
+ summary: ! '"Detects timezone by IP address."'
135
149
  test_files:
150
+ - test/dummy/README.rdoc
136
151
  - test/dummy/Rakefile
137
- - test/dummy/script/rails
138
- - test/dummy/config/environments/production.rb
139
- - test/dummy/config/environments/test.rb
140
- - test/dummy/config/environments/development.rb
141
- - test/dummy/config/boot.rb
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/session_store.rb
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/log/test.log
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/test.sqlite3
160
- - test/dummy/README.rdoc
161
- - test/dummy/config.ru
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/app/views/layouts/application.html.erb
167
- - test/dummy/app/helpers/application_helper.rb
168
- - test/dummy/app/assets/stylesheets/application.css
169
- - test/dummy/app/assets/javascripts/application.js
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
Binary file
@@ -1,114 +0,0 @@
1
- Connecting to database specified by database.yml
2
- Connecting to database specified by database.yml
3
-  (0.2ms) select sqlite_version(*)
4
-  (184.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5
-  (0.1ms) PRAGMA index_list("schema_migrations")
6
-  (120.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
8
- Migrating to CreateIpTimezones (20120808161228)
9
-  (0.1ms) begin transaction
10
-  (0.7ms) CREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) 
11
-  (0.1ms) PRAGMA index_list("ip_timezones")
12
-  (0.2ms) CREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")
13
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
14
-  (172.5ms) commit transaction
15
-  (0.6ms) select sqlite_version(*)
16
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
17
-  (0.1ms) PRAGMA index_list("ip_timezones")
18
-  (0.1ms) PRAGMA index_info('index_ip_timezones_on_ip_in_longint')
19
- Connecting to database specified by database.yml
20
-  (2.9ms) SELECT version FROM schema_migrations ORDER BY version
21
- Connecting to database specified by database.yml
22
-  (0.2ms) select sqlite_version(*)
23
-  (172.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
24
-  (0.1ms) PRAGMA index_list("schema_migrations")
25
-  (116.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
26
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
27
- Migrating to CreateIpTimezones (20120808161228)
28
-  (0.1ms) begin transaction
29
-  (0.6ms) CREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) 
30
-  (0.1ms) PRAGMA index_list("ip_timezones")
31
-  (0.2ms) CREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")
32
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
33
-  (172.9ms) commit transaction
34
-  (0.4ms) select sqlite_version(*)
35
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
36
-  (0.1ms) PRAGMA index_list("ip_timezones")
37
-  (0.1ms) PRAGMA index_info('index_ip_timezones_on_ip_in_longint')
38
- Connecting to database specified by database.yml
39
-  (0.2ms) select sqlite_version(*)
40
-  (169.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
41
-  (0.1ms) PRAGMA index_list("schema_migrations")
42
-  (117.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
43
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
44
- Migrating to CreateIpTimezones (20120808161228)
45
-  (0.1ms) begin transaction
46
-  (0.6ms) CREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) 
47
-  (0.1ms) PRAGMA index_list("ip_timezones")
48
-  (0.2ms) CREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")
49
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
50
-  (160.3ms) commit transaction
51
-  (0.4ms) select sqlite_version(*)
52
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
53
-  (0.1ms) PRAGMA index_list("ip_timezones")
54
-  (0.1ms) PRAGMA index_info('index_ip_timezones_on_ip_in_longint')
55
- Connecting to database specified by database.yml
56
-  (0.2ms) select sqlite_version(*)
57
-  (183.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
58
-  (0.1ms) PRAGMA index_list("schema_migrations")
59
-  (121.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
61
- Migrating to CreateIpTimezones (20120808161228)
62
-  (0.1ms) begin transaction
63
-  (0.6ms) CREATE TABLE "ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer) 
64
-  (0.1ms) PRAGMA index_list("ip_timezones")
65
-  (0.3ms) CREATE INDEX "index_ip_timezones_on_ip_in_longint" ON "ip_timezones" ("ip_in_longint")
66
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120808161228')
67
-  (167.6ms) commit transaction
68
-  (0.6ms) select sqlite_version(*)
69
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
70
-  (0.1ms) PRAGMA index_list("ip_timezones")
71
-  (0.1ms) PRAGMA index_info('index_ip_timezones_on_ip_in_longint')
72
- Connecting to database specified by database.yml
73
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
74
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
75
- Migrating to CreateIpTimezones (20120808161228)
76
-  (0.1ms) select sqlite_version(*)
77
-  (0.1ms) begin transaction
78
-  (0.1ms) PRAGMA index_list("ip_timezones")
79
-  (0.1ms) PRAGMA index_info('index_ip_timezones_on_ip_in_longint')
80
-  (0.6ms) DROP INDEX "index_ip_timezones_on_ip_in_longint"
81
-  (0.3ms) DROP TABLE "ip_timezones"
82
-  (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20120808161228'
83
-  (132.7ms) commit transaction
84
-  (0.3ms) select sqlite_version(*)
85
-  (0.1ms) 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
-  (0.2ms) select sqlite_version(*)
91
-  (179.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
92
-  (0.1ms) PRAGMA index_list("schema_migrations")
93
-  (104.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
94
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
95
- Migrating to CreateIpTimezones (20120808173854)
96
-  (0.1ms) begin transaction
97
-  (0.1ms) rollback transaction
98
- Connecting to database specified by database.yml
99
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
100
- Migrating to CreateIpTimezones (20120808173854)
101
-  (0.1ms) select sqlite_version(*)
102
-  (0.1ms) begin transaction
103
-  (0.7ms) CREATE TABLE "timezone_detection_ip_timezones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ip_in_longint" INT UNSIGNED DEFAULT 0, "utc_offset" integer)
104
-  (0.1ms) PRAGMA index_list("timezone_detection_ip_timezones")
105
-  (0.2ms) CREATE INDEX "index_timezone_detection_ip_timezones_on_ip_in_longint" ON "timezone_detection_ip_timezones" ("ip_in_longint")
106
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120808173854')
107
-  (187.0ms) commit transaction
108
-  (0.4ms) select sqlite_version(*)
109
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
110
-  (0.1ms) PRAGMA index_list("timezone_detection_ip_timezones")
111
-  (0.1ms) PRAGMA index_info('index_timezone_detection_ip_timezones_on_ip_in_longint')
112
- Connecting to database specified by database.yml
113
-  (3.2ms) SELECT version FROM schema_migrations ORDER BY version
114
- Connecting to database specified by database.yml