virtual_proxy 0.1.0 → 0.2.0
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 +4 -4
- data/.travis.yml +8 -0
- data/Gemfile.lock +8 -0
- data/README.md +6 -1
- data/lib/virtual_proxy/version.rb +1 -1
- data/virtual_proxy.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b9d4bee48a9b18d3715353155bf10bfcc2bbed96dc788572cf0ff81e3545778
|
4
|
+
data.tar.gz: c93dd0931eb5efb998eb37b146fd16a51357fdea58ab9ff44e54064aff3b5f97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f7c07b55caedabd2b38ae79fe9379c8a01b912e0db051f4a3b064c9508400ad781fb4da8c73fd2d6e88a4c5bbc8e23600bf1d7f5888e2c782f786cf28462b2
|
7
|
+
data.tar.gz: 2f97e633714538c13591cd8316e4e3e9e266506631982b7645175548a3828901fa4ae0592c94f2cfefd255bb0da95d0ba3c24fbb13631dda23cec8a5ac76a5a9
|
data/.travis.yml
CHANGED
@@ -5,3 +5,11 @@ cache: bundler
|
|
5
5
|
rvm:
|
6
6
|
- 2.6.3
|
7
7
|
before_install: gem install bundler -v 2.0.1
|
8
|
+
before_script:
|
9
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
10
|
+
- chmod +x ./cc-test-reporter
|
11
|
+
- ./cc-test-reporter before-build
|
12
|
+
script:
|
13
|
+
- bundle exec rspec
|
14
|
+
after_script:
|
15
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/Gemfile.lock
CHANGED
@@ -7,6 +7,8 @@ GEM
|
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
diff-lcs (1.3)
|
10
|
+
docile (1.3.1)
|
11
|
+
json (2.2.0)
|
10
12
|
rake (10.5.0)
|
11
13
|
rspec (3.8.0)
|
12
14
|
rspec-core (~> 3.8.0)
|
@@ -21,6 +23,11 @@ GEM
|
|
21
23
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
24
|
rspec-support (~> 3.8.0)
|
23
25
|
rspec-support (3.8.0)
|
26
|
+
simplecov (0.16.1)
|
27
|
+
docile (~> 1.1)
|
28
|
+
json (>= 1.8, < 3)
|
29
|
+
simplecov-html (~> 0.10.0)
|
30
|
+
simplecov-html (0.10.2)
|
24
31
|
|
25
32
|
PLATFORMS
|
26
33
|
ruby
|
@@ -29,6 +36,7 @@ DEPENDENCIES
|
|
29
36
|
bundler (~> 2.0)
|
30
37
|
rake (~> 10.0)
|
31
38
|
rspec (~> 3.0)
|
39
|
+
simplecov (~> 0.16.1)
|
32
40
|
virtual_proxy!
|
33
41
|
|
34
42
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
[](https://travis-ci.org/johnc219/virtual_proxy)
|
2
|
+
[](https://badge.fury.io/rb/virtual_proxy)
|
3
|
+
[](https://codeclimate.com/github/johnc219/virtual_proxy/maintainability)
|
4
|
+
[](https://codeclimate.com/github/johnc219/virtual_proxy/test_coverage)
|
5
|
+
|
1
6
|
# VirtualProxy
|
2
7
|
|
3
8
|
- Quickly build virtual proxies.
|
@@ -35,7 +40,7 @@ proxy.__getobj__ # => ExpensiveObject instance
|
|
35
40
|
proxy.__setobj__ { OtherExpensiveObject.new }
|
36
41
|
proxy.other_expensive_object_method
|
37
42
|
|
38
|
-
# Extend any class
|
43
|
+
# Extend any class with proxy construction capabilities
|
39
44
|
class ExpensiveObject
|
40
45
|
extend VirtualProxy
|
41
46
|
|
data/virtual_proxy.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virtual_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Careaga
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.16.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.16.1
|
55
69
|
description: Forward messages to lazily-evaluated subjects.
|
56
70
|
email:
|
57
71
|
- johnc219dev@gmail.com
|