fatigue 0.0.2 → 0.0.3

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.
data/fatigue.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'fatigue'
16
- s.version = '0.0.2'
17
- s.date = '2010-10-18'
16
+ s.version = '0.0.3'
17
+ s.date = '2010-12-02'
18
18
  s.rubyforge_project = 'fatigue'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -53,7 +53,8 @@ module Fatigue
53
53
  form.field_with(:name => 'activityTimeZoneDecoration:activityTimeZone').
54
54
  options.select { |option|
55
55
  # select option where our timezones are equal (-07:00, etc)
56
- option.text.gsub(':','') =~ /#{run.started_at.getlocal.strftime('%z')}/
56
+ zone = run.started_at.getlocal.strftime('%z').gsub('+','\+')
57
+ option.text.gsub(':','') =~ /#{zone}/
57
58
  }.first.select
58
59
  form['activityNameDecoration:activityName'] = run.formatted_name
59
60
  form.field_with(:name => 'activityTypeDecoration:activityType').
data/lib/fatigue.rb CHANGED
@@ -8,5 +8,5 @@ require 'mechanize'
8
8
  require 'progressbar'
9
9
 
10
10
  module Fatigue
11
- VERSION = '0.0.2'
11
+ VERSION = '0.0.3'
12
12
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fatigue
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Zach Holman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-18 00:00:00 -07:00
18
+ date: 2010-12-02 00:00:00 -08:00
19
19
  default_executable: fatigue
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency