table_sortable 1.0.0.pre.alpha.14 → 1.0.0.pre.alpha.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7a82828045598ce128b6a87cf868658298439bb
4
- data.tar.gz: c0259c3b6d5656afcd0ee912c632e3e0a03e3f9e
3
+ metadata.gz: fe3d5bf3ec53463e0584efb1edb97d50e9ddd4f3
4
+ data.tar.gz: 3e99c298ff8fac649f27f9abd38a67b5a606ebe0
5
5
  SHA512:
6
- metadata.gz: a8cc0ea7a17b998735c303b081e43f47393c20ba7014d3912c570a7f6811a5d2a0e231fff76631c2a891c2b9769813bc3a3ec0e16fd1ab0dae6433a98c50282f
7
- data.tar.gz: 0c748c81881144e60ce79385a992c6b339671124f48123b98ccfba14a7d3b7bd2ad6e0646cc4579b942c4a0480738f3d33b0c7f93dd0b1f0deddb76d696eb5a3
6
+ metadata.gz: 5e461cdb269d7aaf541e7e182137b757eaa048e57995bcb7d3802a1d9d826821ca46330453485fd8ed0f4939d1d90124226995294314229350d7c8081bdb70e5
7
+ data.tar.gz: d299262dbac351273f4ca5b4ee990938db4d84d0ce1f55b13e53d41d89b0cb59838105cb66632abc86d1d63354f3ed9789c9b4b3ca667d393265668a09c4ae93
@@ -16,7 +16,7 @@ module TableSortable
16
16
  @method = options["#{option_name.to_s}_method".to_sym] || :autodetect
17
17
  if the_proc.respond_to? :call
18
18
  @proc = proc_wrapper(the_proc)
19
- @method = detect_method(@proc)
19
+ @method = (@method == :autodetect) ? detect_method(@proc) : @method
20
20
  elsif !the_proc.nil?
21
21
  case @method
22
22
  when :array
@@ -1,3 +1,3 @@
1
1
  module TableSortable
2
- VERSION = "1.0.0.pre.alpha.14"
2
+ VERSION = "1.0.0.pre.alpha.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.14
4
+ version: 1.0.0.pre.alpha.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Davidov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-10 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler