times_wire 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -2
- data/lib/times_wire/base.rb +2 -2
- data/lib/times_wire/item.rb +3 -3
- data/lib/times_wire/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -9,6 +9,7 @@ Times Wire is a Ruby gem for interacting with The New York Times Newswire API (h
|
|
9
9
|
|
10
10
|
== News
|
11
11
|
|
12
|
+
* Dec. 16, 2011: Version 0.8.0 released, Item returns DateTime objects instead of Dates.
|
12
13
|
* Dec. 15, 2011: Version 0.7.0 released, adding support for retrieving list of sections.
|
13
14
|
* Dec. 14, 2011: Version 0.6.0 released, with support for related URLs and blog name attributes.
|
14
15
|
* Dec. 13, 2011: Version 0.5.0 released.
|
@@ -21,7 +22,7 @@ Install Times Wire as a gem:
|
|
21
22
|
|
22
23
|
For use in a Rails 3 application, put the following in your Gemfile:
|
23
24
|
|
24
|
-
gem "times_wire", "~> 0.
|
25
|
+
gem "times_wire", "~> 0.7.0"
|
25
26
|
|
26
27
|
then issue the 'bundle install' command. Times Wire has been tested under Ruby 1.8.7.
|
27
28
|
|
@@ -63,4 +64,4 @@ Derek Willis, dwillis@nytimes.com
|
|
63
64
|
|
64
65
|
== Copyright
|
65
66
|
|
66
|
-
Copyright (c) 2011
|
67
|
+
Copyright (c) 2011 The New York Times Company. See LICENSE for details.
|
data/lib/times_wire/base.rb
CHANGED
data/lib/times_wire/item.rb
CHANGED
@@ -19,9 +19,9 @@ module TimesWire
|
|
19
19
|
:byline => params['byline'],
|
20
20
|
:item_type => params['item_type'],
|
21
21
|
:source => params['source'],
|
22
|
-
:updated_date =>
|
23
|
-
:created_date =>
|
24
|
-
:published_date =>
|
22
|
+
:updated_date => datetime_parser(params['updated_date']),
|
23
|
+
:created_date => datetime_parser(params['created_date']),
|
24
|
+
:published_date => datetime_parser(params['published_date']),
|
25
25
|
:material_type_facet => params['material_type_facet'],
|
26
26
|
:kicker => params['kicker'],
|
27
27
|
:subheadline => params['subheadline'],
|
data/lib/times_wire/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: times_wire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 8
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.8.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Derek Willis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-12-
|
18
|
+
date: 2011-12-16 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|