showoff 0.13.3 → 0.13.4

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: 287b3884acfc8db9d00a923f3f1adfe7b11ba8c9
4
- data.tar.gz: a7e666855d18e929b560101d26dc331d811fe330
3
+ metadata.gz: e2c16f1de4dfa9e1401b2d8882200287df206d61
4
+ data.tar.gz: e4db72901b96e5faf1c35ad018e60d3c29a14865
5
5
  SHA512:
6
- metadata.gz: 8b2ca3ab1e8ae0d47c7b6ecf0e8571c988255158e4ff079df9e2258f0a1ba01013edff1ce079b85908b504443469eeaabaa1f1dd9f2b75bc97b28838d35a1f95
7
- data.tar.gz: 3c093017f4806204b96f3758ed0953409d1443349c056b0491a8404227e81d07807ab3dd9307e1b1c8985a5072dd74f5b9cc2d0b2b3246b2c06b78a787b43794
6
+ metadata.gz: 95c4ef9e3f7d94060af10f68bf7a7b0188c99b034eefc431e75e26cf4943d7697ccbf1d6f8c3cc884af6f97f03534af19b04c05e2cc00f615d6e1c12826667ed
7
+ data.tar.gz: c9c46ab3f68540dd773d7140c05d3e3cb8c23646e0a945ed7b0b5c455418e9dd9a10837f4bf0e33ae0bbe6bac72e8056944eaf03e29f43dc0f94a857d37a6f22
@@ -1,3 +1,3 @@
1
1
  # No namespace here since ShowOff is a class and I'd have to inherit from
2
2
  # Sinatra::Application (which we don't want to load here)
3
- SHOWOFF_VERSION = '0.13.3'
3
+ SHOWOFF_VERSION = '0.13.4'
data/lib/showoff.rb CHANGED
@@ -997,6 +997,9 @@ class ShowOff < Sinatra::Application
997
997
  end
998
998
 
999
999
  def slides(static=false)
1000
+ # If we're displaying from a repository, let's update it
1001
+ ShowOffUtils.update(settings.verbose) if settings.url
1002
+
1000
1003
  # if we have a cache and we're not asking to invalidate it
1001
1004
  return @@cache if (@@cache and params['cache'] != 'clear')
1002
1005
  content = get_slides_html(:static=>static)
data/lib/showoff_utils.rb CHANGED
@@ -215,9 +215,15 @@ class ShowOffUtils
215
215
  yield if block_given?
216
216
  end
217
217
  end
218
+ end
218
219
 
220
+ # just update the repo in cwd
221
+ def self.update(verbose=false)
222
+ puts "Updating presentation repository..." if verbose
223
+ system('git', 'pull')
219
224
  end
220
225
 
226
+
221
227
  # Makes a slide as a string.
222
228
  # [title] title of the slide
223
229
  # [classes] any "classes" to include, such as 'smaller', 'transition', etc.
@@ -202,7 +202,8 @@
202
202
 
203
203
  .submenu {
204
204
  display: block;
205
- overflow: auto;
205
+ overflow-x: hidden;
206
+ overflow-y: auto;
206
207
  }
207
208
 
208
209
  #presenter {
@@ -632,12 +632,12 @@ function stopTimer() {
632
632
  ********************/
633
633
  function toggleFollower()
634
634
  {
635
- mode.follow = $("#remoteToggle").attr("checked");
635
+ mode.follow = $("#remoteToggle").prop("checked");
636
636
  getPosition();
637
637
  }
638
638
 
639
639
  function toggleUpdater()
640
640
  {
641
- mode.update = $("#followerToggle").attr("checked");
641
+ mode.update = $("#followerToggle").prop("checked");
642
642
  update();
643
643
  }
data/public/js/showoff.js CHANGED
@@ -82,18 +82,21 @@ function loadSlides(load_slides, prefix, reload) {
82
82
  if (reload) {
83
83
  url += "?cache=clear";
84
84
  }
85
- //load slides offscreen, wait for images and then initialize
86
- if (load_slides) {
87
- $("#slides").load(url, false, function(){
88
- $("#slides img").batchImageLoad({
89
- loadingCompleteCallback: initializePresentation(prefix)
90
- })
91
- })
92
- } else {
93
- $("#slides img").batchImageLoad({
94
- loadingCompleteCallback: initializePresentation(prefix)
95
- })
96
- }
85
+ //load slides offscreen, wait for images and then initialize
86
+ if (load_slides) {
87
+ $("#slides").load(url, false, function(){
88
+ $("#slides img").batchImageLoad({
89
+ loadingCompleteCallback: initializePresentation(prefix)
90
+ });
91
+ if (reload) {
92
+ location.reload(true);
93
+ }
94
+ })
95
+ } else {
96
+ $("#slides img").batchImageLoad({
97
+ loadingCompleteCallback: initializePresentation(prefix)
98
+ })
99
+ }
97
100
  }
98
101
 
99
102
  function initializePresentation(prefix) {
@@ -1148,7 +1151,7 @@ function toggleDebug () {
1148
1151
 
1149
1152
  function reloadSlides () {
1150
1153
  if (confirm('Are you sure you want to reload the slides?')) {
1151
- location.reload(true);
1154
+ $('html,body').css('cursor','progress');
1152
1155
  loadSlides(loadSlidesBool, loadSlidesPrefix, true);
1153
1156
  showSlide();
1154
1157
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: showoff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.3
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra