Bootstrap repo

This commit is contained in:
Nikita Shilnikov 2016-09-02 12:01:25 +03:00
commit 0943ecd9b6
No known key found for this signature in database
GPG Key ID: E569D1D64C40E241
14 changed files with 174 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

2
.rspec Normal file
View File

@ -0,0 +1,2 @@
--format documentation
--color

28
.travis.yml Normal file
View File

@ -0,0 +1,28 @@
sudo: false
language: ruby
rvm:
- 2.1.9
- 2.2.5
- 2.3.1
- rbx-2
- jruby-9.1.4.0
- ruby-head
before_install: gem update bundler
matrix:
allow_failures:
- rvm: ruby-head
notifications:
email:
recipients:
- fg@flashgordon.ru
on_success: change
on_failure: always
on_start: false # default: false
webhooks:
urls:
- https://webhooks.gitter.im/e/19098b4253a72c9796db
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false

3
Gemfile Normal file
View File

@ -0,0 +1,3 @@
source 'https://rubygems.org'
gemspec

21
LICENSE.txt Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Nikita Shilnikov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

34
README.md Normal file
View File

@ -0,0 +1,34 @@
# Dry::Core
A collection of small modules used in dry-rb ecosystem.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'dry-core'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install dry-core
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/dry-rb/dry-core.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

6
Rakefile Normal file
View File

@ -0,0 +1,6 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec

10
bin/console Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env ruby
require 'bundler/setup'
require 'dry/core'
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
require 'irb'
IRB.start

8
bin/setup Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -vx
bundle install
# Do any other automated setup that you need to do here

32
dry-core.gemspec Normal file
View File

@ -0,0 +1,32 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'dry/core/version'
Gem::Specification.new do |spec|
spec.name = 'dry-core'
spec.version = Dry::Core::VERSION
spec.authors = ['Nikita Shilnikov']
spec.email = ['fg@flashgordon.ru']
spec.summary = %q{A toolset of small support modules used throughout dry-rb ecosystem.}
spec.description = spec.summary
spec.homepage = 'https://github.com/dry-rb/dry-code'
spec.license = 'MIT'
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
else
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
end
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin)/}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_development_dependency 'bundler', '~> 1.12'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
end

7
lib/dry/core.rb Normal file
View File

@ -0,0 +1,7 @@
require "dry/core/version"
module Dry
module Core
# Your code goes here...
end
end

5
lib/dry/core/version.rb Normal file
View File

@ -0,0 +1,5 @@
module Dry
module Core
VERSION = '0.1.0'
end
end

7
spec/dry/core_spec.rb Normal file
View File

@ -0,0 +1,7 @@
require 'spec_helper'
describe Dry::Core do
it 'has a version number' do
expect(Dry::Core::VERSION).not_to be nil
end
end

2
spec/spec_helper.rb Normal file
View File

@ -0,0 +1,2 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'dry/core'