Skip to content

Commit

Permalink
Merge pull request #111 from januszm/cleanup
Browse files Browse the repository at this point in the history
Code cleanup
  • Loading branch information
januszm committed May 21, 2016
2 parents df9421d + e553fb3 commit bee4fbf
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 28 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: ruby
before_install:
- gem install bundler
rvm:
- 2.2
- ruby-head
- 2.2.2
- 2.1
- 2.0.0
- 2.0
1 change: 0 additions & 1 deletion lib/slim-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Railtie < ::Rails::Railtie
# will only apply if Rails 4, which includes 'action_view/dependency_tracker'
require 'action_view/dependency_tracker'
ActionView::DependencyTracker.register_tracker :slim, ActionView::DependencyTracker::ERBTracker
ActionView::Base.cache_template_loading = false if ::Rails.env.development?
end
rescue
# likely this version of Rails doesn't support dependency tracking
Expand Down
2 changes: 1 addition & 1 deletion lib/slim-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Slim
module Rails
VERSION = "3.0.1"
VERSION = "3.0.2"
end
end
52 changes: 28 additions & 24 deletions slim-rails.gemspec
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/slim-rails/version', __FILE__)
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'slim-rails/version'

Gem::Specification.new do |gem|
gem.authors = ["Leonardo Almeida"]
gem.email = ["[email protected]"]
gem.description = 'Provides the generator settings required for Rails 3 and 4 to use Slim'
gem.summary = 'Slim templates generator for Rails 3 and 4'
gem.homepage = 'https://github.com/slim-template/slim-rails'
gem.license = 'MIT'
Gem::Specification.new do |spec|
spec.name = 'slim-rails'
spec.version = Slim::Rails::VERSION
spec.authors = ["Leonardo Almeida"]
spec.email = ["[email protected]"]

gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.name = 'slim-rails'
gem.require_paths = ['lib']
gem.version = Slim::Rails::VERSION
spec.summary = 'Slim templates generator for Rails 3 and 4'
spec.description = 'Provides the generator settings required for Rails 3 and 4 to use Slim'
spec.homepage = 'https://github.com/slim-template/slim-rails'
spec.license = 'MIT'

gem.required_ruby_version = '>= 2.0.0'
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
spec.files = `git ls-files`.split("\n")
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.0.0'

spec.add_runtime_dependency 'actionpack', ['>= 3.1', '< 5.0']
spec.add_runtime_dependency 'railties', ['>= 3.1', '< 5.0']
spec.add_runtime_dependency 'slim', ['~> 3.0']

spec.add_development_dependency 'rocco'
spec.add_development_dependency 'redcarpet'
spec.add_development_dependency 'awesome_print'
spec.add_development_dependency 'actionmailer', ['>= 3.1']

gem.add_development_dependency 'rake', '~> 10.4'
gem.add_development_dependency 'rocco', '~> 0.8'
gem.add_development_dependency 'redcarpet', '~> 3.2'
gem.add_development_dependency 'awesome_print', '~> 1.2'
gem.add_development_dependency 'actionmailer', ['>= 3.1']
gem.add_runtime_dependency 'actionpack', ['>= 3.1', '< 5.0']
gem.add_runtime_dependency 'railties', ['>= 3.1', '< 5.0']
gem.add_runtime_dependency 'slim', '~> 3.0'
end

0 comments on commit bee4fbf

Please sign in to comment.