simple_roles 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.0.10
4
+
5
+ ### Removed
6
+
7
+ * Removed runtime dependencies: sugar-high, require_all, sweetloader
8
+
3
9
  ## 0.0.9
4
10
 
5
11
  ### Changed
data/Gemfile CHANGED
@@ -4,15 +4,14 @@ 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 'require_all'
8
- gem 'sugar-high'
9
- gem 'sweetloader'
10
7
  gem 'activerecord'
11
8
 
12
9
  group :development, :test do
13
10
  gem 'rake-kit'
14
11
  gem 'devise'
15
12
  gem 'mysql2'
13
+ gem 'require_all'
14
+ gem 'sugar-high'
16
15
  gem 'jeweler'
17
16
  gem 'cutter'
18
17
  gem 'rspec'
@@ -15,7 +15,7 @@ module SimpleRoles
15
15
  end
16
16
 
17
17
  def roles= *rolez
18
- rolez.to_symbols!.flatten!
18
+ rolez = rolez.flatten.map(&:to_sym)
19
19
 
20
20
  super retrieve_roles(rolez)
21
21
  end
@@ -1,5 +1,6 @@
1
1
  module SimpleRoles
2
2
  module Many
3
- autoload_modules :Persistence, :RolesMethods
3
+ autoload :Persistence, 'simple_roles/many/persistence'
4
+ autoload :RolesMethods, 'simple_roles/many/roles_methods'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module SimpleRoles
2
2
  module One
3
- autoload_modules :Persistence, :RolesMethods
3
+ autoload :Persistence, 'simple_roles/one/persistence'
4
+ autoload :RolesMethods, 'simple_roles/one/roles_methods'
4
5
  end
5
6
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleRoles
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/lib/simple_roles.rb CHANGED
@@ -1,20 +1,18 @@
1
- require 'sweetloader'
2
- require 'require_all'
3
-
4
- require 'sugar-high/array'
5
- require 'sugar-high/dsl'
6
-
7
1
  require 'active_record'
8
2
 
9
3
  require 'simple_roles/version'
10
4
 
11
- require 'simple_roles/engine' if defined?(Rails)
12
5
  require 'simple_roles/macros'
13
6
 
14
- require_all File.expand_path('../../app', __FILE__)
7
+ Dir[File.expand_path('../../app/models/*', __FILE__)].each do |f|
8
+ require f
9
+ end
15
10
 
16
11
  module SimpleRoles
17
- autoload_modules :Configuration, :Packager, :One, :Many
12
+ autoload :Configuration, 'simple_roles/configuration'
13
+ autoload :Packager, 'simple_roles/packager'
14
+ autoload :One, 'simple_roles/one'
15
+ autoload :Many, 'simple_roles/many'
18
16
 
19
17
  extend self
20
18
 
@@ -29,6 +27,6 @@ module SimpleRoles
29
27
  def packager
30
28
  SimpleRoles::Packager
31
29
  end
32
-
30
+
33
31
  delegate :package, :to => :packager, :prefix => false
34
32
  end
data/simple_roles.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "simple_roles"
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["stanislaw"]
@@ -23,22 +23,14 @@ Gem::Specification.new do |s|
23
23
  "MIT-LICENSE",
24
24
  "README.md",
25
25
  "Rakefile",
26
- "app/assets/images/simple_roles/.gitkeep",
27
- "app/assets/javascripts/simple_roles/.gitkeep",
28
- "app/assets/stylesheets/simple_roles/.gitkeep",
29
- "app/controllers/.gitkeep",
30
- "app/helpers/.gitkeep",
31
- "app/mailers/.gitkeep",
32
26
  "app/models/.gitkeep",
33
27
  "app/models/role.rb",
34
28
  "app/models/user_role.rb",
35
- "app/views/.gitkeep",
36
29
  "config/routes.rb",
37
30
  "db/migrate/001_create_user_roles.rb",
38
31
  "db/migrate/002_create_roles.rb",
