slayer 0.2.0 → 0.2.1

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: 14e54657ae9bed79dbb867f2c28a0c72a57d64bb
4
- data.tar.gz: ea6a0f28be0e58b77fdde6675f35362bd0f4a57f
3
+ metadata.gz: 7e09fbfa409b97335f8476da1445d716025e0230
4
+ data.tar.gz: 8c3964b9a74d94d510681dde108d0acad83a8efb
5
5
  SHA512:
6
- metadata.gz: 3bd6939e5a23675abe05b13506a276bb0cc3905b554e134cd543b800a94e6f33b3ab458b52c1fd394e4b6b4adea4bbc338c292d6419a5d13a05a06518fa3e896
7
- data.tar.gz: ff07ca08187a2c6c13ff9f41e2fbad207d4f3607671faa940795d8fc6e612bf74b7be6ccc954075c5f0fed6779b61adde7f2607ef16abfe64d40920eaf6beb53
6
+ metadata.gz: 908f87de03974d652fb42acb9a9765b02872890cdb429f40d89eb578e9e0caff4655730e94f8c9b8f4e0805a93785bd3c367ca449ea15c622d467912b22e9b46
7
+ data.tar.gz: 6cbf9533c1e47a292446194a8b26163269258709abe89cb2a4777d2a7ccc6c72720ae6f594adab3959caecd1c7b07140b88acb0c4cf7ca65f3bcaa4d21795aaa
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  echo "Starting unit tests"
4
- rake test
4
+ bundle exec rake test
5
5
  if [ $? -ne 0 ]; then
6
6
  echo ""
7
7
  echo ""
@@ -11,7 +11,7 @@ fi
11
11
 
12
12
  echo
13
13
  echo "Starting rubocop"
14
- rubocop --format worst --format simple --format offenses
14
+ bundle exec rubocop --format worst --format simple --format offenses
15
15
  if [ $? -ne 0 ]; then
16
16
  echo ""
17
17
  echo ""
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Slayer: A Killer Service Layer
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/slayer.svg)](https://badge.fury.io/rb/slayer) [![Build Status](https://travis-ci.org/apsislabs/slayer.svg?branch=master)](https://travis-ci.org/apsislabs/slayer) [![Code Climate](https://codeclimate.com/github/apsislabs/slayer/badges/gpa.svg)](https://codeclimate.com/github/apsislabs/slayer)
5
+ [![Gem Version](https://badge.fury.io/rb/slayer.svg)](https://badge.fury.io/rb/slayer) [![Build Status](https://travis-ci.org/apsislabs/slayer.svg?branch=master)](https://travis-ci.org/apsislabs/slayer) [![Code Climate](https://codeclimate.com/github/apsislabs/slayer/badges/gpa.svg)](https://codeclimate.com/github/apsislabs/slayer) [![Coverage Status](https://coveralls.io/repos/github/apsislabs/slayer/badge.svg)](https://coveralls.io/github/apsislabs/slayer)
6
6
 
7
7
  Slayer is intended to operate as a minimal service layer for your ruby application. To achieve this, Slayer provides base classes for business logic.
8
8
 
@@ -3,13 +3,5 @@ require 'virtus'
3
3
  module Slayer
4
4
  class Form
5
5
  include Virtus.model
6
- include ActiveModel::Validations if defined?(Rails)
7
-
8
- def validate!
9
- validatable = respond_to?(:valid?) && respond_to?(:errors)
10
-
11
- raise NotImplementedError unless validatable
12
- raise FormValidationError, errors unless valid?
13
- end
14
6
  end
15
7
  end
@@ -1,3 +1,3 @@
1
1
  module Slayer
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'virtus', '~> 1.0'
22
22
  spec.add_dependency 'dry-validation', '~> 0.10'
23
23
 
24
+ spec.add_development_dependency 'coveralls'
25
+ spec.add_development_dependency 'simplecov', '~> 0.13'
24
26
  spec.add_development_dependency 'bundler', '~> 1.12'
25
27
  spec.add_development_dependency 'rake', '~> 10.0'
26
28
  spec.add_development_dependency 'minitest', '~> 5.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wyatt Kirby
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-02-13 00:00:00.000000000 Z
12
+ date: 2017-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus
@@ -39,6 +39,34 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.10'
42
+ - !ruby/object:Gem::Dependency
43
+ name: coveralls
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: simplecov
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.13'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.13'
42
70
  - !ruby/object:Gem::Dependency
43
71
  name: bundler
44
72
  requirement: !ruby/object:Gem::Requirement