joyride-rails 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/README.markdown +28 -1
  2. data/app/assets/javascripts/joyride/{jquery.joyride-1.0.3.js → jquery.joyride-1.0.4.js} +85 -36
  3. data/app/assets/stylesheets/joyride/{joyride-1.0.3.css.sass → joyride-1.0.4.css.sass} +36 -13
  4. data/lib/joyride/version.rb +1 -1
  5. data/test/dummy/Gemfile +18 -0
  6. data/test/dummy/Gemfile.lock +97 -0
  7. data/test/dummy/log/development.log +52 -0
  8. data/test/dummy/tmp/cache/assets/C5A/BD0/sprockets%2F6e8287461f7b19335a41a29ed9195620 +0 -0
  9. data/test/dummy/tmp/cache/assets/C91/370/sprockets%2F04d2120f184f1e702308355e0ed1b2b3 +0 -0
  10. data/test/dummy/tmp/cache/assets/CAC/040/sprockets%2F0b7d050189881e4fd2073328d92e1b2f +0 -0
  11. data/test/dummy/tmp/cache/assets/CB3/440/sprockets%2Fafc3316274f038465ee4b74932bc8517 +0 -0
  12. data/test/dummy/tmp/cache/assets/CCA/0C0/sprockets%2F6c3e053393afe303432ca73f1b41490b +0 -0
  13. data/test/dummy/tmp/cache/assets/CE1/4C0/sprockets%2Fbc6a336f1607282d2dc281fb6269a597 +0 -0
  14. data/test/dummy/tmp/cache/assets/D0D/670/sprockets%2F8c13b1a4b596190f1c61f4cf92b38e36 +0 -0
  15. data/test/dummy/tmp/cache/assets/D18/840/sprockets%2F50c1885539f61359c48af74fcae1df31 +0 -0
  16. data/test/dummy/tmp/cache/assets/D19/220/sprockets%2F8c12a483b1e48edec3c45980298457be +0 -0
  17. data/test/dummy/tmp/cache/assets/D41/CB0/sprockets%2Fbf3bc772277b2a348a71f4d88c1e7c25 +0 -0
  18. data/test/dummy/tmp/cache/assets/D4B/720/sprockets%2Fe16c199f91934eaff7bf97321504da2f +0 -0
  19. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  20. data/test/dummy/tmp/cache/assets/D57/E70/sprockets%2Ff3d85fee7084763c5a76a1ea676f962f +0 -0
  21. data/test/dummy/tmp/cache/assets/D5E/640/sprockets%2Fab4ee5924db252a15f52b2cfa36b1709 +0 -0
  22. data/test/dummy/tmp/cache/assets/DA6/120/sprockets%2Fc5880aca76ccbb51f9388362e8afc1e6 +0 -0
  23. data/test/dummy/tmp/cache/assets/DAA/7D0/sprockets%2Fdee067d8b23e8598d773bbea0df5036f +0 -0
  24. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  25. data/test/dummy/tmp/cache/assets/DF3/6F0/sprockets%2Ffba93885ced0911e16ae73b1fccb1a4c +0 -0
  26. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  27. data/test/dummy/tmp/cache/assets/E5E/250/sprockets%2F2fac6daf6cdc1c4dc9fce4b618114f8f +0 -0
  28. data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/bootstrap_tour.css.sassc +0 -0
  29. data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/joyride-1.0.3.css.sassc +0 -0
  30. data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/variables.sassc +0 -0
  31. data/test/dummy/tmp/cache/sass/6a91e0ce0789596fee5bc4ff3f591470f3aec0de/application.css.sassc +0 -0
  32. metadata +10 -50
  33. data/test/dummy/tmp/cache/assets/C4A/570/sprockets%2F15a04a49f19710781329a870b8d1f352 +0 -0
  34. data/test/dummy/tmp/cache/assets/C77/D30/sprockets%2Fca3a855423436369a12f4245be3c5545 +0 -0
  35. data/test/dummy/tmp/cache/assets/C91/E40/sprockets%2F880d46ff1082976e0eb68c528641b089 +0 -0
  36. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  37. data/test/dummy/tmp/cache/assets/CDE/440/sprockets%2Fb555f0d8c0d1671bc81430837d84dc92 +0 -0
  38. data/test/dummy/tmp/cache/assets/CE1/1C0/sprockets%2Fe704f02989daa684b32c3f72a4513f83 +0 -0
  39. data/test/dummy/tmp/cache/assets/D1E/2A0/sprockets%2F8d5d60255600aa010a32e1d1a9bc6db6 +0 -0
  40. data/test/dummy/tmp/cache/assets/D2A/450/sprockets%2F58e369b37e5157ea746a485eea17e9f7 +0 -0
  41. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  42. data/test/dummy/tmp/cache/assets/D3F/A90/sprockets%2Ff6e315f67f26b1665d870ba3fb8050db +0 -0
  43. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  44. data/test/dummy/tmp/cache/assets/D65/BA0/sprockets%2F2713bd3b713d71801af63fadc3b6dc89 +0 -0
  45. data/test/dummy/tmp/cache/assets/D6E/BC0/sprockets%2Fad954413ca960fe041e137d4cd7afd69 +0 -0
  46. data/test/dummy/tmp/cache/assets/D79/8D0/sprockets%2F9a557ef8b2aceee46711709937c44acc +0 -0
  47. data/test/dummy/tmp/cache/assets/D9D/5B0/sprockets%2Ff66dd1c082fb7b7730090dbfbff961b2 +0 -0
  48. data/test/dummy/tmp/cache/assets/DA1/950/sprockets%2F9eba13b549b22c3d8ea4aad8489ba893 +0 -0
  49. data/test/dummy/tmp/cache/assets/DA7/230/sprockets%2F7ae10239eda2588a95fdcc7d871bef52 +0 -0
  50. data/test/dummy/tmp/cache/assets/DE0/690/sprockets%2F2827893fa90fd9a8521fdddcef63a8be +0 -0
  51. data/test/dummy/tmp/cache/assets/E00/660/sprockets%2F6dfe5f0c215cba9cb22b3e08dc7f5f88 +0 -0
  52. data/test/dummy/tmp/cache/assets/E02/6C0/sprockets%2Ff206e49edc9afcd023989d53a4dafbe1 +0 -0
  53. data/test/dummy/tmp/cache/assets/E05/F10/sprockets%2Fb3d9b0e88cdded276ebdce333e338a85 +0 -0
  54. data/test/dummy/tmp/cache/sass/b6a29b56c31fc2a931d217c92dbad0128a12584a/application.css.sassc +0 -0
