trackman 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/trackman/assets/components/composite_asset.rb +0 -1
- data/lib/trackman/assets/components/rails32_path_resolver.rb +2 -1
- data/lib/trackman/assets/html_asset.rb +1 -1
- data/lib/trackman/version.rb +1 -1
- data/spec/fixtures/composite_assets/query_string_in_path.html +187 -0
- data/spec/html_asset_spec.rb +12 -0
- data/spec/rails32/first_push_spec.rb +0 -1
- data/spec/remote_asset_spec.rb +2 -1
- metadata +4 -2
data/Gemfile.lock
CHANGED
@@ -10,7 +10,6 @@ module Trackman
|
|
10
10
|
mod.send(:extend, PathResolver)
|
11
11
|
end
|
12
12
|
|
13
|
-
#internals = children_paths.select{|p| p.internal_path? }.map{|p| translate(p, path) }.select{|p| !p.nil? }
|
14
13
|
def assets
|
15
14
|
internals = children_paths.select{|p| p.internal_path? }.map{|p| {old: p, new_path: translate(p, path)} }
|
16
15
|
internals.select{|p| !p[:new_path].nil? }.map{|p| asset_from(p[:old], p[:new_path])}.inject([]) do |sum, a|
|
@@ -23,7 +23,7 @@ module Trackman
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def refine_path(paths, node)
|
26
|
-
paths.
|
26
|
+
paths.map{|n| n[node].to_s.gsub(/\?[^\?]*$/, '') }.select{|n| n && n =~ /\w/ && n.internal_path? }
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
data/lib/trackman/version.rb
CHANGED
@@ -0,0 +1,187 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang='en'>
|
3
|
+
<head>
|
4
|
+
<meta charset='utf-8'>
|
5
|
+
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
|
6
|
+
<title>Burndown charts</title>
|
7
|
+
<meta content="Manage burndown charts online for free. Send the chart url to a friend. Join/Create teams to build and share your burndown charts. One step login via Google, Facebook or Twitter." name="description" />
|
8
|
+
<meta content="burndown, burn-down, charts, scrum, agile, extreme, programming, xp, kanban" name="keywords" />
|
9
|
+
|
10
|
+
<link href="/assets/application.css?body=1" media="screen" rel="stylesheet" type="text/css" />
|
11
|
+
<!-- /= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin' -->
|
12
|
+
<!-- /= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Special+Elite' -->
|
13
|
+
<meta content="authenticity_token" name="csrf-param" />
|
14
|
+
<meta content="/ita8+3aPpUAJ1Uei9XknHglQctqCz27vv6AzKz1vnw=" name="csrf-token" />
|
15
|
+
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
|
16
|
+
<!--[if lt IE 9]>
|
17
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
|
18
|
+
<![endif]-->
|
19
|
+
<link href='/assets/favicon.png' rel='icon' type='image/x-icon'>
|
20
|
+
<link href='apple-touch-icon.png' rel='apple-touch-icon'>
|
21
|
+
<link href='apple-touch-icon-72x72.png' rel='apple-touch-icon' sizes='72x72'>
|
22
|
+
<link href='apple-touch-icon-114x114.png' rel='apple-touch-icon' sizes='114x114'>
|
23
|
+
</head>
|
24
|
+
<body class='error' data-offset='120' data-spy='scroll' data-target='.subnav' data-twttr-rendered='true'>
|
25
|
+
<div class='navbar navbar-fixed-top'>
|
26
|
+
<div class='navbar-inner'>
|
27
|
+
<div class='container-fluid'>
|
28
|
+
<a class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse'>
|
29
|
+
<span class='icon-bar'></span>
|
30
|
+
<span class='icon-bar'></span>
|
31
|
+
<span class='icon-bar'></span>
|
32
|
+
</a>
|
33
|
+
<div class='logo-container'>
|
34
|
+
<h1 class='logo'><a href="/" title="Free online burndown charts"><img alt="Free online burndown charts" src="/assets/burndownchartslogo.png" title="Free online burndown charts" /></a></h1>
|
35
|
+
<div class='header-message row-fluid'>
|
36
|
+
<p class='span9'>
|
37
|
+
Free online burndown charts
|
38
|
+
</p>
|
39
|
+
<div class='tweet span3'>
|
40
|
+
<a class='twitter-follow-button' data-show-count='false' data-show-screen-name='false' href='https://twitter.com/BurndownCharts'>Follow @BurndownCharts</a>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
<div class='nav pull-left bar-root'></div>
|
45
|
+
<div class='group-menu nav-collapse'>
|
46
|
+
<ul class='nav pull-right login'>
|
47
|
+
<li class='auth text'>
|
48
|
+
<span class='label label-success'>Logon with</span>
|
49
|
+
</li>
|
50
|
+
<li class='auth'><a href="/auth/google" title="log in with google"><img alt="google" src="/assets/google.png" /></a></li>
|
51
|
+
<li class='auth'><a href="/auth/facebook" title="log in with facebook"><img alt="facebook" src="/assets/facebook.png" /></a></li>
|
52
|
+
<li class='auth'><a href="/auth/twitter" title="log in with twitter"><img alt="twitter" src="/assets/twitter.png" /></a></li>
|
53
|
+
<li class='divider-vertical'></li>
|
54
|
+
<li class='auth text'>
|
55
|
+
<span class='label'>or use manual <a href="/users/sign_in" title="manual login">login</a> | <a href="/users/sign_up" title="no need to sign up if you use social sites">sign up</a></span>
|
56
|
+
</li>
|
57
|
+
</ul>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
<div class='container-fluid wrapper'>
|
63
|
+
<div class='row-fluid'>
|
64
|
+
<div class='span3' id='menu-left'>
|
65
|
+
<div class='sidebar-nav'>
|
66
|
+
<ul class='nav nav-list'>
|
67
|
+
<li>
|
68
|
+
<a class='' href='http://127.0.0.1:3000/'>
|
69
|
+
<i class='icon-th-large '></i>
|
70
|
+
<span>Home</span>
|
71
|
+
</a>
|
72
|
+
</li>
|
73
|
+
<li>
|
74
|
+
<a class='' href='http://127.0.0.1:3000/feedbacks/new'>
|
75
|
+
<i class='icon-heart '></i>
|
76
|
+
<span>Write a feedback</span>
|
77
|
+
</a>
|
78
|
+
</li>
|
79
|
+
</ul>
|
80
|
+
<div class='togglemenuleft'></div>
|
81
|
+
</div>
|
82
|
+
</div>
|
83
|
+
<div class='span6 section-body' id='content'>
|
84
|
+
<div class='tabbable' id='section-body'>
|
85
|
+
<ul class='nav nav-tabs'>
|
86
|
+
<li class='active'>
|
87
|
+
<a data-toggle='tab' href='#main'>
|
88
|
+
Application is down
|
89
|
+
</a>
|
90
|
+
</li>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
<div class='tab-content'>
|
94
|
+
<div class='row'>
|
95
|
+
<div class='span12'>
|
96
|
+
<div class='errorWrapper'>
|
97
|
+
<h1 class='pageErrorTitle'>The application is down</h1>
|
98
|
+
<span>There was a problem when loading the app. We are sorry for the inconvenience.</span>
|
99
|
+
<p>We are probably already working on it so please be patient.</p>
|
100
|
+
<br>
|
101
|
+
<a class='btn btn-info btn-toolbar btn-large' href='javascript:history.back()'>
|
102
|
+
<i class='icon-chevron-left icon-white'></i>
|
103
|
+
Back to Previous Page
|
104
|
+
</a>
|
105
|
+
|
106
|
+
<a class='btn btn-info btn-toolbar btn-large' href='./index.html'>
|
107
|
+
<i class='icon-th-large icon-white'></i>
|
108
|
+
Return to Dashboard
|
109
|
+
</a>
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<div class='span3' id='widget'>
|
117
|
+
<div class='accordion' id='accordion4'>
|
118
|
+
<div class="accordion-group">
|
119
|
+
<div class="accordion-heading">
|
120
|
+
<a class="accordion-toggle" data-toggle="collapse" href="#elements">
|
121
|
+
<i class="icon-globe icon-white"></i>
|
122
|
+
<span class="divider-vertical"></span>
|
123
|
+
Latest news
|
124
|
+
<i class="icon-chevron-down icon-white pull-right"></i>
|
125
|
+
</a>
|
126
|
+
</div>
|
127
|
+
<div id="elements" class="accordion-body collapse in">
|
128
|
+
<div class="accordion-inner">
|
129
|
+
<div class='accordion-inner paddind'>
|
130
|
+
<div class='post'>
|
131
|
+
<h4>
|
132
|
+
<a href="/blog/2012/08/12/a-brand-new-ui/" target="_blank">A brand new UI!</a>
|
133
|
+
</h4>
|
134
|
+
<p>We just released a new user interface, please take the time to comment on it. We liked the old one, but we are not designers and it was showing. So, we decided to integrate a twitter bootstrap theme…</p>
|
135
|
+
<span class='label'>August 12th 2012</span>
|
136
|
+
</div>
|
137
|
+
<div class='post'>
|
138
|
+
<h4>
|
139
|
+
<a href="/blog/2012/03/30/blog-release/" target="_blank">Blog release</a>
|
140
|
+
</h4>
|
141
|
+
<p>The blog is released today!
|
142
|
+
We will add new features and ideas to come through this blog.</p>
|
143
|
+
|
144
|
+
<p>It’s all for now! :)</p>
|
145
|
+
<span class='label'>March 30th 2012</span>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
<div class='push'></div>
|
156
|
+
</div>
|
157
|
+
<div class='footer row-fluid'>
|
158
|
+
<div class='span2'></div>
|
159
|
+
<div class='bookmarks span8'>
|
160
|
+
<div class='tweet span2'>
|
161
|
+
<a class='twitter-share-button' data-count='vertical' data-hashtags='BurndownCharts' data-related='BurndownCharts' data-text="Online Burn down charts, #scrumboard's best friend!" data-url='http://127.0.0.1' data-via='BurndownCharts' href='https://twitter.com/share'>Tweet</a>
|
162
|
+
</div>
|
163
|
+
<div class='gplus span2'>
|
164
|
+
<g:plusone href='http://127.0.0.1' size='tall'></g:plusone>
|
165
|
+
</div>
|
166
|
+
<div class='linkedin span2'>
|
167
|
+
<script data-counter='right' data-url='http://127.0.0.1' type='IN/Share'></script>
|
168
|
+
</div>
|
169
|
+
<div class='fblike span6'>
|
170
|
+
<div class='fb-like span12' color-scheme='dark' data-colorscheme='light' data-font='arial' data-href='http://127.0.0.1' data-layout='standard' data-send='true' data-show-faces='true' data-width='63'></div>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
<div class='span2'></div>
|
174
|
+
<div class='span4'></div>
|
175
|
+
<div class='copyright span4'>
|
176
|
+
<p>burndown-charts.com © SynApps 2011-2012</p>
|
177
|
+
</div>
|
178
|
+
<div class='span4'></div>
|
179
|
+
</div>
|
180
|
+
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
|
181
|
+
<script src="/assets/application.js?body=1" type="text/javascript"></script>
|
182
|
+
|
183
|
+
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
|
184
|
+
<script src="https://apis.google.com/js/plusone.js" type="text/javascript"></script>
|
185
|
+
<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
|
186
|
+
</body>
|
187
|
+
</html>
|
data/spec/html_asset_spec.rb
CHANGED
@@ -48,4 +48,16 @@ describe Trackman::Assets::HtmlAsset do
|
|
48
48
|
|
49
49
|
actual.should == expected
|
50
50
|
end
|
51
|
+
|
52
|
+
it "removes the query string from the path" do
|
53
|
+
asset = Asset.create(:path => 'spec/fixtures/composite_assets/query_string_in_path.html')
|
54
|
+
expected = [
|
55
|
+
'/assets/burndownchartslogo.png', '/assets/google.png', '/assets/facebook.png',
|
56
|
+
'/assets/twitter.png', '/assets/application.js', '/assets/application.css'
|
57
|
+
]
|
58
|
+
|
59
|
+
actual = asset.children_paths
|
60
|
+
|
61
|
+
actual.should == expected
|
62
|
+
end
|
51
63
|
end
|
data/spec/remote_asset_spec.rb
CHANGED
@@ -9,7 +9,8 @@ describe Trackman::Assets::RemoteAsset do
|
|
9
9
|
response = RestClient.post "http://#{user}:#{pass}@#{server}/heroku/resources", :plan => 'test', :heroku_id => 123
|
10
10
|
json = JSON.parse response
|
11
11
|
@trackman_url = json['config']['TRACKMAN_URL'].gsub('https', 'http')
|
12
|
-
|
12
|
+
|
13
|
+
puts @trackman_url
|
13
14
|
@config = [[:@@server_url, @trackman_url], [:@@site, "#{@trackman_url}/assets"]]
|
14
15
|
@config.each do |s, v|
|
15
16
|
RemoteAsset.send(:class_variable_set, s, v)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-08-
|
13
|
+
date: 2012-08-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -191,6 +191,7 @@ files:
|
|
191
191
|
- spec/configuration_handler_spec.rb
|
192
192
|
- spec/css_asset_spec.rb
|
193
193
|
- spec/diffable_spec.rb
|
194
|
+
- spec/fixtures/composite_assets/query_string_in_path.html
|
194
195
|
- spec/fixtures/rails2311/fully-loaded/README
|
195
196
|
- spec/fixtures/rails2311/fully-loaded/Rakefile
|
196
197
|
- spec/fixtures/rails2311/fully-loaded/app/controllers/application_controller.rb
|
@@ -502,6 +503,7 @@ test_files:
|
|
502
503
|
- spec/configuration_handler_spec.rb
|
503
504
|
- spec/css_asset_spec.rb
|
504
505
|
- spec/diffable_spec.rb
|
506
|
+
- spec/fixtures/composite_assets/query_string_in_path.html
|
505
507
|
- spec/fixtures/rails2311/fully-loaded/README
|
506
508
|
- spec/fixtures/rails2311/fully-loaded/Rakefile
|
507
509
|
- spec/fixtures/rails2311/fully-loaded/app/controllers/application_controller.rb
|