Skip to content

Commit

Permalink
Try a new way of versioning.
Browse files Browse the repository at this point in the history
We need version information in lucie-bin, but $root/version
file is not exists on that level.
  • Loading branch information
Nucc committed Sep 15, 2013
1 parent 94592da commit 7ac7a53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lucie-bin/app/controllers/new_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class NewController < Controller::Base

def index
@project_name = params.shift
@lucie_version = Lucie::VERSION

template("new/bin/bin.tt", "#{@project_name}/bin/#{@project_name}")
template("new/app/application_controller.rb.tt", "#{@project_name}/app/controllers/application_controller.rb")
Expand Down
3 changes: 2 additions & 1 deletion lucie-bin/app/templates/new/Gemfile.tt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"

gem "lucie-lib", "~><%= @lucie_version %>"
gem "lucie-lib", "~><%= @lucie_version %>"
# gem "lucie-cmd", "~><%= @lucie_version %>"
2 changes: 1 addition & 1 deletion lucie-lib/lib/lucie/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Lucie
VERSION = "0.0.1"
VERSION = "0.0.7"
end

0 comments on commit 7ac7a53

Please sign in to comment.