opushon 0.1.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -5
- data/.travis.yml +12 -3
- data/.yardopts +1 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +1 -0
- data/LICENSE.md +17 -18
- data/README.md +36 -3
- data/Rakefile +3 -2
- data/VERSION.semver +1 -1
- data/bin/console +7 -0
- data/bin/setup +5 -0
- data/lib/opushon/body.rb +35 -0
- data/lib/opushon/option.rb +22 -0
- data/lib/opushon/parameter.rb +52 -6
- data/lib/opushon/request.rb +19 -0
- data/lib/opushon/response.rb +17 -0
- data/lib/opushon/restricted_value.rb +4 -22
- data/lib/opushon.rb +23 -9
- data/opushon.gemspec +10 -6
- metadata +65 -68
- data/.coveralls.yml +0 -1
- data/.ruby-version +0 -1
- data/lib/opushon/error/base_error.rb +0 -6
- data/lib/opushon/error/min_is_greater_than_max_error.rb +0 -8
- data/lib/opushon/error/minlen_is_longer_than_maxlen_error.rb +0 -8
- data/lib/opushon/error/syntax_error.rb +0 -8
- data/lib/opushon/error/verb_error.rb +0 -8
- data/lib/opushon/error.rb +0 -3
- data/lib/opushon/instance.rb +0 -34
- data/lib/opushon/option_object.rb +0 -36
- data/lib/opushon/parameter/base.rb +0 -47
- data/lib/opushon/parameter/input.rb +0 -34
- data/lib/opushon/parameter/output.rb +0 -10
- data/lib/opushon/type/array.rb +0 -10
- data/lib/opushon/type/base.rb +0 -25
- data/lib/opushon/type/boolean.rb +0 -10
- data/lib/opushon/type/hash.rb +0 -10
- data/lib/opushon/type/number.rb +0 -29
- data/lib/opushon/type/string.rb +0 -32
- data/lib/opushon/type.rb +0 -10
- data/lib/opushon/verb/base.rb +0 -7
- data/lib/opushon/verb/delete.rb +0 -9
- data/lib/opushon/verb/get.rb +0 -9
- data/lib/opushon/verb/head.rb +0 -9
- data/lib/opushon/verb/patch.rb +0 -9
- data/lib/opushon/verb/post.rb +0 -9
- data/lib/opushon/verb/put.rb +0 -9
- data/lib/opushon/verb.rb +0 -9
- data/lib/opushon/version.rb +0 -9
- data/spec/opushon/parameter/input_spec.rb +0 -161
- data/spec/opushon/parameter/output_spec.rb +0 -108
- data/spec/opushon/parameter/spec_helper.rb +0 -1
- data/spec/opushon/restricted_value_spec.rb +0 -42
- data/spec/opushon/spec_helper.rb +0 -1
- data/spec/opushon/version_spec.rb +0 -9
- data/spec/opushon_spec.rb +0 -343
- data/spec/spec_helper.rb +0 -4
- data/spec/support/coverage.rb +0 -9
- data/spec/support/env.rb +0 -1
- data/spec/support/immutable.rb +0 -15
- data/spec/support.rb +0 -3
data/spec/support/immutable.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# class Object
|
2
|
-
# alias_method :overridden_initialize, :initialize
|
3
|
-
|
4
|
-
# def initialize
|
5
|
-
# overridden_initialize
|
6
|
-
|
7
|
-
# if !self.class.ancestors.include?(SimpleCov::Formatter::MultiFormatter) &&
|
8
|
-
# !self.class.ancestors.include?(SimpleCov::Formatter::HTMLFormatter) &&
|
9
|
-
# !self.class.ancestors.include?(Minitest::CompositeReporter) &&
|
10
|
-
# !self.class.ancestors.include?(Minitest::SummaryReporter) &&
|
11
|
-
# !self.class.ancestors.include?(Minitest::ProgressReporter)
|
12
|
-
# freeze
|
13
|
-
# end
|
14
|
-
# end
|
15
|
-
# end
|
data/spec/support.rb
DELETED