@@ -3,6 +3,8 @@ Joyride
3
3
 
4
4
  Build easy feature tours, thanks to [ZURB's joyride plugin](http://www.zurb.com/playground/jquery-joyride-feature-tour-plugin)
5
5
 
6
+ See a live demo [here](http://joyride-rails-demo.herokuapp.com/)
7
+
6
8
  Setup
7
9
  ------
8
10
  You must include the proper script and style assets
@@ -22,4 +24,29 @@ Basic Usage
22
24
 
23
25
  The <code>:cookie</code> option controls whether or not a cookie is checked before showing the tour (meaning if it is set to false, the tour will always run)
24
26
 
25
- The first argument of each <code>step</code> must be the id of whatever element it should be anchored to
27
+ The first argument of each <code>step</code> must be the id of whatever element it should be anchored to
28
+
29
+ Customization
30
+ -------------
31
+
32
+ ### Look and feel
33
+ The tour steps can be customized by applying a CSS class to the tips. Included with the gem is a <code>bootstrap_tour</code> class that (sort of) matches the twitter bootstrap look and feel
34
+
35
+ = joyride :chooseID, :tip_class => "bootstrap_tour" do |j|
36
+ = j.step :section1, "This is the first step"
37
+ = j.step :section2, "This is the second step", :html => {:class => "my_custom_tip"}
38
+ Additionally, an idividual tip can be customized using the <code>:html</code> argument, as shown above
39
+
40
+ ### Callbacks
41
+ Javascript callbacks can be added for each step (called as each tour step is rendered), or for the tour as whole (called when the entire tour is finished)
42
+
43
+ = joyride :chooseID,
44
+ :after_step_callback => "alert('step')",
45
+ :after_tour_callback => "alert('done!')" do |j|
46
+ = j.step :section1, "This is the first step"
47
+
48
+ ### Animation
49
+ An <code>:animation</code> parameter can be applied to the tour as a whole; valid values are <code>:pop</code> (default) and <code>:fade</code>.
50
+
51
+ = joyride :chooseID, :animation => :fade do |j|
52
+ = j.step :section1, "This is the first step"
@@ -1,12 +1,11 @@
1
1
  /*
2
- * jQuery Joyride Plugin 1.0.3
2
+ * jQuery Joyride Plugin 1.0.4
3
3
  * www.ZURB.com/playground
4
4
  * Copyright 2011, ZURB
5
5
  * Free to use under the MIT license.
6
6
  * http://www.opensource.org/licenses/mit-license.php
7
7
  */
8
8
 
9
-
10
9
  (function($) {
11
10
  $.fn.joyride = function(options) {
12
11
 
@@ -31,9 +30,6 @@
31
30
  'postStepCallback': $.noop // A method to call after each step
32
31
  };
33
32
 
34
-
35
-
36
-
37
33
  var options = $.extend(settings, options);
38
34
 
39
35
  return this.each(function() {
@@ -49,9 +45,9 @@
49
45
  timerIndicatorInstance,
50
46
  timerIndicatorTemplate = '<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',
51
47
  tipTemplate = function(tipClass, index, buttonText, self) { return '<div class="joyride-tip-guide ' +
52
- tipClass + '" id="joyRidePopup' + index + '"><span class="joyride-nub"></span>' +
48
+ tipClass + '" id="joyRidePopup' + index + '"><span class="joyride-nub"></span><div class="joyride-content-wrapper">' +
53
49
  $(self).html() + buttonText + '<a href="#close" class="joyride-close-tip">X</a>' +
54
- timerIndicatorInstance + '</div>'; },
50
+ timerIndicatorInstance + '</div></div>'; },
55
51
  tipLayout = function(tipClass, index, buttonText, self) {
56
52
  if (index == 0 && settings.startTimerOnClick && settings.timer > 0 || settings.timer == 0) {
57
53
  timerIndicatorInstance = '';
@@ -130,7 +126,6 @@
130
126
  currentTip.addClass('right');
131
127
  }
132
128
 
133
-
134
129
  if (currentTip.length === 0) return;
135
130
 
136
131
  if (count < tipContent.length) {
@@ -161,21 +156,35 @@
161
156
  // Tip Location
162
157
  // ++++++++++++++++++
163
158
 
164
- if (settings.tipLocation == "bottom") {
165
- currentTip.offset({
166
- top: (currentTipPosition.top + currentParentHeight + nubHeight),
167
- left: currentTip.hasClass('right') ? (currentTipPosition.left - bodyOffset.left-currentTipWidth + 3*parseInt(nubOffset)) : (currentTipPosition.left - bodyOffset.left)
168
- });
169
- currentTip.children('.joyride-nub').addClass('top').removeClass('bottom');
170
- } else if (settings.tipLocation == "top") {
171
- if (currentTipHeight >= currentTipPosition.top) {
172
- currentTip.offset({top: ((currentTipPosition.top + currentParentHeight + nubHeight) - bodyOffset.top),
159
+ if (Modernizr.mq('only screen and (max-width: 769px)')) {
160
+ //If the user is "mobile"
161
+ if (settings.tipLocation == "bottom") {
162
+ currentTip.offset({top: (currentTipPosition.top + currentParentHeight + nubHeight)});
163
+ currentTip.children('.joyride-nub').addClass('top').removeClass('bottom').css({ left: (currentTipPosition.left - bodyOffset.left) });
164
+ } else if (settings.tipLocation == "top") {
165
+ if (currentTipHeight >= currentTipPosition.top) {
166
+ currentTip.offset({top: ((currentTipPosition.top + currentParentHeight + nubHeight) - bodyOffset.top)});
167
+ currentTip.children('.joyride-nub').addClass('top').removeClass('bottom').css({ left: (currentTipPosition.left - bodyOffset.left) });
168
+ } else {
169
+ currentTip.offset({top: ((currentTipPosition.top) - (currentTipHeight + bodyOffset.top + nubHeight))});
170
+ currentTip.children('.joyride-nub').addClass('bottom').removeClass('top').css({ left: (currentTipPosition.left - bodyOffset.left)});
171
+ }
172
+ }
173
+ } else {
174
+ if (settings.tipLocation == "bottom") {
175
+ currentTip.offset({top: (currentTipPosition.top + currentParentHeight + nubHeight),
173
176
  left: (currentTipPosition.left - bodyOffset.left)});
174
177
  currentTip.children('.joyride-nub').addClass('top').removeClass('bottom');
175
- } else {
176
- currentTip.offset({top: ((currentTipPosition.top) - (currentTipHeight + bodyOffset.top + nubHeight)),
177
- left: (currentTipPosition.left - bodyOffset.left)});
178
- currentTip.children('.joyride-nub').addClass('bottom').removeClass('top');
178
+ } else if (settings.tipLocation == "top") {
179
+ if (currentTipHeight >= currentTipPosition.top) {
180
+ currentTip.offset({top: ((currentTipPosition.top + currentParentHeight + nubHeight) - bodyOffset.top),
181
+ left: (currentTipPosition.left - bodyOffset.left)});
182
+ currentTip.children('.joyride-nub').addClass('top').removeClass('bottom');
183
+ } else {
184
+ currentTip.offset({top: ((currentTipPosition.top) - (currentTipHeight + bodyOffset.top + nubHeight)),
185
+ left: (currentTipPosition.left - bodyOffset.left)});
186
+ currentTip.children('.joyride-nub').addClass('bottom').removeClass('top');
187
+ }
179
188
  }
180
189
  }
181
190
 
@@ -227,27 +236,67 @@
227
236
  }
228
237
  }
229
238
 
230
- if (!settings.inline || !settings.cookieMonster || !$.cookie(settings.cookieName)) {
231
- $(window).resize(function() {
232
- var parentElementID = $(tipContent[prevCount]).data('id'),
239
+ if (!settings.inline || !settings.cookieMonster || !$.cookie(settings.cookieName)) {
240
+ $(window).resize(function () {
241
+ var parentElementID = $(tipContent[prevCount]).data('id'),
233
242
  currentTipPosition = $('#' + parentElementID).offset(),
234
243
  currentParentHeight = $('#' + parentElementID).outerHeight(),
235
244
  currentTipHeight = $('#joyRidePopup' + prevCount).outerHeight(),
236
245
  nubHeight = Math.ceil($('.joyride-nub').outerHeight() / 2);
246
+ if (Modernizr.mq('only screen and (max-width: 769px)')) {
237
247
  if (settings.tipLocation == "bottom") {
238
- $('#joyRidePopup' + prevCount).offset({top: (currentTipPosition.top + currentParentHeight + nubHeight),
239
- left: currentTipPosition.left});
240
- } else if (settings.tipLocation == "top") {
248
+ $('#joyRidePopup' + prevCount).offset({
249
+ top: (currentTipPosition.top + currentParentHeight + nubHeight),
250
+ left: 0
251
+ });
252
+ $('#joyRidePopup' + prevCount).children('.joyride-nub').addClass('top').removeClass('bottom').css({ left: (currentTipPosition.left - bodyOffset.left) });
253
+ }
254
+ else if (settings.tipLocation == "top") {
241
255
  if (currentTipPosition.top <= currentTipHeight) {
242
- $('#joyRidePopup' + prevCount).offset({top: (currentTipPosition.top + nubHeight + currentParentHeight),
243
- left: currentTipPosition.left});
244
- } else {
245
- $('#joyRidePopup' + prevCount).offset({top: ((currentTipPosition.top) - (currentTipHeight + nubHeight)),
246
- left: currentTipPosition.left});
256
+ $('#joyRidePopup' + prevCount).offset({
257
+ top: (currentTipPosition.top + nubHeight + currentParentHeight) ,
258
+ left: 0
259
+ });
260
+ $('#joyRidePopup' + prevCount).children('.joyride-nub').addClass('top').removeClass('bottom').css({ left: (currentTipPosition.left - bodyOffset.left) });
261
+
262
+ }
263
+ else {
264
+ $('#joyRidePopup' + prevCount).offset({
265
+ top: ((currentTipPosition.top) - (currentTipHeight + nubHeight)) ,
266
+ left: 0
267
+ });
268
+ $('#joyRidePopup' + prevCount).children('.joyride-nub').addClass('bottom').removeClass('top').css({ left: (currentTipPosition.left - bodyOffset.left) });
269
+
247
270
  }
248
271
  }
249
- });
250
- }
272
+ }
273
+ else {
274
+ if (settings.tipLocation == "bottom") {
275
+ $('#joyRidePopup' + prevCount).offset({
276
+ top: (currentTipPosition.top + currentParentHeight + nubHeight),
277
+ left: currentTipPosition.left
278
+ });
279
+ $('#joyRidePopup' + prevCount).children('.joyride-nub').addClass('top').removeClass('bottom').css({ left: '' });
280
+ }
281
+ else if (settings.tipLocation == "top") {
282
+ if (currentTipPosition.top <= currentTipHeight) {
283
+ $('#joyRidePopup' + prevCount).offset({
284
+ top: (currentTipPosition.top + nubHeight + currentParentHeight),
285
+ left: currentTipPosition.left
286
+ });
287
+ $('#joyRidePopup' + prevCount).children('.joyride-nub').addClass('top').removeClass('bottom').css({ left: '' });
288
+ }
289
+ else {
290
+ $('#joyRidePopup' + prevCount).offset({
291
+ top: ((currentTipPosition.top) - (currentTipHeight + nubHeight)),
292
+ left: currentTipPosition.left
293
+ });
294
+ $('#joyRidePopup' + prevCount).children('.joyride-nub').addClass('bottom').removeClass('top').css({ left: '' });
295
+ }
296
+ }
297
+ }
298
+ });
299
+ }
251
300
 
252
301
  // +++++++++++++++
253
302
  // Timer
@@ -268,7 +317,7 @@
268
317
  if (cookie) {
269
318
  $.cookie(settings.cookieName, 'ridden', { expires: 365, domain: settings.cookieDomain });
270
319
  }
271
- $(self).parent().hide();
320
+ $(self).parent().parent().hide();
272
321
  if (settings.postRideCallback != $.noop) {
273
322
  settings.postRideCallback();
274
323
  }
@@ -338,4 +387,4 @@
338
387
  var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
339
388
  return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
340
389
  };
341
- })(jQuery);
390
+ })(jQuery);
@@ -16,29 +16,50 @@ body
16
16
  z-index: 10
17
17
  font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", Helvetica, Arial, Lucida, sans-serif
18
18
  font-weight: normal
19
- -moz-border-radius: $joyride_tip_border_radius
20
- -webkit-border-radius: $joyride_tip_border_radius
21
- border-radius: $joyride_tip_border_radius
19
+ -moz-border-radius: 4px
20
+ -webkit-border-radius: 4px
21
+ border-radius: 4px
22
+
23
+ .joyride-content-wrapper
24
+ padding: 10px 10px 10px 15px
25
+
26
+ /* Mobile */
27
+
28
+ @media only screen and (max-width: 769px)
29
+ .joyride-tip-guide
30
+ width: 100%
31
+ -moz-border-radius: 0
32
+ -webkit-border-radius: 0
33
+ border-radius: 0
34
+ .joyride-tip-guide-wrapper
35
+ width: 100%
36
+
37
+ /* Add a little css triangle pip, older browser just miss out on the fanciness of it */
38
+
39
+ .joyride-tip-guide
22
40
  span.joyride-nub
23
41
  display: block
24
42
  position: absolute
25
43
  left: $joyride_tip_nub_offset_left
26
44
  width: 0
27
45
  height: 0
28
- border: solid $joyride_tip_nub_height
46
+ border: solid 14px
47
+ border: solid 14px
29
48
  &.top
30
49
  border-top-color: transparent !important
31
50
  border-left-color: transparent !important
32
51
  border-right-color: transparent !important
33
- border-bottom-color: $joyride_tip_background
34
- top: $joyride_tip_nub_height*-2
52
+ border-bottom-color: #000
53
+ border-bottom-color: rgba(0, 0, 0, 0.8)
54
+ top: -28px
35
55
  bottom: none
36
56
  &.bottom
37
57
  border-bottom-color: transparent !important
38
58
  border-left-color: transparent !important
39
59
  border-right-color: transparent !important
40
- border-top-color: $joyride_tip_background !important
41
- bottom: $joyride_tip_nub_height*-2
60
+ border-top-color: #000
61
+ border-top-color: rgba(0, 0, 0, 0.8) !important
62
+ bottom: -28px
42
63
  bottom: none
43
64
  &.right
44
65
  left: -1*$joyride_tip_width
@@ -63,7 +84,7 @@ body
63
84
  font-size: 14px
64
85
  p
65
86
  margin: 0 0 18px 0
66
- font-size: $joyride_tip_text_size
87
+ font-size: 14px
67
88
  line-height: 18px
68
89
  a
69
90
  color: rgb(255, 255, 255)
@@ -82,7 +103,7 @@ body
82
103
  color: rgb(255, 255, 255)
83
104
  float: left
84
105
  margin: 0 6px 8px 0px
85
- border: solid 1px darken(desaturate($joyride_tip_button_color,50%),15%)
106
+ border: solid 1px rgb(0, 60, 180)
86
107
  background: $joyride_tip_button_color
87
108
  background: -moz-linear-gradient(top, $joyride_tip_button_color 0%, $joyride_tip_button_color_2 100%)
88
109
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $joyride_tip_button_color), color-stop(100%, $joyride_tip_button_color_2))
@@ -99,9 +120,10 @@ body
99
120
  -moz-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.3) inset
100
121
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.3) inset
101
122
 
