abstract_class 1.0.0 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfcc784ab27947ac6d5e7935cf675406f64023b1
4
- data.tar.gz: ddd41d3b70a4d2eaddfde81ff5682a4803198b3e
3
+ metadata.gz: bb9deff81b4875fa999266934ca16c252a5c30c1
4
+ data.tar.gz: 3465408a5cfcd39a0745d74bc7e27ee4ac71039f
5
5
  SHA512:
6
- metadata.gz: 781f01d584bf096751bfa9e458aa23908a343d8a8d7b06c68b2fce5b29884745d608a47bca81c192a9a0c6319e46bb1e1b4253428765f91e581ad50f03179e15
7
- data.tar.gz: 983955c5a42dfcc77199d1a754ac2ae79788e37f05756a0e1cf9576ad2cecacc5071d8783ae5b3b62fe9e9e23c3850c66834fd7f812b5e0e0a095a638d164ef9
6
+ metadata.gz: b39c07ad0c5f9de05d016649543f248408a680cffb1e15ab3f013e18dd365311914598f2f7327622da85bd72701b81a4d5e376e001fe5fdc1c3846ccdb4da041
7
+ data.tar.gz: c068acbe30a55336c265acda068db2f4f5ab7ef88fc8903953eea94fc6af07748a984793efa7fc51cb35496c0e97e18288110a53a02c15b5c0d986dc401a0dfb
@@ -2,4 +2,12 @@ addons:
2
2
  code_climate:
3
3
  repo_token: c70d4a471411de40144f39e7264f10a99b5530522f996c872a26eddf3c4208f3
4
4
 
