very_ants 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21569d770867c68daa13130062d46471732495d3
4
- data.tar.gz: 74d2390b9a12084c6098dbf87c851d237d1fd92f
3
+ metadata.gz: 43eeae11ee5966c33bd02ac653e80ed7e46d6a86
4
+ data.tar.gz: 12ec8dc57f893a8bf9a71b449ee454f64a3eae19
5
5
  SHA512:
6
- metadata.gz: 459ce72aa7e054879724c8d193ad4582d72805d3c6a09e4ce9d1358ab9e6cf884e8ab2cf194ff9695a0447b4824a202f5899d0d7d55da040d6d6d01b467fc651
7
- data.tar.gz: bb4748c3bc2cb53f25bc73a860dcd01f76b1b3efe561125aa55fd76ff49466fd936c86ec1c4aff5ec9af2479fc56da4646f0b9054ad88bc791304ea7d076c9b3
6
+ metadata.gz: f504bc2ba872fe0acb50f9899685fe23afedbc5012fd49a016aabc76bcf22c16d5ea2e249371626a941f4cd4c33a1dd8dfcf80b0cc6e6a779f56f6f353a8f1a4
7
+ data.tar.gz: b5ef1edfd171828f08013b020a317ccb898d71f5f441bacf335fc2746275b7a46b2573088de5eab1bf3278e8781458e39f5515cbba920661edefa7fcc450d08b
data/README.md CHANGED
@@ -56,7 +56,7 @@ require "very_ants"
56
56
  2. Set the variance constant
57
57
 
58
58
  ```
59
- Fixnum::how_antsy_do_you_feel(4)
59
+ Integer::how_antsy_do_you_feel(4)
60
60
  ```
61
61
 
62
62
  3. Try and (mostly) fail to get correct arithmetic results
data/bin/demo CHANGED
@@ -11,7 +11,7 @@ puts "14 * 6 = #{14 * 6}"
11
11
  puts "14 / 6 = #{14 / 6}"
12
12
  puts
13
13
  puts "very ansty arithmetic (c = 4)"
14
- Fixnum::how_antsy_do_you_feel(4)
14
+ Integer::how_antsy_do_you_feel(4)
15
15
  puts
16
16
  puts "14 + 6 = #{14 + 6}"
17
17
  puts "14 - 6 = #{14 - 6}"
@@ -1,7 +1,7 @@
1
1
  require "very_ants/int"
2
2
  require "very_ants/version"
3
3
 
4
- class Fixnum
4
+ class Integer
5
5
  extend VeryAnts::Int
6
6
 
7
7
  @@c = 1
@@ -15,22 +15,22 @@ class Fixnum
15
15
  end
16
16
 
17
17
  def +(other)
18
- Fixnum::plus(self, other, @@c)
18
+ Integer::plus(self, other, @@c)
19
19
  end
20
20
 
21
21
  def -(other)
22
- Fixnum::minus(self, other, @@c)
22
+ Integer::minus(self, other, @@c)
23
23
  end
24
24
 
25
25
  def *(other)
26
- Fixnum::mult(self, other, @@c)
26
+ Integer::mult(self, other, @@c)
27
27
  end
28
28
 
29
29
  def /(other)
30
- Fixnum::divide(self, other, @@c)
30
+ Integer::divide(self, other, @@c)
31
31
  end
32
32
 
33
33
  def %(other)
34
- Fixnum::mod(self, other, @@c)
34
+ Integer::mod(self, other, @@c)
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module VeryAnts
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: very_ants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saghm Rossi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.5.2
112
+ rubygems_version: 2.6.8
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Probabilistic integer arithmetic library