sif 0.0.1 → 0.0.2
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/VERSION +1 -1
- data/lib/sif.rb +5 -3
- data/sif.gemspec +53 -0
- metadata +4 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
data/lib/sif.rb
CHANGED
|
@@ -10,16 +10,18 @@ module Sif
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
class_option :config, :aliases => ['-c']
|
|
13
|
-
|
|
13
|
+
@@config_file = '.config'
|
|
14
14
|
|
|
15
15
|
no_tasks do
|
|
16
16
|
def load_configuration
|
|
17
17
|
|
|
18
|
-
config_file = options[:config] || "#{ENV['HOME']}/#{
|
|
18
|
+
config_file = options[:config] || "#{ENV['HOME']}/#{@@config_file}"
|
|
19
|
+
|
|
19
20
|
if (!File.exists?(config_file) )
|
|
20
21
|
puts "Unable to find config file #{config_file} - can't continue"
|
|
21
22
|
exit
|
|
22
23
|
end
|
|
24
|
+
|
|
23
25
|
config = YAML::load_file config_file
|
|
24
26
|
|
|
25
27
|
config.each do |k,v|
|
|
@@ -29,7 +31,7 @@ module Sif
|
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
def self.config_file(filename)
|
|
32
|
-
|
|
34
|
+
@@config_file = filename
|
|
33
35
|
end
|
|
34
36
|
|
|
35
37
|
end
|
data/sif.gemspec
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = "sif"
|
|
8
|
+
s.version = "0.0.2"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["George McIntosh"]
|
|
12
|
+
s.date = "2013-04-19"
|
|
13
|
+
s.description = "If your Thor apps need to load external config, this library will help."
|
|
14
|
+
s.email = "george@georgemcintosh.com"
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"LICENSE.txt",
|
|
17
|
+
"README.md"
|
|
18
|
+
]
|
|
19
|
+
s.files = [
|
|
20
|
+
".document",
|
|
21
|
+
"Gemfile",
|
|
22
|
+
"Gemfile.lock",
|
|
23
|
+
"LICENSE.txt",
|
|
24
|
+
"README.md",
|
|
25
|
+
"Rakefile",
|
|
26
|
+
"VERSION",
|
|
27
|
+
"lib/sif.rb",
|
|
28
|
+
"sif.gemspec",
|
|
29
|
+
"test/helper.rb",
|
|
30
|
+
"test/test_sif.rb"
|
|
31
|
+
]
|
|
32
|
+
s.homepage = "http://github.com/georgecodes/sif"
|
|
33
|
+
s.licenses = ["Apache2"]
|
|
34
|
+
s.require_paths = ["lib"]
|
|
35
|
+
s.rubygems_version = "1.8.24"
|
|
36
|
+
s.summary = "A library that adds YAML configurability to Thor applications"
|
|
37
|
+
|
|
38
|
+
if s.respond_to? :specification_version then
|
|
39
|
+
s.specification_version = 3
|
|
40
|
+
|
|
41
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
42
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
|
43
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
44
|
+
else
|
|
45
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
|
46
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
47
|
+
end
|
|
48
|
+
else
|
|
49
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
|
50
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sif
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
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: 2013-04-
|
|
12
|
+
date: 2013-04-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -59,6 +59,7 @@ files:
|
|
|
59
59
|
- Rakefile
|
|
60
60
|
- VERSION
|
|
61
61
|
- lib/sif.rb
|
|
62
|
+
- sif.gemspec
|
|
62
63
|
- test/helper.rb
|
|
63
64
|
- test/test_sif.rb
|
|
64
65
|
homepage: http://github.com/georgecodes/sif
|
|
@@ -76,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
76
77
|
version: '0'
|
|
77
78
|
segments:
|
|
78
79
|
- 0
|
|
79
|
-
hash:
|
|
80
|
+
hash: 2157843848120416529
|
|
80
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
82
|
none: false
|
|
82
83
|
requirements:
|