contracts-noop 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 72af6ffd8d554f4741ec0e0078b7cabce4efd302
4
+ data.tar.gz: 39da2879fdc9b64da333d851ef70027824aead66
5
+ SHA512:
6
+ metadata.gz: badd071477ac9081468264e18c04feb0e8048b06ea8058f7de94132f03842b877d9e7919e7e6f979ed20e04f8ba316cde5011c6a5beafe60589e52eb6ca2e74d
7
+ data.tar.gz: 6e8a92e48601d4443661556ff457796a9152d03de9d94f23106f44e41da8a16bb8810dd3200fb22d8e04da3733c5c7f7ef3b5803738aaa8b561db24bebb2d7dd
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in contracts-noop.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Oleksii Fedorov
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Contracts::Noop
2
+
3
+ Allows usage of [contracts.ruby](https://github.com/egonSchiele/contracts.ruby) in gems/libraries only as a development dependency.
4
+
5
+ This gem needs to be a runtime dependency though.
6
+
7
+ When it is impossible to load `contracts`, this gem will load its own `Contracts` which will be noop.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'contracts-noop'
15
+ ```
16
+
17
+ Or add it to your `my-gem.gemspec`:
18
+
19
+ ```ruby
20
+ spec.add_runtime_dependency 'contracts-noop'
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install contracts-noop
30
+
31
+ ## Usage
32
+
33
+ ```ruby
34
+ require 'contracts/noop'
35
+
36
+ Contracts::Noop.when_contracts_available do
37
+ # .. assume contracts were loaded here ..
38
+ # .. ie: load custom contracts, other contract plugins, configure
39
+ # failure_callback, etc. ..
40
+ end
41
+ ```
42
+
43
+ ## Contributing
44
+
45
+ 1. Fork it ( https://github.com/waterlink/contracts-noop/fork )
46
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
47
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
48
+ 4. Push to the branch (`git push origin my-new-feature`)
49
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'contracts/noop/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "contracts-noop"
8
+ spec.version = Contracts::Noop::VERSION
9
+ spec.authors = ["Oleksii Fedorov"]
10
+ spec.email = ["waterlink000@gmail.com"]
11
+ spec.summary = %q{Allows usage of contracts.ruby as a development dependency}
12
+ spec.description = %q{
13
+ Allows usage of [contracts.ruby](https://github.com/egonSchiele/contracts.ruby) in gems/libraries only as a development dependency.
14
+
15
+ This gem needs to be a runtime dependency though.
16
+
17
+ When it is impossible to load `contracts`, this gem will load its own `Contracts` which will be noop.
18
+ }
19
+ spec.homepage = "https://github.com/waterlink/contracts-noop"
20
+ spec.license = "MIT"
21
+
22
+ spec.files = `git ls-files -z`.split("\x0")
23
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
24
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.7"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ end
@@ -0,0 +1,7 @@
1
+ require "contracts/noop/version"
2
+
3
+ module Contracts
4
+ module Noop
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Contracts
2
+ module Noop
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: contracts-noop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Oleksii Fedorov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-25 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.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
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.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: |2
42
+
43
+ Allows usage of [contracts.ruby](https://github.com/egonSchiele/contracts.ruby) in gems/libraries only as a development dependency.
44
+
45
+ This gem needs to be a runtime dependency though.
46
+
47
+ When it is impossible to load `contracts`, this gem will load its own `Contracts` which will be noop.
48
+ email:
49
+ - waterlink000@gmail.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - ".gitignore"
55
+ - Gemfile
56
+ - LICENSE.txt
57
+ - README.md
58
+ - Rakefile
59
+ - contracts-noop.gemspec
60
+ - lib/contracts/noop.rb
61
+ - lib/contracts/noop/version.rb
62
+ homepage: https://github.com/waterlink/contracts-noop
63
+ licenses:
64
+ - MIT
65
+ metadata: {}
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project:
82
+ rubygems_version: 2.2.2
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: Allows usage of contracts.ruby as a development dependency
86
+ test_files: []