39
32
  "lib/simple_roles.rb",
40
33
  "lib/simple_roles/configuration.rb",
41
- "lib/simple_roles/engine.rb",
42
34
  "lib/simple_roles/macros.rb",
43
35
  "lib/simple_roles/many.rb",
44
36
  "lib/simple_roles/many/persistence.rb",
@@ -162,38 +154,35 @@ Gem::Specification.new do |s|
162
154
  s.specification_version = 3
163
155
 
164
156
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
165
- s.add_runtime_dependency(%q<require_all>, [">= 0"])
166
- s.add_runtime_dependency(%q<sugar-high>, [">= 0"])
167
- s.add_runtime_dependency(%q<sweetloader>, [">= 0"])
168
157
  s.add_runtime_dependency(%q<activerecord>, [">= 0"])
169
158
  s.add_development_dependency(%q<rake-kit>, [">= 0"])
170
159
  s.add_development_dependency(%q<devise>, [">= 0"])
171
160
  s.add_development_dependency(%q<mysql2>, [">= 0"])
161
+ s.add_development_dependency(%q<require_all>, [">= 0"])
162
+ s.add_development_dependency(%q<sugar-high>, [">= 0"])
172
163
  s.add_development_dependency(%q<jeweler>, [">= 0"])
173
164
  s.add_development_dependency(%q<cutter>, [">= 0"])
174
165
  s.add_development_dependency(%q<rspec>, [">= 0"])
175
166
  s.add_development_dependency(%q<factory_girl>, ["= 2.6.4"])
176
167
  else
177
- s.add_dependency(%q<require_all>, [">= 0"])
178
- s.add_dependency(%q<sugar-high>, [">= 0"])
179
- s.add_dependency(%q<sweetloader>, [">= 0"])
180
168
  s.add_dependency(%q<activerecord>, [">= 0"])
181
169
  s.add_dependency(%q<rake-kit>, [">= 0"])
182
170
  s.add_dependency(%q<devise>, [">= 0"])
183
171
  s.add_dependency(%q<mysql2>, [">= 0"])
172
+ s.add_dependency(%q<require_all>, [">= 0"])
173
+ s.add_dependency(%q<sugar-high>, [">= 0"])
184
174
  s.add_dependency(%q<jeweler>, [">= 0"])
185
175
  s.add_dependency(%q<cutter>, [">= 0"])
186
176
  s.add_dependency(%q<rspec>, [">= 0"])
187
177
  s.add_dependency(%q<factory_girl>, ["= 2.6.4"])
188
178
  end
189
179
  else
190
- s.add_dependency(%q<require_all>, [">= 0"])
191
- s.add_dependency(%q<sugar-high>, [">= 0"])
192
- s.add_dependency(%q<sweetloader>, [">= 0"])
193
180
  s.add_dependency(%q<activerecord>, [">= 0"])
194
181
  s.add_dependency(%q<rake-kit>, [">= 0"])
195
182
  s.add_dependency(%q<devise>, [">= 0"])
196
183
  s.add_dependency(%q<mysql2>, [">= 0"])
184
+ s.add_dependency(%q<require_all>, [">= 0"])
185
+ s.add_dependency(%q<sugar-high>, [">= 0"])
197
186
  s.add_dependency(%q<jeweler>, [">= 0"])
198
187
  s.add_dependency(%q<cutter>, [">= 0"])
