trackman 0.5.8 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -0
- data/lib/trackman/tasks/trackman.rake +16 -0
- data/lib/trackman/utility/middleware.rb +12 -0
- data/lib/trackman/utility/railtie.rb +4 -15
- data/lib/trackman/version.rb +1 -1
- data/trackman.gemspec +1 -1
- metadata +5 -3
data/Gemfile.lock
CHANGED
@@ -14,6 +14,7 @@ PATH
|
|
14
14
|
json
|
15
15
|
nokogiri
|
16
16
|
rack
|
17
|
+
rake
|
17
18
|
rest-client
|
18
19
|
versionomy
|
19
20
|
|
@@ -41,6 +42,7 @@ GEM
|
|
41
42
|
netrc (0.7.7)
|
42
43
|
nokogiri (1.5.5)
|
43
44
|
rack (1.4.1)
|
45
|
+
rake (0.9.2.2)
|
44
46
|
rspec (2.10.0)
|
45
47
|
rspec-core (~> 2.10.0)
|
46
48
|
rspec-expectations (~> 2.10.0)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rest-client'
|
2
|
+
require 'trackman'
|
3
|
+
|
4
|
+
#only load this rakefil for sinatra/rack apps
|
5
|
+
namespace :trackman do
|
6
|
+
desc "Syncs your assets with the server, this is what gets executed when you deploy to heroku."
|
7
|
+
task :sync do
|
8
|
+
Trackman::Assets::Asset.sync
|
9
|
+
end
|
10
|
+
|
11
|
+
desc "Sets up the heroku configs required by Trackman"
|
12
|
+
task :setup, :app do |t, args|
|
13
|
+
heroku_version = Gem.loaded_specs["heroku"].version.to_s
|
14
|
+
Trackman::Utility::Configuration.new(heroku_version, :app => args[:app]).setup
|
15
|
+
end
|
16
|
+
end
|
@@ -1,26 +1,15 @@
|
|
1
|
+
require File.expand_path('../middleware', __FILE__)
|
2
|
+
|
1
3
|
if defined?(Rails)
|
2
4
|
if ::Rails::VERSION::STRING =~ /^2\.[1-9]/
|
3
|
-
module Trackman
|
4
|
-
class RackMiddleware
|
5
|
-
def initialize(app)
|
6
|
-
@app = app
|
7
|
-
Trackman::Assets::Asset.autosync
|
8
|
-
end
|
9
|
-
|
10
|
-
def call(env)
|
11
|
-
@app.call(env)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
5
|
require './config/environment'
|
16
|
-
Rails.configuration.middleware.use Trackman::
|
6
|
+
Rails.configuration.middleware.use Trackman::Middleware
|
17
7
|
elsif ::Rails::VERSION::STRING =~ /^[3-9]\.[1-9]/
|
18
8
|
require 'generators/controller/controller_generator'
|
19
9
|
module Trackman
|
20
10
|
class Railtie < Rails::Railtie
|
21
11
|
rake_tasks do
|
22
|
-
|
23
|
-
load path
|
12
|
+
load File.expand_path('../../../../rails_generators/trackman_tasks/templates/trackman.rake', __FILE__)
|
24
13
|
end
|
25
14
|
|
26
15
|
initializer "trackman.hook" do |app|
|
data/lib/trackman/version.rb
CHANGED
data/trackman.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Trackman::VERSION
|
8
8
|
s.authors = ["Jeremy Fabre", "Emanuel Petre"]
|
9
9
|
s.email = ["jeremy.fabre@hotmail.com", "petreemanuel@gmail.com"]
|
10
|
-
s.homepage = "
|
10
|
+
s.homepage = "http://www.trackman-addon.com"
|
11
11
|
s.summary = "Client version of the Trackman addon on Heroku"
|
12
12
|
s.description = "Trackman hosts your maintenances and app-down pages (503s) and lets you keep them in your current development environment so that you can focus on delivering and not configuring."
|
13
13
|
|
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.
|
4
|
+
version: 0.6.0
|
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-10-
|
13
|
+
date: 2012-10-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -189,10 +189,12 @@ files:
|
|
189
189
|
- lib/trackman/scaffold.rb
|
190
190
|
- lib/trackman/scaffold/content_saver.rb
|
191
191
|
- lib/trackman/scaffold/pretty-print.xslt
|
192
|
+
- lib/trackman/tasks/trackman.rake
|
192
193
|
- lib/trackman/utility.rb
|
193
194
|
- lib/trackman/utility/configuration.rb
|
194
195
|
- lib/trackman/utility/core_extensions.rb
|
195
196
|
- lib/trackman/utility/debugger.rb
|
197
|
+
- lib/trackman/utility/middleware.rb
|
196
198
|
- lib/trackman/utility/railtie.rb
|
197
199
|
- lib/trackman/version.rb
|
198
200
|
- rails_generators/trackman_controller/USAGE
|
@@ -492,7 +494,7 @@ files:
|
|
492
494
|
- spec/test_data/y.css
|
493
495
|
- spec/test_data/z.css
|
494
496
|
- trackman.gemspec
|
495
|
-
homepage:
|
497
|
+
homepage: http://www.trackman-addon.com
|
496
498
|
licenses: []
|
497
499
|
post_install_message:
|
498
500
|
rdoc_options: []
|