tripit 0.3.2 → 0.3.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/README.md CHANGED
@@ -137,6 +137,11 @@ Create a **TripIt::OAuth** instance with your consumer token and secret. Authori
137
137
  * TripIt::TransportSegment
138
138
  * TripIt::WeatherObject
139
139
 
140
+ ## Known issues
141
+
142
+ * Currently the tests are all empty. If you can contribute, it would be much appreciated.
143
+ * Saving functionality is bare, and validation of objects for save is limited to properties. In other words, save at your own peril.
144
+
140
145
  ## Unofficial Library
141
146
 
142
147
  This library is used for interaction with the TripIt API but is not endorsed or certified by TripIt. If you're looking for a more lightweight library, check out their official [Ruby Binding](http://github.com/tripit/ruby_binding_v1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/lib/trip_it/base.rb CHANGED
@@ -33,7 +33,11 @@ module TripIt
33
33
  if time.nil?
34
34
  # Just return a date
35
35
  Date.parse(tpitDT["date"])
36
+ elsif date.nil?
37
+ # Or just a time
38
+ Time.parse(tpitDT["time"])
36
39
  else
40
+ # Ideally both
37
41
  DateTime.parse(tpitDT["date"] + "T" + tpitDT["time"] + tpitDT["utc_offset"])
38
42
  end
39
43
  end
data/tripit.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tripit}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alex Kremer"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tripit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Kremer