199
188
  s.add_dependency(%q<rspec>, [">= 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.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,23 +12,7 @@ cert_chain: []
12
12
  date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: require_all
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: sugar-high
15
+ name: activerecord
32
16
  requirement: !ruby/object:Gem::Requirement
33
17
  none: false
34
18
  requirements:
@@ -44,14 +28,14 @@ dependencies:
44
28
  - !ruby/object:Gem::Version
45
29
  version: '0'
46
30
  - !ruby/object:Gem::Dependency
47
- name: sweetloader
31
+ name: rake-kit
48
32
  requirement: !ruby/object:Gem::Requirement
49
33
  none: false
50
34
  requirements:
51
35
  - - ! '>='
52
36
  - !ruby/object:Gem::Version
53
37
  version: '0'
54
- type: :runtime
38
+ type: :development
55
39
  prerelease: false
56
40
  version_requirements: !ruby/object:Gem::Requirement
57
41
  none: false
@@ -60,14 +44,14 @@ dependencies:
60
44
  - !ruby/object:Gem::Version
61
45
  version: '0'
62
46
  - !ruby/object:Gem::Dependency
63
- name: activerecord
47
+ name: devise
64
48
  requirement: !ruby/object:Gem::Requirement
65
49
  none: false
66
50
  requirements:
67
51
  - - ! '>='
68
52
  - !ruby/object:Gem::Version
69
53
  version: '0'
70
- type: :runtime
54
+ type: :development
71
55
  prerelease: false
72
56
  version_requirements: !ruby/object:Gem::Requirement
73
57
  none: false
@@ -76,7 +60,7 @@ dependencies:
76
60
  - !ruby/object:Gem::Version
77
61
  version: '0'
78
62
  - !ruby/object:Gem::Dependency
79
- name: rake-kit
63
+ name: mysql2
80
64
  requirement: !ruby/object:Gem::Requirement
81
65
  none: false
82
66
  requirements:
@@ -92,7 +76,7 @@ dependencies:
92
76
  - !ruby/object:Gem::Version
93
77
  version: '0'
94
78
  - !ruby/object:Gem::Dependency
95
- name: devise
79
+ name: require_all
96
80
  requirement: !ruby/object:Gem::Requirement
97
81
  none: false
98
82
  requirements:
@@ -108,7 +92,7 @@ dependencies:
108
92
  - !ruby/object:Gem::Version
109
93
  version: '0'
110
94
  - !ruby/object:Gem::Dependency
111
- name: mysql2
95
+ name: sugar-high
112
96
  requirement: !ruby/object:Gem::Requirement
113
97
  none: false
114
98
  requirements:
@@ -201,22 +185,14 @@ files:
201
185
  - MIT-LICENSE
202
186
  - README.md
203
187
  - Rakefile
204
- - app/assets/images/simple_roles/.gitkeep
205
- - app/assets/javascripts/simple_roles/.gitkeep
206
- - app/assets/stylesheets/simple_roles/.gitkeep
207
- - app/controllers/.gitkeep
208
- - app/helpers/.gitkeep
209
- - app/mailers/.gitkeep
210
188
  - app/models/.gitkeep
211
189
  - app/models/role.rb
212
190
  - app/models/user_role.rb
213
- - app/views/.gitkeep
214
191
  - config/routes.rb
215
192
  - db/migrate/001_create_user_roles.rb
216
193
  - db/migrate/002_create_roles.rb
217
194
  - lib/simple_roles.rb
218
195
  - lib/simple_roles/configuration.rb
219
- - lib/simple_roles/engine.rb
220
196
  - lib/simple_roles/macros.rb
221
197
  - lib/simple_roles/many.rb
222
198
  - lib/simple_roles/many/persistence.rb
@@ -344,7 +320,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
344
320
  version: '0'
345
321
  segments:
346
322
  - 0
347
- hash: -1674272083089527838
323
+ hash: -2677867564790652006
348
324
  required_rubygems_version: !ruby/object:Gem::Requirement
349
325
  none: false
350
326
  requirements:
File without changes
File without changes
File without changes
File without changes
data/app/helpers/.gitkeep DELETED
File without changes
data/app/mailers/.gitkeep DELETED
File without changes
data/app/views/.gitkeep DELETED
File without changes
@@ -1,6 +0,0 @@
1
- module SimpleRoles
2
- class Engine < Rails::Engine
3
- initializer 'simple_roles' do |app|
4
- end
5
- end
6
- end