5
+ install: bundle install --jobs 3 --retry 3
6
+
7
+ rvm:
8
+ - 1.8.7
9
+ - 1.9.3
10
+ - 2.0.0
11
+ - ruby-head
12
+
5
13
  script: bundle exec rspec
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ unless RUBY_VERSION =~ /1\.8\./
6
+ gem 'codeclimate-test-reporter'
7
+ end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abstract_class (1.0.0)
4
+ abstract_class (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # abstract_class [![Build Status](https://travis-ci.org/shuber/abstract_class.svg?branch=master)](https://travis-ci.org/shuber/abstract_class) [![Code Climate](https://codeclimate.com/github/shuber/abstract_class/badges/gpa.svg)](https://codeclimate.com/github/shuber/abstract_class) [![Coverage](https://codeclimate.com/github/shuber/abstract_class/badges/coverage.svg)](https://codeclimate.com/github/shuber/abstract_class)
1
+ # [![Sean Huber](https://cloud.githubusercontent.com/assets/2419/6550752/832d9a64-c5ea-11e4-9717-6f9aa6e023b5.png)](https://github.com/shuber) abstract_class [![Build Status](https://travis-ci.org/shuber/abstract_class.svg?branch=master)](https://travis-ci.org/shuber/abstract_class) [![Code Climate](https://codeclimate.com/github/shuber/abstract_class/badges/gpa.svg)](https://codeclimate.com/github/shuber/abstract_class) [![Coverage](https://codeclimate.com/github/shuber/abstract_class/badges/coverage.svg)](https://codeclimate.com/github/shuber/abstract_class)
2
2
 
3
3
  > Abstract classes in Ruby.
4
4
 
@@ -18,6 +18,10 @@ gem install abstract_class
18
18
  ```
19
19
 
20
20
 
21
+ ## Requirements
22
+
23
+ Ruby 1.8.7+
24
+
21
25
  ## Usage
22
26
 
23
27
  To make a class *abstract*, simply extend the `AbstractClass` module.
@@ -15,6 +15,5 @@ Gem::Specification.new do |s|
15
15
  s.test_files = `git ls-files -- spec/*`.split("\n")
16
16
  s.version = AbstractClass::VERSION
17
17
 
18
- s.add_development_dependency 'codeclimate-test-reporter'
19
18
  s.add_development_dependency 'rspec'
20
19
  end
@@ -1,3 +1,3 @@
1
1
  module AbstractClass
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -1,4 +1,4 @@
1
- require_relative '../lib/abstract_class'
1
+ require File.expand_path('../../lib/abstract_class', __FILE__)
2
2
 
3
3
  RSpec.describe AbstractClass do
4
4
  let(:abstract) { Class.new.extend(described_class) }
@@ -19,7 +19,7 @@ RSpec.describe AbstractClass do
19
19
 
20
20
  describe '.allocate' do
21
21
  it 'should not allow an abstract class to be allocated' do
22
- initializer = -> { abstract.allocate }
22
+ initializer = proc { abstract.allocate }
23
23
  expect(initializer).to raise_error(error)
24
24
  end
25
25
 
@@ -30,7 +30,7 @@ RSpec.describe AbstractClass do
30
30
 
31
31
  describe '.new' do
32
32
  it 'should not allow an abstract class to be initialized' do
33
- initializer = -> { abstract.new }
33
+ initializer = proc { abstract.new }
34
34
  expect(initializer).to raise_error(error)
35
35
  end
36
36
 
@@ -1,95 +1,15 @@
1
- if ENV['CODECLIMATE_REPO_TOKEN']
2
- require 'codeclimate-test-reporter'
3
- CodeClimate::TestReporter.start
1
+ begin
2
+ if ENV['CODECLIMATE_REPO_TOKEN']
3
+ require 'codeclimate-test-reporter'
4
+ CodeClimate::TestReporter.start
5
+ else
6
+ require 'simplecov'
7
+ SimpleCov.start { add_filter('/vendor/bundle/') }
8
+ end
9
+ rescue LoadError
10
+ # Ignore when testing with Ruby 1.8.7
4
11
  end
5
12
 
6
- # This file was generated by the `rspec --init` command. Conventionally, all
7
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
8
- # The generated `.rspec` file contains `--require spec_helper` which will cause
9
- # this file to always be loaded, without a need to explicitly require it in any
10
- # files.
11
- #
12
- # Given that it is always loaded, you are encouraged to keep this file as
13
- # light-weight as possible. Requiring heavyweight dependencies from this file
14
- # will add to the boot time of your test suite on EVERY test run, even for an
15
- # individual file that may not need all of that loaded. Instead, consider making
16
- # a separate helper file that requires the additional dependencies and performs
17
- # the additional setup, and require it from the spec files that actually need
18
- # it.
19
- #
20
- # The `.rspec` file also contains a few flags that are not defaults but that
21
- # users commonly want.
22
- #
23
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
24
13
  RSpec.configure do |config|
25
- # rspec-expectations config goes here. You can use an alternate
26
- # assertion/expectation library such as wrong or the stdlib/minitest
27
- # assertions if you prefer.
28
- config.expect_with :rspec do |expectations|
29
- # This option will default to `true` in RSpec 4. It makes the `description`
30
- # and `failure_message` of custom matchers include text for helper methods
31
- # defined using `chain`, e.g.:
32
- # be_bigger_than(2).and_smaller_than(4).description
33
- # # => "be bigger than 2 and smaller than 4"
34
- # ...rather than:
35
- # # => "be bigger than 2"
36
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
37
- end
38
-
39
- # rspec-mocks config goes here. You can use an alternate test double
40
- # library (such as bogus or mocha) by changing the `mock_with` option here.
41
- config.mock_with :rspec do |mocks|
42
- # Prevents you from mocking or stubbing a method that does not exist on
43
- # a real object. This is generally recommended, and will default to
44
- # `true` in RSpec 4.
45
- mocks.verify_partial_doubles = true
46
- end
47
-
48
- # The settings below are suggested to provide a good initial experience
49
- # with RSpec, but feel free to customize to your heart's content.
50
-
51
- # These two settings work together to allow you to limit a spec run
52
- # to individual examples or groups you care about by tagging them with
53
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
54
- # get run.
55
- config.filter_run :focus
56
- config.run_all_when_everything_filtered = true
57
-
58
- # Limits the available syntax to the non-monkey patched syntax that is
59
- # recommended. For more details, see:
60
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
61
- # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
62
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
63
- config.disable_monkey_patching!
64
-
65
- # This setting enables warnings. It's recommended, but in some cases may
66
- # be too noisy due to issues in dependencies.
67
- config.warnings = true
68
-
69
- # Many RSpec users commonly either run the entire suite or an individual
70
- # file, and it's useful to allow more verbose output when running an
71
- # individual spec file.
72
- if config.files_to_run.one?
73
- # Use the documentation formatter for detailed output,
74
- # unless a formatter has already been configured
75
- # (e.g. via a command-line flag).
76
- config.default_formatter = 'doc'
77
- end
78
-
79
- # Print the 10 slowest examples and example groups at the
80
- # end of the spec run, to help surface which specs are running
81
- # particularly slow.
82
- config.profile_examples = 10
83
-
84
- # Run specs in random order to surface order dependencies. If you find an
85
- # order dependency and want to debug it, you can fix the order by providing
86
- # the seed, which is printed after each run.
87
- # --seed 1234
88
- config.order = :random
89
-
90
- # Seed global randomization in this process using the `--seed` CLI option.
91
- # Setting this allows you to use `--seed` to deterministically reproduce
92
- # test failures related to randomization by passing the same `--seed` value
93
- # as the one that triggered the failure.
94
- Kernel.srand config.seed
14
+ config.raise_errors_for_deprecations!
95
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstract_class
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Huber
@@ -10,20 +10,6 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: codeclimate-test-reporter
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rspec
29
15
  requirement: !ruby/object:Gem::Requirement