rails-app-spec 0.2.10 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,12 +7,17 @@ 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_development_dependency "rspec", "~> 2.0.0.beta.22"
11
+
10
12
  gem.add_dependency "rspec", "~> 2.0.0.beta.22"
11
- gem.add_dependency "require_all", "~> 1.1.0"
12
- gem.add_dependency "rails3_artifactor", "~> 0.2.4"
13
- gem.add_dependency "sugar-high", "~> 0.2.8"
14
13
  gem.add_dependency "code-spec", "~> 0.2.5"
15
14
  gem.add_dependency "file-spec", "~> 0.1.1"
15
+
16
+ gem.add_dependency "activesupport", "~> 3.0.0"
17
+ gem.add_dependency "require_all", "~> 1.1.0"
18
+ gem.add_dependency "rails3_artifactor", "~> 0.2.4"
19
+ gem.add_dependency "rails3_assist", "~> 0.2.9"
20
+ gem.add_dependency "sugar-high", "~> 0.2.10"
16
21
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
22
  end
18
23
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.10
1
+ 0.2.12
@@ -1,8 +1,9 @@
1
1
  require 'rails3_artifactor'
2
+ require 'rails3_assist'
3
+ require 'active_support/inflector'
2
4
  require 'require_all'
3
5
  require 'code-spec'
4
6
  require 'file-spec'
5
- require 'active_support/inflector'
6
7
  require 'sugar-high/array'
7
8
  require 'sugar-high/arguments'
8
9
 
@@ -3,7 +3,9 @@
3
3
  module RSpec::RailsApp::Artifact
4
4
  module Matchers
5
5
  class HaveArtifact < RSpec::RubyContentMatcher
6
- include Rails3::Assist::Artifact::FileName
6
+ extend Rails3::Assist::UseMacro
7
+ use_helpers :file
8
+
7
9
  include Artifact::Matcher::Helper
8
10
 
9
11
  def initialize(name, artifact_type)
@@ -2,8 +2,9 @@
2
2
  module RSpec::RailsApp::Artifact
3
3
  module Matchers
4
4
  class HaveArtifacts < RSpec::RubyContentMatcher
5
-
6
- include Rails3::Assist::Artifact::FileName
5
+ extend Rails3::Assist::UseMacro
6
+ use_helpers :file
7
+
7
8
  include ArtifactFile::Matcher::Helper
8
9
  include Artifact::Matcher::Helper
9
10
 
@@ -1,7 +1,8 @@
1
1
  module RSpec::RailsApp::ArtifactFile
2
2
  module Matchers
3
- class HaveRailsArtifactFile
4
- include ::Rails3::Assist::Artifact::FileName
3
+ class HaveRailsArtifactFile
4
+ extend Rails3::Assist::UseMacro
5
+ use_helpers :file
5
6
 
6
7
  attr_accessor :name, :artifact_type, :artifact_name
7
8
  attr_accessor :folder, :action, :view_ext
@@ -1,7 +1,9 @@
1
1
  module RSpec::RailsApp::ArtifactFile
2
2
  module Matchers
3
3
  class HaveRailsArtifactFiles
4
- include ::Rails3::Assist::Artifact::FileName
4
+ extend Rails3::Assist::UseMacro
5
+ use_helpers :file
6
+
5
7
  include ArtifactFile::Matcher::Helper
6
8
 
7
9
  def initialize(artifact_type, *names)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails-app-spec}
8
- s.version = "0.2.10"
8
+ s.version = "0.2.12"
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"]
12
- s.date = %q{2010-09-18}
12
+ s.date = %q{2010-09-20}
13
13
  s.description = %q{RSpec 2 matchers to spec the structure of your Rails 3 app}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -97,27 +97,36 @@ Gem::Specification.new do |s|
97
97
  s.specification_version = 3
98
98
 
