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 +5 -0
- data/VERSION +1 -1
- data/lib/trip_it/base.rb +4 -0
- data/tripit.gemspec +1 -1
- metadata +3 -3
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.
|
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
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Kremer
|