muflax 0.3.23 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 916ad6bf6effb8d5977754a060119137a88bf4904ef941611e733536f4ade477
4
- data.tar.gz: d5b2411787692fa16f35224f4d9e7251b9130dfb010dd7b5c830ce24024c04e4
3
+ metadata.gz: 3a9c38eaaf7cf2421199feaf1a2f64d6995d218d66ebc33b1b8da5a5ddfaafb4
4
+ data.tar.gz: 4cb8648ab798dcd4b48e75d0e1273684ee74da9517b03425b2c197ed62ba0b10
5
5
  SHA512:
6
- metadata.gz: 498e0b16b968b56c0af04023551a807abe0269981b29ae74b9c685f052a2e20ef16ac15f540487c2453698eb3215026e36611640749f47831898e0a0f688df28
7
- data.tar.gz: cea69108e32a0c22821e491fd7e5c934d49a91db7cb71edede579aae4cc7cbb8bfc3786c727bddfb6b38e7deaa9fd66d1518e9e66878beecfcd1174fbdfd4494
6
+ metadata.gz: f5a51068626107639aa6435c41eed9ee18847eacfd1803b51ea99d0ab060e958c6264aceae4e9d60c4d8458165b7f7725e28011c9a6f9ac7a9cd55ea47a94c91
7
+ data.tar.gz: 954f74a0b6702705dcb7a13e7311d37039ccf74c084ccf8c1c427e44daa88cdd9eb5ea80001e1882764d8e516c90a6ba6d553bc4dbccb6b1e9ad0f9cf0f3dd2d
checksums.yaml.gz.sig CHANGED
Binary file
data/Gemfile.lock CHANGED
@@ -1,11 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- muflax (0.3.23)
4
+ muflax (0.4.0)
5
5
  awesome_print (~> 1)
6
+ bundler (~> 1)
6
7
  debug_inspector (~> 0.0)
8
+ ffi (~> 1)
7
9
  highline (< 1.7)
8
10
  pry (~> 0.10)
11
+ rake (~> 12)
9
12
  range_math (~> 1)
10
13
  trollop (~> 2.1.3)
11
14
 
@@ -15,6 +18,7 @@ GEM
15
18
  awesome_print (1.8.0)
16
19
  coderay (1.1.2)
17
20
  debug_inspector (0.0.3)
21
+ ffi (1.11.1)
18
22
  highline (1.6.21)
19
23
  method_source (0.9.2)
20
24
  pry (0.12.2)
@@ -29,7 +33,6 @@ PLATFORMS
29
33
 
30
34
  DEPENDENCIES
31
35
  muflax!
32
- rake (~> 12)
33
36
 
34
37
  BUNDLED WITH
35
38
  1.17.3
data/lib/muflax/blank.rb CHANGED
@@ -4,17 +4,9 @@
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  class Object
7
- def blank?
8
- respond_to?(:empty?) ? !!empty? : !self
9
- end
10
-
11
- def present?
12
- !blank?
13
- end
14
-
15
- def nil_if_blank
16
- self.blank? ? nil : self
17
- end
7
+ def blank? ; !self ; end
8
+ def present? ; !blank? ; end
9
+ def nil_if_blank ; self.blank? ? nil : self ; end
18
10
  end
19
11
 
20
12
  class NilClass ; def blank? ; true ; end ; end
@@ -26,10 +18,11 @@ class Time ; def blank? ; false ; end ; end
26
18
  class Array ; alias_method :blank?, :empty? ; end
27
19
  class Hash ; alias_method :blank?, :empty? ; end
28
20
 
29
- class String
30
- BLANK_RE = /\A[[:space:]]*\z/
21
+ require "fast_blank"
22
+ # class String
23
+ # BLANK_RE = /\A[[:space:]]*\z/
31
24
 
32
- def blank?
33
- empty? || BLANK_RE.match?(self)
34
- end
35
- end
25
+ # def blank?
26
+ # empty? || BLANK_RE.match?(self)
27
+ # end
28
+ # end
data/muflax.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "muflax"
3
- s.version = "0.3.23"
3
+ s.version = "0.4.0"
4
4
 
5
5
  s.authors = ["muflax"]
6
6
  s.summary = "muflax standard library"
@@ -19,5 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency "range_math", "~> 1"
20
20
  s.add_dependency "trollop", "~> 2.1.3"
21
21
 
22
- s.add_development_dependency "rake", "~> 12"
22
+ s.add_dependency "bundler", "~> 1"
23
+ s.add_dependency "ffi", "~> 1"
24
+ s.add_dependency "rake", "~> 12"
23
25
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muflax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.23
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - muflax
@@ -114,6 +114,34 @@ dependencies:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: 2.1.3
117
+ - !ruby/object:Gem::Dependency
118
+ name: bundler
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1'
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '1'
131
+ - !ruby/object:Gem::Dependency
132
+ name: ffi
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '1'
138
+ type: :runtime
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '1'
117
145
  - !ruby/object:Gem::Dependency
118
146
  name: rake
119
147
  requirement: !ruby/object:Gem::Requirement
@@ -121,7 +149,7 @@ dependencies:
121
149
  - - "~>"
122
150
  - !ruby/object:Gem::Version
123
151
  version: '12'
124
- type: :development
152
+ type: :runtime
125
153
  prerelease: false
126
154
  version_requirements: !ruby/object:Gem::Requirement
127
155
  requirements:
metadata.gz.sig CHANGED
Binary file