scorpion-ioc 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3e1ab58a9a8aa144a618d61c775a041eb10153ce
4
+ data.tar.gz: 990f3fb1945e307e1294095f2bebfb7973733bdd
5
+ SHA512:
6
+ metadata.gz: e0f844fe7d5e5134c455a821e92eb47e3306fb19b330656497eb4d70218958ad057d82b60757dc6127e82119a362c0eb1855b8009aa51a23c0322248a6462d7e
7
+ data.tar.gz: de4b94cce3afa85209b389a3007f62224d6fd2feb9fd22f6f1a1834ab9308a4657860ff8c6dec6d6da21dc5388f764bdc755ce36b330760d44854b053393a5fc
@@ -0,0 +1,23 @@
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
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format Fuubar
@@ -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
@@ -0,0 +1 @@
1
+ 2.2.2
@@ -0,0 +1,14 @@
1
+ {
2
+ "source": "http://sublimelinter.readthedocs.org/en/latest/index.html",
3
+ "linters": {
4
+ "rubocop" : {
5
+ "args" : [
6
+ "-R"
7
+ ]
8
+ },
9
+ "annotations" : {
10
+ "warnings": ["TODO", "README"],
11
+ "errors": ["FIXME", "HACK", "OMG!", "HERE BE DRAGONS" ]
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ --protected
2
+ --no-private
3
+ --no-cache
4
+ --hide-void-return
5
+ --output-dir /tmp/scorpion_docs
6
+ --db /tmp/scorpion_yardoc
7
+ --markup markdown
@@ -0,0 +1 @@
1
+ See https://github.com/phallguy/scorpion/releases
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in scorpion.gemspec
4
+ gemspec
5
+
6
+
7
+ gem 'guard', '~> 2.12.8'
8
+ gem 'spring'
9
+ gem 'byebug'
10
+ gem 'pry-byebug'
11
+ gem 'guard-rspec'
12
+ gem 'fuubar'
13
+ gem 'foreman'
14
+ gem 'yard'
15
+ gem 'simplecov', github: "colszowka/simplecov"
16
+
17
+ gem "codeclimate-test-reporter", group: :test, require: nil
@@ -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) 2015 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.
@@ -0,0 +1 @@
1
+ yard: sh -c 'rm -rf /tmp/scorpion_com_yardoc && yard server --reload'
@@ -0,0 +1,49 @@
1
+ # Scorpion
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/shog.svg)](http://badge.fury.io/rb/shog)
4
+ [![Code Climate](https://codeclimate.com/github/phallguy/scorpion.png)](https://codeclimate.com/github/phallguy/scorpion)
5
+ [![Circle CI](https://circleci.com/gh/phallguy/scorpion.svg?style=svg)](https://circleci.com/gh/phallguy/scorpion)
6
+
7
+ Add IoC to rails with minimal fuss and ceremony.
8
+
9
+ Embrace convention over configuration while still benefitting from the
10
+ dependency injection design principle.
11
+
12
+
13
+ ## Using Shog
14
+
15
+ ...
16
+
17
+
18
+ ## Contributing
19
+
20
+ 1. Fork it ( https://github.com/phallguy/scorpion/fork )
21
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
22
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
23
+ 4. Push to the branch (`git push origin my-new-feature`)
24
+ 5. Create a new Pull Request
25
+
26
+
27
+ # License
28
+
29
+ The MIT License (MIT)
30
+
31
+ Copyright (c) 2015 Paul Alexander
32
+
33
+ Permission is hereby granted, free of charge, to any person obtaining a copy
34
+ of this software and associated documentation files (the "Software"), to deal
35
+ in the Software without restriction, including without limitation the rights
36
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37
+ copies of the Software, and to permit persons to whom the Software is
38
+ furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in all
41
+ copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1 @@
1
+ require 'scorpion'
@@ -0,0 +1,4 @@
1
+ module Scorpion
2
+ require 'scorpion/version'
3
+ require 'scorpion/rails'
4
+ end
File without changes
@@ -0,0 +1,5 @@
1
+ module Scorpion
2
+ module Rails
3
+ require 'scorpion/rails/railtie'
4
+ end
5
+ end
@@ -0,0 +1,15 @@
1
+ module Scorpion
2
+ module Rails
3
+
4
+ # # Automatically integrate Shog with the rails logger.
5
+ # class Railtie < ::Rails::Railtie
6
+ # config.before_initialize do
7
+ # next if ::Rails.logger.formatter.class == Shog::Formatter
8
+ # ::Rails.logger.formatter = Shog::Formatter.new.configure do
9
+ # with :defaults
10
+ # with :requests
11
+ # end
12
+ # end
13
+ # end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ module Scorpion
2
+ VERSION_NUMBER = "0.0.1"
3
+ VERSION_SUFFIX = ""
4
+ VERSION = "#{VERSION_NUMBER}#{VERSION_SUFFIX}"
5
+ end
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'scorpion/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "scorpion-ioc"
8
+ spec.version = "#{Scorpion::VERSION}"
9
+ spec.authors = ["Paul Alexander"]
10
+ spec.email = ["me@phallguy.com"]
11
+ spec.summary = %q{Add IoC to rails with minimal fuss and ceremony}
12
+ spec.description = %q{Embrace convention over configuration while still benefitting from dependency injection design principles.}
13
+ spec.homepage = "https://github.com/phallguy/scorpion"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'rails', '~> 4.0'
22
+ spec.required_ruby_version = '>= 1.9.2'
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.6"
25
+ spec.add_development_dependency "rake", '~> 10'
26
+ spec.add_development_dependency "rspec", '~> 3.00'
27
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Scorpion do
4
+
5
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Scorpion do
4
+
5
+ end
@@ -0,0 +1,28 @@
1
+ require 'simplecov'
2
+ if ENV['COVERAGE']
3
+ require "codeclimate-test-reporter"
4
+ CodeClimate::TestReporter.start
5
+ else
6
+ SimpleCov.start
7
+ end
8
+
9
+ require 'scorpion'
10
+
11
+ root_path = File.expand_path( "../..", __FILE__ )
12
+
13
+ # Requires supporting ruby files with custom matchers and macros, etc,
14
+ # in spec/support/ and its subdirectories.
15
+ Dir[ File.join( root_path, "spec/support/**/*.rb" ) ].each { |f| require f }
16
+
17
+ RSpec.configure do |config|
18
+
19
+ config.order = "random"
20
+
21
+ config.filter_run focus: true
22
+ config.filter_run_excluding :broken => true
23
+ config.run_all_when_everything_filtered = true
24
+
25
+ config.before(:each) { GC.disable }
26
+ config.after(:each) { GC.enable }
27
+
28
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scorpion-ioc
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: 2015-07-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
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: Embrace convention over configuration while still benefitting from dependency
70
+ injection design principles.
71
+ email:
72
+ - me@phallguy.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".rubocop.yml"
80
+ - ".ruby-version"
81
+ - ".sublimelinterrc"
82
+ - ".yardopts"
83
+ - CHANGELOG.md
84
+ - Gemfile
85
+ - Guardfile
86
+ - LICENSE
87
+ - Procfile
88
+ - README.md
89
+ - Rakefile
90
+ - lib/scorpion-ioc.rb
91
+ - lib/scorpion.rb
92
+ - lib/scorpion/nest.rb
93
+ - lib/scorpion/rails.rb
94
+ - lib/scorpion/rails/railtie.rb
95
+ - lib/scorpion/version.rb
96
+ - scorpion.gemspec
97
+ - spec/lib/scorpion/scorpion.rb
98
+ - spec/lib/scorpion_spec.rb
99
+ - spec/spec_helper.rb
100
+ homepage: https://github.com/phallguy/scorpion
101
+ licenses:
102
+ - MIT
103
+ metadata: {}
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.9.2
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubyforge_project:
120
+ rubygems_version: 2.4.5
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: Add IoC to rails with minimal fuss and ceremony
124
+ test_files:
125
+ - spec/lib/scorpion/scorpion.rb
126
+ - spec/lib/scorpion_spec.rb
127
+ - spec/spec_helper.rb
128
+ has_rdoc: