cog 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
File without changes
|
data/lib/cog/cogfile.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'rubygems'
|
1
2
|
require 'singleton'
|
2
3
|
|
3
4
|
module Cog
|
@@ -8,12 +9,12 @@ module Cog
|
|
8
9
|
|
9
10
|
# Path to the master +Cogfile+.
|
10
11
|
def self.master_cogfile_path
|
11
|
-
File.join
|
12
|
+
File.join gem_dir, 'Master.cogfile'
|
12
13
|
end
|
13
14
|
|
14
15
|
# Path to the default +Cogfile+.
|
15
16
|
def self.default_cogfile_path
|
16
|
-
File.join
|
17
|
+
File.join gem_dir, 'templates/Default.cogfile'
|
17
18
|
end
|
18
19
|
|
19
20
|
# Loads the default +Cogfile+ for the current project.
|
@@ -98,6 +99,16 @@ module Cog
|
|
98
99
|
end
|
99
100
|
end
|
100
101
|
end
|
102
|
+
|
103
|
+
private
|
104
|
+
def self.gem_dir
|
105
|
+
spec = Gem.loaded_specs['cog']
|
106
|
+
if spec.nil?
|
107
|
+
File.expand_path File.join(File.dirname($0), '..')
|
108
|
+
else
|
109
|
+
spec.gem_dir
|
110
|
+
end
|
111
|
+
end
|
101
112
|
end
|
102
113
|
|
103
114
|
# For wrapping errors which occur during the processing of a +Cogfile+.
|
data/lib/cog_version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kevin Tonon
|
@@ -55,8 +55,8 @@ extra_rdoc_files:
|
|
55
55
|
- API.rdoc
|
56
56
|
files:
|
57
57
|
- bin/cog
|
58
|
-
-
|
59
|
-
-
|
58
|
+
- Master.cogfile
|
59
|
+
- templates/Default.cogfile
|
60
60
|
- lib/cog/cogfile.rb
|
61
61
|
- lib/cog/mixins/uses_templates.rb
|
62
62
|
- lib/cog/mixins.rb
|