bananajour 2.6.4 → 2.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +15 -4
- data/lib/bananajour/version.rb +1 -1
- data/sinatra/app.rb +3 -3
- data/sinatra/config.ru +2 -0
- metadata +3 -2
data/Rakefile
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
lib = File.expand_path('../lib/', __FILE__)
|
2
2
|
$:.unshift lib unless $:.include?(lib)
|
3
3
|
|
4
|
-
require 'bundler'
|
5
|
-
Bundler::GemHelper.install_tasks
|
6
|
-
|
7
4
|
desc "Boot up bananajour"
|
8
5
|
task :default do
|
9
6
|
exec "bundle exec bin/bananajour"
|
@@ -11,5 +8,19 @@ end
|
|
11
8
|
|
12
9
|
desc "Boot up just the web interface"
|
13
10
|
task :web do
|
14
|
-
exec "bundle exec
|
11
|
+
exec "bundle exec thin start -c #{File.dirname(__FILE__)}/sinatra -p 4567"
|
12
|
+
end
|
13
|
+
|
14
|
+
require "bananajour/version"
|
15
|
+
version = Bananajour::VERSION
|
16
|
+
gem_name = "bananajour-#{version}.gem"
|
17
|
+
|
18
|
+
desc "Build #{gem_name} into pkg"
|
19
|
+
task :build do
|
20
|
+
system "gem build bananajour.gemspec"
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Tag and push #{gem_name}"
|
24
|
+
task :push => :build do
|
25
|
+
system "git push && git push --tags && gem push #{gem_name}"
|
15
26
|
end
|
data/lib/bananajour/version.rb
CHANGED
data/sinatra/app.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Thread.abort_on_exception = true
|
2
2
|
|
3
|
-
|
3
|
+
$:.unshift File.dirname(__FILE__) + "/lib"
|
4
4
|
|
5
5
|
require "bananajour"
|
6
6
|
|
@@ -15,12 +15,12 @@ set :server, 'thin'
|
|
15
15
|
set :haml, {:format => :html5, :attr_wrapper => '"'}
|
16
16
|
set :logging, false
|
17
17
|
|
18
|
-
require "
|
18
|
+
require "mock_browsers" if Sinatra::Application.development?
|
19
19
|
|
20
20
|
set :bananajour_browser, Bananajour::Bonjour::BananajourBrowser.new
|
21
21
|
set :repository_browser, Bananajour::Bonjour::RepositoryBrowser.new
|
22
22
|
|
23
|
-
|
23
|
+
require "diff_helpers"
|
24
24
|
helpers DiffHelpers
|
25
25
|
|
26
26
|
require "bananajour/helpers"
|
data/sinatra/config.ru
ADDED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 2.6.
|
8
|
+
- 5
|
9
|
+
version: 2.6.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tim Lucas
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- lib/bananajour/version.rb
|
156
156
|
- lib/bananajour.rb
|
157
157
|
- sinatra/app.rb
|
158
|
+
- sinatra/config.ru
|
158
159
|
- sinatra/lib/diff_helpers.rb
|
159
160
|
- sinatra/lib/mock_browsers.rb
|
160
161
|
- sinatra/public/jquery-1.3.2.min.js
|