pt 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +3 -0
- data/lib/pt.rb +1 -1
- data/lib/pt/debugger.rb +23 -0
- data/lib/pt/ui.rb +1 -0
- metadata +4 -3
data/Changelog.md
CHANGED
data/lib/pt.rb
CHANGED
data/lib/pt/debugger.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Nasty tricks to debug the interaction with the Pivotal Tracker API
|
2
|
+
|
3
|
+
module RestClient
|
4
|
+
class Request
|
5
|
+
|
6
|
+
alias_method :rest_client_execute, :execute
|
7
|
+
def execute &block
|
8
|
+
puts "\nRequest: #{method.upcase} #{url}"
|
9
|
+
rest_client_execute &block
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module HappyMapper
|
15
|
+
module ClassMethods
|
16
|
+
alias_method :pivotal_tracker_parse, :parse
|
17
|
+
def parse(xml, options={})
|
18
|
+
xml = xml.to_s if xml.is_a?(RestClient::Response)
|
19
|
+
puts "\nResponse:\n#{xml}\n"
|
20
|
+
pivotal_tracker_parse(xml, options)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/pt/ui.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 0.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Raul Murciano
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/pt/client.rb
|
83
83
|
- lib/pt/data_row.rb
|
84
84
|
- lib/pt/data_table.rb
|
85
|
+
- lib/pt/debugger.rb
|
85
86
|
- lib/pt/ui.rb
|
86
87
|
- lib/pt.rb
|
87
88
|
- Changelog.md
|