cream 0.7.10 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/README.markdown +1 -0
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/cream.gemspec +11 -11
- data/lib/generators/devise/config/config_generator.rb +8 -4
- metadata +10 -10
data/Gemfile
CHANGED
data/README.markdown
CHANGED
@@ -30,6 +30,7 @@ The following Rails 3 demo apps use Cream 0.7.7 and above and were created Dec 1
|
|
30
30
|
|
31
31
|
* [Cream app with Active Record](https://github.com/kristianmandrup/cream-app-active_record)
|
32
32
|
* [Cream app with Mongoid](https://github.com/kristianmandrup/cream-app-mongoid)
|
33
|
+
* [Cream app with Mongo Mapper](https://github.com/kristianmandrup/cream-app-mongo_mapper)
|
33
34
|
|
34
35
|
## Status
|
35
36
|
|
data/Rakefile
CHANGED
@@ -8,12 +8,12 @@ begin
|
|
8
8
|
gem.homepage = "http://github.com/kristianmandrup/devise-assistant"
|
9
9
|
gem.authors = ["Kristian Mandrup"]
|
10
10
|
|
11
|
-
gem.add_development_dependency "rspec", ">= 2.0.
|
11
|
+
gem.add_development_dependency "rspec", ">= 2.0.1"
|
12
12
|
gem.add_development_dependency "generator-spec", ">= 0.7.0"
|
13
13
|
gem.add_development_dependency "rspec-action_view", ">= 0.3.1"
|
14
14
|
gem.add_development_dependency "rails-app-spec", ">= 0.3.0"
|
15
15
|
gem.add_development_dependency "devise-spec", ">= 0.1.3"
|
16
|
-
gem.add_development_dependency "roles-spec",
|
16
|
+
gem.add_development_dependency "roles-spec", ">= 0.1.3"
|
17
17
|
|
18
18
|
gem.add_dependency "require_all", "~> 1.2.0"
|
19
19
|
|
@@ -29,7 +29,7 @@ begin
|
|
29
29
|
gem.add_dependency 'logging_assist', "~> 0.1.6"
|
30
30
|
|
31
31
|
gem.add_dependency "r3_plugin_toolbox", ">= 0.4.0"
|
32
|
-
gem.add_dependency "sugar-high", "~> 0.3.
|
32
|
+
gem.add_dependency "sugar-high", "~> 0.3.1"
|
33
33
|
|
34
34
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
35
35
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
data/cream.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cream}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.8.0"
|
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-12-
|
12
|
+
s.date = %q{2010-12-02}
|
13
13
|
s.description = %q{Provides assistance for setting up Session, Role and Permission systems for a Rails 3 app. Support for multiple ORMs}
|
14
14
|
s.email = %q{kmandrup@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -128,8 +128,8 @@ Gem::Specification.new do |s|
|
|
128
128
|
s.add_runtime_dependency(%q<rails3_artifactor>, ["~> 0.3.0"])
|
129
129
|
s.add_runtime_dependency(%q<logging_assist>, ["~> 0.1.6"])
|
130
130
|
s.add_runtime_dependency(%q<r3_plugin_toolbox>, [">= 0.4.0"])
|
131
|
-
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.
|
132
|
-
s.add_development_dependency(%q<rspec>, [">= 2.0.
|
131
|
+
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.1"])
|
132
|
+
s.add_development_dependency(%q<rspec>, [">= 2.0.1"])
|
133
133
|
s.add_development_dependency(%q<generator-spec>, [">= 0.7.0"])
|
134
134
|
s.add_development_dependency(%q<rspec-action_view>, [">= 0.3.1"])
|
135
135
|
s.add_development_dependency(%q<rails-app-spec>, [">= 0.3.0"])
|
@@ -145,7 +145,7 @@ Gem::Specification.new do |s|
|
|
145
145
|
s.add_runtime_dependency(%q<rails3_artifactor>, ["~> 0.3.1"])
|
146
146
|
s.add_runtime_dependency(%q<logging_assist>, ["~> 0.1.6"])
|
147
147
|
s.add_runtime_dependency(%q<r3_plugin_toolbox>, [">= 0.4.0"])
|
148
|
-
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.
|
148
|
+
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.1"])
|
149
149
|
else
|
150
150
|
s.add_dependency(%q<devise-links>, ["~> 0.2.0"])
|
151
151
|
s.add_dependency(%q<cancan-rest-links>, [">= 0.2.0"])
|
@@ -157,8 +157,8 @@ Gem::Specification.new do |s|
|
|
157
157
|
s.add_dependency(%q<rails3_artifactor>, ["~> 0.3.0"])
|
158
158
|
s.add_dependency(%q<logging_assist>, ["~> 0.1.6"])
|
159
159
|
s.add_dependency(%q<r3_plugin_toolbox>, [">= 0.4.0"])
|
160
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.3.
|
161
|
-
s.add_dependency(%q<rspec>, [">= 2.0.
|
160
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.3.1"])
|
161
|
+
s.add_dependency(%q<rspec>, [">= 2.0.1"])
|
162
162
|
s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
|
163
163
|
s.add_dependency(%q<rspec-action_view>, [">= 0.3.1"])
|
164
164
|
s.add_dependency(%q<rails-app-spec>, [">= 0.3.0"])
|
@@ -174,7 +174,7 @@ Gem::Specification.new do |s|
|
|
174
174
|
s.add_dependency(%q<rails3_artifactor>, ["~> 0.3.1"])
|
175
175
|
s.add_dependency(%q<logging_assist>, ["~> 0.1.6"])
|
176
176
|
s.add_dependency(%q<r3_plugin_toolbox>, [">= 0.4.0"])
|
177
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.3.
|
177
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.3.1"])
|
178
178
|
end
|
179
179
|
else
|
180
180
|
s.add_dependency(%q<devise-links>, ["~> 0.2.0"])
|
@@ -187,8 +187,8 @@ Gem::Specification.new do |s|
|
|
187
187
|
s.add_dependency(%q<rails3_artifactor>, ["~> 0.3.0"])
|
188
188
|
s.add_dependency(%q<logging_assist>, ["~> 0.1.6"])
|
189
189
|
s.add_dependency(%q<r3_plugin_toolbox>, [">= 0.4.0"])
|
190
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.3.
|
191
|
-
s.add_dependency(%q<rspec>, [">= 2.0.
|
190
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.3.1"])
|
191
|
+
s.add_dependency(%q<rspec>, [">= 2.0.1"])
|
192
192
|
s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
|
193
193
|
s.add_dependency(%q<rspec-action_view>, [">= 0.3.1"])
|
194
194
|
s.add_dependency(%q<rails-app-spec>, [">= 0.3.0"])
|
@@ -204,7 +204,7 @@ Gem::Specification.new do |s|
|
|
204
204
|
s.add_dependency(%q<rails3_artifactor>, ["~> 0.3.1"])
|
205
205
|
s.add_dependency(%q<logging_assist>, ["~> 0.1.6"])
|
206
206
|
s.add_dependency(%q<r3_plugin_toolbox>, [">= 0.4.0"])
|
207
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.3.
|
207
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.3.1"])
|
208
208
|
end
|
209
209
|
end
|
210
210
|
|
@@ -69,7 +69,7 @@ module Devise
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def gems_mongo_db
|
72
|
-
add_gem 'bson_ext', '1.1.4'
|
72
|
+
add_gem 'bson_ext', '>= 1.1.4'
|
73
73
|
end
|
74
74
|
|
75
75
|
def devise_gems
|
@@ -80,7 +80,7 @@ module Devise
|
|
80
80
|
case orm.to_sym
|
81
81
|
when :mongoid
|
82
82
|
say "Please configure Devise for Mongoid similar to Rails 3 example app: http://github.com/fortuity/rails3-mongoid-devise"
|
83
|
-
add_gem 'mongoid', '2.0.0
|
83
|
+
add_gem 'mongoid', '>= 2.0.0'
|
84
84
|
gems_mongo_db
|
85
85
|
when :mongo_mapper
|
86
86
|
add_gem 'mm-devise'
|
@@ -145,14 +145,18 @@ module Devise
|
|
145
145
|
def add_gem_version name, version
|
146
146
|
if !has_gem_version?(name, version)
|
147
147
|
logger.debug "Adding gem: #{name}, #{version}"
|
148
|
-
gem
|
148
|
+
gem name, :version => version
|
149
149
|
else
|
150
150
|
logger.debug "gem: #{name}, #{version} already in Gemfile"
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
154
|
def add_gem name, version = nil
|
155
|
-
|
155
|
+
if version
|
156
|
+
add_gem_version name, version
|
157
|
+
return
|
158
|
+
end
|
159
|
+
|
156
160
|
if !has_gem? name
|
157
161
|
logger.debug "Adding gem: #{name}"
|
158
162
|
gem name
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 8
|
8
|
+
- 0
|
9
|
+
version: 0.8.0
|
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-12-
|
17
|
+
date: 2010-12-02 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -177,8 +177,8 @@ dependencies:
|
|
177
177
|
segments:
|
178
178
|
- 0
|
179
179
|
- 3
|
180
|
-
-
|
181
|
-
version: 0.3.
|
180
|
+
- 1
|
181
|
+
version: 0.3.1
|
182
182
|
type: :runtime
|
183
183
|
prerelease: false
|
184
184
|
version_requirements: *id011
|
@@ -192,8 +192,8 @@ dependencies:
|
|
192
192
|
segments:
|
193
193
|
- 2
|
194
194
|
- 0
|
195
|
-
-
|
196
|
-
version: 2.0.
|
195
|
+
- 1
|
196
|
+
version: 2.0.1
|
197
197
|
type: :development
|
198
198
|
prerelease: false
|
199
199
|
version_requirements: *id012
|
@@ -432,8 +432,8 @@ dependencies:
|
|
432
432
|
segments:
|
433
433
|
- 0
|
434
434
|
- 3
|
435
|
-
-
|
436
|
-
version: 0.3.
|
435
|
+
- 1
|
436
|
+
version: 0.3.1
|
437
437
|
type: :runtime
|
438
438
|
prerelease: false
|
439
439
|
version_requirements: *id028
|