99
99
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
100
+ s.add_development_dependency(%q<rspec>, ["~> 2.0.0.beta.22"])
100
101
  s.add_runtime_dependency(%q<rspec>, ["~> 2.0.0.beta.22"])
101
- s.add_runtime_dependency(%q<require_all>, ["~> 1.1.0"])
102
- s.add_runtime_dependency(%q<rails3_artifactor>, ["~> 0.2.4"])
103
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.2.8"])
104
102
  s.add_runtime_dependency(%q<code-spec>, ["~> 0.2.5"])
105
103
  s.add_runtime_dependency(%q<file-spec>, ["~> 0.1.1"])
104
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
105
+ s.add_runtime_dependency(%q<require_all>, ["~> 1.1.0"])
106
+ s.add_runtime_dependency(%q<rails3_artifactor>, ["~> 0.2.4"])
107
+ s.add_runtime_dependency(%q<rails3_assist>, ["~> 0.2.9"])
108
+ s.add_runtime_dependency(%q<sugar-high>, ["~> 0.2.10"])
106
109
  else
107
110
  s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.22"])
108
- s.add_dependency(%q<require_all>, ["~> 1.1.0"])
109
- s.add_dependency(%q<rails3_artifactor>, ["~> 0.2.4"])
110
- s.add_dependency(%q<sugar-high>, ["~> 0.2.8"])
111
+ s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.22"])
111
112
  s.add_dependency(%q<code-spec>, ["~> 0.2.5"])
112
113
  s.add_dependency(%q<file-spec>, ["~> 0.1.1"])
114
+ s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
115
+ s.add_dependency(%q<require_all>, ["~> 1.1.0"])
116
+ s.add_dependency(%q<rails3_artifactor>, ["~> 0.2.4"])
117
+ s.add_dependency(%q<rails3_assist>, ["~> 0.2.9"])
118
+ s.add_dependency(%q<sugar-high>, ["~> 0.2.10"])
113
119
  end
114
120
  else
115
121
  s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.22"])
116
- s.add_dependency(%q<require_all>, ["~> 1.1.0"])
117
- s.add_dependency(%q<rails3_artifactor>, ["~> 0.2.4"])
118
- s.add_dependency(%q<sugar-high>, ["~> 0.2.8"])
122
+ s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.22"])
119
123
  s.add_dependency(%q<code-spec>, ["~> 0.2.5"])
120
124
  s.add_dependency(%q<file-spec>, ["~> 0.1.1"])
125
+ s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
126
+ s.add_dependency(%q<require_all>, ["~> 1.1.0"])
127
+ s.add_dependency(%q<rails3_artifactor>, ["~> 0.2.4"])
128
+ s.add_dependency(%q<rails3_assist>, ["~> 0.2.9"])
129
+ s.add_dependency(%q<sugar-high>, ["~> 0.2.10"])
121
130
  end
122
131
  end
123
132
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- # Rails::Migration::Assist.orm = :active_record
3
+ # Rails3::Migration::Assist.orm = :active_record
4
4
 
5
5
  describe 'migration' do
6
6
  # use_orm :active_record
@@ -1,8 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- Rails::Migration::Assist.orm = :active_record
3
+ Rails3::Migration::Assist.orm = :active_record
4
4
 
5
- root_dir = Rails::Migration::Assist.rails_root_dir
5
+ root_dir = Rails3::Migration::Assist.rails_root_dir
6
6
 
7
7
  describe 'migration' do
8
8
  use_orm :active_record
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 10
9
- version: 0.2.10
8
+ - 12
9
+ version: 0.2.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-18 00:00:00 +02:00
17
+ date: 2010-09-20 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -32,10 +32,10 @@ dependencies:
32
32
  - beta
33
33
  - 22
34
34
  version: 2.0.0.beta.22
35
- type: :runtime
35
+ type: :development
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: require_all
38
+ name: rspec
39
39
  prerelease: false
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
@@ -43,14 +43,16 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  segments:
46
- - 1
47
- - 1
46
+ - 2
48
47
  - 0
49
- version: 1.1.0
48
+ - 0
49
+ - beta
50
+ - 22
51
+ version: 2.0.0.beta.22
50
52
  type: :runtime
51
53
  version_requirements: *id002
52
54
  - !ruby/object:Gem::Dependency
53
- name: rails3_artifactor
55
+ name: code-spec
54
56
  prerelease: false
55
57
  requirement: &id003 !ruby/object:Gem::Requirement
56
58
  none: false
@@ -60,12 +62,12 @@ dependencies:
60
62
  segments:
61
63
  - 0
62
64
  - 2
63
- - 4
64
- version: 0.2.4
65
+ - 5
66
+ version: 0.2.5
65
67
  type: :runtime
66
68
  version_requirements: *id003
67
69
  - !ruby/object:Gem::Dependency
68
- name: sugar-high
70
+ name: file-spec
69
71
  prerelease: false
70
72
  requirement: &id004 !ruby/object:Gem::Requirement
71
73
  none: false
@@ -74,13 +76,13 @@ dependencies:
74
76
  - !ruby/object:Gem::Version
75
77
  segments:
76
78
  - 0
77
- - 2
78
- - 8
79
- version: 0.2.8
79
+ - 1
80
+ - 1
81
+ version: 0.1.1
80
82
  type: :runtime
81
83
  version_requirements: *id004
82
84
  - !ruby/object:Gem::Dependency
83
- name: code-spec
85
+ name: activesupport
84
86
  prerelease: false
85
87
  requirement: &id005 !ruby/object:Gem::Requirement
86
88
  none: false
@@ -88,14 +90,14 @@ dependencies:
88
90
  - - ~>
89
91
  - !ruby/object:Gem::Version
90
92
  segments:
93
+ - 3
91
94
  - 0
92
- - 2
93
- - 5
94
- version: 0.2.5
95
+ - 0
96
+ version: 3.0.0
95
97
  type: :runtime
96
98
  version_requirements: *id005
97
99
  - !ruby/object:Gem::Dependency
98
- name: file-spec
100
+ name: require_all
99
101
  prerelease: false
100
102
  requirement: &id006 !ruby/object:Gem::Requirement
101
103
  none: false
@@ -103,12 +105,57 @@ dependencies:
103
105
  - - ~>
104
106
  - !ruby/object:Gem::Version
105
107
  segments:
106
- - 0
107
108
  - 1
108
109
  - 1
109
- version: 0.1.1
110
+ - 0
111
+ version: 1.1.0
110
112
  type: :runtime
111
113
  version_requirements: *id006
114
+ - !ruby/object:Gem::Dependency
115
+ name: rails3_artifactor
116
+ prerelease: false
117
+ requirement: &id007 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ~>
121
+ - !ruby/object:Gem::Version
122
+ segments:
123
+ - 0
124
+ - 2
125
+ - 4
126
+ version: 0.2.4
127
+ type: :runtime
128
+ version_requirements: *id007
129
+ - !ruby/object:Gem::Dependency
130
+ name: rails3_assist
131
+ prerelease: false
132
+ requirement: &id008 !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ~>
136
+ - !ruby/object:Gem::Version
137
+ segments:
138
+ - 0
139
+ - 2
140
+ - 9
141
+ version: 0.2.9
142
+ type: :runtime
143
+ version_requirements: *id008
144
+ - !ruby/object:Gem::Dependency
145
+ name: sugar-high
146
+ prerelease: false
147
+ requirement: &id009 !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ segments:
153
+ - 0
154
+ - 2
155
+ - 10
156
+ version: 0.2.10
157
+ type: :runtime
158
+ version_requirements: *id009
112
159
  description: RSpec 2 matchers to spec the structure of your Rails 3 app
113
160
  email: kmandrup@gmail.com
114
161
  executables: []