yamlconfig 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ desc 'Default: run specs.'
4
+ task :default => :spec
5
+
6
+ desc 'Run specs.'
7
+ task :test => :spec
8
+
9
+ desc "Run specs"
10
+ RSpec::Core::RakeTask.new do |t|
11
+ t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
12
+ # Put spec opts in a file named .rspec in root
13
+ end
14
+
@@ -1 +1 @@
1
- YAMLConfig::VERSION = "0.2.0"
1
+ YAMLConfig::VERSION = "0.2.1"
@@ -10,6 +10,14 @@ describe YAMLConfig do
10
10
  end
11
11
  end
12
12
 
13
+ describe "with a non-existent file" do
14
+ it "it raises an exception" do
15
+ lambda {
16
+ YAMLConfig.new('spec/data/missing_file')
17
+ }.should raise_error(Errno::ENOENT)
18
+ end
19
+ end
20
+
13
21
  describe "with complex values" do
14
22
  before :each do
15
23
  @yc = YAMLConfig.new('spec/data/complex_values')
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: yamlconfig
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Christopher Maujean
@@ -10,10 +10,20 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-05 00:00:00 -07:00
13
+ date: 2011-04-06 00:00:00 -07:00
14
14
  default_executable:
15
- dependencies: []
16
-
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rspec
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :development
26
+ version_requirements: *id001
17
27
  description:
18
28
  email: cmaujean@gmail.com
19
29
  executables: []
@@ -35,6 +45,8 @@ files:
35
45
  - spec/data/freakboy
36
46
  - spec/spec_helper.rb
37
47
  - spec/yamlconfig_spec.rb
48
+ - Rakefile
49
+ - .gemtest
38
50
  has_rdoc: true
39
51
  homepage: http://rubyforge.org/projects/ngslib
40
52
  licenses: []