rails-app-spec 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -31
- data/VERSION +1 -1
- data/lib/rails-app-spec.rb +3 -13
- data/lib/rails_app_spec/rspec.rb +3 -0
- data/lib/rails_app_spec/rspec/configure.rb +8 -0
- data/rails-app-spec.gemspec +19 -19
- data/spec/spec_helper.rb +1 -2
- metadata +14 -16
- data/spec/load_spec.rb +0 -4
data/Rakefile
CHANGED
@@ -7,40 +7,14 @@ begin
|
|
7
7
|
gem.email = "kmandrup@gmail.com"
|
8
8
|
gem.homepage = "http://github.com/kristianmandrup/rails-app-spec"
|
9
9
|
gem.authors = ["Kristian Mandrup"]
|
10
|
-
gem.add_dependency "rspec",
|
11
|
-
gem.add_dependency "require_all",
|
12
|
-
gem.add_dependency "
|
13
|
-
gem.add_dependency "code-spec",
|
14
|
-
gem.add_dependency "file-spec",
|
10
|
+
gem.add_dependency "rspec", "~> 2.0.0"
|
11
|
+
gem.add_dependency "require_all", "~> 1.1.0"
|
12
|
+
gem.add_dependency "rails3_artifactor", "~> 0.1.4"
|
13
|
+
gem.add_dependency "code-spec", "~> 0.2.1"
|
14
|
+
gem.add_dependency "file-spec", "~> 0.1.1"
|
15
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
19
19
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
20
20
|
end
|
21
|
-
|
22
|
-
# require 'spec/rake/spectask'
|
23
|
-
# Spec::Rake::SpecTask.new(:spec) do |spec|
|
24
|
-
# spec.libs << 'lib' << 'spec'
|
25
|
-
# spec.spec_files = FileList['spec/**/*_spec.rb']
|
26
|
-
# end
|
27
|
-
#
|
28
|
-
# Spec::Rake::SpecTask.new(:rcov) do |spec|
|
29
|
-
# spec.libs << 'lib' << 'spec'
|
30
|
-
# spec.pattern = 'spec/**/*_spec.rb'
|
31
|
-
# spec.rcov = true
|
32
|
-
# end
|
33
|
-
#
|
34
|
-
# task :spec => :check_dependencies
|
35
|
-
#
|
36
|
-
# task :default => :spec
|
37
|
-
#
|
38
|
-
# require 'rake/rdoctask'
|
39
|
-
# Rake::RDocTask.new do |rdoc|
|
40
|
-
# version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
41
|
-
#
|
42
|
-
# rdoc.rdoc_dir = 'rdoc'
|
43
|
-
# rdoc.title = "rails-app-spec #{version}"
|
44
|
-
# rdoc.rdoc_files.include('README*')
|
45
|
-
# rdoc.rdoc_files.include('lib/**/*.rb')
|
46
|
-
# end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/lib/rails-app-spec.rb
CHANGED
@@ -1,19 +1,9 @@
|
|
1
|
-
require 'rspec'
|
2
1
|
require 'rails3_artifactor'
|
3
|
-
require 'rails3_assist'
|
4
2
|
require 'require_all'
|
5
3
|
require 'code-spec'
|
6
|
-
require 'active_support/inflector'
|
7
4
|
require 'file-spec'
|
5
|
+
require 'active_support/inflector'
|
8
6
|
|
9
7
|
require 'rails_app_spec/namespaces'
|
10
|
-
|
11
|
-
|
12
|
-
RSpec.configure do |config|
|
13
|
-
config.include RSpec::RailsApp::File::Matchers
|
14
|
-
config.include RSpec::RailsApp::Dir::Matchers
|
15
|
-
config.include RSpec::RailsApp::Content::Matchers
|
16
|
-
config.include RSpec::RailsApp::Artifact::Matchers
|
17
|
-
config.include RSpec::RailsApp::ArtifactClass::Matchers
|
18
|
-
config.include RSpec::RailsApp::ArtifactFile::Matchers
|
19
|
-
end
|
8
|
+
require 'rails_app_spec/rspec'
|
9
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
RSpec.configure do |config|
|
2
|
+
config.include RSpec::RailsApp::File::Matchers
|
3
|
+
config.include RSpec::RailsApp::Dir::Matchers
|
4
|
+
config.include RSpec::RailsApp::Content::Matchers
|
5
|
+
config.include RSpec::RailsApp::Artifact::Matchers
|
6
|
+
config.include RSpec::RailsApp::ArtifactClass::Matchers
|
7
|
+
config.include RSpec::RailsApp::ArtifactFile::Matchers
|
8
|
+
end
|
data/rails-app-spec.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rails-app-spec}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kristian Mandrup"]
|
@@ -34,10 +34,11 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/rails_app_spec/matchers/file/have_rails_file.rb",
|
35
35
|
"lib/rails_app_spec/matchers/special/have_app_config.rb",
|
36
36
|
"lib/rails_app_spec/namespaces.rb",
|
37
|
+
"lib/rails_app_spec/rspec.rb",
|
38
|
+
"lib/rails_app_spec/rspec/configure.rb",
|
37
39
|
"rails-app-spec.gemspec",
|
38
40
|
"sandbox/dir_logic.rb",
|
39
41
|
"sandbox/file_logic.rb",
|
40
|
-
"spec/load_spec.rb",
|
41
42
|
"spec/rails_app_spec/matchers/artifact/controller_spec.rb",
|
42
43
|
"spec/rails_app_spec/matchers/artifact/helper_spec.rb",
|
43
44
|
"spec/rails_app_spec/matchers/artifact/mailer_spec.rb",
|
@@ -56,8 +57,7 @@ Gem::Specification.new do |s|
|
|
56
57
|
s.rubygems_version = %q{1.3.7}
|
57
58
|
s.summary = %q{RSpec 2 matchers to spec the structure of your Rails 3 app}
|
58
59
|
s.test_files = [
|
59
|
-
"spec/
|
60
|
-
"spec/rails_app_spec/matchers/artifact/controller_spec.rb",
|
60
|
+
"spec/rails_app_spec/matchers/artifact/controller_spec.rb",
|
61
61
|
"spec/rails_app_spec/matchers/artifact/helper_spec.rb",
|
62
62
|
"spec/rails_app_spec/matchers/artifact/mailer_spec.rb",
|
63
63
|
"spec/rails_app_spec/matchers/artifact/migration/migration_simple_number_spec.rb",
|
@@ -75,24 +75,24 @@ Gem::Specification.new do |s|
|
|
75
75
|
s.specification_version = 3
|
76
76
|
|
77
77
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
78
|
-
s.add_runtime_dependency(%q<rspec>, ["
|
79
|
-
s.add_runtime_dependency(%q<require_all>, ["
|
80
|
-
s.add_runtime_dependency(%q<
|
81
|
-
s.add_runtime_dependency(%q<code-spec>, ["
|
82
|
-
s.add_runtime_dependency(%q<file-spec>, ["
|
78
|
+
s.add_runtime_dependency(%q<rspec>, ["~> 2.0.0"])
|
79
|
+
s.add_runtime_dependency(%q<require_all>, ["~> 1.1.0"])
|
80
|
+
s.add_runtime_dependency(%q<rails3_artifactor>, ["~> 0.1.4"])
|
81
|
+
s.add_runtime_dependency(%q<code-spec>, ["~> 0.2.1"])
|
82
|
+
s.add_runtime_dependency(%q<file-spec>, ["~> 0.1.1"])
|
83
83
|
else
|
84
|
-
s.add_dependency(%q<rspec>, ["
|
85
|
-
s.add_dependency(%q<require_all>, ["
|
86
|
-
s.add_dependency(%q<
|
87
|
-
s.add_dependency(%q<code-spec>, ["
|
88
|
-
s.add_dependency(%q<file-spec>, ["
|
84
|
+
s.add_dependency(%q<rspec>, ["~> 2.0.0"])
|
85
|
+
s.add_dependency(%q<require_all>, ["~> 1.1.0"])
|
86
|
+
s.add_dependency(%q<rails3_artifactor>, ["~> 0.1.4"])
|
87
|
+
s.add_dependency(%q<code-spec>, ["~> 0.2.1"])
|
88
|
+
s.add_dependency(%q<file-spec>, ["~> 0.1.1"])
|
89
89
|
end
|
90
90
|
else
|
91
|
-
s.add_dependency(%q<rspec>, ["
|
92
|
-
s.add_dependency(%q<require_all>, ["
|
93
|
-
s.add_dependency(%q<
|
94
|
-
s.add_dependency(%q<code-spec>, ["
|
95
|
-
s.add_dependency(%q<file-spec>, ["
|
91
|
+
s.add_dependency(%q<rspec>, ["~> 2.0.0"])
|
92
|
+
s.add_dependency(%q<require_all>, ["~> 1.1.0"])
|
93
|
+
s.add_dependency(%q<rails3_artifactor>, ["~> 0.1.4"])
|
94
|
+
s.add_dependency(%q<code-spec>, ["~> 0.2.1"])
|
95
|
+
s.add_dependency(%q<file-spec>, ["~> 0.1.1"])
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 5
|
9
|
+
version: 0.2.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kristian Mandrup
|
@@ -23,15 +23,13 @@ dependencies:
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
29
|
- 2
|
30
30
|
- 0
|
31
31
|
- 0
|
32
|
-
|
33
|
-
- 19
|
34
|
-
version: 2.0.0.beta.19
|
32
|
+
version: 2.0.0
|
35
33
|
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
@@ -40,7 +38,7 @@ dependencies:
|
|
40
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
|
-
- -
|
41
|
+
- - ~>
|
44
42
|
- !ruby/object:Gem::Version
|
45
43
|
segments:
|
46
44
|
- 1
|
@@ -50,18 +48,18 @@ dependencies:
|
|
50
48
|
type: :runtime
|
51
49
|
version_requirements: *id002
|
52
50
|
- !ruby/object:Gem::Dependency
|
53
|
-
name:
|
51
|
+
name: rails3_artifactor
|
54
52
|
prerelease: false
|
55
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
54
|
none: false
|
57
55
|
requirements:
|
58
|
-
- -
|
56
|
+
- - ~>
|
59
57
|
- !ruby/object:Gem::Version
|
60
58
|
segments:
|
61
59
|
- 0
|
62
|
-
-
|
63
|
-
-
|
64
|
-
version: 0.
|
60
|
+
- 1
|
61
|
+
- 4
|
62
|
+
version: 0.1.4
|
65
63
|
type: :runtime
|
66
64
|
version_requirements: *id003
|
67
65
|
- !ruby/object:Gem::Dependency
|
@@ -70,7 +68,7 @@ dependencies:
|
|
70
68
|
requirement: &id004 !ruby/object:Gem::Requirement
|
71
69
|
none: false
|
72
70
|
requirements:
|
73
|
-
- -
|
71
|
+
- - ~>
|
74
72
|
- !ruby/object:Gem::Version
|
75
73
|
segments:
|
76
74
|
- 0
|
@@ -85,7 +83,7 @@ dependencies:
|
|
85
83
|
requirement: &id005 !ruby/object:Gem::Requirement
|
86
84
|
none: false
|
87
85
|
requirements:
|
88
|
-
- -
|
86
|
+
- - ~>
|
89
87
|
- !ruby/object:Gem::Version
|
90
88
|
segments:
|
91
89
|
- 0
|
@@ -121,10 +119,11 @@ files:
|
|
121
119
|
- lib/rails_app_spec/matchers/file/have_rails_file.rb
|
122
120
|
- lib/rails_app_spec/matchers/special/have_app_config.rb
|
123
121
|
- lib/rails_app_spec/namespaces.rb
|
122
|
+
- lib/rails_app_spec/rspec.rb
|
123
|
+
- lib/rails_app_spec/rspec/configure.rb
|
124
124
|
- rails-app-spec.gemspec
|
125
125
|
- sandbox/dir_logic.rb
|
126
126
|
- sandbox/file_logic.rb
|
127
|
-
- spec/load_spec.rb
|
128
127
|
- spec/rails_app_spec/matchers/artifact/controller_spec.rb
|
129
128
|
- spec/rails_app_spec/matchers/artifact/helper_spec.rb
|
130
129
|
- spec/rails_app_spec/matchers/artifact/mailer_spec.rb
|
@@ -169,7 +168,6 @@ signing_key:
|
|
169
168
|
specification_version: 3
|
170
169
|
summary: RSpec 2 matchers to spec the structure of your Rails 3 app
|
171
170
|
test_files:
|
172
|
-
- spec/load_spec.rb
|
173
171
|
- spec/rails_app_spec/matchers/artifact/controller_spec.rb
|
174
172
|
- spec/rails_app_spec/matchers/artifact/helper_spec.rb
|
175
173
|
- spec/rails_app_spec/matchers/artifact/mailer_spec.rb
|
data/spec/load_spec.rb
DELETED