fatigue 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
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.1'
17
- s.date = '2010-09-12'
16
+ s.version = '0.0.2'
17
+ s.date = '2010-10-18'
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,7 @@ 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.strftime('%z')}/
56
+ option.text.gsub(':','') =~ /#{run.started_at.getlocal.strftime('%z')}/
57
57
  }.first.select
58
58
  form['activityNameDecoration:activityName'] = run.formatted_name
59
59
  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.1'
11
+ VERSION = '0.0.2'
12
12
  end
data/readme.markdown CHANGED
@@ -36,8 +36,30 @@ run, and nifty things like that.
36
36
 
37
37
  ## Install
38
38
 
39
+ **For the Techies**
40
+
39
41
  gem install fatigue
40
42
 
43
+ If you have no idea what the heck a gem install is, have no fear; none of this
44
+ is hard to do.
45
+
46
+ **For Mac Users**
47
+
48
+ Open up your `Applications` folder, scroll down to `Utilities`, and then open
49
+ up `Terminal`. Once you're there, type `sudo gem install fatigue` and then
50
+ enter your Mac password when prompted. This will download the code to your
51
+ machine. When it tells you "3 gems installed", type `fatigue` and enjoy the
52
+ show.
53
+
54
+ **For Windows Users**
55
+
56
+ Microsoft makes everything harder since you'll have to install Ruby yourself.
57
+ Until someone forks this repository with better Windows instructions (hint
58
+ hint!), the best I can give you is to go try
59
+ [RubyInstaller](http://rubyinstaller.org), install it, and then see if you can
60
+ run `gem install fatigue` in it. Somehow. I don't know really, but I have a lot
61
+ of faith that you can manage it. You seem like a strong-willed individual.
62
+
41
63
  ## Can I see your ID
42
64
 
43
65
  Nike might release a public API at some point in the future (although they'll
data/test/test_run.rb CHANGED
@@ -16,7 +16,7 @@ context "Run" do
16
16
 
17
17
  test "date conversion" do
18
18
  @run.started_at = '2009-03-17T04:02:43+00:00'
19
- assert_equal @run.started_at.to_s, 'Tue Mar 17 04:02:43 UTC 2009'
19
+ assert_equal @run.started_at, Time.parse('Tue Mar 17 04:02:43 UTC 2009')
20
20
  end
21
21
 
22
22
  test "formatted name" do
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
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-09-12 00:00:00 -07:00
18
+ date: 2010-10-18 00:00:00 -07:00
19
19
  default_executable: fatigue
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency