da_face 0.0.7 → 0.0.8

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: 8c587373e9a9f5aa2a6568f50ea5129e31436b0a
4
- data.tar.gz: 570fbeb8cc6a521f9b32f46af0ca8be9db4b8cc3
3
+ metadata.gz: 8ac9be35622fe807456eee7ba3a5bdbe7aff4a07
4
+ data.tar.gz: 32d4b76b8a0f8c8d05480a7303a51cf768534d98
5
5
  SHA512:
6
- metadata.gz: c3b3d40e7daad7bb8b21a84bf93ce3192ced7db7a0515c1554e6d63dd34748b2ad9b9d4165da8b89c8eb691d4c453ec223f318272e64794542f9eec6f3ee67ba
7
- data.tar.gz: 20a6c23efa94cb3bf483d5acb4c2cd4bba18941d4ba9b186752107e77a3d41bf05e1a6218dd8d52a3fef48c0186ed11459374a9fe497216e92cbf582b8007cfa
6
+ metadata.gz: 4684b43bfe784ec61e70badd31106c158b99e995d3d2f3b114c57e76a2b52cee76185255b8b63d17c5f33b2c234823b865a26ebedf16f1a1b498ea7c36850d0c
7
+ data.tar.gz: 243d01748f52b47362d7a25281018fcea2c35490a603d2bb41024ed298ccf4d5dca78fbafab48d14043e51c683d8902e1c39b512b7bc5e7afa8057b51c56313b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_face (0.0.7)
4
+ da_face (0.0.8)
5
5
  excon
6
6
  json
7
7
  yajl-ruby
data/da_face.gemspec CHANGED
@@ -12,7 +12,6 @@ Gem::Specification.new do |spec|
12
12
  spec.description = %q{Interface to interact with Datasift API and get pretty data from them.}
13
13
  spec.homepage = "https://github.com/rayko/da_face"
14
14
  spec.license = "MIT"
15
- spec.post_install_message = 'My name is Bond... James Bond. And I thank you for installing Agent DaFace 0.0.7. Enjoy!'
16
15
 
17
16
  spec.files = `git ls-files -z`.split("\x0")
18
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -37,7 +37,11 @@ module DaFace
37
37
  return nil unless timestamp
38
38
  return Time.at(timestamp) if timestamp.kind_of? Fixnum
39
39
  return Time.at(timestamp) if timestamp.kind_of? Float
40
- return Time.parse(timestamp) if timestamp.kind_of? String
40
+ begin
41
+ return Time.parse(timestamp) if timestamp.kind_of? String
42
+ rescue ArgumentError => error
43
+ return timestamp
44
+ end
41
45
  return timestamp
42
46
  end
43
47
 
@@ -1,3 +1,3 @@
1
1
  module DaFace
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  describe DaFace::Utilities do
@@ -87,6 +88,12 @@ describe DaFace::Utilities do
87
88
  expect(@utilities.parse_timestamp(something)).to eq(something)
88
89
  end
89
90
 
91
+ it 'tolerates an erroneus string' do
92
+ time = "A\u0529Dú}V"
93
+ expect(Proc.new{@utilities.parse_timestamp(time)}).not_to raise_error
94
+ expect(@utilities.parse_timestamp(time)).to eq(time)
95
+ end
96
+
90
97
  end
91
98
 
92
99
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_face
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rayko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-16 00:00:00.000000000 Z
11
+ date: 2014-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -203,8 +203,7 @@ homepage: https://github.com/rayko/da_face
203
203
  licenses:
204
204
  - MIT
205
205
  metadata: {}
206
- post_install_message: My name is Bond... James Bond. And I thank you for installing
207
- Agent DaFace 0.0.7. Enjoy!
206
+ post_install_message:
208
207
  rdoc_options: []
209
208
  require_paths:
210
209
  - lib