very_ants 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c88de8ff08cf8a609532f887931ea0d23e2e4890
4
- data.tar.gz: 588fb9692c36c12cbe31fda56c09422827be4b6a
3
+ metadata.gz: 97401c26760ed09adb9b24e2dd32c546f7da2ba0
4
+ data.tar.gz: 01d46cabf2cbc9973a8421fae1039ac98534c317
5
5
  SHA512:
6
- metadata.gz: 48ab7874e3626ced85e40a8825077f9b794937f89389d8540007e3ec79d49698d7e8dd15f5ece542415326a5100eccb11f3b00d596a4a48e98e8bdc1c9cac9f0
7
- data.tar.gz: f235b26142214707eec3741b85cc09392596176eef6651447ce20275cf5164406dd92d4bcb5aa191b354470a1bf531c8e857c456ff431f4d3b17399751511a73
6
+ metadata.gz: ec27c3409dd52f91d2e1fc5ad817d5f3a2a0660e0d8911539c66b3efb4d2f2f09dbc7f0565b1e14d65444a5804e96960da1119833c08e0cccf4a9862ab75d26e
7
+ data.tar.gz: bee5af01387721d1f039df9e11d423453b96b15e88239eb0335bf3db898e8689b9a4175911910b551c9e1ae1452892d13de00c95c1c88c9003d0623f2addab18
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /vendor/*
11
+ /*.gem
data/README.md CHANGED
@@ -47,7 +47,28 @@ Or install it yourself as:
47
47
 
48
48
  ## Usage
49
49
 
50
- Just `require "very_ants"`, and watch the carnage!
50
+ 1. Require the gem
51
+
52
+ ```
53
+ require "very_ants"
54
+ ```
55
+
56
+ 2. Set the variance constant
57
+
58
+ ```
59
+ Fixnum::how_antsy_do_you_feel(4)
60
+ ```
61
+
62
+ 3. Try and (mostly) fail to get correct arithmetic results
63
+
64
+ ```
65
+ 5 + 7 == 12 # probably not, but who knows
66
+ ```
67
+
68
+ Warning: weird things can occur if you're running this in a REPL. For instance,
69
+ when using `pry`, the arithmetic done internally by the interpreter seems to be
70
+ affected, so sometimes the line numbers will get screwed up or the interpreter
71
+ will crash.
51
72
 
52
73
  ## FAQ
53
74
 
@@ -60,7 +81,7 @@ You wouldn't.
60
81
  I came up with the idea as a joke when talking to my roommate, and I thought it
61
82
  would be funny.
62
83
 
63
- ## Isn't this is pretty slow way to do arithmetic?
84
+ ### Isn't this is pretty slow way to do arithmetic?
64
85
 
65
86
  Is efficiency really the reason you think this is a bad idea?
66
87
 
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::set_c(4)
14
+ Fixnum::how_antsy_do_you_feel(4)
15
15
  puts
16
16
  puts "14 + 6 = #{14 + 6}"
17
17
  puts "14 - 6 = #{14 - 6}"
data/lib/very_ants.rb CHANGED
@@ -6,11 +6,11 @@ class Fixnum
6
6
 
7
7
  @@c = 1
8
8
 
9
- def self.set_c(i)
9
+ def self.how_antsy_do_you_feel(i)
10
10
  @@c = i
11
11
  end
12
12
 
13
- def self.get_c
13
+ def self.i_forget_how_antsy_i_feel
14
14
  @@c
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module VeryAnts
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: very_ants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saghm Rossi