generator-spec 0.7.6 → 0.7.8

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 +20 -0
  2. data/Rakefile +46 -28
  3. data/VERSION +1 -1
  4. data/generator-spec.gemspec +25 -18
  5. metadata +69 -45
data/Gemfile ADDED
@@ -0,0 +1,20 @@
1
+ source :rubygems
2
+
3
+ gem "rspec", ">= 2.4.1"
4
+ gem "rake", ">= 0.8.7"
5
+ gem "rails", ">= 3.0.1"
6
+ gem "test-unit", ">= 2.0.1"
7
+
8
+ gem "require_all", "~> 1.2.0"
9
+ gem "sugar-high", ">= 0.6.0"
10
+ gem "rails_artifactor", ">= 0.5.0"
11
+
12
+ group :development do
13
+ gem "mocha", ">= 0.9.8"
14
+
15
+ gem "bundler", ">= 1.0.1"
16
+ gem "jeweler", ">= 1.6.4"
17
+ gem "rcov", ">= 0"
18
+ end
19
+
20
+
data/Rakefile CHANGED
@@ -1,30 +1,48 @@
1
+ require 'rubygems'
2
+ require 'bundler'
1
3
  begin
2
- require 'jeweler'
3
- Jeweler::Tasks.new do |gem|
4
- gem.name = "generator-spec"
5
- gem.summary = %Q{RSpec 2 library add-on for testing generators}
6
- gem.description = %Q{RSpec 2 library to facilitate creating generator specs}
7
- gem.email = "kmandrup@gmail.com"
8
- gem.homepage = "http://github.com/kristianmandrup/rspec_for_generators"
9
- gem.authors = ["Kristian Mandrup"]
10
- # gem.add_development_dependency "rspec", ">= 2.0.1"
11
- gem.add_development_dependency "mocha", ">= 0.9.8"
12
- # gem.add_development_dependency 'rails-app-spec', "~> 0.3.0"
13
- gem.add_development_dependency 'logging_assist', "~> 0.2.2"
14
-
15
- # gem.add_dependency 'rails-app-spec', ">= 0.3.2"
16
- gem.add_dependency "rspec", ">= 2.4.1"
17
- gem.add_dependency "rake", ">= 0.8.7"
18
- gem.add_dependency "rails", ">= 3.0.1"
19
- gem.add_dependency "test-unit", ">= 2.0.1"
20
-
21
- gem.add_dependency "require_all", "~> 1.2.0"
22
- gem.add_dependency "sugar-high", "~> 0.5.0"
23
- gem.add_dependency "rails_artifactor", ">= 0.3.6"
24
-
25
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
26
- end
27
- Jeweler::GemcutterTasks.new
28
- rescue LoadError
29
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
30
9
  end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "generator-spec"
16
+ gem.summary = %Q{RSpec 2 library add-on for testing generators}
17
+ gem.description = %Q{RSpec 2 library to facilitate creating generator specs}
18
+ gem.email = "kmandrup@gmail.com"
19
+ gem.homepage = "http://github.com/kristianmandrup/generator-spec"
20
+ gem.authors = ["Kristian Mandrup"]
21
+ end
22
+ Jeweler::RubygemsDotOrgTasks.new
23
+
24
+ require 'rspec/core'
25
+ require 'rspec/core/rake_task'
26
+ RSpec::Core::RakeTask.new(:spec) do |spec|
27
+ spec.pattern = FileList['spec/**/*_spec.rb']
28
+ end
29
+
30
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
31
+ spec.pattern = 'spec/**/*_spec.rb'
32
+ spec.rcov = true
33
+ end
34
+
35
+ task :default => :spec
36
+
37
+ require 'rake/rdoctask'
38
+ Rake::RDocTask.new do |rdoc|
39
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
+
41
+ rdoc.rdoc_dir = 'rdoc'
42
+ rdoc.title = "generator-spec #{version}"
43
+ rdoc.rdoc_files.include('README*')
44
+ rdoc.rdoc_files.include('lib/**/*.rb')
45
+ end
46
+
47
+
48
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.6
1
+ 0.7.8
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{generator-spec}
8
- s.version = "0.7.6"
8
+ s.version = "0.7.8"
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 library to facilitate creating generator specs}
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",
@@ -64,45 +65,51 @@ Gem::Specification.new do |s|
64
65
  "wiki/migration_matchers.textile",
65
66
  "wiki/rails_helpers.textile"
66
67
  ]
