file-spec 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile +14 -0
  2. data/Rakefile +48 -18
  3. data/VERSION +1 -1
  4. data/file-spec.gemspec +24 -11
  5. data/lib/file-spec.rb +3 -3
  6. metadata +67 -21
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source :rubygems
2
+
3
+ gem "require_all", "~> 1.2.0"
4
+ gem "rspec", ">= 2.4.1"
5
+ gem "sugar-high", ">= 0.6.0"
6
+ gem "activesupport", ">= 3.0.1"
7
+
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", ">= 1.0.1"
11
+ gem "jeweler", ">= 1.6.4"
12
+ gem "rcov", ">= 0"
13
+ end
14
+
data/Rakefile CHANGED
@@ -1,21 +1,51 @@
1
- require 'psych'
1
+ # encoding: utf-8
2
2
 
3
+ require 'rubygems'
4
+ require 'bundler'
3
5
  begin
4
- require 'jeweler'
5
- Jeweler::Tasks.new do |gem|
6
- gem.name = "file-spec"
7
- gem.summary = 'RSpec 2 matchers for files, directories and symlinks'
8
- gem.description = 'RSpec 2 matchers for files, directories and symlinks'
9
- gem.email = "kmandrup@gmail.com"
10
- gem.homepage = "http://github.com/kristianmandrup/file-spec"
11
- gem.authors = ["Kristian Mandrup"]
12
- gem.add_dependency "rspec", ">= 2.4.1"
13
- gem.add_dependency "require_all", "~> 1.2.0"
14
- gem.add_dependency "sugar-high", "~> 0.5.0"
15
- gem.add_dependency "activesupport", ">= 3.0.1"
16
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
- end
18
- Jeweler::GemcutterTasks.new
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ gem.name = "file-spec"
17
+ gem.summary = 'RSpec 2 matchers for files, directories and symlinks'
18
+ gem.description = 'RSpec 2 matchers for files, directories and symlinks'
19
+ gem.email = "kmandrup@gmail.com"
20
+ gem.homepage = "http://github.com/kristianmandrup/file-spec"
21
+ gem.authors = ["Kristian Mandrup"]
22
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
23
+ end
24
+ Jeweler::RubygemsDotOrgTasks.new
25
+
26
+ require 'rake/testtask'
27
+ Rake::TestTask.new(:test) do |test|
28
+ test.libs << 'lib' << 'test'
29
+ test.pattern = 'test/**/test_*.rb'
30
+ test.verbose = true
31
+ end
32
+
33
+ require 'rcov/rcovtask'
34
+ Rcov::RcovTask.new do |test|
35
+ test.libs << 'test'
36
+ test.pattern = 'test/**/test_*.rb'
37
+ test.verbose = true
38
+ test.rcov_opts << '--exclude "gems/*"'
39
+ end
40
+
41
+ task :default => :test
42
+
43
+ require 'rake/rdoctask'
44
+ Rake::RDocTask.new do |rdoc|
45
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
+
47
+ rdoc.rdoc_dir = 'rdoc'
48
+ rdoc.title = "file-spec #{version}"
49
+ rdoc.rdoc_files.include('README*')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
51
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{file-spec}
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2011-07-21}
11
+ s.authors = [%q{Kristian Mandrup}]
12
+ s.date = %q{2011-08-24}
13
13
  s.description = %q{RSpec 2 matchers for files, directories and symlinks}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  ".rspec",
22
+ "Gemfile",
22
23
  "LICENSE",
23
24
  "README.markdown",
24
25
  "Rakefile",
@@ -42,29 +43,41 @@ Gem::Specification.new do |s|
42
43
  "spec/spec_helper.rb"
43
44
  ]
