fb_graph 2.1.9 → 2.1.10

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fb_graph (2.1.8)
4
+ fb_graph (2.1.9)
5
5
  httpclient (>= 2.2.0.2)
6
6
  rack-oauth2 (>= 0.9.4)
7
7
 
@@ -41,8 +41,9 @@ GEM
41
41
  jruby-openssl (0.7.4)
42
42
  bouncy-castle-java
43
43
  json (1.6.1)
44
+ json (1.6.1-java)
44
45
  multi_json (1.0.3)
45
- rack (1.3.3)
46
+ rack (1.3.4)
46
47
  rack-cache (1.0.3)
47
48
  rack (>= 0.4)
48
49
  rack-mount (0.8.3)
@@ -67,10 +68,10 @@ GEM
67
68
  rspec-expectations (2.6.0)
68
69
  diff-lcs (~> 1.1.2)
69
70
  rspec-mocks (2.6.0)
70
- sprockets (2.0.0)
71
+ sprockets (2.0.2)
71
72
  hike (~> 1.2)
72
73
  rack (~> 1.0)
73
- tilt (!= 1.3.0, ~> 1.1)
74
+ tilt (~> 1.1, != 1.3.0)
74
75
  tilt (1.3.3)
75
76
  webmock (1.7.6)
76
77
  addressable (> 2.2.5, ~> 2.2)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.9
1
+ 2.1.10
@@ -78,14 +78,14 @@ module FbGraph
78
78
  end
79
79
  end
80
80
  @@attributes[:date].each do |key|
81
- if attributes[key]
82
- value = if attributes[key] =~ /\d{2}\/\d{2}\/\d{4}/
83
- Date.strptime(attributes[key], '%m/%d/%Y')
84
- else
85
- Date.parse(attributes[key]) rescue attributes[key]
81
+ date = if attributes[key]
82
+ begin
83
+ Date.parse attributes[key]
84
+ rescue
85
+ attributes[key]
86
86
  end
87
- self.send :"#{key}=", value
88
87
  end
88
+ self.send :"#{key}=", date
89
89
  end
90
90
  @checkin_count = attributes[:checkins]
91
91
  @hours = {}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 9
10
- version: 2.1.9
9
+ - 10
10
+ version: 2.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-28 00:00:00 Z
18
+ date: 2011-10-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: httpclient