whereuat 0.0.10 → 0.0.11
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/{README.rdoc → README.md} +23 -17
- data/VERSION +1 -1
- data/lib/whereuat.rb +1 -2
- data/lib/whereuat/rack_app.rb +8 -8
- data/lib/whereuat/rails.rb +7 -0
- data/lib/whereuat/railtie.rb +7 -0
- data/whereuat.gemspec +8 -6
- metadata +8 -17
data/{README.rdoc → README.md}
RENAMED
@@ -1,48 +1,54 @@
|
|
1
|
-
|
1
|
+
# whereuat
|
2
2
|
|
3
3
|
Adds a slide out panel to your rails app that directs clients to test stories that have been marked as 'delivered' in Pivotal Tracker.
|
4
4
|
|
5
|
-
|
5
|
+

|
6
|
+
|
7
|
+
## Installing
|
6
8
|
|
7
9
|
Add whereuat to your Gemfile:
|
8
10
|
|
9
|
-
|
11
|
+
gem 'whereuat'
|
10
12
|
|
11
13
|
Create an initializer to add the Whereuat::RackApp to your middleware stack and configure your pivotal tracker api token and project id:
|
12
14
|
|
13
|
-
|
14
|
-
Rails.configuration.middleware.use(Whereuat::RackApp)
|
15
|
+
require 'whereuat'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
Whereuat.configure do |config|
|
18
|
+
config.pivotal_tracker_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
19
|
+
config.pivotal_tracker_project = 123456
|
20
|
+
end
|
20
21
|
|
21
22
|
Use the following helper somewhere in your application layout (we recommend at the end of the body):
|
22
23
|
|
23
|
-
|
24
|
+
= whereuat
|
25
|
+
|
26
|
+
If you're using Rails 3, tell it the HTML is safe
|
27
|
+
|
28
|
+
= whereuat.html_safe
|
29
|
+
|
30
|
+
The helper will insert a smidgeon of javascript that will add a tiny tab on the LHS of each page.
|
24
31
|
|
25
|
-
|
26
|
-
of each page.
|
32
|
+
**Please note** that whereuat requires `jQuery` to be included in your layout or templates already.
|
27
33
|
|
28
34
|
Reload a page from your app and give it a whirl.
|
29
35
|
|
30
|
-
|
36
|
+
## Note on Patches/Pull Requests
|
31
37
|
|
32
38
|
* Fork the project.
|
33
39
|
* Make your feature addition or bug fix.
|
34
|
-
* Add tests for it. This is important so I don't break it in a
|
35
|
-
future version unintentionally.
|
40
|
+
* Add tests for it. This is important so I don't break it in a future version unintentionally.
|
36
41
|
* Commit, do not mess with rakefile, version, or history.
|
37
42
|
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
38
43
|
* Send me a pull request. Bonus points for topic branches.
|
39
44
|
|
40
|
-
|
45
|
+
## Contributors
|
41
46
|
|
42
47
|
* Ben Askins
|
43
48
|
* Lachie Cox
|
44
49
|
* Ben Webster
|
50
|
+
* Daniel Neighman
|
45
51
|
|
46
|
-
|
52
|
+
## Copyright
|
47
53
|
|
48
54
|
Copyright (c) 2010 Plus2. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/lib/whereuat.rb
CHANGED
data/lib/whereuat/rack_app.rb
CHANGED
@@ -10,12 +10,12 @@ module Whereuat
|
|
10
10
|
|
11
11
|
def initialize(app)
|
12
12
|
@app = app
|
13
|
-
PT::Client.token = config.pivotal_tracker_token
|
13
|
+
PT::Client.token = config.pivotal_tracker_token
|
14
14
|
end
|
15
15
|
|
16
16
|
def call(env)
|
17
17
|
req = Rack::Request.new(env)
|
18
|
-
|
18
|
+
|
19
19
|
if env?('development') && dev_rsp = dev_mode(req)
|
20
20
|
return dev_rsp
|
21
21
|
end
|
@@ -40,10 +40,10 @@ module Whereuat
|
|
40
40
|
case req.path
|
41
41
|
when %r{^/whereuat/whereuat.css$}
|
42
42
|
[200, {"Content-Type" => "text/css"}, [ (root + 'lib/whereuat/stylesheets/whereuat.css').read ]]
|
43
|
-
|
43
|
+
|
44
44
|
when %r{^/whereuat/whereuat.js$}
|
45
45
|
[200, {"Content-Type" => "text/javascript"}, [ (root + 'lib/whereuat/javascript/whereuat.js').read ]]
|
46
|
-
|
46
|
+
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -53,16 +53,16 @@ module Whereuat
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def accept(pivotal_story_id)
|
56
|
-
story = project.stories.find(pivotal_story_id.to_i)
|
56
|
+
story = project.stories.find(pivotal_story_id.to_i)
|
57
57
|
story.update(:current_state => 'accepted')
|
58
|
-
render "Accepted"
|
58
|
+
render "Accepted"
|
59
59
|
end
|
60
60
|
|
61
61
|
def reject(pivotal_story_id, reason=nil)
|
62
|
-
story = project.stories.find(pivotal_story_id.to_i)
|
62
|
+
story = project.stories.find(pivotal_story_id.to_i)
|
63
63
|
story.update(:current_state => 'rejected')
|
64
64
|
story.notes.create(:text => "[rejected] #{reason}")
|
65
|
-
render "Rejected"
|
65
|
+
render "Rejected"
|
66
66
|
end
|
67
67
|
|
68
68
|
def project
|
data/whereuat.gemspec
CHANGED
@@ -5,22 +5,22 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{whereuat}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.11"
|
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"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-09}
|
13
13
|
s.description = %q{Adds a toolbar to your rails app that directs your clients to test stories that have been marked as 'delivered' in Pivotal Tracker }
|
14
14
|
s.email = %q{ben.askins@plus2.com.au}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
"README.
|
17
|
+
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".gitignore",
|
22
22
|
"LICENSE",
|
23
|
-
"README.
|
23
|
+
"README.md",
|
24
24
|
"Rakefile",
|
25
25
|
"VERSION",
|
26
26
|
"lib/whereuat.rb",
|
@@ -28,6 +28,8 @@ Gem::Specification.new do |s|
|
|
28
28
|
"lib/whereuat/helpers.rb",
|
29
29
|
"lib/whereuat/javascript/whereuat.js",
|
30
30
|
"lib/whereuat/rack_app.rb",
|
31
|
+
"lib/whereuat/rails.rb",
|
32
|
+
"lib/whereuat/railtie.rb",
|
31
33
|
"lib/whereuat/stylesheets/bg-uat.gif",
|
32
34
|
"lib/whereuat/stylesheets/spinner.gif",
|
33
35
|
"lib/whereuat/stylesheets/uat-bg.png",
|
@@ -41,14 +43,14 @@ Gem::Specification.new do |s|
|
|
41
43
|
s.homepage = %q{http://github.com/plus2/whereuat}
|
42
44
|
s.rdoc_options = ["--charset=UTF-8"]
|
43
45
|
s.require_paths = ["lib"]
|
44
|
-
s.rubygems_version = %q{1.3.
|
46
|
+
s.rubygems_version = %q{1.3.6}
|
45
47
|
s.summary = %q{Direct your clients to test delivered features}
|
46
48
|
|
47
49
|
if s.respond_to? :specification_version then
|
48
50
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
51
|
s.specification_version = 3
|
50
52
|
|
51
|
-
if Gem::Version.new(Gem::
|
53
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
52
54
|
s.add_runtime_dependency(%q<pivotal-tracker>, [">= 0.1.3"])
|
53
55
|
s.add_runtime_dependency(%q<haml>, [">= 2.2.0"])
|
54
56
|
s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whereuat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 11
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 11
|
9
|
+
version: 0.0.11
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Ben Askins
|
@@ -17,18 +16,16 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date: 2010-
|
19
|
+
date: 2010-08-09 00:00:00 +10:00
|
21
20
|
default_executable:
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|
24
23
|
name: pivotal-tracker
|
25
24
|
prerelease: false
|
26
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
26
|
requirements:
|
29
27
|
- - ">="
|
30
28
|
- !ruby/object:Gem::Version
|
31
|
-
hash: 29
|
32
29
|
segments:
|
33
30
|
- 0
|
34
31
|
- 1
|
@@ -40,11 +37,9 @@ dependencies:
|
|
40
37
|
name: haml
|
41
38
|
prerelease: false
|
42
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
40
|
requirements:
|
45
41
|
- - ">="
|
46
42
|
- !ruby/object:Gem::Version
|
47
|
-
hash: 7
|
48
43
|
segments:
|
49
44
|
- 2
|
50
45
|
- 2
|
@@ -56,11 +51,9 @@ dependencies:
|
|
56
51
|
name: rack
|
57
52
|
prerelease: false
|
58
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
54
|
requirements:
|
61
55
|
- - ">="
|
62
56
|
- !ruby/object:Gem::Version
|
63
|
-
hash: 23
|
64
57
|
segments:
|
65
58
|
- 1
|
66
59
|
- 0
|
@@ -76,12 +69,12 @@ extensions: []
|
|
76
69
|
|
77
70
|
extra_rdoc_files:
|
78
71
|
- LICENSE
|
79
|
-
- README.
|
72
|
+
- README.md
|
80
73
|
files:
|
81
74
|
- .document
|
82
75
|
- .gitignore
|
83
76
|
- LICENSE
|
84
|
-
- README.
|
77
|
+
- README.md
|
85
78
|
- Rakefile
|
86
79
|
- VERSION
|
87
80
|
- lib/whereuat.rb
|
@@ -89,6 +82,8 @@ files:
|
|
89
82
|
- lib/whereuat/helpers.rb
|
90
83
|
- lib/whereuat/javascript/whereuat.js
|
91
84
|
- lib/whereuat/rack_app.rb
|
85
|
+
- lib/whereuat/rails.rb
|
86
|
+
- lib/whereuat/railtie.rb
|
92
87
|
- lib/whereuat/stylesheets/bg-uat.gif
|
93
88
|
- lib/whereuat/stylesheets/spinner.gif
|
94
89
|
- lib/whereuat/stylesheets/uat-bg.png
|
@@ -108,27 +103,23 @@ rdoc_options:
|
|
108
103
|
require_paths:
|
109
104
|
- lib
|
110
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
106
|
requirements:
|
113
107
|
- - ">="
|
114
108
|
- !ruby/object:Gem::Version
|
115
|
-
hash: 3
|
116
109
|
segments:
|
117
110
|
- 0
|
118
111
|
version: "0"
|
119
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
113
|
requirements:
|
122
114
|
- - ">="
|
123
115
|
- !ruby/object:Gem::Version
|
124
|
-
hash: 3
|
125
116
|
segments:
|
126
117
|
- 0
|
127
118
|
version: "0"
|
128
119
|
requirements: []
|
129
120
|
|
130
121
|
rubyforge_project:
|
131
|
-
rubygems_version: 1.3.
|
122
|
+
rubygems_version: 1.3.6
|
132
123
|
signing_key:
|
133
124
|
specification_version: 3
|
134
125
|
summary: Direct your clients to test delivered features
|