whereuat 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -22,7 +22,7 @@ Use the following helper somewhere in your application layout (we recommend at t
22
22
 
23
23
  = whereuat
24
24
 
25
- The helper will insert a smidgeon of javascript (jquery is assumed to be available) that will add a tiny tab on the LHS
25
+ The helper will insert a smidgeon of javascript (jquery & jquery.ui are assumed to be available) that will add a tiny tab on the LHS
26
26
  of each page.
27
27
 
28
28
  Reload a page from your app and give it a whirl.
@@ -39,9 +39,9 @@ Reload a page from your app and give it a whirl.
39
39
 
40
40
  == Contributors
41
41
 
42
- Ben Askins
43
- Lachie Cox
44
- Ben Webster
42
+ * Ben Askins
43
+ * Lachie Cox
44
+ * Ben Webster
45
45
 
46
46
  == Copyright
47
47
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -2,11 +2,11 @@
2
2
  $(function() {
3
3
  var popOver, tab;
4
4
 
5
- $("body").prepend("<div id='uat-bar'><a class='go' href='#'>Show me what to test</a><div class='pop-over 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 wua-hide'></div></div>");
6
6
  $("head").prepend("<link href='"+window.whereuat_stylesheet_url+"' media='screen' rel='stylesheet' type='text/css'>");
7
7
 
8
- popOver = $("#uat-bar .pop-over");
9
- tab = $("#uat-bar a.go");
8
+ popOver = $("#uat-bar .wua-pop-over");
9
+ tab = $("#uat-bar a.wua-go");
10
10
 
11
11
  tab.toggle(
12
12
  function() {
@@ -28,7 +28,9 @@
28
28
  );
29
29
 
30
30
  function slideOut() {
31
- popOver.show("slide", {direction: "left"}, 500);
31
+ popOver.show("slide", {direction: "left"}, 500, function() {
32
+ popOver.removeClass("wua-hide");
33
+ });
32
34
  tab.animate({left: '400px'}, 510);
33
35
  }
34
36
 
@@ -37,14 +39,14 @@
37
39
  popOver.hide("slide", {direction: "left"}, 500);
38
40
  }
39
41
 
40
- $("#uat-bar a.accept").live("click", function() {
42
+ $("#uat-bar a.wua-accept").live("click", function() {
41
43
  var acceptLink, storyName, storyId, spinner, listItem;
42
44
 
43
45
  acceptLink = $(this);
44
46
 
45
- storyId = acceptLink.siblings(".story-id").html();
46
- storyName = acceptLink.siblings("span.story");
47
- spinner = acceptLink.siblings(".spinner");
47
+ storyId = acceptLink.siblings(".wua-story-id").html();
48
+ storyName = acceptLink.siblings("span.wua-story");
49
+ spinner = acceptLink.siblings(".wua-spinner");
48
50
  listItem = acceptLink.parent();
49
51
 
50
52
  spinner.fadeIn();
@@ -53,7 +55,7 @@
53
55
  method: "POST",
54
56
  url: '/whereuat/' + storyId + '/accept',
55
57
  success: function(response) {
56
- listItem.removeClass("rejected").addClass("accepted");
58
+ listItem.removeClass("wua-rejected").addClass("wua-accepted");
57
59
  spinner.fadeOut();
58
60
  }
59
61
  });
@@ -61,7 +63,7 @@
61
63
  return false;
62
64
  });
63
65
 
64
- $("#uat-bar a.reject").live("click",
66
+ $("#uat-bar a.wua-reject").live("click",
65
67
  function() {
66
68
  var rejectLink, reasonForm;
67
69
 
@@ -79,15 +81,15 @@
79
81
  }
80
82
  );
81
83
 
82
- $("#uat-bar button.reject").live("click", function() {
84
+ $("#uat-bar button.wua-reject").live("click", function() {
83
85
  var button, reasonForm, storyName, storyId, spinner, listItem;
84
86
 
85
87
  button = $(this);
86
88
 
87
89
  reasonForm = button.parent();
88
- storyId = reasonForm.siblings(".story-id").html();
89
- storyName = reasonForm.siblings("span.story");
90
- spinner = reasonForm.siblings(".spinner");
90
+ storyId = reasonForm.siblings(".wua-story-id").html();
91
+ storyName = reasonForm.siblings("span.wua-story");
92
+ spinner = reasonForm.siblings(".wua-spinner");
91
93
  listItem = reasonForm.parent();
92
94
 
93
95
  spinner.fadeIn();
@@ -95,9 +97,9 @@
95
97
  $.ajax({
96
98
  method: "POST",
97
99
  url: '/whereuat/' + storyId + '/reject',
98
- data: {reason: $(".reason").val()},
100
+ data: {reason: $(".wua-reason").val()},
99
101
  success: function(response) {
100
- listItem.removeClass("accepted").addClass("rejected");
102
+ listItem.removeClass("wua-accepted").addClass("wua-rejected");
101
103
  reasonForm.slideUp();
102
104
  spinner.fadeOut();
103
105
  }
@@ -19,7 +19,7 @@
19
19
  text-decoration: underline;
20
20
  }
21
21
 
22
- #uat-bar a.go {
22
+ #uat-bar a.wua-go {
23
23
  position: absolute;
24
24
  top: 0;
25
25
  left: 0;
@@ -37,11 +37,11 @@
37
37
  -webkit-border-top-right-radius: 10px
38
38
  }
39
39
 
40
- #uat-bar a.go:hover {
40
+ #uat-bar a.wua-go:hover {
41
41
  background-position: -2px -10px;
42
42
  }
43
43
 
44
- #uat-bar .pop-over {
44
+ #uat-bar .wua-pop-over {
45
45
  clear: right;
46
46
  background: #212121;
47
47
  color: #efefef;
@@ -51,7 +51,7 @@
51
51
  -webkit-border-bottom-right-radius: 10px;
52
52
  }
53
53
 
54
- #uat-bar .pop-over ol {
54
+ #uat-bar .wua-pop-over ol {
55
55
  height: 450px;
56
56
  overflow: auto;
57
57
  list-style: none;
@@ -59,30 +59,30 @@
59
59
  padding: 5px 10px
60
60
  }
61
61
 
62
- #uat-bar .pop-over li {
62
+ #uat-bar .wua-pop-over li {
63
63
  padding: .9em .75em .75em 95px;
64
64
  margin-bottom: 5px;
65
65
  position: relative;
66
66
  }
67
67
 
68
- #uat-bar .pop-over li.header {font-size: 18px;font-weight:normal;border-bottom: 1px solid #2c2c2c;margin-bottom: 1em;padding-left: 0;}
68
+ #uat-bar .wua-pop-over li.wua-header {font-size: 18px;font-weight:normal;border-bottom: 1px solid #2c2c2c;margin-bottom: 1em;padding-left: 0;}
69
69
 
70
- #uat-bar .pop-over li.rejected {
70
+ #uat-bar .wua-pop-over li.wua-rejected {
71
71
  background: #a82a30;
72
72
  }
73
73
 
74
- #uat-bar .pop-over li.accepted {
74
+ #uat-bar .wua-pop-over li.wua-accepted {
75
75
  background: #9ec74e;
76
76
  }
77
77
 
78
- #uat-bar .pop-over li:hover {
78
+ #uat-bar .wua-pop-over li:hover {
79
79
  background-color: #323232;
80
80
  cursor: pointer
81
81
  }
82
82
 
83
- #uat-bar .pop-over li.header:hover {background:transparent;}
83
+ #uat-bar .wua-pop-over li.wua-header:hover {background:transparent;}
84
84
 
85
- #uat-bar .hide {
85
+ #uat-bar .wua-hide {
86
86
  display: none;
87
87
  }
