lazy_proxy 0.0.1 → 0.0.3

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: ff7b5afbfe188c0090183983d04cfab2d9dc926b
4
- data.tar.gz: a363a9267dfa8d897c4cabc77f71a8de1840cb54
3
+ metadata.gz: e235699df23f5d8533162121d8dcd613a39fd91a
4
+ data.tar.gz: 44aa29234c713a6f05b0cb6cb5011ce158978dee
5
5
  SHA512:
6
- metadata.gz: afdc2c7cfc8f101c358203537566e079533898fd699d44b79c09195e09158c41f7793e518aa15a0c25e0cc906251ca621a11c30a8b1380e18c9fb45e19832834
7
- data.tar.gz: de62f85bc27d73895b4417cc9002180b5e30e5c01dcd5ed79534c7f8f6ef01bcf9dded4adaf37979d0d558ed3de76b55e37a7ce1fa10b473392d56977440891a
6
+ metadata.gz: db2e8b263b0bc8e99bc4f63307ad266e85f5bb8d8c8a45c432cb5373717f25aaf78a1966e81baf09e8257e239527808758a13872ef3fb5abfa243c396c8820a7
7
+ data.tar.gz: 1ef09af36d6fe5dfa771355719ae1a576d56dc408ab01336faa40a4b1232f77071b3295b1e90679b682649cacd4bcc72156325715d2a341bcd2868d794bfd89e
data/.gitignore CHANGED
@@ -10,42 +10,12 @@
10
10
  /test/tmp/
11
11
  /test/version_tmp/
12
12
  /tmp/
13
-
14
- # Used by dotenv library to load environment variables.
15
- # .env
16
-
17
- ## Specific to RubyMotion:
18
- .dat*
19
- .repl_history
20
- build/
21
- *.bridgesupport
22
- build-iPhoneOS/
23
- build-iPhoneSimulator/
24
-
25
- ## Specific to RubyMotion (use of CocoaPods):
26
- #
27
- # We recommend against adding the Pods directory to your .gitignore. However
28
- # you should judge for yourself, the pros and cons are mentioned at:
29
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
30
- #
31
- # vendor/Pods/
32
-
33
- ## Documentation cache and generated files:
34
13
  /.yardoc/
35
14
  /_yardoc/
36
15
  /doc/
37
16
  /rdoc/
38
-
39
- ## Environment normalization:
40
17
  /.bundle/
41
18
  /vendor/bundle
42
19
  /lib/bundler/man/
43
-
44
- # for a library or gem, you might want to ignore these files since the code is
45
- # intended to run in multiple environments; otherwise, check them in:
46
- # Gemfile.lock
47
- # .ruby-version
48
- # .ruby-gemset
49
-
50
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
51
20
  .rvmrc
21
+ Gemfile.lock
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1
4
+ - 2.2
5
+ - 2.3.0
6
+ - ruby-head
data/Gemfile CHANGED
@@ -2,8 +2,14 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- group :test, :development do
5
+ group :test do
6
6
  gem 'rspec'
7
- gem 'rubocop'
7
+ end
8
+
9
+ group :test, :development do
8
10
  gem 'pry'
9
11
  end
12
+
13
+ group :development do
14
+ gem 'rubocop'
15
+ end
data/Gemfile.lock CHANGED
@@ -6,43 +6,43 @@ PATH
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.2.0)
9
+ ast (2.3.0)
10
10
  coderay (1.1.1)
11
11
  diff-lcs (1.2.5)
12
12
  method_source (0.8.2)
13
- parser (2.3.0.6)
13
+ parser (2.3.1.4)
14
14
  ast (~> 2.2)
15
15
  powerpack (0.1.1)
16
- pry (0.10.3)
16
+ pry (0.10.4)
17
17
  coderay (~> 1.1.0)
18
18
  method_source (~> 0.8.1)
19
19
  slop (~> 3.4)
20
20
  rainbow (2.1.0)
21
- rake (11.2.2)
22
- rake-compiler (0.9.9)
21
+ rake (11.3.0)
22
+ rake-compiler (1.0.1)
23
23
  rake
