Permalink
Browse files

0.0.10: remove unnecessary runtime dependencies

  • Loading branch information...
1 parent 9fca103 commit aec99790f6901b24db27411f45c7e6d36970789b @stanislaw committed Feb 22, 2013
View
6 CHANGELOG.md
@@ -1,5 +1,11 @@
# CHANGELOG
+## 0.0.10
+
+### Removed
+
+* Removed runtime dependencies: sugar-high, require_all, sweetloader
+
## 0.0.9
### Changed
View
5 Gemfile
@@ -4,15 +4,14 @@ source "http://rubygems.org"
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
-gem 'require_all'
-gem 'sugar-high'
-gem 'sweetloader'
gem 'activerecord'
group :development, :test do
gem 'rake-kit'
gem 'devise'
gem 'mysql2'
+ gem 'require_all'
+ gem 'sugar-high'
gem 'jeweler'
gem 'cutter'
gem 'rspec'
View
0 app/assets/images/simple_roles/.gitkeep
No changes.
View
0 app/assets/javascripts/simple_roles/.gitkeep
No changes.
View
0 app/assets/stylesheets/simple_roles/.gitkeep
No changes.
View
0 app/controllers/.gitkeep
No changes.
View
0 app/helpers/.gitkeep
No changes.
View
0 app/mailers/.gitkeep
No changes.
View
0 app/views/.gitkeep
No changes.
View
18 lib/simple_roles.rb
@@ -1,20 +1,18 @@
-require 'sweetloader'
-require 'require_all'
-
-require 'sugar-high/array'
-require 'sugar-high/dsl'
-
require 'active_record'
require 'simple_roles/version'
-require 'simple_roles/engine' if defined?(Rails)
require 'simple_roles/macros'
-require_all File.expand_path('../../app', __FILE__)
+Dir[File.expand_path('../../app/models/*', __FILE__)].each do |f|
+ require f
+end
module SimpleRoles
- autoload_modules :Configuration, :Packager, :One, :Many
+ autoload :Configuration, 'simple_roles/configuration'
+ autoload :Packager, 'simple_roles/packager'
+ autoload :One, 'simple_roles/one'
+ autoload :Many, 'simple_roles/many'
extend self
@@ -29,6 +27,6 @@ def config
def packager
SimpleRoles::Packager
end
-
+
delegate :package, :to => :packager, :prefix => false
end
View
6 lib/simple_roles/engine.rb
@@ -1,6 +0,0 @@
-module SimpleRoles
- class Engine < Rails::Engine
- initializer 'simple_roles' do |app|
- end
- end
-end
View
3 lib/simple_roles/many.rb
@@ -1,5 +1,6 @@
module SimpleRoles
module Many
- autoload_modules :Persistence, :RolesMethods
+ autoload :Persistence, 'simple_roles/many/persistence'
+ autoload :RolesMethods, 'simple_roles/many/roles_methods'
end
end
View
2 lib/simple_roles/many/persistence.rb
@@ -15,7 +15,7 @@ def roles
end
def roles= *rolez
- rolez.to_symbols!.flatten!
+ rolez = rolez.flatten.map(&:to_sym)
super retrieve_roles(rolez)
end
View
3 lib/simple_roles/one.rb
@@ -1,5 +1,6 @@
module SimpleRoles
module One
- autoload_modules :Persistence, :RolesMethods
+ autoload :Persistence, 'simple_roles/one/persistence'
+ autoload :RolesMethods, 'simple_roles/one/roles_methods'
end
end
View
2 lib/simple_roles/version.rb
@@ -1,3 +1,3 @@
module SimpleRoles
- VERSION = "0.0.9"
+ VERSION = "0.0.10"
end

0 comments on commit aec9979

Please sign in to comment.