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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d677ec71ee9f083e60c550336d1b1dfef8e6fe2
4
- data.tar.gz: e2a67e0f9e6482af7f5b7b08ecba8bb93289484b
3
+ metadata.gz: c4f481d7fa3c5ff99d22180aa3833ebb3ee45ff4
4
+ data.tar.gz: 0aa2ee0d4af6dbfbf744792acc2c47428c958e15
5
5
  SHA512:
6
- metadata.gz: 82ec61965e9e90dd18471816c3a6da02ecddd54128d0abb6e35a031add8c6c7e74f151d39790748b50b7ec513cf9f33c8c99ed0a9ddb7051db0ac3117b53b288
7
- data.tar.gz: ab84ab650567ba72216a7d3e1284f24338e19166bcb2f79c7b4925b1093561453db6f4be6db11e56c93b5071c1d9dc527449191140877313c6bc7bdb7cd03f72
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
- tz_offset = (convert) ? 0 : Rational((target_time.utc_offset/3600.0)/24.0)
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
@@ -134,7 +134,7 @@ module Briar
134
134
 
135
135
  def briar_scroll_to_row (row_id, table_id=nil)
136
136
  unless table_id.nil?
137
- should_see_table row_id
137
+ should_see_table table_id
138
138
  end
139
139
 
140
140
  query_str = query_str_for_table table_id
data/lib/briar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Briar
2
- VERSION = '0.1.3.b11'
2
+ VERSION = '0.1.3.rc1'
3
3
  end
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.b11
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-01-31 00:00:00.000000000 Z
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.1
162
+ rubygems_version: 2.2.2
163
163
  signing_key:
164
164
  specification_version: 4
165
- summary: briar-0.1.3.b11
165
+ summary: briar-0.1.3.rc1
166
166
  test_files:
167
167
  - spec/spec_helper.rb