88
88
 
@@ -90,7 +90,7 @@
90
90
  clear: none;
91
91
  }
92
92
 
93
- #uat-bar .pop-over li a.accept {
93
+ #uat-bar .wua-pop-over li a.wua-accept {
94
94
  position: absolute;
95
95
  top: 0;
96
96
  left: 0;
@@ -102,11 +102,11 @@
102
102
  text-indent: -20000em;
103
103
  }
104
104
 
105
- #uat-bar .pop-over li a.accept:hover {
105
+ #uat-bar .wua-pop-over li a.wua-accept:hover {
106
106
  background-position: -9px -234px;
107
107
  }
108
108
 
109
- #uat-bar .pop-over li a.reject {
109
+ #uat-bar .wua-pop-over li a.wua-reject {
110
110
  position: absolute;
111
111
  top: 0;
112
112
  left: 29px;
@@ -118,11 +118,11 @@
118
118
  text-indent: -20000em;
119
119
  }
120
120
 
121
- #uat-bar .pop-over li a.reject:hover {
121
+ #uat-bar .wua-pop-over li a.wua-reject:hover {
122
122
  background-position: -9px -168px;
123
123
  }
124
124
 
125
- #uat-bar .pop-over li a.pivotal {
125
+ #uat-bar .wua-pop-over li a.wua-pivotal {
126
126
  position: absolute;
