wx_ext 0.1.6 → 0.1.8

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.
data/lib/wx_ext.rb CHANGED
@@ -9,27 +9,26 @@ require 'wx_ext/api'
9
9
  #
10
10
  # @author FuShengYang
11
11
  module WxExt
12
+ module_function
12
13
 
13
14
  # Return the root path of this gem.
14
15
  #
15
16
  # @return [String] Path of the gem's root.
16
- def self.root
17
+ def root
17
18
  File.dirname __dir__
18
19
  end
19
20
 
20
-
21
21
  # Return the lib path of this gem.
22
22
  #
23
23
  # @return [String] Path of the gem's lib.
24
- def self.lib
24
+ def lib
25
25
  File.join root, 'lib'
26
26
  end
27
27
 
28
-
29
28
  # Return the spec path of this gem.
30
29
  #
31
30
  # @return [String] Path of the gem's spec.
32
- def self.spec
31
+ def spec
33
32
  File.join root, 'spec'
34
33
  end
35
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wx_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - flowerwrong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler