Prepare gem

This commit is contained in:
Luca Guidi 2014-10-28 11:44:54 +01:00
parent c763c7e361
commit b20f66b937
6 changed files with 89 additions and 20 deletions

22
.travis.yml Normal file
View File

@ -0,0 +1,22 @@
language: ruby
script: 'bundle exec rake test:coverage --trace'
rvm:
- 2.0.0
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 2.2
- rbx-2
matrix:
include:
- rvm: jruby
env: JRUBY_OPTS="--2.0"
- rvm: jruby-head
env: JRUBY_OPTS="--2.1"
allow_failures:
- rvm: 2.2
- rvm: rbx-2
- rvm: jruby
- rvm: jruby-head

4
.yardopts Normal file
View File

@ -0,0 +1,4 @@
-
README.md
LICENSE.md
lib/**/*.rb

11
Gemfile
View File

@ -1,6 +1,13 @@
source 'https://rubygems.org'
# Specify your gem's dependencies in lotus-assets.gemspec
gemspec
unless ENV['TRAVIS']
gem 'byebug', require: false, platforms: :mri if RUBY_VERSION >= '2.1.0'
gem 'yard', require: false
end
gem 'simplecov', require: false
gem 'coveralls', require: false
gem 'lotus-utils', '>= 0.3.1.dev', github: 'lotus/utils'

View File

@ -1,29 +1,65 @@
# Lotus::Assets
TODO: Write a gem description
Assets management for Ruby web projects
## Status
[![Gem Version](http://img.shields.io/gem/v/lotus-assets.svg)](https://badge.fury.io/rb/lotus-assets)
[![Build Status](http://img.shields.io/travis/lotus/assets/master.svg)](https://travis-ci.org/lotus/assets?branch=master)
[![Coverage](http://img.shields.io/coveralls/lotus/assets/master.svg)](https://coveralls.io/r/lotus/assets)
[![Code Climate](http://img.shields.io/codeclimate/github/lotus/assets.svg)](https://codeclimate.com/github/lotus/assets)
[![Dependencies](http://img.shields.io/gemnasium/lotus/assets.svg)](https://gemnasium.com/lotus/assets)
[![Inline Docs](http://inch-ci.org/github/lotus/assets.svg)](http://inch-ci.org/github/lotus/assets)
## Contact
* Home page: http://lotusrb.org
* Mailing List: http://lotusrb.org/mailing-list
* API Doc: http://rdoc.info/gems/lotus-assets
* Bugs/Issues: https://github.com/lotus/assets/issues
* Support: http://stackoverflow.com/questions/tagged/lotus-ruby
* Chat: https://gitter.im/lotus/chat
## Rubies
__Lotus::Assets__ supports Ruby (MRI) 2+ and JRuby 1.7 (with 2.0 mode).
## Installation
Add this line to your application's Gemfile:
gem 'lotus-assets'
```ruby
gem 'lotus-assets'
```
And then execute:
$ bundle
```shell
$ bundle
```
Or install it yourself as:
$ gem install lotus-assets
```shell
$ gem install lotus-assets
```
## Usage
TODO: Write usage instructions here
TODO
## Versioning
__Lotus::Assets__ uses [Semantic Versioning 2.0.0](http://semver.org)
## Contributing
1. Fork it ( https://github.com/[my-github-username]/lotus-assets/fork )
1. Fork it ( https://github.com/lotus/assets/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
5. Create new Pull Request
## Copyright
Copyright 2014 Luca Guidi Released under MIT License

View File

@ -4,22 +4,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'lotus/assets/version'
Gem::Specification.new do |spec|
spec.name = "lotus-assets"
spec.name = 'lotus-assets'
spec.version = Lotus::Assets::VERSION
spec.authors = ["Luca Guidi"]
spec.email = ["me@lucaguidi.com"]
spec.summary = %q{Lotus assets}
spec.description = %q{Assets management for Lotus}
spec.homepage = "http://lotusrb.org"
spec.license = "MIT"
spec.authors = ['Luca Guidi']
spec.email = ['me@lucaguidi.com']
spec.summary = %q{Assets management}
spec.description = %q{Assets management for Ruby web applications}
spec.homepage = 'http://lotusrb.org'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0")
spec.files = `git ls-files -- lib/* LICENSE.md README.md lotus-assets.gemspec`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.require_paths = ['lib']
spec.add_runtime_dependency 'lotus-utils', '~> 0.3', '>= 0.3.1.dev'
spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
spec.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'rake', '~> 10'
end