action_logic 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +6 -0
- data/CONTRIBUTING.md +86 -0
- data/Gemfile.lock +9 -25
- data/README.md +20 -2
- data/action_logic.gemspec +1 -1
- data/lib/action_logic/version.rb +1 -1
- data/spec/spec_helper.rb +9 -4
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6f591fb9cd6d0e84c0698efb746c1c621a96faf
|
|
4
|
+
data.tar.gz: 8c2fab7ad7162d3d2c5daced41e921070dc7ad7a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e2acd75f307a744541eec0693f800031daa4334083fdc379a33660d8ea5e92fe7d45b1e1d608d54edc4df1152d8df2b56a4f3fb5767fba3839577bf7fa9cd63
|
|
7
|
+
data.tar.gz: 579349af94eb607489ea9dddd669d13fd811527d39bd45d250ce4da507b0d78d3ce94e329ccfd664e272a5263faf361122400969ba2b051976d44a4af0227a90
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Contributing to ActionLogic
|
|
2
|
+
===========================
|
|
3
|
+
|
|
4
|
+
Thank you for your interest in contributing! You're encouraged to submit [pull requests](https://github.com/rewinfrey/actionlogic/pulls),
|
|
5
|
+
[propose features and discuss issues](https://github.com/rewinfrey/actionlogic/issues). When in doubt, ask a question in the form of an
|
|
6
|
+
[issue](https://github.com/rewinfrey/actionlogic/issues).
|
|
7
|
+
|
|
8
|
+
#### Fork the Project
|
|
9
|
+
|
|
10
|
+
Fork the [project on Github](https://github.com/rewinfrey/actionlogic) and check out your copy.
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
git clone https://github.com/contributor/actionlogic.git
|
|
14
|
+
cd actionlogic
|
|
15
|
+
git remote add upstream https://github.com/rewinfrey/actionlogic.git
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
#### Create a Feature Branch
|
|
19
|
+
|
|
20
|
+
Make sure your fork is up-to-date and create a feature branch for your feature or bug fix.
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
git checkout master
|
|
24
|
+
git pull upstream master
|
|
25
|
+
git checkout -b my-feature-branch
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### Bundle Install and Test
|
|
29
|
+
|
|
30
|
+
Ensure that you can build the project and run tests.
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
bundle
|
|
34
|
+
bundle exec rspec spec
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
#### Write Tests
|
|
38
|
+
|
|
39
|
+
Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build. Add to [specs](https://github.com/rewinfrey/ActionLogic/tree/master/spec).
|
|
40
|
+
|
|
41
|
+
Pull requests with specs that highlight or reproduce a problem, even without a fix, are very much appreciated and welcomed!
|
|
42
|
+
|
|
43
|
+
#### Write Code
|
|
44
|
+
|
|
45
|
+
Implement your feature or bug fix.
|
|
46
|
+
|
|
47
|
+
Make sure that `bundle exec rspec spec` completes without errors.
|
|
48
|
+
|
|
49
|
+
#### Write Documentation
|
|
50
|
+
|
|
51
|
+
Document any external behavior in the [README](README.md).
|
|
52
|
+
|
|
53
|
+
#### Commit Changes
|
|
54
|
+
|
|
55
|
+
Make sure git knows your name and email address:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
git config --global user.name "Your Name"
|
|
59
|
+
git config --global user.email "contributor@example.com"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Writing good commit logs is important. A commit log should describe what changed and why.
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
git add ...
|
|
66
|
+
git commit
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
#### Push
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
git push origin my-feature-branch
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
#### Make a Pull Request
|
|
76
|
+
|
|
77
|
+
Go to https://github.com/contributor/ActionLogic and select your feature branch. Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
|
|
78
|
+
|
|
79
|
+
#### Check on Your Pull Request
|
|
80
|
+
|
|
81
|
+
Go back to your pull request after a few minutes and see whether the Travis-CI builds are all passing. Everything should look green, otherwise fix issues and add your fix as new commits (no need
|
|
82
|
+
to rebase or squash commits).
|
|
83
|
+
|
|
84
|
+
#### Thank You
|
|
85
|
+
|
|
86
|
+
Any and all contributions are very appreciated!
|
data/Gemfile.lock
CHANGED
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
action_logic (0.2.
|
|
4
|
+
action_logic (0.2.6)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
+
codecov (0.1.4)
|
|
10
|
+
json
|
|
11
|
+
simplecov
|
|
12
|
+
url
|
|
9
13
|
coderay (1.1.0)
|
|
10
|
-
coveralls (0.8.3)
|
|
11
|
-
json (~> 1.8)
|
|
12
|
-
rest-client (>= 1.6.8, < 2)
|
|
13
|
-
simplecov (~> 0.10.0)
|
|
14
|
-
term-ansicolor (~> 1.3)
|
|
15
|
-
thor (~> 0.19.1)
|
|
16
14
|
diff-lcs (1.2.5)
|
|
17
15
|
docile (1.1.5)
|
|
18
|
-
domain_name (0.5.25)
|
|
19
|
-
unf (>= 0.0.5, < 1.0.0)
|
|
20
|
-
http-cookie (1.0.2)
|
|
21
|
-
domain_name (~> 0.5)
|
|
22
16
|
json (1.8.3)
|
|
23
17
|
method_source (0.8.2)
|
|
24
|
-
mime-types (2.6.2)
|
|
25
|
-
netrc (0.11.0)
|
|
26
18
|
pry (0.10.3)
|
|
27
19
|
coderay (~> 1.1.0)
|
|
28
20
|
method_source (~> 0.8.1)
|
|
29
21
|
slop (~> 3.4)
|
|
30
|
-
|
|
31
|
-
http-cookie (>= 1.0.2, < 2.0)
|
|
32
|
-
mime-types (>= 1.16, < 3.0)
|
|
33
|
-
netrc (~> 0.7)
|
|
22
|
+
rake (10.4.2)
|
|
34
23
|
rspec (3.3.0)
|
|
35
24
|
rspec-core (~> 3.3.0)
|
|
36
25
|
rspec-expectations (~> 3.3.0)
|
|
@@ -50,21 +39,16 @@ GEM
|
|
|
50
39
|
simplecov-html (~> 0.10.0)
|
|
51
40
|
simplecov-html (0.10.0)
|
|
52
41
|
slop (3.6.0)
|
|
53
|
-
|
|
54
|
-
tins (~> 1.0)
|
|
55
|
-
thor (0.19.1)
|
|
56
|
-
tins (1.6.0)
|
|
57
|
-
unf (0.1.4)
|
|
58
|
-
unf_ext
|
|
59
|
-
unf_ext (0.0.7.1)
|
|
42
|
+
url (0.3.2)
|
|
60
43
|
|
|
61
44
|
PLATFORMS
|
|
62
45
|
ruby
|
|
63
46
|
|
|
64
47
|
DEPENDENCIES
|
|
65
48
|
action_logic!
|
|
66
|
-
|
|
49
|
+
codecov (~> 0.1)
|
|
67
50
|
pry (~> 0.10)
|
|
51
|
+
rake (~> 10)
|
|
68
52
|
rspec (~> 3.3)
|
|
69
53
|
simplecov (~> 0.10.0)
|
|
70
54
|
|
data/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# ActionLogic
|
|
2
2
|
|
|
3
|
-
[](https://travis-ci.org/rewinfrey/ActionLogic)
|
|
4
4
|
[](https://badge.fury.io/rb/action_logic)
|
|
5
5
|
[](https://codeclimate.com/github/rewinfrey/action_logic)
|
|
6
|
-
[](https://codecov.io/github/rewinfrey/ActionLogic?branch=master)
|
|
7
|
+
[](https://gemnasium.com/rewinfrey/action_logic)
|
|
7
8
|
[](http://opensource.org/licenses/MIT)
|
|
8
9
|
|
|
9
10
|
### Introduction
|
|
@@ -38,6 +39,8 @@ Why another business logic abstraction gem? `ActionLogic` provides teams of vari
|
|
|
38
39
|
* [Benchmark Logging](#benchmark-logging)
|
|
39
40
|
* [Benchmark Log Formatting](#benchmark-log-formatting)
|
|
40
41
|
* [Custom Benchmark Handling](#custom-benchmark-handling)
|
|
42
|
+
* [Installation](#installation)
|
|
43
|
+
* [Contributing](#contributing)
|
|
41
44
|
|
|
42
45
|
### Backstory
|
|
43
46
|
|
|
@@ -1048,3 +1051,18 @@ ActionLogic.configure do |config|
|
|
|
1048
1051
|
config.benchmark_handler = CustomHandler.new
|
|
1049
1052
|
end
|
|
1050
1053
|
```
|
|
1054
|
+
|
|
1055
|
+
### Installation
|
|
1056
|
+
|
|
1057
|
+
Add `ActionLogic` to your project's Gemfile:
|
|
1058
|
+
|
|
1059
|
+
`gem 'action_logic'`
|
|
1060
|
+
|
|
1061
|
+
Don't forget to bundle:
|
|
1062
|
+
|
|
1063
|
+
`$ bundle`
|
|
1064
|
+
|
|
1065
|
+
### Contributing
|
|
1066
|
+
|
|
1067
|
+
Interested in contributing to `ActionLogic`? If so that is awesome! <3
|
|
1068
|
+
Please see the [contributing doc](https://github.com/rewinfrey/ActionLogic/blob/master/CONTRIBUTING.md) for details.
|
data/action_logic.gemspec
CHANGED
|
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.add_development_dependency("pry", "~> 0.10")
|
|
22
22
|
s.add_development_dependency("rake", "~> 10")
|
|
23
23
|
s.add_development_dependency("simplecov", "~> 0.10.0")
|
|
24
|
-
s.add_development_dependency("
|
|
24
|
+
s.add_development_dependency("codecov", "~> 0.1")
|
|
25
25
|
end
|
data/lib/action_logic/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
require 'simplecov'
|
|
2
|
-
SimpleCov.start
|
|
3
|
-
|
|
4
|
-
require 'coveralls'
|
|
5
|
-
Coveralls.wear!
|
|
6
2
|
|
|
7
3
|
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
|
|
8
4
|
$LOAD_PATH << File.join(File.dirname(__FILE__))
|
|
9
5
|
|
|
6
|
+
SimpleCov.start do
|
|
7
|
+
add_filter 'spec/fixtures'
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
if ENV['CI']
|
|
11
|
+
require 'codecov'
|
|
12
|
+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
|
13
|
+
end
|
|
14
|
+
|
|
10
15
|
require 'action_logic'
|
|
11
16
|
|
|
12
17
|
class CustomFormatter < ActionLogic::ActionBenchmark::DefaultFormatter
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_logic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rick Winfrey
|
|
@@ -67,19 +67,19 @@ dependencies:
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: 0.10.0
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: codecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.
|
|
75
|
+
version: '0.1'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.
|
|
82
|
+
version: '0.1'
|
|
83
83
|
description: Provides common interfaces for validating and abstracting business logic
|
|
84
84
|
email: rick.winfrey@gmail.com
|
|
85
85
|
executables: []
|
|
@@ -87,7 +87,9 @@ extensions: []
|
|
|
87
87
|
extra_rdoc_files: []
|
|
88
88
|
files:
|
|
89
89
|
- ".gitignore"
|
|
90
|
+
- ".travis.yml"
|
|
90
91
|
- CODE_OF_CONDUCT.md
|
|
92
|
+
- CONTRIBUTING.md
|
|
91
93
|
- Gemfile
|
|
92
94
|
- Gemfile.lock
|
|
93
95
|
- README.md
|