fly_admin 0.0.4 → 0.0.5

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: 6087dde9982958faca55e330427a4db02fb5c4a2
4
- data.tar.gz: 9a3cd30838ae399583702e3470cf573f13f9759a
3
+ metadata.gz: b4ece4ad87b562e057fd775e52d6e920fc3c3c3f
4
+ data.tar.gz: 193b9bf46bdfc2db083d83dae5eeaee85bb27a3b
5
5
  SHA512:
6
- metadata.gz: f45ac706a680e256f300808057deac09043666571606e4246ea2a3350f5279032dcd8e5b1a3d390ffb878795b623f0096b2393b8116db47ca826172b4b45fe95
7
- data.tar.gz: 1bbe129e34de2041cc162a84fe1a67f83796fc28d774e8bec39f7b1684b0f2188b1a9edf40e69f7a1dd5a18002df1b5b6b4b38fecc46117e83a1ef54602fdedc
6
+ metadata.gz: a9f4f60533381215453d0173a247a37c862c1401f62bfec28f16fa1fc25aab8d1eff0f36558e4161618d4f40dcce3ba0beba68f10000d5bee645ef73346f71ab
7
+ data.tar.gz: 3cf12dfcb1abf52c09c059d391ce06139ec659a62d7235ad2436c21e16b8d5a2ae35ac51ff91a2226166056b5e3da1d153133ca67499796e92bb8af38607b5c2
@@ -92,8 +92,13 @@ module FlyAdmin
92
92
  self.path + 'high/movie.mp4'
93
93
  end
94
94
 
95
+ # For compatibility
96
+ def identifier
97
+ self.uuid ? self.uuid : self.id
98
+ end
99
+
95
100
  def path
96
- "#{Rails.root}/public/uploads/video/content/#{self.uuid}/"
101
+ "#{Rails.root}/public/uploads/video/content/#{self.identifier}/"
97
102
  end
98
103
 
99
104
  def content_path
@@ -5,7 +5,7 @@ module FlyAdmin
5
5
  end
6
6
  # needed in videos#show
7
7
  def picture_url
8
- "/uploads/video/picture/#{self.uuid}/screenshot.jpg"
8
+ "/uploads/video/picture/#{self.identifier}/screenshot.jpg"
9
9
  end
10
10
 
11
11
  def create_thumbnail
@@ -1,3 +1,3 @@
1
1
  module FlyAdmin
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Korolev