rns 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rns (0.0.3)
4
+ rns (0.0.4)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -24,8 +24,8 @@ module Statistics
24
24
  end
25
25
 
26
26
  class Main
27
- extend Rns.module_with(Arithmetic => [:inc])
28
- include Rns.module_with(Statistics => [:avg])
27
+ extend Rns.use(Arithmetic => [:inc])
28
+ include Rns.use(Statistics => [:avg])
29
29
 
30
30
  def main
31
31
  puts "1+1 is #{self.class.inc 1} and the average of [1,2,3] is #{avg [1,2,3]}"
data/lib/rns/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rns
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/rns.rb CHANGED
@@ -5,7 +5,7 @@ module Rns
5
5
  more.reduce(Kernel.const_get(m)){|m, s| m.const_get(s)}
6
6
  end
7
7
 
8
- def module_with(use_spec)
8
+ def use(use_spec)
9
9
  Module.new.tap {|m| add_methods(m, use_spec) }
10
10
  end
11
11
 
data/spec/rns/rns_spec.rb CHANGED
@@ -45,8 +45,8 @@ module Util
45
45
  end
46
46
 
47
47
  class Thing
48
- extend Rns.module_with(Math::Arithmetic => [:inc])
49
- include Rns.module_with(Math::Statistics => [:avg])
48
+ extend Rns.use(Math::Arithmetic => [:inc])
49
+ include Rns.use(Math::Statistics => [:avg])
50
50
 
51
51
  def self.inced_one
52
52
  inc 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: