ruby_breaker 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +6 -3
- data/lib/ruby_breaker/version.rb +1 -1
- data/lib/ruby_breaker.rb +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5985f6c12e7abc1a07185efc0c841237669fa02
|
4
|
+
data.tar.gz: 08f88e386adf323d1de461ea6af2a92fcf130f2f
|
5
5
|
!binary "U0hBNTEy":
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06e70bbd0c6ed4675a7dcd448e944545a8b7d3b96b397ac2d56c7038578abc39527e3e9b1ba4383eba8879195cd9cae67c0fc04c8b666fc84afd9424768df1e1
|
7
|
+
data.tar.gz: 85be1e518cc68919e5d0e1f4fe240b458af22413f27ed38f91bf958f130a42bb50d72314d970a5f9b4af091d82b932e81f1b9da00f499e573758ec39cb29c294
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# RubyBreaker
|
2
2
|
|
3
|
-
|
3
|
+
It breaks Ruby. Not productive gem.
|
4
|
+
|
5
|
+
A process should not be exited.
|
6
|
+
|
4
7
|
|
5
8
|
## Installation
|
6
9
|
|
@@ -18,11 +21,11 @@ Or install it yourself as:
|
|
18
21
|
|
19
22
|
## Usage
|
20
23
|
|
21
|
-
|
24
|
+
$ RubyBreaker::Math.chaoticate!
|
22
25
|
|
23
26
|
## Contributing
|
24
27
|
|
25
|
-
1. Fork it ( http://github.com
|
28
|
+
1. Fork it ( http://github.com/bekkou68/ruby_breaker/fork )
|
26
29
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
30
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
31
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/ruby_breaker/version.rb
CHANGED
data/lib/ruby_breaker.rb
CHANGED
@@ -3,7 +3,16 @@ require "ruby_breaker/version"
|
|
3
3
|
module RubyBreaker
|
4
4
|
class Math
|
5
5
|
def self.chaoticate!
|
6
|
-
|
6
|
+
break_constants
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.break_constants
|
10
|
+
eval <<-CODE
|
11
|
+
module ::Math
|
12
|
+
PI = 1.41421356
|
13
|
+
E = 1.7320508
|
14
|
+
end
|
15
|
+
CODE
|
7
16
|
end
|
8
17
|
end
|
9
18
|
end
|