ruby_breaker 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
  !binary "U0hBMQ==":
3
- metadata.gz: b5985f6c12e7abc1a07185efc0c841237669fa02
4
- data.tar.gz: 08f88e386adf323d1de461ea6af2a92fcf130f2f
3
+ metadata.gz: 5a3f0f7c0d4cfe99bb0742bea14ff921ea06da4b
4
+ data.tar.gz: 63d721b337e6444063b7af0635d350583e17fc00
5
5
  !binary "U0hBNTEy":
6
- metadata.gz: 06e70bbd0c6ed4675a7dcd448e944545a8b7d3b96b397ac2d56c7038578abc39527e3e9b1ba4383eba8879195cd9cae67c0fc04c8b666fc84afd9424768df1e1
7
- data.tar.gz: 85be1e518cc68919e5d0e1f4fe240b458af22413f27ed38f91bf958f130a42bb50d72314d970a5f9b4af091d82b932e81f1b9da00f499e573758ec39cb29c294
6
+ metadata.gz: 80e1e38b2950ade6da7a0fe2b7a001e19ce030c737cc52d65354faafed8651d40a583af4b3a7d3e736da8d5f0562f3fca5f43b8e53c9c676d76adf815b7d6ddb
7
+ data.tar.gz: cbc800d4f3a39b6e460de0f00c41400e106726e13a85d895df972a25cd4b9206355cab1f84354e06c685c47e5c660dbe35e65a288c9758dc02ef0496d9ac8f91
data/README.md CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
- $ RubyBreaker::Math.chaoticate!
24
+ $ RubyBreaker.chaoticate!
25
25
 
26
26
  ## Contributing
27
27
 
data/lib/ruby_breaker.rb CHANGED
@@ -1,18 +1,11 @@
1
1
  require "ruby_breaker/version"
2
+ require 'ruby_breaker/math'
3
+ require 'ruby_breaker/string'
2
4
 
3
5
  module RubyBreaker
4
- class Math
5
- def self.chaoticate!
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
16
- end
6
+ def chaoticate!
7
+ RubyBreaker::Math.chaoticate!
8
+ RubyBreaker::String.chaoticate!
17
9
  end
10
+ module_function :chaoticate!
18
11
  end
@@ -0,0 +1,18 @@
1
+ module RubyBreaker
2
+ class Math
3
+ class << self
4
+ def chaoticate!
5
+ break_constants
6
+ end
7
+
8
+ def break_constants
9
+ eval <<-CODE
10
+ module ::Math
11
+ PI = 1.41421356
12
+ E = 1.7320508
13
+ end
14
+ CODE
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,13 @@
1
+ module RubyBreaker
2
+ class String
3
+ def self.chaoticate!
4
+ eval <<-CODE
5
+ class ::String
6
+ def *(num)
7
+ self + self
8
+ end
9
+ end
10
+ CODE
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module RubyBreaker
2
- VERSION = "0.0.2"
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_breaker
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
  - Takumi Tsunokake
@@ -51,6 +51,8 @@ files:
51
51
  - README.md
52
52
  - Rakefile
53
53
  - lib/ruby_breaker.rb
54
+ - lib/ruby_breaker/math.rb
55
+ - lib/ruby_breaker/string.rb
54
56
  - lib/ruby_breaker/version.rb
55
57
  - ruby_breaker.gemspec
56
58
  homepage: ''