mvcgen 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e84dfa06db18c8f66e8a3a141a2f1113e39a210c
4
- data.tar.gz: d42eeea17daebd4b1bce5054b4d3826cb91fbca7
3
+ metadata.gz: 3d6616c193c1773f239ef20cb2109d337d0521aa
4
+ data.tar.gz: b848d1cec10d3fd7d40c1a7db97a752d3252f4a6
5
5
  SHA512:
6
- metadata.gz: 40c4e90948754c239cc18971c99a05c49393f403f9598182c4bcc59d152fbcf516dd010407c7641aa6d4bd86fe3b8db3bb6bea7258143466e697ba814d731c96
7
- data.tar.gz: e744dab0f208fa848c44ba2c96a1ff5e8beaadab51a34c33030a6a40f6ba35944b1eea6fabf19a2c18ea7dc5db13077efe4854f1cceee8f301af997e3b90d221
6
+ metadata.gz: 6659f1937693b087927d8e6214f03d62b33aa989bf333970ea3feaf613bbe57705dfc16212457ee4ebdf1822a0e8c46c42563b56041208c40c2bc83a5f70ce73
7
+ data.tar.gz: 7effc09cd774283a86e315bf445a7f5851b7c9138cb18575b7333b985ebedbb2643e299b8b8a482cdd8e071984a1b6cf4e0a8b4c37b3b2e7e3c8b90ce17686ec
@@ -1,4 +1,4 @@
1
1
  module MVCgen
2
2
  NAME = "mvcgen"
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
@@ -59,10 +59,9 @@ class NotificationCell: UITableViewCell {
59
59
 
60
60
  self.newNotificationView.isHidden = notification.read
61
61
 
62
- let region = Region.Local()
63
- let dateB = DateInRegion(absoluteDate: notification.createdDate as Date, in: region)
64
- let (colloquial, _) = try! dateB.colloquialSinceNow()
65
- self.notificationDate.text = colloquial
62
+ let region = Region.local
63
+ let dateB = DateInRegion(notification.createdDate as Date, region: region)
64
+ self.notificationDate.text = dateB.toRelative()
66
65
 
67
66
  // In case you need to config something by notif type:
68
67
  // switch notification.notifType{
@@ -15,12 +15,5 @@ class DescriptionCell: UITableViewCell {
15
15
 
16
16
  @IBOutlet weak var descriptionTextView: UITextView!
17
17
 
18
- func configure(with userHistory: UserHistory) {
19
-
20
- self.destinationLabel.text = userHistory.name.capitalized
21
- self.destinationBackgroundImage.kf.indicatorType = .activity
22
- self.destinationBackgroundImage.kf.setImage(with: URL(string: history.thumbnailUrl), options: [.transition(.fade(0.2))])
23
- }
24
-
25
18
  }
26
19
 
@@ -254,7 +254,7 @@ class APIManager {
254
254
  var parms: [String : Any] = [:]
255
255
 
256
256
  // TODO check utc
257
- parms["date"] = Date().string(custom: "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
257
+ parms["date"] = Date().timeIntervalSince1970*1000
258
258
 
259
259
  Alamofire.request(APIHelper.sharedInstance.servicesURL + Endpoints.readNotifications, method: .post, parameters: parms,
260
260
  encoding: JSONEncoding.default,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvcgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Martinez