127
127
  top: 0;
128
128
  left: 60px;
@@ -134,14 +134,14 @@
134
134
  text-indent: -20000em;
135
135
  }
136
136
 
137
- #uat-bar .pop-over li a.pivotal:hover {
137
+ #uat-bar .wua-pop-over li a.wua-pivotal:hover {
138
138
  background-position: -9px -333px;
139
139
  }
140
140
 
141
141
 
142
142
  #uat-bar label {margin-top: 5px;padding-top:5px;display:block;font-weight:bold;border-top: 1px dashed #2c2c2c;}
143
143
  #uat-bar textarea {width: 250px;height: 40px;margin-bottom: 5px;}
144
- #uat-bar button.reject {
144
+ #uat-bar button.wua-reject {
145
145
  display:block;
146
146
  width: 60px;
147
147
  height: 25px;
@@ -1,18 +1,18 @@
1
1
  - if @stories.length != 0
2
2
  %ol
3
- %li.header Stories for you to test
3
+ %li.wua-header Stories for you to test
4
4
  - @stories.each do |story|
5
5
  %li
6
- %a.accept{:href => "#accept", :title => "accept"} accept
7
- %a.reject{:href => "#reject", :title => "reject"} reject
8
- %a.pivotal{:href => story.url, :title => "View in Pivotal Tracker"} View in Pivotal Tracker
9
- %img.hide.spinner(src="http://conversant.com.au/whereuat/spinner.gif")
10
- %span.story= story.name
11
- %span.story-id.hide= story.id
12
- %form.hide
6
+ %a.wua-accept{:href => "#accept", :title => "accept"} accept
7
+ %a.wua-reject{:href => "#reject", :title => "reject"} reject
8
+ %a.wua-pivotal{:href => story.url, :title => "View in Pivotal Tracker"} View in Pivotal Tracker
9
+ %img.wua-hide.wua-spinner(src="http://conversant.com.au/whereuat/spinner.gif")
10
+ %span.wua-story= story.name
11
+ %span.wua-story-id.wua-hide= story.id
12
+ %form.wua-hide
13
13
  %label(for="reason") Reason for rejection
14
- %textarea.reason(name="reason")
15
- %button.reject Reject
14
+ %textarea.wua-reason(name="reason")
15
+ %button.wua-reject Reject
16
16
  - else
17
17
  %ol
18
- %li.no-stories There are no stories for you to test at this time.
18
+ %li.wua-no-stories There are no stories for you to test at this time.
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.7"
8
+ s.version = "0.0.8"
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: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Askins