shamu 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +24 -0
- data/.rspec +2 -0
- data/.rubocop.yml +62 -0
- data/.ruby-version +1 -0
- data/.yardopts +7 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +20 -0
- data/Guardfile +16 -0
- data/LICENSE +21 -0
- data/README.md +12 -0
- data/Rakefile +2 -0
- data/circle.yml +5 -0
- data/lib/shamu/error.rb +13 -0
- data/lib/shamu/locale/en.yml +7 -0
- data/lib/shamu/version.rb +5 -0
- data/lib/shamu.rb +10 -0
- data/shamu.gemspec +26 -0
- data/spec/internal/log/test.log +0 -0
- data/spec/lib/shamu_spec.rb +5 -0
- data/spec/spec_helper.rb +35 -0
- metadata +125 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 17432a9ad613be127cf8fcd337ff0783499ce17f
|
4
|
+
data.tar.gz: 9781a19889f10541dc79a2ff2d9be287c7bf5c79
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0063e5b0ecec7d70a54b3131f923e04c944c946f4f42940fe081a53e36e31ccc95e7b5b01adc4eef123013b444c4d9a93aac504954fe44b98702ffe92cb5bb2f
|
7
|
+
data.tar.gz: cb725d193fe76f76517b3a3d57dbf159154e8591c7cac18e681711690b5dc8bae71afb5cb4dd3844d7e552481f57990f83647eb85b25863b3b100e1610c15870
|
data/.gitignore
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
23
|
+
.env
|
24
|
+
*.sqlite
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
Style/LineLength:
|
2
|
+
Max: 120
|
3
|
+
|
4
|
+
Style/AccessModifierIndentation:
|
5
|
+
EnforceStyle: indent
|
6
|
+
|
7
|
+
Style/IndentationConsistency:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Style/TrailingBlankLines:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/EmptyLinesAroundBody:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Style/StringLiterals:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Style/SpaceInsideParens:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/SpaceBeforeBlockBraces:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Style/SpaceInsideBlockBraces:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/SpaceInsideBrackets:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Style/SingleLineBlockParams:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Style/SingleSpaceBeforeFirstArg:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/TrailingComma:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Style/SpaceAfterComma:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/ClassAndModuleChildren:
|
44
|
+
EnforcedStyle: nested
|
45
|
+
|
46
|
+
Style/PercentLiteralDelimiters:
|
47
|
+
PreferredDelimiters:
|
48
|
+
'%': '{}'
|
49
|
+
'%i': '{}'
|
50
|
+
'%q': '{}'
|
51
|
+
'%Q': '{}'
|
52
|
+
'%r': '{}'
|
53
|
+
'%s': '{}'
|
54
|
+
'%w': '{}'
|
55
|
+
'%W': '{}'
|
56
|
+
'%x': '{}'
|
57
|
+
|
58
|
+
Lint/AssignmentInCondition:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
Lint/AmbiguousRegexpLiteral:
|
62
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.0
|
data/.yardopts
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
See https://github.com/phallguy/shamu/releases
|
data/Gemfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in shamu.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
group :test do
|
7
|
+
|
8
|
+
gem 'guard', '~> 2.12.8'
|
9
|
+
gem 'spring'
|
10
|
+
gem 'byebug'
|
11
|
+
gem 'pry-byebug'
|
12
|
+
gem 'guard-rspec'
|
13
|
+
gem 'fuubar'
|
14
|
+
gem 'yard'
|
15
|
+
gem 'simplecov', github: "colszowka/simplecov"
|
16
|
+
gem 'ruby_gntp', '~> 0.3.4'
|
17
|
+
gem 'awesome_print'
|
18
|
+
|
19
|
+
gem "codeclimate-test-reporter", group: :test, require: nil
|
20
|
+
end
|
data/Guardfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
2
|
+
require "guard/rspec/dsl"
|
3
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
4
|
+
|
5
|
+
# Feel free to open issues for suggestions and improvements
|
6
|
+
|
7
|
+
# RSpec files
|
8
|
+
rspec = dsl.rspec
|
9
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
10
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
11
|
+
watch(rspec.spec_files)
|
12
|
+
|
13
|
+
# Ruby files
|
14
|
+
ruby = dsl.ruby
|
15
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
16
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Paul Alexander
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Shamu
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/shamu.svg)](http://badge.fury.io/rb/shamu)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/phallguy/shamu.png)](https://codeclimate.com/github/phallguy/shamu)
|
5
|
+
[![Test Coverage](https://codeclimate.com/github/phallguy/shamu/badges/coverage.svg)](https://codeclimate.com/github/phallguy/shamu/coverage)
|
6
|
+
[![Inch CI](https://inch-ci.org/github/phallguy/shamu.svg?branch=master)](https://inch-ci.org/github/phallguy/shamu)
|
7
|
+
[![Circle CI](https://circleci.com/gh/phallguy/shamu.svg?style=svg)](https://circleci.com/gh/phallguy/shamu)
|
8
|
+
|
9
|
+
Have a whale of a good time adding Service Oriented Architecture to your ruby projects.
|
10
|
+
|
11
|
+
(Also check out [shog](http://github.com/phallguy/shog) for better rails logs)
|
12
|
+
|
data/Rakefile
ADDED
data/circle.yml
ADDED
data/lib/shamu/error.rb
ADDED
data/lib/shamu.rb
ADDED
data/shamu.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'shamu/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "shamu"
|
8
|
+
spec.version = "#{Scorpion::VERSION}"
|
9
|
+
spec.authors = ["Paul Alexander"]
|
10
|
+
spec.email = ["me@phallguy.com"]
|
11
|
+
spec.summary = %q{Have a whale of a good time adding Service Oriented Architecture to your ruby projects.}
|
12
|
+
spec.homepage = "https://github.com/phallguy/shamu"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.required_ruby_version = '>= 2.3.0'
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
23
|
+
spec.add_development_dependency "rake", '~> 10'
|
24
|
+
spec.add_development_dependency "rspec", '~> 3.00'
|
25
|
+
spec.add_development_dependency "rspec-rails", '~> 3.00'
|
26
|
+
end
|
File without changes
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
if ENV['COVERAGE']
|
3
|
+
require "codeclimate-test-reporter"
|
4
|
+
CodeClimate::TestReporter.start
|
5
|
+
else
|
6
|
+
SimpleCov.start
|
7
|
+
end
|
8
|
+
require 'pry'
|
9
|
+
require 'bundler/setup'
|
10
|
+
|
11
|
+
require 'shamu'
|
12
|
+
|
13
|
+
root_path = File.expand_path( "../..", __FILE__ )
|
14
|
+
|
15
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
16
|
+
# in spec/support/ and its subdirectories.
|
17
|
+
Dir[ File.join( root_path, "spec/support/**/*.rb" ) ].each { |f| require f }
|
18
|
+
|
19
|
+
RSpec.configure do |config|
|
20
|
+
|
21
|
+
config.order = "random"
|
22
|
+
|
23
|
+
config.filter_run focus: true
|
24
|
+
config.filter_run_excluding :broken => true
|
25
|
+
config.run_all_when_everything_filtered = true
|
26
|
+
|
27
|
+
config.before(:each) { GC.disable }
|
28
|
+
config.after(:each) { GC.enable }
|
29
|
+
|
30
|
+
config.before( :each, type: :model ) do
|
31
|
+
[ Todo, Author ].each do |model|
|
32
|
+
model.destroy_all
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,125 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shamu
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Paul Alexander
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.00'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.00'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.00'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.00'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- me@phallguy.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".rubocop.yml"
|
79
|
+
- ".ruby-version"
|
80
|
+
- ".yardopts"
|
81
|
+
- CHANGELOG.md
|
82
|
+
- Gemfile
|
83
|
+
- Guardfile
|
84
|
+
- LICENSE
|
85
|
+
- README.md
|
86
|
+
- Rakefile
|
87
|
+
- circle.yml
|
88
|
+
- lib/shamu.rb
|
89
|
+
- lib/shamu/error.rb
|
90
|
+
- lib/shamu/locale/en.yml
|
91
|
+
- lib/shamu/version.rb
|
92
|
+
- shamu.gemspec
|
93
|
+
- spec/internal/log/test.log
|
94
|
+
- spec/lib/shamu_spec.rb
|
95
|
+
- spec/spec_helper.rb
|
96
|
+
homepage: https://github.com/phallguy/shamu
|
97
|
+
licenses:
|
98
|
+
- MIT
|
99
|
+
metadata: {}
|
100
|
+
post_install_message:
|
101
|
+
rdoc_options: []
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 2.3.0
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
requirements: []
|
115
|
+
rubyforge_project:
|
116
|
+
rubygems_version: 2.5.1
|
117
|
+
signing_key:
|
118
|
+
specification_version: 4
|
119
|
+
summary: Have a whale of a good time adding Service Oriented Architecture to your
|
120
|
+
ruby projects.
|
121
|
+
test_files:
|
122
|
+
- spec/internal/log/test.log
|
123
|
+
- spec/lib/shamu_spec.rb
|
124
|
+
- spec/spec_helper.rb
|
125
|
+
has_rdoc:
|