scorpion-ioc 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile +5 -6
- data/Gemfile.lock +215 -0
- data/bin/bundle +3 -0
- data/lib/scorpion-ioc.rb +1 -0
- data/lib/scorpion/attribute_set.rb +1 -1
- data/lib/scorpion/dependency.rb +1 -1
- data/lib/scorpion/dependency/captured_dependency.rb +1 -1
- data/lib/scorpion/object.rb +2 -2
- data/lib/scorpion/rails/active_record.rb +3 -3
- data/lib/scorpion/rails/controller.rb +4 -0
- data/lib/scorpion/rails/railtie.rb +3 -3
- data/lib/scorpion/stinger.rb +16 -16
- data/lib/scorpion/version.rb +1 -1
- data/spec/internal/app/assets/config/manifest.js +1 -0
- data/spec/internal/config/routes.rb +3 -1
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +1492 -0
- data/spec/lib/scorpion/rails/controller_spec.rb +11 -9
- data/spec/spec_helper.rb +3 -1
- metadata +22 -29
- data/.gitignore +0 -24
- data/.rspec +0 -2
- data/.rubocop.yml +0 -176
- data/.ruby-version +0 -1
- data/.sublimelinterrc +0 -14
- data/.yardopts +0 -7
- data/app/README +0 -1
- data/circle.yml +0 -16
- data/config.ru +0 -7
- data/config/environment.rb +0 -1
- data/lib/scorpion/locale/en.yml +0 -12
- data/scorpion.gemspec +0 -30
- data/spec/internal/log/.gitignore +0 -1
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.5.1
|
data/.sublimelinterrc
DELETED
@@ -1,14 +0,0 @@
|
|
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
|
-
}
|
data/.yardopts
DELETED
data/app/README
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Here to make vim-rails work
|
data/circle.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
machine:
|
2
|
-
pre:
|
3
|
-
# https://discuss.circleci.com/t/ruby-2-5-0-builds-failing-on-circleci-1-0-due-to-missing-home-travis/19620
|
4
|
-
# https://discuss.circleci.com/t/ruby-2-5-0-still-a-problem/19637/4
|
5
|
-
- sudo rm -rf /home/travis
|
6
|
-
- sudo ln -s /home/ubuntu /home/travis
|
7
|
-
|
8
|
-
database:
|
9
|
-
override:
|
10
|
-
# We don't actually use a DB but it is included in the internal rails app
|
11
|
-
# for specs. So override default behavior to do nothing
|
12
|
-
- echo "Skip DB"
|
13
|
-
|
14
|
-
test:
|
15
|
-
post:
|
16
|
-
- bundle exec codeclimate-test-reporter
|
data/config.ru
DELETED
data/config/environment.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Dummy file to make vim-rails work
|
data/lib/scorpion/locale/en.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
scorpion:
|
3
|
-
errors:
|
4
|
-
messages:
|
5
|
-
unsuccessful_hunt: "Couldn't find a %{contract} builder"
|
6
|
-
builder_required: A custom builder must be provided to resolve this dependency
|
7
|
-
arity_mismatch: The block must accept %{expected} arguments, but actually expects %{actual}
|
8
|
-
rack_missing_scorpion: Scorpion not set. Add Scorpion::Rack::Middleware before %{middleware}.
|
9
|
-
contract_mismatch: "%{module} changed the contract for `%{name}` from `%{from}` to `%{to}` but did not update `initialize` block."
|
10
|
-
warnings:
|
11
|
-
messages:
|
12
|
-
mixed_scorpions: A scorpion has already been assigned. Mixing scorpions can result in unexpected results.
|
data/scorpion.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
|
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 = "Add IoC to rails with minimal fuss and ceremony"
|
12
|
-
spec.description = "Embrace convention over configuration while still benefitting from dependency injection design principles." # rubocop:disable Metrics/LineLength
|
13
|
-
spec.homepage = "https://github.com/phallguy/scorpion"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files -z 2>/dev/null`.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 = ">= 2.0.0"
|
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
|
-
spec.add_development_dependency "rspec-rails", "~> 3.00"
|
28
|
-
spec.add_development_dependency "combustion", "~> 0.5.3"
|
29
|
-
spec.add_development_dependency "sqlite3"
|
30
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
*.log
|