briar 0.1.3.b11 → 0.1.3.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/briar.rb +14 -1
- data/lib/briar/picker/date_picker_manipulation.rb +6 -1
- data/lib/briar/table.rb +1 -1
- data/lib/briar/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f481d7fa3c5ff99d22180aa3833ebb3ee45ff4
|
4
|
+
data.tar.gz: 0aa2ee0d4af6dbfbf744792acc2c47428c958e15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60af1755b4ca4381fae9c80ffc49bf1242cbb8d9fee88edd1af3bd17246c87f4d7bedddcdf7dae62d6fd7fd904d67275960d0fd83096c90d29754ebdd60ef715
|
7
|
+
data.tar.gz: 6a38d56469f78a62f7f7bc051b5010a5e2c2c898026d577f1ced8aeb5e6e44281b24c4c4710bf22f52ff710f7f7ed478cf0a9c293b436479f76da62b97b333fd
|
data/lib/briar.rb
CHANGED
@@ -77,4 +77,17 @@ require 'briar/text_field'
|
|
77
77
|
require 'briar/text_view'
|
78
78
|
|
79
79
|
require 'briar/page/briar_page_helpers'
|
80
|
-
require 'briar/page/briar_page'
|
80
|
+
require 'briar/page/briar_page'
|
81
|
+
|
82
|
+
# date picker requires DateTime.to_time
|
83
|
+
if RUBY_VERSION.start_with?('1.8')
|
84
|
+
require 'date'
|
85
|
+
class DateTime
|
86
|
+
|
87
|
+
def to_time
|
88
|
+
str = self.strftime('%z')
|
89
|
+
Time.send(:make_time, year, mon, day, hour, min, 0, nil, str, nil)
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
end
|
@@ -91,7 +91,12 @@ module Briar
|
|
91
91
|
|
92
92
|
def target_date_for_change_time_on_picker_with_time(target_time, convert, picker_id=nil)
|
93
93
|
current_time = ruby_time_from_picker({:picker_id => picker_id})
|
94
|
-
|
94
|
+
if RUBY_VERSION.start_with?('1.8')
|
95
|
+
tz_offset = (convert) ? 0 : Rational(((target_time.utc_offset/3600.0)/24.0).to_i)
|
96
|
+
else
|
97
|
+
tz_offset = (convert) ? 0 : Rational((target_time.utc_offset/3600.0)/24.0)
|
98
|
+
end
|
99
|
+
|
95
100
|
DateTime.new(current_time.year, current_time.mon, current_time.day,
|
96
101
|
target_time.hour, target_time.min,
|
97
102
|
0, tz_offset)
|
data/lib/briar/table.rb
CHANGED
data/lib/briar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: briar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.3.
|
4
|
+
version: 0.1.3.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbx-require-relative
|
@@ -159,9 +159,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: 1.3.1
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.2.
|
162
|
+
rubygems_version: 2.2.2
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
|
-
summary: briar-0.1.3.
|
165
|
+
summary: briar-0.1.3.rc1
|
166
166
|
test_files:
|
167
167
|
- spec/spec_helper.rb
|