everyday-menu 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/everyday-menu/utils.rb +4 -4
- data/lib/everyday-menu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65fe99d0614a2c80d84ecd7e9aa70c9fd5481e45
|
4
|
+
data.tar.gz: bb2e0bd5c2ed4ac778d709cc8499e847853a6f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fc838c7298c9fa120c0f6f33930d1be0a91a35c93b9c5c1f7d206204ec63094f5f8ce6790acaff37f1d8960faab5118cdc902cd87ba25408042773b7519dfd1
|
7
|
+
data.tar.gz: ca3113c3197d23a54b6d1ce6c32df21acbe2973e2ba8e530b1f2ccb4ffd8480ac772b4bdc001afc1daf88a50711bd39cca37337eb5835484376b31c333388525
|
data/lib/everyday-menu/utils.rb
CHANGED
@@ -41,7 +41,7 @@ module EverydayMenu
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def unique_id
|
44
|
-
EverydayRmDigest::MD5.hexdigest("#{@rand.rand}#{@rand.rand}")
|
44
|
+
EverydayRmDigest::MD5.hexdigest(WeakRef.new("#{@rand.rand}#{@rand.rand}"))
|
45
45
|
end
|
46
46
|
|
47
47
|
def rand_id
|
@@ -103,12 +103,12 @@ module EverydayMenu
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def self.key_to_name(key, prefix = nil)
|
106
|
-
rval = key.to_s.gsub(/_(\w)/) { |_| $1.upcase }
|
107
|
-
prefix.nil? ? rval : "#{prefix}#{rval[0].upcase}#{rval[1..-1]}"
|
106
|
+
rval = WeakRef.new(WeakRef.new(key.to_s).gsub(/_(\w)/) { |_| $1.upcase })
|
107
|
+
prefix.nil? ? rval : WeakRef.new("#{prefix}#{rval[0].upcase}#{rval[1..-1]}")
|
108
108
|
end
|
109
109
|
|
110
110
|
def self.name_to_key(name)
|
111
|
-
name.to_s.gsub(/A-Z/) { |c| c.downcase }.to_sym
|
111
|
+
WeakRef.new(WeakRef.new(name.to_s).gsub(/A-Z/) { |c| c.downcase }).to_sym
|
112
112
|
end
|
113
113
|
|
114
114
|
def self.getter_names(name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everyday-menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Henderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|