squiggle 0.0.3 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/lib/squiggle.rb +1 -1
- data/lib/squiggle/base.rb +3 -2
- metadata +7 -7
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
gem 'activesupport', '
|
2
|
+
gem 'activesupport', '>= 2.1.0'
|
3
3
|
gem 'hoe', '>= 2.1.0'
|
4
4
|
require 'hoe'
|
5
5
|
require 'fileutils'
|
@@ -18,7 +18,7 @@ $hoe = Hoe.spec 'squiggle' do
|
|
18
18
|
self.developer 'Daniel Draper', 'daniel@netfox.com'
|
19
19
|
self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
|
20
20
|
self.rubyforge_name = self.name # TODO this is default value
|
21
|
-
self.extra_deps = [['domainatrix'], ['activesupport', "
|
21
|
+
self.extra_deps = [['domainatrix'], ['activesupport', ">= 2.1.0"]]
|
22
22
|
end
|
23
23
|
|
24
24
|
require 'newgem/tasks'
|
data/lib/squiggle.rb
CHANGED
data/lib/squiggle/base.rb
CHANGED
@@ -30,10 +30,11 @@ module Squiggle
|
|
30
30
|
|
31
31
|
# Return the time in the client's time zone
|
32
32
|
def parse_timestamp(str)
|
33
|
-
#
|
33
|
+
# Parses the timestamp into localtime
|
34
34
|
t = Time.at(str.gsub(/^L/, '').to_i)
|
35
|
+
# TODO: Right now this will only work with the NFAgent - can't be used on the server as we can't translate to an arbitrary TZ
|
35
36
|
# Return the time zone in the clients TZ
|
36
|
-
t.in_time_zone(@time_zone)
|
37
|
+
# t.in_time_zone(@time_zone)
|
37
38
|
end
|
38
39
|
end
|
39
40
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 8
|
9
|
+
version: 0.0.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Draper
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-02-
|
17
|
+
date: 2011-02-08 00:00:00 +10:30
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -34,13 +34,13 @@ dependencies:
|
|
34
34
|
prerelease: false
|
35
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
segments:
|
40
|
-
-
|
40
|
+
- 2
|
41
|
+
- 1
|
41
42
|
- 0
|
42
|
-
|
43
|
-
version: 3.0.3
|
43
|
+
version: 2.1.0
|
44
44
|
type: :runtime
|
45
45
|
version_requirements: *id002
|
46
46
|
- !ruby/object:Gem::Dependency
|