code-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 (5) hide show
  1. data/Gemfile +15 -0
  2. data/Rakefile +47 -18
  3. data/VERSION +1 -1
  4. data/code-spec.gemspec +24 -11
  5. metadata +70 -24
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source :rubygems
2
+
3
+ gem "require_all", "~> 1.2.0"
4
+ gem "sugar-high", ">= 0.6.0"
5
+ gem "activesupport", ">= 3.0.1"
6
+ gem "rspec", ">= 2.4.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
+
15
+
data/Rakefile CHANGED
@@ -1,22 +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 = "code-spec"
7
- gem.summary = %Q{Code file RSpec 2 matchers}
8
- gem.description = %Q{Code file RSpec 2 matchers that make it easy to spec Ruby code files, fx updated or generated by a Thor generator}
9
- gem.email = "kmandrup@gmail.com"
10
- gem.homepage = "http://github.com/kristianmandrup/code-spec"
11
- gem.authors = ["Kristian Mandrup"]
12
- gem.add_development_dependency "rspec", ">= 2.4.1"
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 = "code-spec"
17
+ gem.summary = %Q{Code file RSpec 2 matchers}
18
+ gem.description = %Q{Code file RSpec 2 matchers that make it easy to spec Ruby code files, fx updated or generated by a Thor generator}
19
+ gem.email = "kmandrup@gmail.com"
20
+ gem.homepage = "http://github.com/kristianmandrup/code-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') : ""
13
46
 
14
- gem.add_dependency "require_all", "~> 1.2.0"
15
- gem.add_dependency "sugar-high", "~> 0.5.0"
16
- gem.add_dependency "activesupport", ">= 3.0.1"
17
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
- end
19
- Jeweler::GemcutterTasks.new
20
- rescue LoadError
21
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
47
+ rdoc.rdoc_dir = 'rdoc'
48
+ rdoc.title = "code-spec #{version}"
49
+ rdoc.rdoc_files.include('README*')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
22
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{code-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{Code file RSpec 2 matchers that make it easy to spec Ruby code files, fx updated or generated by a Thor generator}
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",
@@ -65,29 +66,41 @@ Gem::Specification.new do |s|
65
66
  "spec/spec_helper.rb"
66
67
  ]
