bananajour 2.6.4 → 2.6.5

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/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 ruby -I#{lib} sinatra/app.rb -p 4567 -s thin"
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
@@ -1,3 +1,3 @@
1
1
  module Bananajour
2
- VERSION = '2.6.4'
2
+ VERSION = '2.6.5'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  Thread.abort_on_exception = true
2
2
 
3
- __DIR__ = File.dirname(__FILE__)
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 "#{__DIR__}/lib/mock_browsers" if Sinatra::Application.development?
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
- load "#{__DIR__}/lib/diff_helpers.rb"
23
+ require "diff_helpers"
24
24
  helpers DiffHelpers
25
25
 
26
26
  require "bananajour/helpers"
@@ -0,0 +1,2 @@
1
+ load 'app.rb'
2
+ run Sinatra::Application
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 6
8
- - 4
9
- version: 2.6.4
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