123
+
102
124
  .joyride-next-tip:hover
103
125
  color: rgb(255, 255, 255) !important
104
- border: solid 1px darken(desaturate($joyride_tip_button_color,50%),15%) !important
126
+ border: solid 1px rgb(0, 60, 180) !important
105
127
  background: $joyride_tip_button_hover_color
106
128
  background: -moz-linear-gradient(top, $joyride_tip_button_hover_color 0%, $joyride_tip_button_hover_color_2 100%)
107
129
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $joyride_tip_button_hover_color), color-stop(100%, $joyride_tip_button_hover_color_2))
@@ -129,11 +151,12 @@ body
129
151
  position: absolute
130
152
  right: 10px
131
153
  top: 10px
132
- color: rgba(255, 255, 255, 0.6) !important
154
+ color: rgba(255, 255, 255, 0.4) !important
133
155
  text-decoration: none
134
156
  font-family: Verdana, sans-serif
135
157
  font-size: 10px
136
158
  font-weight: bold
137
159
  border-bottom: none !important
138
160
  &:hover
139
- color: rgba(255, 255, 255, 0.9) !important
161
+ color: rgba(255, 255, 255, 0.9) !important
162
+
@@ -1,3 +1,3 @@
1
1
  module Joyride
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -0,0 +1,18 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Declare your gem's dependencies in joyride-rails.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gem "rails", "~>3.2.2"
7
+
8
+ # jquery-rails is used by the dummy application
9
+ gem "jquery-rails"
10
+ gem "joyride-rails"
11
+
12
+ # Declare any dependencies that are still in development here instead of in
13
+ # your gemspec. These might include edge Rails or gems from your path or
14
+ # Git. Remember to move these dependencies to your gemspec before releasing
15
+ # your gem to rubygems.org.
16
+
17
+ # To use debugger
18
+ # gem 'ruby-debug19', :require => 'ruby-debug'
@@ -0,0 +1,97 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (3.2.3)
5
+ actionpack (= 3.2.3)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.3)
8
+ activemodel (= 3.2.3)
9
+ activesupport (= 3.2.3)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.1)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.1.2)
17
+ activemodel (3.2.3)
18
+ activesupport (= 3.2.3)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.3)
21
+ activemodel (= 3.2.3)
22
+ activesupport (= 3.2.3)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.3)
26
+ activemodel (= 3.2.3)
27
+ activesupport (= 3.2.3)
28
+ activesupport (3.2.3)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ arel (3.0.2)
32
+ builder (3.0.0)
33
+ erubis (2.7.0)
34
+ haml (3.1.6)
35
+ hike (1.2.1)
36
+ i18n (0.6.0)
37
+ journey (1.0.3)
38
+ joyride-rails (0.0.6)
39
+ haml (~> 3.1.4)
40
+ jquery-rails
41
+ rails (~> 3.2.2)
42
+ sass (~> 3.1.16)
43
+ jquery-rails (2.0.2)
44
+ railties (>= 3.2.0, < 5.0)
45
+ thor (~> 0.14)
46
+ json (1.7.3)
47
+ mail (2.4.4)
48
+ i18n (>= 0.4.0)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
51
+ mime-types (1.18)
52
+ multi_json (1.3.6)
53
+ polyglot (0.3.3)
54
+ rack (1.4.1)
55
+ rack-cache (1.2)
56
+ rack (>= 0.4)
57
+ rack-ssl (1.3.2)
58
+ rack
59
+ rack-test (0.6.1)
60
+ rack (>= 1.0)
61
+ rails (3.2.3)
62
+ actionmailer (= 3.2.3)
63
+ actionpack (= 3.2.3)
64
+ activerecord (= 3.2.3)
65
+ activeresource (= 3.2.3)
66
+ activesupport (= 3.2.3)
67
+ bundler (~> 1.0)
68
+ railties (= 3.2.3)
69
+ railties (3.2.3)
70
+ actionpack (= 3.2.3)
71
+ activesupport (= 3.2.3)
72
+ rack-ssl (~> 1.3.2)
73
+ rake (>= 0.8.7)
74
+ rdoc (~> 3.4)
75
+ thor (~> 0.14.6)
76
+ rake (0.9.2.2)
77
+ rdoc (3.12)
78
+ json (~> 1.4)
79
+ sass (3.1.19)
80
+ sprockets (2.1.3)
81
+ hike (~> 1.2)
82
+ rack (~> 1.0)
83
+ tilt (~> 1.1, != 1.3.0)
84
+ thor (0.14.6)
85
+ tilt (1.3.3)
86
+ treetop (1.4.10)
87
+ polyglot
88
+ polyglot (>= 0.3.1)
89
+ tzinfo (0.3.33)
90
+
91
+ PLATFORMS
92
+ ruby
93
+
94
+ DEPENDENCIES
95
+ joyride-rails
96
+ jquery-rails
97
+ rails (~> 3.2.2)
@@ -14607,3 +14607,55 @@ Served asset /joyride/joyride.js - 304 Not Modified (0ms)
14607
14607
 
