octodmin 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4358eb0c0ada91fe50230ac9b04a3b403f01db3d
4
- data.tar.gz: adb4cb0faa4fcd93d9429a65c2dd5ff6ce6316c5
3
+ metadata.gz: 10b2800db6a54cca156540343ef860089a711f37
4
+ data.tar.gz: 22917ffcde8aa8ea2ffda0b79c6e9c3e2f48ab74
5
5
  SHA512:
6
- metadata.gz: 384c86d84f5e78c66fb1ff9ce66b6539d47e1fe35553eeae91dd5eff330c63494e31abbc95f79a228c52c68113ae241fe1abc8ba1545c1d37361d6a9c84e812a
7
- data.tar.gz: 0c29fa6e106308a42dfc3d11f6d039017b42991bec3c890a8ef46b123b70e269181a91a697a80f069fbe5622433a905b25614eb91eff9a5395944cef85121391
6
+ metadata.gz: 0d41e42b41e3fcccb03b929aced0f9ef41705318d509ebf9c93102c638a0937aad5cb2717eb4fe1c569ab1ca0169cac1385d39f3fba592df22edea00e1eb170b
7
+ data.tar.gz: 480c5d112acc4a03813da5a50fbd40772b4db4b8d2cce64b0289345242f3c14cc4ee16508055847caa57fef7cc31525e19cc104610043c6db66544d92af89590
@@ -1,3 +1,8 @@
1
+ v0.3.5
2
+ ------
3
+
4
+ * Handle dates gracefully
5
+
1
6
  v0.3.4
2
7
  ------
3
8
 
@@ -118,6 +118,12 @@
118
118
  else
119
119
  "default"
120
120
 
121
+ isoDate: ->
122
+ try
123
+ (new Date(@props.post.date.replace(/-/g, "/"))).toISOString()
124
+ catch e
125
+ null
126
+
121
127
  handleEdit: ->
122
128
  @transitionTo("post_edit", post_id: @props.post.identifier)
123
129
 
@@ -165,7 +171,7 @@
165
171
  <div className="panel-heading clearfix">
166
172
  <h3 className="panel-title pull-left">{@props.post.title}</h3>
167
173
  <div className="pull-right">
168
- {moment((new Date(@props.post.date.replace(/-/g, "/"))).toISOString()).format("LLL")}
174
+ {if @isoDate() then moment(@isoDate()).format("LLL") else ""}
169
175
  </div>
170
176
  </div>
171
177
  <div className="panel-body">
@@ -1,3 +1,3 @@
1
1
  module Octodmin
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octodmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Krasnoukhov