24
- rspec (3.4.0)
25
- rspec-core (~> 3.4.0)
26
- rspec-expectations (~> 3.4.0)
27
- rspec-mocks (~> 3.4.0)
28
- rspec-core (3.4.4)
29
- rspec-support (~> 3.4.0)
30
- rspec-expectations (3.4.0)
24
+ rspec (3.5.0)
25
+ rspec-core (~> 3.5.0)
26
+ rspec-expectations (~> 3.5.0)
27
+ rspec-mocks (~> 3.5.0)
28
+ rspec-core (3.5.4)
29
+ rspec-support (~> 3.5.0)
30
+ rspec-expectations (3.5.0)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.4.0)
33
- rspec-mocks (3.4.1)
32
+ rspec-support (~> 3.5.0)
33
+ rspec-mocks (3.5.0)
34
34
  diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.4.0)
36
- rspec-support (3.4.1)
37
- rubocop (0.38.0)
38
- parser (>= 2.3.0.6, < 3.0)
35
+ rspec-support (~> 3.5.0)
36
+ rspec-support (3.5.0)
37
+ rubocop (0.44.1)
38
+ parser (>= 2.3.1.1, < 3.0)
39
39
  powerpack (~> 0.1)
40
40
  rainbow (>= 1.99.1, < 3.0)
41
41
  ruby-progressbar (~> 1.7)
42
42
  unicode-display_width (~> 1.0, >= 1.0.1)
43
- ruby-progressbar (1.7.5)
43
+ ruby-progressbar (1.8.1)
44
44
  slop (3.6.0)
45
- unicode-display_width (1.0.2)
45
+ unicode-display_width (1.1.1)
46
46
 
47
47
  PLATFORMS
48
48
  ruby
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  rubocop
57
57
 
58
58
  BUNDLED WITH
59
- 1.12.5
59
+ 1.13.2
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/mavax/lazy_proxy.svg?branch=master)](https://travis-ci.org/mavax/lazy_proxy)
2
+
1
3
  ## Efficient lazy proxy for Ruby
2
4
 
3
5
  Can wrap any object or block returning an object.
data/Rakefile CHANGED
@@ -3,29 +3,6 @@ require 'rspec/core/rake_task'
3
3
 
4
4
  spec = Gem::Specification.load('lazy_proxy.gemspec')
5
5
 
6
- desc 'Check for memory leaks'
7
- task :memory_leak_check do
8
- require 'lazy_proxy'
9
- top_level_threads = []
10
- 5.times do
11
- top_level_threads << Thread.new do
12
- aux_class = Class.new
13
- threads = []
14
- 5.times do
15
- threads << Thread.new do
16
- loop do
17
- 1000.times { LazyProxy.new(aux_class.new) }
18
- GC.start
19
- print "#{ObjectSpace.each_object(aux_class).count}\n"
20
- end
21
- end
22
- end
23
- threads.each(&:join)
24
- end
25
- end
26
- top_level_threads.each(&:join)
27
- end
28
-
29
6
  task :benchmark do
30
7
  require 'lazy_proxy'
31
8
  require 'benchmark'
data/lazy_proxy.gemspec CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'lazy_proxy'
6
- s.version = '0.0.1'
6
+ s.version = '0.0.3'
7
7
  s.authors = ['Manuel A. Valenzuela']
8
8
  s.email = ['manvalaco@gmail.com']
9
9
 
@@ -11,11 +11,13 @@ Gem::Specification.new do |s|
11
11
  Efficient lazy object proxy
12
12
  EOF
13
13
  s.description = s.summary
14
+ s.homepage = 'https://github.com/mavax/lazy_proxy'
15
+ s.license = 'MIT'
14
16
 
15
17
  s.files = `git ls-files -z`.split("\x0").reject do |f|
16
18
  f.match(%r{^(test|spec|features)/})
17
19
  end
18
- s.require_paths = %w(lib ext)
20
+ s.require_paths = ['lib', 'ext']
19
21
 
20
22
  s.extensions << 'ext/lazy_proxy/extconf.rb'
21
23
  s.add_development_dependency 'rake-compiler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel A. Valenzuela
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - ".gitignore"
50
50
  - ".rubocop.yml"
51
+ - ".travis.yml"
51
52
  - Gemfile
52
53
  - Gemfile.lock
53
54
  - LICENSE
@@ -58,8 +59,9 @@ files:
58
59
  - ext/lazy_proxy/lazy_proxy.h
59
60
  - lazy_proxy.gemspec
60
61
  - lib/lazy_proxy.rb
61
- homepage:
62
- licenses: []
62
+ homepage: https://github.com/mavax/lazy_proxy
63
+ licenses:
64
+ - MIT
63
65
  metadata: {}
64
66
  post_install_message:
65
67
  rdoc_options: []