cxx 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
data/lib/cxx.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
 
3
- require 'cxxproject/cxxproject'
3
+ require 'cxxproject'
4
4
  require 'logger'
5
5
  require 'pp'
6
6
  require 'pathname'
@@ -162,7 +162,7 @@ module Cxx
162
162
  def check_for_project_configs
163
163
  cd(@base_dir, :verbose => false) do
164
164
  @projects.each do |p|
165
- abort "project config #{p} cannot be found!" unless File.exists?(p)
165
+ abort "project config #{p} cannot be found in #{Dir.pwd}!" unless File.exists?(p)
166
166
  end
167
167
  end
168
168
  end
@@ -1,5 +1,5 @@
1
+ require 'cxxproject'
1
2
  require 'cxxproject/context'
2
- require 'cxxproject/cxxproject'
3
3
  require 'cxxproject/utils/utils'
4
4
 
5
5
  module Cxx
@@ -1,4 +1,4 @@
1
1
  module Cxx
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.12"
3
3
  end
4
4
 
@@ -1,11 +1,19 @@
1
1
  require 'rake'
2
2
  require 'erb'
3
3
  require 'rubygems'
4
+ require 'cxx/version'
4
5
 
5
6
  def prepare_project(dir_name)
6
7
  begin
7
8
  require 'highline/import'
8
-
9
+ if ["--help","-h"].include?(dir_name)
10
+ say "cxx [directory] -- will create a new project in [directory]"
11
+ return
12
+ end
13
+ if ["--version","-v"].include?(dir_name)
14
+ say "cxx version #{Cxx::VERSION}"
15
+ return
16
+ end
9
17
  say "This will create a new cxx-project in directory: '#{dir_name}'"
10
18
  if confirm("Are you sure you want to continue") then
11
19
  building_block = choose_building_block
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cxx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-18 00:00:00.000000000 Z
12
+ date: 2012-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cxxproject