tzf 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tzf/version.rb +1 -1
- metadata +1 -2
- data/src/lib.rs +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6d89cbe609ea7f6d415702c7368b6e1a87287254523f4386223f38f53421416
|
4
|
+
data.tar.gz: 4dd188170db9ac634795dc02ffdcea14d7b52bbe5cf2756d07ff742183cf58c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 568d7e618a3d1d317bd1dd3704c7e0a7a6c802c5e87e49bf5092937d140c9b2584d822ae2ddae2e3fc941c705e7669ffcd00674432230170bcd82c131c4138cb
|
7
|
+
data.tar.gz: 8ada6243d4a35df6b12990a3170b7272ee3c5cf3166204a46783df962291c6cd996c62afaf61465b9cc4acf5cc482ea756c614e167d53644608be62e1f9dc62e
|
data/Gemfile.lock
CHANGED
data/lib/tzf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tzf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin McCormack
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- lib/tzf.rb
|
37
37
|
- lib/tzf/version.rb
|
38
38
|
- sig/tzf.rbs
|
39
|
-
- src/lib.rs
|
40
39
|
- tzf.gemspec
|
41
40
|
homepage: https://github.com/HarlemSquirrel/tzf-rb
|
42
41
|
licenses:
|
data/src/lib.rs
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
use lazy_static::lazy_static;
|
2
|
-
use std::ffi::CString;
|
3
|
-
use tzf_rs::DefaultFinder;
|
4
|
-
|
5
|
-
lazy_static! {
|
6
|
-
static ref FINDER: DefaultFinder = DefaultFinder::new();
|
7
|
-
}
|
8
|
-
|
9
|
-
#[no_mangle]
|
10
|
-
pub extern fn get_tz_name(lat: f64, lng: f64) -> CString {
|
11
|
-
// let finder = DefaultFinder::new();
|
12
|
-
|
13
|
-
// Create a CString so we can read this in Ruby with FFI
|
14
|
-
let tz_name = CString::new(FINDER.get_tz_name(lng, lat));
|
15
|
-
|
16
|
-
return tz_name.unwrap();
|
17
|
-
}
|