shagit 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,4 +1,4 @@
1
- 0.3 (2010-03-17)
1
+ 0.3 (2010-03-18)
2
2
  ==================================
3
3
  * refactored global variables into a singleton class
4
4
  * changed require statement inside config.ru to reflect recent name changes
@@ -9,7 +9,7 @@
9
9
  * added proper dependencies for production & development to gem
10
10
  * added new test case to unit test (tests loading of the configuration file)
11
11
  * added gem building using jeweler
12
- * added runtime checking (to check if Shagit was installed using the gem)
12
+ * added runtime check (to check if Shagit was installed using the gem)
13
13
 
14
14
  0.2 (2010-02-27)
15
15
  ==================================
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 0
4
+ :patch: 1
5
5
 
@@ -97,8 +97,10 @@ def check_if_started_from_gem(current_working_directory)
97
97
  # check if the bin folder is included in the directory this file is located in
98
98
  if current_working_directory.include?('bin')
99
99
  if (config_data.working_dir == '.')
100
+ # extract source installation directory of the gem
101
+ gem_installation_dir = File.dirname(__FILE__).split('bin')[0]
100
102
  puts "FATAL ERROR: The directory for saving repositories cannot be used!"
101
- puts "Please set the path in your config.yml accordingly."
103
+ puts "Please set the path in your #{gem_installation_dir}config.yml accordingly."
102
104
  exit
103
105
  end
104
106
 
@@ -27,7 +27,6 @@ class Shagit
27
27
  fullpath = "#{config_data.working_dir}/#{path}"
28
28
 
29
29
  if Shagit.is_it_a_git_repo?(fullpath)
30
- puts "adding repository: #{fullpath}"
31
30
  # create a new Grit repository object if a directory has been found that looks to be a folder containing a git repository
32
31
  @repositories << Repo.new(fullpath) unless (path == '.git')
33
32
  end
@@ -40,10 +39,7 @@ class Shagit
40
39
  if FileTest.directory?(full_repo_name)
41
40
  false
42
41
  else
43
- puts "creating bare repository at: #{full_repo_name}"
44
- #new_repo = Grit::Repo.init_bare(full_repo_name)
45
- puts "pwd: #{Dir.pwd}"
46
- new_repo = Grit::Repo.init_bare(full_repo_name)
42
+ Grit::Repo.init_bare(full_repo_name)
47
43
  end
48
44
  end
49
45
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Martin Gajdos
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-18 00:00:00 +01:00
17
+ date: 2010-03-19 00:00:00 +01:00
18
18
  default_executable: shagit
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency