neo-dci 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bf9d8483a80fef8cdd51f407ffd4e5eb19827ae
4
- data.tar.gz: 3bbd7f67d65be8c9dcc6f8e704fe596ce8189bc3
3
+ metadata.gz: 6070ce31a847e81ba2169a13a0f59b004fba824a
4
+ data.tar.gz: 0309e34027e3389eabc494b0fa089fb38fe51fc9
5
5
  SHA512:
6
- metadata.gz: 4f13700c24c3b36cc81568c8905b92bc9e2b84d61b66dff78a682ac1e405d91bf928647562846729273096666d6aa84ac1c8b8ecad9fedff21db36695cc62adb
7
- data.tar.gz: 40bb72bf60a6c5152683fe63b74bd090c88ec4602437bb72aac14c034f25402e7802192d5da400e5f83a10cf1434e6b44c26aeb042a7a5999395531ec0c7742b
6
+ metadata.gz: d8a78ae0c1d32b9386658cbb50833f706c17582c364f6e834b23016d8e1102f44dc51546b47b4b89c5e16a0843de4e49f9c42fc53b9912cd6549ed02aa2e97ba
7
+ data.tar.gz: 0781dd0b8108bb7495456753be7eaede738ea041d54f47b193b96ea3bfd3aee1212065d5ac8588c69f5851255f7cb30381dc3583cb9ad39702ac198b06894024
@@ -1,5 +1,32 @@
1
1
  language: ruby
2
+ sudo: false
3
+ cache: bundler
2
4
  rvm:
3
- - 1.9.3
4
- - jruby-19mode
5
- - rbx-19mode
5
+ - ruby-head
6
+ - 2.3.1
7
+ - 2.2
8
+ - 2.1
9
+ - jruby
10
+ - jruby-head
11
+ - rbx-2
12
+ matrix:
13
+ allow_failures:
14
+ - rvm: rbx-2
15
+ - rvm: jruby
16
+ - rvm: jruby-head
17
+ - rvm: ruby-head
18
+ env:
19
+ global:
20
+ - CODECLIMATE_REPO_TOKEN=70820b2c9137bc6411ae1a2e0c6861028c70ce373eec87ad46d9b7c14dce3401
21
+ - JRUBY_OPTS='--dev -J-Xmx1024M'
22
+ matrix:
23
+ allow_failures:
24
+ - rvm: ruby-head
25
+ - rvm: jruby-head
26
+ notifications:
27
+ webhooks:
28
+ urls:
29
+ - https://webhooks.gitter.im/e/556fa7e78f49c2f0016e
30
+ on_success: change # options: [always|never|change] default: always
31
+ on_failure: always # options: [always|never|change] default: always
32
+ on_start: false # default: false
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in neo-dci.gemspec
4
4
  gemspec
5
+
6
+ if ENV['CODECLIMATE_REPO_TOKEN']
7
+ gem "codeclimate-test-reporter", :group => :test, :require => nil
8
+ end
data/README.md CHANGED
@@ -1,11 +1,24 @@
1
- # Neo::DCI [![Build Status](https://secure.travis-ci.org/neopoly/neo-dci.png?branch=master)](http://travis-ci.org/neopoly/neo-dci)
1
+ [github]: https://github.com/neopoly/neo-dci
2
+ [doc]: http://rubydoc.info/github/neopoly/neo-dci/master/file/README.md
3
+ [gem]: https://rubygems.org/gems/neo-dci
4
+ [travis]: https://travis-ci.org/neopoly/neo-dci
5
+ [codeclimate]: https://codeclimate.com/github/neopoly/neo-dci
6
+ [inchpages]: https://inch-ci.org/github/neopoly/neo-dci
7
+
8
+ # Neo::DCI
2
9
 
3
10
  Simple DCI (Data Context Interaction).
4
11
  Includes Data, Roles and Context.
5
12
 
6
- [Gem](https://rubygems.org/gems/neo-dci) |
7
- [Source](https://github.com/neopoly/neo-dci) |
8
- [Documentation](http://rubydoc.info/github/neopoly/neo-dci/master/file/README.md)
13
+ [![Travis](https://img.shields.io/travis/neopoly/neo-dci.svg?branch=master)][travis]
14
+ [![Gem Version](https://img.shields.io/gem/v/neo-dci.svg)][gem]
15
+ [![Code Climate](https://img.shields.io/codeclimate/github/neopoly/neo-dci.svg)][codeclimate]
16
+ [![Test Coverage](https://codeclimate.com/github/neopoly/neo-dci/badges/coverage.svg)][codeclimate]
17
+ [![Inline docs](https://inch-ci.org/github/neopoly/neo-dci.svg?branch=master&style=flat)][inchpages]
18
+
19
+ [Gem][gem] |
20
+ [Source][github] |
21
+ [Documentation][doc]
9
22
 
10
23
  ## Installation
11
24
 
@@ -95,8 +108,8 @@ end
95
108
 
96
109
  ## Contributing
97
110
 
98
- 1. Fork it
111
+ 1. Fork it ( https://github.com/neopoly/neo-dci/fork )
99
112
  2. Create your feature branch (`git checkout -b my-new-feature`)
100
- 3. Commit your changes (`git commit -am 'Added some feature'`)
113
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
101
114
  4. Push to the branch (`git push origin my-new-feature`)
102
- 5. Create new Pull Request
115
+ 5. Create a new Pull Request
@@ -24,7 +24,7 @@ module Neo
24
24
 
25
25
  def self.result_class(klass = :reader)
26
26
  @result_class = klass unless klass == :reader
27
- @result_class || ContextResult
27
+ defined?(@result_class) ? @result_class : ContextResult
28
28
  end
29
29
 
30
30
  def call
@@ -1,5 +1,5 @@
1
1
  module Neo
2
2
  module DCI
3
- VERSION = "0.4.1"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
@@ -1,3 +1,8 @@
1
+ if ENV['CODECLIMATE_REPO_TOKEN']
2
+ require "codeclimate-test-reporter"
3
+ CodeClimate::TestReporter.start
4
+ end
5
+
1
6
  require 'simplecov' if ENV['COVERAGE']
2
7
 
3
8
  require 'minitest/autorun'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo-dci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Suschlik
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-21 00:00:00.000000000 Z
13
+ date: 2016-07-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: 'on'
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.2.2
149
+ rubygems_version: 2.5.1
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Includes Data, Roles and Context.