44
45
  s.homepage = %q{http://github.com/kristianmandrup/file-spec}
45
- s.require_paths = ["lib"]
46
- s.rubygems_version = %q{1.6.2}
46
+ s.require_paths = [%q{lib}]
47
+ s.rubygems_version = %q{1.8.8}
47
48
  s.summary = %q{RSpec 2 matchers for files, directories and symlinks}
48
49
 
49
50
  if s.respond_to? :specification_version then
50
51
  s.specification_version = 3
51
52
 
52
53
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
- s.add_runtime_dependency(%q<rspec>, [">= 2.4.1"])
54
54
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
55
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.5.0"])
55
+ s.add_runtime_dependency(%q<rspec>, [">= 2.4.1"])
56
+ s.add_runtime_dependency(%q<sugar-high>, [">= 0.6.0"])
56
57
  s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
58
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
59
+ s.add_development_dependency(%q<bundler>, [">= 1.0.1"])
60
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
61
+ s.add_development_dependency(%q<rcov>, [">= 0"])
57
62
  else
58
- s.add_dependency(%q<rspec>, [">= 2.4.1"])
59
63
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
60
- s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
64
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
65
+ s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
61
66
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
67
+ s.add_dependency(%q<shoulda>, [">= 0"])
68
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
69
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
70
+ s.add_dependency(%q<rcov>, [">= 0"])
62
71
  end
63
72
  else
64
- s.add_dependency(%q<rspec>, [">= 2.4.1"])
65
73
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
66
- s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
74
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
75
+ s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
67
76
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
77
+ s.add_dependency(%q<shoulda>, [">= 0"])
78
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
79
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
80
+ s.add_dependency(%q<rcov>, [">= 0"])
68
81
  end
69
82
  end
70
83
 
@@ -1,8 +1,8 @@
1
1
  require 'rspec'
2
- require 'require_all'
2
+ require 'require_all'
3
3
  require 'fileutils'
4
4
  require 'tmpdir'
5
- require 'active_support/inflector'
5
+ require 'active_support/inflector'
6
6
  require 'sugar-high'
7
7
 
8
8
  module RSpec
@@ -15,5 +15,5 @@ require_all File.dirname(__FILE__) + '/file_spec/matchers'
15
15
  require_all File.dirname(__FILE__) + '/file_spec/file_helpers'
16
16
 
17
17
  RSpec.configure do |config|
18
- config.include(RSpec::FileMatchers)
18
+ config.include(RSpec::FileMatchers)
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,45 +9,44 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-21 00:00:00.000000000 +02:00
13
- default_executable:
12
+ date: 2011-08-24 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: rspec
17
- requirement: &2153099460 !ruby/object:Gem::Requirement
15
+ name: require_all
16
+ requirement: &2153947780 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
- - - ! '>='
19
+ - - ~>
21
20
  - !ruby/object:Gem::Version
22
- version: 2.4.1
21
+ version: 1.2.0
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2153099460
24
+ version_requirements: *2153947780
26
25
  - !ruby/object:Gem::Dependency
27
- name: require_all
28
- requirement: &2153098860 !ruby/object:Gem::Requirement
26
+ name: rspec
27
+ requirement: &2153947300 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
- - - ~>
30
+ - - ! '>='
32
31
  - !ruby/object:Gem::Version
33
- version: 1.2.0
32
+ version: 2.4.1
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *2153098860
35
+ version_requirements: *2153947300
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: sugar-high
39
- requirement: &2153098140 !ruby/object:Gem::Requirement
38
+ requirement: &2153946820 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
- - - ~>
41
+ - - ! '>='
43
42
  - !ruby/object:Gem::Version
44
- version: 0.5.0
43
+ version: 0.6.0
45
44
  type: :runtime
46
45
  prerelease: false
47
- version_requirements: *2153098140
46
+ version_requirements: *2153946820
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: activesupport
50
- requirement: &2153097500 !ruby/object:Gem::Requirement
49
+ requirement: &2153946340 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
53
52
  - - ! '>='
@@ -55,7 +54,51 @@ dependencies:
55
54
  version: 3.0.1
56
55
  type: :runtime
57
56
  prerelease: false
58
- version_requirements: *2153097500
57
+ version_requirements: *2153946340
58
+ - !ruby/object:Gem::Dependency
59
+ name: shoulda
60
+ requirement: &2153945860 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *2153945860
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: &2153945380 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 1.0.1
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *2153945380
80
+ - !ruby/object:Gem::Dependency
81
+ name: jeweler
82
+ requirement: &2153944900 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: 1.6.4
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *2153944900
91
+ - !ruby/object:Gem::Dependency
92
+ name: rcov
93
+ requirement: &2153944420 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *2153944420
59
102
  description: RSpec 2 matchers for files, directories and symlinks
60
103
  email: kmandrup@gmail.com
61
104
  executables: []
@@ -66,6 +109,7 @@ extra_rdoc_files:
66
109
  files:
67
110
  - .document
68
111
  - .rspec
112
+ - Gemfile
69
113
  - LICENSE
70
114
  - README.markdown
71
115
  - Rakefile
@@ -87,7 +131,6 @@ files:
87
131
  - spec/file-spec/matchers/single/have_file_spec.rb
88
132
  - spec/file-spec/matchers/single/have_symlink_spec.rb
89
133
  - spec/spec_helper.rb
90
- has_rdoc: true
91
134
  homepage: http://github.com/kristianmandrup/file-spec
92
135
  licenses: []
93
136
  post_install_message:
@@ -100,6 +143,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
143
  - - ! '>='
101
144
  - !ruby/object:Gem::Version
102
145
  version: '0'
146
+ segments:
147
+ - 0
148
+ hash: -1099593904417492716
103
149
  required_rubygems_version: !ruby/object:Gem::Requirement
104
150
  none: false
105
151
  requirements:
@@ -108,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
154
  version: '0'
109
155
  requirements: []
110
156
  rubyforge_project:
111
- rubygems_version: 1.6.2
157
+ rubygems_version: 1.8.8
112
158
  signing_key:
113
159
  specification_version: 3
114
160
  summary: RSpec 2 matchers for files, directories and symlinks