utility 0.1.3 → 0.1.4

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: 1d2ce37f67cff412377ef436b8cf7a930622a844
4
- data.tar.gz: e325ade3a0e62e6c220fac485fdd32ac0d70dde5
3
+ metadata.gz: cd033c750a3fd102b4306ea2fbaa5e0262a29bd9
4
+ data.tar.gz: ae85eda6bef6d4b3c73707180e7378793e5d8628
5
5
  SHA512:
6
- metadata.gz: e53b0dfae235814a63256647838f14ecf73e7b782cae2283b22a37b3fb4b90bb3b3ffac459b4a236ae9e8f2aa27d7ca0335f39111ffeedca323f79e945a161c2
7
- data.tar.gz: 65b139f0818e279778355ebe3e6d6dd825bf49f1c2ce3ab498226f9f074ee27256c5ee4a09e2c47207724ea96eb86266f65180445af53047c9acec1f6b41d2d9
6
+ metadata.gz: 1de9b13910420c95a48c42dd329e7510710841d125b4b9802059d48e1461a8f1b1c1c2c99601978e3895ca2debc9304f431ee6699ef9cc4ee158e6ca0bf3336c
7
+ data.tar.gz: e891d3865563872dd87a69af03d50d6d3161771b8e8b3466a7273531def9f4e912ccb2aecf3c3c4420c7895ffa298f983f8ea0b5cda627c1b3a676248204da9b
data/README.md CHANGED
@@ -56,22 +56,22 @@ Utility.parse_query "http://example.com/?param1=value1&param2=value2&param3=valu
56
56
  Utility.parse_query "param1=value1&param2=value2&param3=value3"
57
57
  #=> {"param1"=>["value1"], "param2"=>["value2"], "param3"=>["value3"]}
58
58
  ```
59
- ### computer info ###
59
+ #### computer info ####
60
60
  ```ruby
61
61
  # get hostname
62
- Utility.get_hostname #=> "Charles"
62
+ Utility.get_hostname #=> "Charles"
63
63
 
64
64
  # get ip address
65
- Utility.get_ip #=> "192.168.12.26"
65
+ Utility.get_ip #=> "192.168.12.26"
66
66
 
67
67
  #get mac address
68
- Utility.get_mac #=> "c8:60:00:10:ec:ee"
68
+ Utility.get_mac #=> "c8:60:00:10:ec:ee"
69
69
 
70
70
  #get os
71
- Utility.get_os #=> "linux"
71
+ Utility.get_os #=> "linux"
72
72
 
73
73
  #get os arch
74
- Utility.get_arch #=> 64
74
+ Utility.get_arch #=> 64
75
75
  ```
76
76
 
77
77
  ### License ###
@@ -1,3 +1,3 @@
1
1
  module Utility
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/utility.rb CHANGED
@@ -1,6 +1,8 @@
1
+ Utility = Module.new
2
+
1
3
  Dir[File.dirname(__FILE__) + '/utility/*.rb'].each {|file| require file }
2
4
 
3
- module Utility
5
+ Utility.module_eval do
4
6
  extend Base64
5
7
  extend Digest
6
8
  extend HMAC
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cenxky