rdf-spec 0.3.5 → 0.3.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.5.1
@@ -9,6 +9,10 @@ share_as :RDF_Format do
9
9
 
10
10
  describe ".for" do
11
11
  RDF::Format.file_extensions.each do |ext, formats|
12
+ it "detects #{formats.first} using file path foo.#{ext}" do
13
+ RDF::Format.for("foo.#{ext}").should == formats.first
14
+ end
15
+
12
16
  it "detects #{formats.first} using file_name foo.#{ext}" do
13
17
  RDF::Format.for(:file_name => "foo.#{ext}").should == formats.first
14
18
  end
@@ -1,5 +1,6 @@
1
1
  require 'rdf/spec'
2
2
  require 'fileutils'
3
+ require 'tmpdir'
3
4
 
4
5
  share_as :RDF_Writer do
5
6
  include RDF::Spec::Matchers
@@ -29,13 +30,12 @@ share_as :RDF_Writer do
29
30
  describe ".open" do
30
31
  before(:each) do
31
32
  RDF::Util::File.stub!(:open_file).and_yield(StringIO.new("foo"))
32
- @dir = File.join(File.expand_path(File.dirname(__FILE__)), "tmp")
33
- Dir.mkdir(@dir)
33
+ @dir = Dir.tmpdir
34
34
  @basename = File.join(@dir, "foo")
35
35
  end
36
36
 
37
37
  after(:each) do
38
- FileUtils.rm_rf(File.join(File.expand_path(File.dirname(__FILE__)), "tmp"))
38
+ FileUtils.rm_rf(@dir)
39
39
  end
40
40
 
41
41
  it "yields writer given file_name" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-02-07 00:00:00.000000000Z
14
+ date: 2012-03-14 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
18
- requirement: &2151960340 !ruby/object:Gem::Requirement
18
+ requirement: &70247823905760 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.8.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2151960340
26
+ version_requirements: *70247823905760
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: yard
29
- requirement: &2151959880 !ruby/object:Gem::Requirement
29
+ requirement: &70247823905280 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.7.5
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2151959880
37
+ version_requirements: *70247823905280
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rdf
40
- requirement: &2151959420 !ruby/object:Gem::Requirement
40
+ requirement: &70247823904820 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: 0.3.5
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2151959420
48
+ version_requirements: *70247823904820
49
49
  description: RDF.rb plugin that provides RSpec matchers and shared examples for RDF
50
50
  objects.
51
51
  email: public-rdf-ruby@w3.org
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project: rdf
116
- rubygems_version: 1.8.10
116
+ rubygems_version: 1.8.17
117
117
  signing_key:
118
118
  specification_version: 3
119
119
  summary: RSpec extensions for RDF.rb.