14608
14608
  Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-30 17:30:30 -0400
14609
14609
  Served asset /application.js - 304 Not Modified (0ms)
14610
+
14611
+
14612
+ Started GET "/pages/custom_class_test" for 127.0.0.1 at 2012-05-30 17:38:36 -0400
14613
+ Processing by PagesController#custom_class_test as HTML
14614
+ Rendered pages/content_to_tour_1.html.haml (4.9ms)
14615
+ Rendered pages/custom_class_test.html.haml within layouts/test_case (8.3ms)
14616
+ Compiled joyride/joyride-1.0.3.css (71ms) (pid 40468)
14617
+ Compiled joyride/bootstrap_tour.css (8ms) (pid 40468)
14618
+ Compiled joyride/joyride.css (118ms) (pid 40468)
14619
+ Compiled application.css (186ms) (pid 40468)
14620
+ Compiled jquery.js (2ms) (pid 40468)
14621
+ Compiled jquery_ujs.js (0ms) (pid 40468)
14622
+ Compiled joyride/jquery.joyride-1.0.3.js (0ms) (pid 40468)
14623
+ Compiled joyride/joyride.js (69ms) (pid 40468)
14624
+ Compiled application.js (85ms) (pid 40468)
14625
+ Completed 200 OK in 364ms (Views: 363.5ms)
14626
+
14627
+
14628
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14629
+ Served asset /application.css - 304 Not Modified (15ms)
14630
+
14631
+
14632
+ Started GET "/assets/joyride/bootstrap_tour.css?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14633
+ Served asset /joyride/bootstrap_tour.css - 304 Not Modified (3ms)
14634
+
14635
+
14636
+ Started GET "/assets/joyride/joyride.css?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14637
+ Served asset /joyride/joyride.css - 304 Not Modified (5ms)
14638
+
14639
+
14640
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14641
+ Served asset /jquery.js - 304 Not Modified (5ms)
14642
+
14643
+
14644
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14645
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
14646
+
14647
+
14648
+ Started GET "/assets/joyride/joyride-1.0.3.css?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14649
+ Served asset /joyride/joyride-1.0.3.css - 304 Not Modified (3ms)
14650
+
14651
+
14652
+ Started GET "/assets/joyride/jquery.joyride-1.0.3.js?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14653
+ Served asset /joyride/jquery.joyride-1.0.3.js - 304 Not Modified (2ms)
14654
+
14655
+
14656
+ Started GET "/assets/joyride/joyride.js?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14657
+ Served asset /joyride/joyride.js - 304 Not Modified (6ms)
14658
+
14659
+
14660
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-30 17:38:37 -0400
14661
+ Served asset /application.js - 304 Not Modified (6ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joyride-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-30 00:00:00.000000000 Z
12
+ date: 2012-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -115,9 +115,9 @@ extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
117
  - app/assets/javascripts/joyride/joyride.js
118
- - app/assets/javascripts/joyride/jquery.joyride-1.0.3.js
118
+ - app/assets/javascripts/joyride/jquery.joyride-1.0.4.js
119
119
  - app/assets/stylesheets/joyride/bootstrap_tour.css.sass
120
- - app/assets/stylesheets/joyride/joyride-1.0.3.css.sass
120
+ - app/assets/stylesheets/joyride/joyride-1.0.4.css.sass
121
121
  - app/assets/stylesheets/joyride/joyride.css
122
122
  - app/assets/stylesheets/joyride/variables.sass
123
123
  - app/controllers/joyride/application_controller.rb
@@ -162,6 +162,8 @@ files:
162
162
  - test/dummy/config/locales/en.yml
163
163
  - test/dummy/config/routes.rb
164
164
  - test/dummy/config.ru
165
+ - test/dummy/Gemfile
166
+ - test/dummy/Gemfile.lock
165
167
  - test/dummy/log/development.log
166
168
  - test/dummy/public/404.html
167
169
  - test/dummy/public/422.html
@@ -172,52 +174,30 @@ files:
172
174
  - test/dummy/script/rails
173
175
  - test/dummy/test/functional/pages_controller_test.rb
174
176
  - test/dummy/test/unit/helpers/pages_helper_test.rb
175
- - test/dummy/tmp/cache/assets/C4A/570/sprockets%2F15a04a49f19710781329a870b8d1f352
176
177
  - test/dummy/tmp/cache/assets/C5A/BD0/sprockets%2F6e8287461f7b19335a41a29ed9195620
177
- - test/dummy/tmp/cache/assets/C77/D30/sprockets%2Fca3a855423436369a12f4245be3c5545
178
178
  - test/dummy/tmp/cache/assets/C91/370/sprockets%2F04d2120f184f1e702308355e0ed1b2b3
179
- - test/dummy/tmp/cache/assets/C91/E40/sprockets%2F880d46ff1082976e0eb68c528641b089
180
179
  - test/dummy/tmp/cache/assets/CAC/040/sprockets%2F0b7d050189881e4fd2073328d92e1b2f
181
180
  - test/dummy/tmp/cache/assets/CB3/440/sprockets%2Fafc3316274f038465ee4b74932bc8517
182
181
  - test/dummy/tmp/cache/assets/CCA/0C0/sprockets%2F6c3e053393afe303432ca73f1b41490b
183
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
184
- - test/dummy/tmp/cache/assets/CDE/440/sprockets%2Fb555f0d8c0d1671bc81430837d84dc92
185
- - test/dummy/tmp/cache/assets/CE1/1C0/sprockets%2Fe704f02989daa684b32c3f72a4513f83
186
182
  - test/dummy/tmp/cache/assets/CE1/4C0/sprockets%2Fbc6a336f1607282d2dc281fb6269a597
187
183
  - test/dummy/tmp/cache/assets/D0D/670/sprockets%2F8c13b1a4b596190f1c61f4cf92b38e36
188
184
  - test/dummy/tmp/cache/assets/D18/840/sprockets%2F50c1885539f61359c48af74fcae1df31
189
185
  - test/dummy/tmp/cache/assets/D19/220/sprockets%2F8c12a483b1e48edec3c45980298457be
190
- - test/dummy/tmp/cache/assets/D1E/2A0/sprockets%2F8d5d60255600aa010a32e1d1a9bc6db6
191
- - test/dummy/tmp/cache/assets/D2A/450/sprockets%2F58e369b37e5157ea746a485eea17e9f7
192
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
193
- - test/dummy/tmp/cache/assets/D3F/A90/sprockets%2Ff6e315f67f26b1665d870ba3fb8050db
194
186
  - test/dummy/tmp/cache/assets/D41/CB0/sprockets%2Fbf3bc772277b2a348a71f4d88c1e7c25
195
187
  - test/dummy/tmp/cache/assets/D4B/720/sprockets%2Fe16c199f91934eaff7bf97321504da2f
196
188
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
197
189
  - test/dummy/tmp/cache/assets/D57/E70/sprockets%2Ff3d85fee7084763c5a76a1ea676f962f
198
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
199
190
  - test/dummy/tmp/cache/assets/D5E/640/sprockets%2Fab4ee5924db252a15f52b2cfa36b1709
200
- - test/dummy/tmp/cache/assets/D65/BA0/sprockets%2F2713bd3b713d71801af63fadc3b6dc89
201
- - test/dummy/tmp/cache/assets/D6E/BC0/sprockets%2Fad954413ca960fe041e137d4cd7afd69
202
- - test/dummy/tmp/cache/assets/D79/8D0/sprockets%2F9a557ef8b2aceee46711709937c44acc
203
- - test/dummy/tmp/cache/assets/D9D/5B0/sprockets%2Ff66dd1c082fb7b7730090dbfbff961b2
204
- - test/dummy/tmp/cache/assets/DA1/950/sprockets%2F9eba13b549b22c3d8ea4aad8489ba893
205
191
  - test/dummy/tmp/cache/assets/DA6/120/sprockets%2Fc5880aca76ccbb51f9388362e8afc1e6
206
- - test/dummy/tmp/cache/assets/DA7/230/sprockets%2F7ae10239eda2588a95fdcc7d871bef52
207
192
  - test/dummy/tmp/cache/assets/DAA/7D0/sprockets%2Fdee067d8b23e8598d773bbea0df5036f
208
193
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
209
- - test/dummy/tmp/cache/assets/DE0/690/sprockets%2F2827893fa90fd9a8521fdddcef63a8be
210
194
  - test/dummy/tmp/cache/assets/DF3/6F0/sprockets%2Ffba93885ced0911e16ae73b1fccb1a4c
211
- - test/dummy/tmp/cache/assets/E00/660/sprockets%2F6dfe5f0c215cba9cb22b3e08dc7f5f88
212
- - test/dummy/tmp/cache/assets/E02/6C0/sprockets%2Ff206e49edc9afcd023989d53a4dafbe1
213
195
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
214
- - test/dummy/tmp/cache/assets/E05/F10/sprockets%2Fb3d9b0e88cdded276ebdce333e338a85
215
196
  - test/dummy/tmp/cache/assets/E5E/250/sprockets%2F2fac6daf6cdc1c4dc9fce4b618114f8f
216
197
  - test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/bootstrap_tour.css.sassc
217
198
  - test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/joyride-1.0.3.css.sassc
218
199
  - test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/variables.sassc
219
200
  - test/dummy/tmp/cache/sass/6a91e0ce0789596fee5bc4ff3f591470f3aec0de/application.css.sassc
220
- - test/dummy/tmp/cache/sass/b6a29b56c31fc2a931d217c92dbad0128a12584a/application.css.sassc
221
201
  - test/integration/navigation_test.rb
222
202
  - test/joyride_test.rb
223
203
  - test/test_helper.rb
@@ -235,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
215
  version: '0'
236
216
  segments:
237
217
  - 0
238
- hash: -4034871849675458488
218
+ hash: -3664437848857895596
239
219
  required_rubygems_version: !ruby/object:Gem::Requirement
240
220
  none: false
241
221
  requirements:
@@ -244,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
224
  version: '0'
245
225
  segments:
246
226
  - 0
247
- hash: -4034871849675458488
227
+ hash: -3664437848857895596
248
228
  requirements: []
249
229
  rubyforge_project:
250
230
  rubygems_version: 1.8.24
@@ -282,6 +262,8 @@ test_files:
282
262
  - test/dummy/config/locales/en.yml
283
263
  - test/dummy/config/routes.rb
284
264
  - test/dummy/config.ru
265
+ - test/dummy/Gemfile
266
+ - test/dummy/Gemfile.lock
285
267
  - test/dummy/log/development.log
286
268
  - test/dummy/public/404.html
287
269
  - test/dummy/public/422.html
@@ -292,52 +274,30 @@ test_files:
292
274
  - test/dummy/script/rails
293
275
  - test/dummy/test/functional/pages_controller_test.rb
294
276
  - test/dummy/test/unit/helpers/pages_helper_test.rb
295
- - test/dummy/tmp/cache/assets/C4A/570/sprockets%2F15a04a49f19710781329a870b8d1f352
296
277
  - test/dummy/tmp/cache/assets/C5A/BD0/sprockets%2F6e8287461f7b19335a41a29ed9195620
297
- - test/dummy/tmp/cache/assets/C77/D30/sprockets%2Fca3a855423436369a12f4245be3c5545
298
278
  - test/dummy/tmp/cache/assets/C91/370/sprockets%2F04d2120f184f1e702308355e0ed1b2b3
299
- - test/dummy/tmp/cache/assets/C91/E40/sprockets%2F880d46ff1082976e0eb68c528641b089
300
279
  - test/dummy/tmp/cache/assets/CAC/040/sprockets%2F0b7d050189881e4fd2073328d92e1b2f
301
280
  - test/dummy/tmp/cache/assets/CB3/440/sprockets%2Fafc3316274f038465ee4b74932bc8517
302
281
  - test/dummy/tmp/cache/assets/CCA/0C0/sprockets%2F6c3e053393afe303432ca73f1b41490b
303
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
304
- - test/dummy/tmp/cache/assets/CDE/440/sprockets%2Fb555f0d8c0d1671bc81430837d84dc92
305
- - test/dummy/tmp/cache/assets/CE1/1C0/sprockets%2Fe704f02989daa684b32c3f72a4513f83
306
282
  - test/dummy/tmp/cache/assets/CE1/4C0/sprockets%2Fbc6a336f1607282d2dc281fb6269a597
307
283
  - test/dummy/tmp/cache/assets/D0D/670/sprockets%2F8c13b1a4b596190f1c61f4cf92b38e36
308
284
  - test/dummy/tmp/cache/assets/D18/840/sprockets%2F50c1885539f61359c48af74fcae1df31
309
285
  - test/dummy/tmp/cache/assets/D19/220/sprockets%2F8c12a483b1e48edec3c45980298457be
310
- - test/dummy/tmp/cache/assets/D1E/2A0/sprockets%2F8d5d60255600aa010a32e1d1a9bc6db6
311
- - test/dummy/tmp/cache/assets/D2A/450/sprockets%2F58e369b37e5157ea746a485eea17e9f7
312
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
313
- - test/dummy/tmp/cache/assets/D3F/A90/sprockets%2Ff6e315f67f26b1665d870ba3fb8050db
314
286
  - test/dummy/tmp/cache/assets/D41/CB0/sprockets%2Fbf3bc772277b2a348a71f4d88c1e7c25
315
287
  - test/dummy/tmp/cache/assets/D4B/720/sprockets%2Fe16c199f91934eaff7bf97321504da2f
316
288
  - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
317
289
  - test/dummy/tmp/cache/assets/D57/E70/sprockets%2Ff3d85fee7084763c5a76a1ea676f962f
318
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
319
290
  - test/dummy/tmp/cache/assets/D5E/640/sprockets%2Fab4ee5924db252a15f52b2cfa36b1709
320
- - test/dummy/tmp/cache/assets/D65/BA0/sprockets%2F2713bd3b713d71801af63fadc3b6dc89
321
- - test/dummy/tmp/cache/assets/D6E/BC0/sprockets%2Fad954413ca960fe041e137d4cd7afd69
322
- - test/dummy/tmp/cache/assets/D79/8D0/sprockets%2F9a557ef8b2aceee46711709937c44acc
323
- - test/dummy/tmp/cache/assets/D9D/5B0/sprockets%2Ff66dd1c082fb7b7730090dbfbff961b2
324
- - test/dummy/tmp/cache/assets/DA1/950/sprockets%2F9eba13b549b22c3d8ea4aad8489ba893
325
291
  - test/dummy/tmp/cache/assets/DA6/120/sprockets%2Fc5880aca76ccbb51f9388362e8afc1e6
326
- - test/dummy/tmp/cache/assets/DA7/230/sprockets%2F7ae10239eda2588a95fdcc7d871bef52
327
292
  - test/dummy/tmp/cache/assets/DAA/7D0/sprockets%2Fdee067d8b23e8598d773bbea0df5036f
328
293
  - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
329
- - test/dummy/tmp/cache/assets/DE0/690/sprockets%2F2827893fa90fd9a8521fdddcef63a8be
330
294
  - test/dummy/tmp/cache/assets/DF3/6F0/sprockets%2Ffba93885ced0911e16ae73b1fccb1a4c
331
- - test/dummy/tmp/cache/assets/E00/660/sprockets%2F6dfe5f0c215cba9cb22b3e08dc7f5f88
332
- - test/dummy/tmp/cache/assets/E02/6C0/sprockets%2Ff206e49edc9afcd023989d53a4dafbe1
333
295
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
334
- - test/dummy/tmp/cache/assets/E05/F10/sprockets%2Fb3d9b0e88cdded276ebdce333e338a85
335
296
  - test/dummy/tmp/cache/assets/E5E/250/sprockets%2F2fac6daf6cdc1c4dc9fce4b618114f8f
336
297
  - test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/bootstrap_tour.css.sassc
337
298
  - test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/joyride-1.0.3.css.sassc
338
299
  - test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/variables.sassc
339
300
  - test/dummy/tmp/cache/sass/6a91e0ce0789596fee5bc4ff3f591470f3aec0de/application.css.sassc
340
- - test/dummy/tmp/cache/sass/b6a29b56c31fc2a931d217c92dbad0128a12584a/application.css.sassc
341
301
  - test/integration/navigation_test.rb
342
302
  - test/joyride_test.rb
343
303
  - test/test_helper.rb