tanker 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -6,23 +6,21 @@ module Tanker
6
6
  config.tanker_pagination_backend = nil
7
7
 
8
8
  initializer "tanker.boot" do
9
- setup_tanker_configuration
9
+ Tanker.configuration = {}.tap do |_new_conf|
10
+ _new_conf[:url] = config.index_tank_url if config.index_tank_url
11
+ _new_conf[:pagination_backend] = config.tanker_pagination_backend if config.tanker_pagination_backend
12
+ end
10
13
  end
11
14
 
12
15
  config.after_initialize do
13
- setup_tanker_configuration
14
- end
15
-
16
- rake_tasks do
17
- load "tanker/tasks/tanker.rake"
18
- end
19
-
20
- private
21
- def setup_tanker_configuration
22
16
  Tanker.configuration = {}.tap do |_new_conf|
23
17
  _new_conf[:url] = config.index_tank_url if config.index_tank_url
24
18
  _new_conf[:pagination_backend] = config.tanker_pagination_backend if config.tanker_pagination_backend
25
19
  end
26
20
  end
21
+
22
+ rake_tasks do
23
+ load "tanker/tasks/tanker.rake"
24
+ end
27
25
  end
28
26
  end
data/lib/tanker.rb CHANGED
@@ -188,12 +188,6 @@ module Tanker
188
188
  instances
189
189
  end
190
190
 
191
- def constantize(klass_name)
192
- Object.const_defined?(klass_name) ?
193
- Object.const_get(klass_name) :
194
- Object.const_missing(klass_name)
195
- end
196
-
197
191
  # borrowed from Rails' ActiveSupport::Inflector
198
192
  def constantize(camel_cased_word)
199
193
  names = camel_cased_word.split('::')
data/tanker.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tanker}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{@kidpollo}, %q{Jack Danger Canty}]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tanker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.0
5
+ version: 1.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - "@kidpollo"