squire 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/README.md +5 -5
- data/lib/squire/configuration.rb +2 -2
- data/lib/squire/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -111,13 +111,13 @@ Example uses Hash with 10 000 keys.
|
|
111
111
|
Single access:
|
112
112
|
```
|
113
113
|
Rehearsal -------------------------------------------------
|
114
|
-
Squire
|
115
|
-
Settingslogic
|
116
|
-
|
114
|
+
Squire 0.740000 0.020000 0.760000 ( 0.761124)
|
115
|
+
Settingslogic 8.030000 0.040000 8.070000 ( 8.106668)
|
116
|
+
---------------------------------------- total: 8.830000sec
|
117
117
|
|
118
118
|
user system total real
|
119
|
-
Squire 0.
|
120
|
-
Settingslogic 0.
|
119
|
+
Squire 0.050000 0.000000 0.050000 ( 0.048144)
|
120
|
+
Settingslogic 0.040000 0.000000 0.040000 ( 0.045643)
|
121
121
|
```
|
122
122
|
|
123
123
|
First access of key in `Settingslogic` is painfully slow, as you can see. But after defining accessor, the second access
|
data/lib/squire/configuration.rb
CHANGED
@@ -11,8 +11,8 @@ module Squire
|
|
11
11
|
def namespace(namespace = nil, options = {})
|
12
12
|
return @namespace unless namespace
|
13
13
|
|
14
|
-
@namespace = namespace if namespace
|
15
|
-
@base_namespace = options[:base] if options[:base]
|
14
|
+
@namespace = namespace.to_sym if namespace
|
15
|
+
@base_namespace = options[:base].to_sym if options[:base]
|
16
16
|
end
|
17
17
|
|
18
18
|
##
|
data/lib/squire/version.rb
CHANGED