simple_roles 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 1.8.7
4
4
  - 1.9.3
5
+ - 2.0
5
6
  script: "rake"
6
7
  gemfile:
7
8
  - Gemfile
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source "http://rubygems.org"
4
4
  # Bundler will treat runtime dependencies like base dependencies, and
5
5
  # development dependencies will be added by default to the :development group.
6
6
 
7
- gem 'activerecord'
7
+ gem 'activerecord', '>=3.1.0'
8
8
 
9
9
  group :development, :test do
10
10
  gem 'rake-kit'
data/Rakefile CHANGED
@@ -4,13 +4,6 @@ begin
4
4
  rescue LoadError
5
5
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
6
  end
7
- begin
8
- require 'rdoc/task'
9
- rescue LoadError
10
- require 'rdoc/rdoc'
11
- require 'rake/rdoctask'
12
- RDoc::Task = Rake::RDocTask
13
- end
14
7
 
15
8
  $:.unshift File.expand_path('lib', File.dirname(__FILE__))
16
9
  require 'simple_roles'
@@ -30,17 +23,11 @@ Jeweler::Tasks.new do |gem|
30
23
  end
31
24
  Jeweler::RubygemsDotOrgTasks.new
32
25
 
33
- RDoc::Task.new(:rdoc) do |rdoc|
34
- rdoc.rdoc_dir = 'rdoc'
35
- rdoc.title = 'SimpleRoles'
36
- rdoc.options << '--line-numbers'
37
- rdoc.rdoc_files.include('README.rdoc')
38
- rdoc.rdoc_files.include('lib/**/*.rb')
39
- end
40
-
41
26
  APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
42
27
 
43
- load 'rails/tasks/engine.rake'
28
+ if File.exists?(APP_RAKEFILE) && defined?(Rails)
29
+ load 'rails/tasks/engine.rake'
30
+ end
44
31
 
45
32
  require 'rspec/core'
46
33
  require 'rspec/core/rake_task'
@@ -0,0 +1,8 @@
1
+ module SimpleRoles
2
+ class Engine < Rails::Engine
3
+ engine_name 'simple_roles'
4
+
5
+ # initializer 'simple_roles' do |app|
6
+ # end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleRoles
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
data/lib/simple_roles.rb CHANGED
@@ -4,6 +4,8 @@ require 'simple_roles/version'
4
4
 
5
5
  require 'simple_roles/macros'
6
6
 
7
+ require 'simple_roles/engine' if defined?(Rails)
8
+
7
9
  Dir[File.expand_path('../../app/models/*', __FILE__)].each do |f|
8
10
  require f
9
11
  end
data/simple_roles.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "simple_roles"
8
- s.version = "0.0.10"
8
+ s.version = "0.0.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["stanislaw"]
12
- s.date = "2013-02-22"
12
+ s.date = "2013-04-10"
13
13
  s.description = "Simple Role System for Rails Apps"
14
14
  s.email = "s.pankevich@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
31
31
  "db/migrate/002_create_roles.rb",
32
32
  "lib/simple_roles.rb",
33
33
  "lib/simple_roles/configuration.rb",
34
+ "lib/simple_roles/engine.rb",
34
35
  "lib/simple_roles/macros.rb",
35
36
  "lib/simple_roles/many.rb",
36
37
  "lib/simple_roles/many/persistence.rb",
@@ -154,7 +155,7 @@ Gem::Specification.new do |s|
154
155
  s.specification_version = 3
155
156
 
156
157
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
157
- s.add_runtime_dependency(%q<activerecord>, [">= 0"])
158
+ s.add_runtime_dependency(%q<activerecord>, [">= 3.1.0"])
158
159
  s.add_development_dependency(%q<rake-kit>, [">= 0"])
159
160
  s.add_development_dependency(%q<devise>, [">= 0"])
160
161
  s.add_development_dependency(%q<mysql2>, [">= 0"])
@@ -165,7 +166,7 @@ Gem::Specification.new do |s|
165
166
  s.add_development_dependency(%q<rspec>, [">= 0"])
166
167
  s.add_development_dependency(%q<factory_girl>, ["= 2.6.4"])
167
168
  else
168
- s.add_dependency(%q<activerecord>, [">= 0"])
169
+ s.add_dependency(%q<activerecord>, [">= 3.1.0"])
169
170
  s.add_dependency(%q<rake-kit>, [">= 0"])
170
171
  s.add_dependency(%q<devise>, [">= 0"])
171
172
  s.add_dependency(%q<mysql2>, [">= 0"])
@@ -177,7 +178,7 @@ Gem::Specification.new do |s|
177
178
  s.add_dependency(%q<factory_girl>, ["= 2.6.4"])
178
179
  end
179
180
  else
180
- s.add_dependency(%q<activerecord>, [">= 0"])
181
+ s.add_dependency(%q<activerecord>, [">= 3.1.0"])
181
182
  s.add_dependency(%q<rake-kit>, [">= 0"])
182
183
  s.add_dependency(%q<devise>, [">= 0"])
183
184
  s.add_dependency(%q<mysql2>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_roles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-22 00:00:00.000000000 Z
12
+ date: 2013-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 3.1.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rake-kit
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -193,6 +193,7 @@ files:
193
193
  - db/migrate/002_create_roles.rb
194
194
  - lib/simple_roles.rb
195
195
  - lib/simple_roles/configuration.rb
196
+ - lib/simple_roles/engine.rb
196
197
  - lib/simple_roles/macros.rb
197
198
  - lib/simple_roles/many.rb
198
199
  - lib/simple_roles/many/persistence.rb
@@ -320,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
320
321
  version: '0'
321
322
  segments:
322
323
  - 0
323
- hash: -2677867564790652006
324
+ hash: -2073500389955326145
324
325
  required_rubygems_version: !ruby/object:Gem::Requirement
325
326
  none: false
326
327
  requirements: