tco_method 0.0.2 → 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: fa6f5ef52346f81e6dda4617f58c78d8ea6268fd
4
- data.tar.gz: 3d38f3813816bc489c5329fe006e679f67041432
3
+ metadata.gz: c162423abdee7bafdeeb615df37a1f4d21a8332c
4
+ data.tar.gz: c6dd3bf952c683b79d01ef86cefb40db6357de61
5
5
  SHA512:
6
- metadata.gz: 3ab604141152bb7c7fc76846a4ecb7edd216b73dd4d134bb07faa13bda12901aa780a5dc34262ec0259d04ab9123a2b486228980dca9684440b3443c16a057e7
7
- data.tar.gz: 7f1ced9785c6aebf644253d52a2a1c0973d94a1efe2fcc84e6aef3ca099c57e54bbc72c5767b0ea61ffb5b33dcc9d34e85b154843ff0a664881097d22fc05281
6
+ metadata.gz: 225afc368495954db3365a65de50da85d7ac3a447bc69759d443e98e946478e9faad145bc4f1eb3aeaa7800d82b235886dbd8ab6b59f472f9758f6e7d8de4a1a
7
+ data.tar.gz: fe4000e731423ab4ee245c8256d567899e7d880e81caf5b1985822f17bd1687d81e5abae7f988ae688db7fde0e806cf00228fd6418a9dbc07345526466625cfe
data/.gitignore CHANGED
File without changes
data/.travis.yml CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Guardfile CHANGED
File without changes
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Danny
3
+ Copyright (c) 2015 Danny Guinther
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
data/README.md CHANGED
@@ -8,8 +8,9 @@
8
8
 
9
9
  Provides `TCOMethod::Mixin` for extending Classes and Modules with helper methods
10
10
  to facilitate evaluating code and some types of methods with tail call
11
- optimization enabled. Also provides `TCOMethod.tco_eval` providing a direct and
12
- easy means to evaluate code strings with tail call optimization enabled.
11
+ optimization enabled in MRI Ruby. Also provides `TCOMethod.tco_eval` providing a
12
+ direct and easy means to evaluate code strings with tail call optimization
13
+ enabled.
13
14
 
14
15
  ## Installation
15
16
 
@@ -162,3 +163,16 @@ I'm sure there are more and I will document them here as I come across them.
162
163
  3. Commit your changes (`git commit -am 'Add some feature'`)
163
164
  4. Push to the branch (`git push origin my-new-feature`)
164
165
  5. Create a new Pull Request
166
+
167
+ ## Reference
168
+
169
+ - Class annotations are based on [Nithin Bekal's blog post *Tail Call
170
+ Optimization in Ruby*](http://nithinbekal.com/posts/ruby-tco/) which follows
171
+ his efforts to create a method decorator to recompile methods with tail call
172
+ optimization
173
+ - For more background on how tail call optimization is implemented in MRI Ruby,
174
+ see [Danny Guinther's *Tail Call Optimization in Ruby: Deep Dive*](http://blog.tdg5.com/tail-call-optimization-ruby-deep-dive/)
175
+ - For those on flavors of Ruby other than MRI, check out [Magnus Holm's *Tailin'
176
+ Ruby*](http://timelessrepo.com/tailin-ruby) for some insight into how else
177
+ tail call optimization (or at least tail call optimization like behavior) can
178
+ be achieved in Ruby
data/Rakefile CHANGED
File without changes
data/lib/tco_method.rb CHANGED
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
1
  module TCOMethod
2
2
  # The version of the TCOMethod gem.
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
data/tco_method.gemspec CHANGED
File without changes
data/test/test_helper.rb CHANGED
@@ -1,9 +1,11 @@
1
1
  if ENV["CI"]
2
2
  require "simplecov"
3
3
  require "coveralls"
4
- Coveralls.wear!
5
4
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
6
5
  SimpleCov.root(File.expand_path("../..", __FILE__))
6
+ SimpleCov.start do
7
+ add_filter "test"
8
+ end
7
9
  end
8
10
 
9
11
  require "minitest/autorun"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tco_method
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Guinther
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: method_source
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.2.2
103
+ rubygems_version: 2.4.5
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Simplifies creating tail call optimized procs/lambdas/methods in Ruby.