receptacle 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c3b2dda14cdba3e98e04dbe1c8610f5718f4979
4
- data.tar.gz: d8ab4f84c9826113be2b566c659ee24b045bff96
3
+ metadata.gz: 7cf73a17e7eb57b985f1b21d82784a2387ed5edc
4
+ data.tar.gz: 6964567a2581f9cb0d4e6be72ee52ac312a44fff
5
5
  SHA512:
6
- metadata.gz: 299d55e1aa3afa8ed26a9a92083afd4f9c2320314a1fb3489f87123ed4d4c55774167fc5323b666de706e3cfece8f1a4c2705ce052068041cd23dc7feb3c6c2b
7
- data.tar.gz: 9531ff2e7ce214b57a7fdbd9755058682551a4cbc3f5a527140b2ef3a67b261f215999be70292b44f56740e19493b5c295f2f96884dbe5bee559922991ea454a
6
+ metadata.gz: 3720c2ae69bc18032ef7b48663496559a83f0826afa81c12f58a60fbcf124fccd94960f6754131ab11be5368da06cf571aac9ee64808d9dd0e181528b3d5959e
7
+ data.tar.gz: 34f4e120c2c0d807dd65b9dc1772bfbad020dc010c43715214e931916ec873bb11b5b76180ca1694dcd5a1eac0aaaded4bff199d86fe1e0f5118897a5b376c10
data/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ Changelog
2
+ ===
3
+
4
+ master
5
+ ---
6
+
7
+ 0.1.1
8
+ ---
9
+
10
+ - add changelog, update copyright
11
+ - add test helper method `ensure_method_delegators` to make rspec stubs/mocks work as expected
12
+
13
+ 0.1.0
14
+ ---
15
+
16
+ - initial release
17
+
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Andreas Eger
3
+ Copyright (c) 2017 Andreas Eger
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -43,5 +43,13 @@ module Receptacle
43
43
  yield
44
44
  repo.strategy original_strategy
45
45
  end
46
+
47
+ # rspec mocks/stubs don't like the lazy defined delegate methods use this to
48
+ # make sure the methods are already defined
49
+ def ensure_method_delegators(repo)
50
+ Receptacle::Registration.repositories[repo].methods.each do |method_name|
51
+ repo.__build_method(method_name)
52
+ end
53
+ end
46
54
  end
47
55
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Receptacle
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: receptacle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Eger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -175,6 +175,7 @@ files:
175
175
  - ".gitignore"
176
176
  - ".rubocop.yml"
177
177
  - ".travis.yml"
178
+ - CHANGELOG.md
178
179
  - CODE_OF_CONDUCT.md
179
180
  - Gemfile
180
181
  - Guardfile