67
- s.homepage = %q{http://github.com/kristianmandrup/rspec_for_generators}
68
- s.require_paths = ["lib"]
69
- s.rubygems_version = %q{1.6.2}
68
+ s.homepage = %q{http://github.com/kristianmandrup/generator-spec}
69
+ s.require_paths = [%q{lib}]
70
+ s.rubygems_version = %q{1.8.8}
70
71
  s.summary = %q{RSpec 2 library add-on for testing generators}
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<mocha>, [">= 0.9.8"])
77
- s.add_development_dependency(%q<logging_assist>, ["~> 0.2.2"])
78
77
  s.add_runtime_dependency(%q<rspec>, [">= 2.4.1"])
79
78
  s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
80
79
  s.add_runtime_dependency(%q<rails>, [">= 3.0.1"])
81
80
  s.add_runtime_dependency(%q<test-unit>, [">= 2.0.1"])
82
81
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
83
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.5.0"])
84
- s.add_runtime_dependency(%q<rails_artifactor>, [">= 0.3.6"])
82
+ s.add_runtime_dependency(%q<sugar-high>, [">= 0.6.0"])
83
+ s.add_runtime_dependency(%q<rails_artifactor>, [">= 0.5.0"])
84
+ s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
85
+ s.add_development_dependency(%q<bundler>, [">= 1.0.1"])
86
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
87
+ s.add_development_dependency(%q<rcov>, [">= 0"])
85
88
  else
86
- s.add_dependency(%q<mocha>, [">= 0.9.8"])
87
- s.add_dependency(%q<logging_assist>, ["~> 0.2.2"])
88
89
  s.add_dependency(%q<rspec>, [">= 2.4.1"])
89
90
  s.add_dependency(%q<rake>, [">= 0.8.7"])
90
91
  s.add_dependency(%q<rails>, [">= 3.0.1"])
91
92
  s.add_dependency(%q<test-unit>, [">= 2.0.1"])
92
93
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
93
- s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
94
- s.add_dependency(%q<rails_artifactor>, [">= 0.3.6"])
94
+ s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
95
+ s.add_dependency(%q<rails_artifactor>, [">= 0.5.0"])
96
+ s.add_dependency(%q<mocha>, [">= 0.9.8"])
97
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
98
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
99
+ s.add_dependency(%q<rcov>, [">= 0"])
95
100
  end
96
101
  else
97
- s.add_dependency(%q<mocha>, [">= 0.9.8"])
98
- s.add_dependency(%q<logging_assist>, ["~> 0.2.2"])
99
102
  s.add_dependency(%q<rspec>, [">= 2.4.1"])
100
103
  s.add_dependency(%q<rake>, [">= 0.8.7"])
101
104
  s.add_dependency(%q<rails>, [">= 3.0.1"])
102
105
  s.add_dependency(%q<test-unit>, [">= 2.0.1"])
103
106
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
104
- s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
105
- s.add_dependency(%q<rails_artifactor>, [">= 0.3.6"])
107
+ s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
108
+ s.add_dependency(%q<rails_artifactor>, [">= 0.5.0"])
109
+ s.add_dependency(%q<mocha>, [">= 0.9.8"])
110
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
111
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
112
+ s.add_dependency(%q<rcov>, [">= 0"])
106
113
  end
107
114
  end
108
115
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generator-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,34 +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: mocha
17
- requirement: &2152755280 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: 0.9.8
23
- type: :development
24
- prerelease: false
25
- version_requirements: *2152755280
26
- - !ruby/object:Gem::Dependency
27
- name: logging_assist
28
- requirement: &2152754760 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: 0.2.2
34
- type: :development
35
- prerelease: false
36
- version_requirements: *2152754760
37
14
  - !ruby/object:Gem::Dependency
38
15
  name: rspec
39
- requirement: &2152754220 !ruby/object:Gem::Requirement
16
+ requirement: &2153594520 !ruby/object:Gem::Requirement
40
17
  none: false
41
18
  requirements:
42
19
  - - ! '>='
@@ -44,10 +21,10 @@ dependencies:
44
21
  version: 2.4.1
45
22
  type: :runtime
46
23
  prerelease: false
47
- version_requirements: *2152754220
24
+ version_requirements: *2153594520
48
25
  - !ruby/object:Gem::Dependency
49
26
  name: rake
50
- requirement: &2152753720 !ruby/object:Gem::Requirement
27
+ requirement: &2153593160 !ruby/object:Gem::Requirement
51
28
  none: false
52
29
  requirements:
53
30
  - - ! '>='
@@ -55,10 +32,10 @@ dependencies:
55
32
  version: 0.8.7
56
33
  type: :runtime
57
34
  prerelease: false
58
- version_requirements: *2152753720
35
+ version_requirements: *2153593160
59
36
  - !ruby/object:Gem::Dependency
60
37
  name: rails
61
- requirement: &2152753060 !ruby/object:Gem::Requirement
38
+ requirement: &2153591600 !ruby/object:Gem::Requirement
62
39
  none: false
63
40
  requirements:
64
41
  - - ! '>='
@@ -66,10 +43,10 @@ dependencies:
66
43
  version: 3.0.1
67
44
  type: :runtime
68
45
  prerelease: false
69
- version_requirements: *2152753060
46
+ version_requirements: *2153591600
70
47
  - !ruby/object:Gem::Dependency
71
48
  name: test-unit
72
- requirement: &2152752460 !ruby/object:Gem::Requirement
49
+ requirement: &2153588420 !ruby/object:Gem::Requirement
73
50
  none: false
74
51
  requirements:
75
52
  - - ! '>='
@@ -77,10 +54,10 @@ dependencies:
77
54
  version: 2.0.1
78
55
  type: :runtime
79
56
  prerelease: false
80
- version_requirements: *2152752460
57
+ version_requirements: *2153588420
81
58
  - !ruby/object:Gem::Dependency
82
59
  name: require_all
83
- requirement: &2152751920 !ruby/object:Gem::Requirement
60
+ requirement: &2153585180 !ruby/object:Gem::Requirement
84
61
  none: false
85
62
  requirements:
86
63
  - - ~>
@@ -88,29 +65,73 @@ dependencies:
88
65
  version: 1.2.0
89
66
  type: :runtime
90
67
  prerelease: false
91
- version_requirements: *2152751920
68
+ version_requirements: *2153585180
92
69
  - !ruby/object:Gem::Dependency
93
70
  name: sugar-high
94
- requirement: &2152751360 !ruby/object:Gem::Requirement
71
+ requirement: &2153581940 !ruby/object:Gem::Requirement
95
72
  none: false
96
73
  requirements:
97
- - - ~>
74
+ - - ! '>='
98
75
  - !ruby/object:Gem::Version
99
- version: 0.5.0
76
+ version: 0.6.0
100
77
  type: :runtime
101
78
  prerelease: false
102
- version_requirements: *2152751360
79
+ version_requirements: *2153581940
103
80
  - !ruby/object:Gem::Dependency
104
81
  name: rails_artifactor
105
- requirement: &2152750440 !ruby/object:Gem::Requirement
82
+ requirement: &2153580020 !ruby/object:Gem::Requirement
106
83
  none: false
107
84
  requirements:
108
85
  - - ! '>='
109
86
  - !ruby/object:Gem::Version
110
- version: 0.3.6
87
+ version: 0.5.0
111
88
  type: :runtime
112
89
  prerelease: false
113
- version_requirements: *2152750440
90
+ version_requirements: *2153580020
91
+ - !ruby/object:Gem::Dependency
92
+ name: mocha
93
+ requirement: &2153575840 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 0.9.8
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *2153575840
102
+ - !ruby/object:Gem::Dependency
103
+ name: bundler
104
+ requirement: &2153570580 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 1.0.1
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *2153570580
113
+ - !ruby/object:Gem::Dependency
114
+ name: jeweler
115
+ requirement: &2153567420 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: 1.6.4
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *2153567420
124
+ - !ruby/object:Gem::Dependency
125
+ name: rcov
126
+ requirement: &2153558480 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *2153558480
114
135
  description: RSpec 2 library to facilitate creating generator specs
115
136
  email: kmandrup@gmail.com
116
137
  executables: []
@@ -121,6 +142,7 @@ extra_rdoc_files:
121
142
  files:
122
143
  - .document
123
144
  - .rspec
145
+ - Gemfile
124
146
  - LICENSE
125
147
  - README.markdown
126
148
  - Rakefile
@@ -165,8 +187,7 @@ files:
165
187
  - wiki/file_matchers.textile
166
188
  - wiki/migration_matchers.textile
167
189
  - wiki/rails_helpers.textile
168
- has_rdoc: true
169
- homepage: http://github.com/kristianmandrup/rspec_for_generators
190
+ homepage: http://github.com/kristianmandrup/generator-spec
170
191
  licenses: []
171
192
  post_install_message:
172
193
  rdoc_options: []
@@ -178,6 +199,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
199
  - - ! '>='
179
200
  - !ruby/object:Gem::Version
180
201
  version: '0'
202
+ segments:
203
+ - 0
204
+ hash: 1470417178655120525
181
205
  required_rubygems_version: !ruby/object:Gem::Requirement
182
206
  none: false
183
207
  requirements:
@@ -186,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
210
  version: '0'
187
211
  requirements: []
188
212
  rubyforge_project:
189
- rubygems_version: 1.6.2
213
+ rubygems_version: 1.8.8
190
214
  signing_key:
191
215
  specification_version: 3
192
216
  summary: RSpec 2 library add-on for testing generators