whereuat 0.0.8 → 0.0.9

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -1,8 +1,8 @@
1
1
  (function($) {
2
2
  $(function() {
3
- var popOver, tab;
3
+ var popOver, tab, stories;
4
4
 
5
- $("body").prepend("<div id='uat-bar'><a class='wua-go' href='#'>Show me what to test</a><div class='wua-pop-over wua-hide'></div></div>");
5
+ $("body").prepend("<div id='uat-bar'><a class='wua-go' href='#'>Show me what to test</a><div class='wua-pop-over'></div></div>");
6
6
  $("head").prepend("<link href='"+window.whereuat_stylesheet_url+"' media='screen' rel='stylesheet' type='text/css'>");
7
7
 
8
8
  popOver = $("#uat-bar .wua-pop-over");
@@ -17,6 +17,7 @@
17
17
  url: '/whereuat',
18
18
  success: function(response) {
19
19
  popOver.append(response);
20
+ stories = popOver.find("ol");
20
21
  slideOut();
21
22
  }
22
23
  });
@@ -28,15 +29,17 @@
28
29
  );
29
30
 
30
31
  function slideOut() {
31
- popOver.show("slide", {direction: "left"}, 500, function() {
32
- popOver.removeClass("wua-hide");
32
+ popOver.animate({width: '400px'}, 500, function() {
33
+ stories.fadeIn(100);
33
34
  });
34
35
  tab.animate({left: '400px'}, 510);
35
36
  }
36
37
 
37
38
  function slideIn() {
38
- tab.animate({left: '0px'}, 490);
39
- popOver.hide("slide", {direction: "left"}, 500);
39
+ stories.fadeOut(100, function() {
40
+ tab.animate({left: '0px'}, 490);
41
+ popOver.animate({width: '0px'}, 510);
42
+ });
40
43
  }
41
44
 
42
45
  $("#uat-bar a.wua-accept").live("click", function() {
@@ -42,6 +42,8 @@
42
42
  }
43
43
 
44
44
  #uat-bar .wua-pop-over {
45
+ min-height: 500px;
46
+ width: 0;
45
47
  clear: right;
46
48
  background: #212121;
47
49
  color: #efefef;
@@ -1,5 +1,5 @@
1
1
  - if @stories.length != 0
2
- %ol
2
+ %ol(style="display: none;")
3
3
  %li.wua-header Stories for you to test
4
4
  - @stories.each do |story|
5
5
  %li
data/whereuat.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{whereuat}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Askins", "Lachie Cox", "Ben Webster"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whereuat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Askins