67
68
  s.homepage = %q{http://github.com/kristianmandrup/code-spec}
68
- s.require_paths = ["lib"]
69
- s.rubygems_version = %q{1.6.2}
69
+ s.require_paths = [%q{lib}]
70
+ s.rubygems_version = %q{1.8.8}
70
71
  s.summary = %q{Code file RSpec 2 matchers}
71
72
 
72
73
  if s.respond_to? :specification_version then
73
74
  s.specification_version = 3
74
75
 
75
76
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
- s.add_development_dependency(%q<rspec>, [">= 2.4.1"])
77
77
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
78
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.5.0"])
78
+ s.add_runtime_dependency(%q<sugar-high>, [">= 0.6.0"])
79
79
  s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
80
+ s.add_runtime_dependency(%q<rspec>, [">= 2.4.1"])
81
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
82
+ s.add_development_dependency(%q<bundler>, [">= 1.0.1"])
83
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
84
+ s.add_development_dependency(%q<rcov>, [">= 0"])
80
85
  else
81
- s.add_dependency(%q<rspec>, [">= 2.4.1"])
82
86
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
83
- s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
87
+ s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
84
88
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
89
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
90
+ s.add_dependency(%q<shoulda>, [">= 0"])
91
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
92
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
93
+ s.add_dependency(%q<rcov>, [">= 0"])
85
94
  end
86
95
  else
87
- s.add_dependency(%q<rspec>, [">= 2.4.1"])
88
96
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
89
- s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
97
+ s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
90
98
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
99
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
100
+ s.add_dependency(%q<shoulda>, [">= 0"])
101
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
102
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
103
+ s.add_dependency(%q<rcov>, [">= 0"])
91
104
  end
92
105
  end
93
106
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code-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,23 +9,11 @@ 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
- - !ruby/object:Gem::Dependency
16
- name: rspec
17
- requirement: &2152787440 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: 2.4.1
23
- type: :development
24
- prerelease: false
25
- version_requirements: *2152787440
26
14
  - !ruby/object:Gem::Dependency
27
15
  name: require_all
28
- requirement: &2152786840 !ruby/object:Gem::Requirement
16
+ requirement: &2153837500 !ruby/object:Gem::Requirement
29
17
  none: false
30
18
  requirements:
31
19
  - - ~>
@@ -33,21 +21,21 @@ dependencies:
33
21
  version: 1.2.0
34
22
  type: :runtime
35
23
  prerelease: false
36
- version_requirements: *2152786840
24
+ version_requirements: *2153837500
37
25
  - !ruby/object:Gem::Dependency
38
26
  name: sugar-high
39
- requirement: &2152786180 !ruby/object:Gem::Requirement
27
+ requirement: &2153837020 !ruby/object:Gem::Requirement
40
28
  none: false
41
29
  requirements:
42
- - - ~>
30
+ - - ! '>='
43
31
  - !ruby/object:Gem::Version
44
- version: 0.5.0
32
+ version: 0.6.0
45
33
  type: :runtime
46
34
  prerelease: false
47
- version_requirements: *2152786180
35
+ version_requirements: *2153837020
48
36
  - !ruby/object:Gem::Dependency
49
37
  name: activesupport
50
- requirement: &2152785380 !ruby/object:Gem::Requirement
38
+ requirement: &2153836540 !ruby/object:Gem::Requirement
51
39
  none: false
52
40
  requirements:
53
41
  - - ! '>='
@@ -55,7 +43,62 @@ dependencies:
55
43
  version: 3.0.1
56
44
  type: :runtime
57
45
  prerelease: false
58
- version_requirements: *2152785380
46
+ version_requirements: *2153836540
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &2153836060 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.4.1
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *2153836060
58
+ - !ruby/object:Gem::Dependency
59
+ name: shoulda
60
+ requirement: &2153835580 !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: *2153835580
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: &2153835100 !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: *2153835100
80
+ - !ruby/object:Gem::Dependency
81
+ name: jeweler
82
+ requirement: &2153834620 !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: *2153834620
91
+ - !ruby/object:Gem::Dependency
92
+ name: rcov
93
+ requirement: &2153834140 !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: *2153834140
59
102
  description: Code file RSpec 2 matchers that make it easy to spec Ruby code files,
60
103
  fx updated or generated by a Thor generator
61
104
  email: kmandrup@gmail.com
@@ -67,6 +110,7 @@ extra_rdoc_files:
67
110
  files:
68
111
  - .document
69
112
  - .rspec
113
+ - Gemfile
70
114
  - LICENSE
71
115
  - README.markdown
72
116
  - Rakefile
@@ -111,7 +155,6 @@ files:
111
155
  - spec/code-spec/matchers/multi/have_modules_spec.rb
112
156
  - spec/code-spec/matchers/multi/have_subclasses_spec.rb
113
157
  - spec/spec_helper.rb
114
- has_rdoc: true
115
158
  homepage: http://github.com/kristianmandrup/code-spec
116
159
  licenses: []
117
160
  post_install_message:
@@ -124,6 +167,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
167
  - - ! '>='
125
168
  - !ruby/object:Gem::Version
126
169
  version: '0'
170
+ segments:
171
+ - 0
172
+ hash: -1364267117563153565
127
173
  required_rubygems_version: !ruby/object:Gem::Requirement
128
174
  none: false
129
175
  requirements:
@@ -132,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
178
  version: '0'
133
179
  requirements: []
134
180
  rubyforge_project:
135
- rubygems_version: 1.6.2
181
+ rubygems_version: 1.8.8
136
182
  signing_key:
137
183
  specification_version: 3
138
184
  summary: Code file RSpec 2 matchers