scope_composer 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/UPGRADE.md +5 -0
- data/lib/scope_composer/scope.rb +3 -1
- data/lib/scope_composer/version.rb +1 -1
- data/spec/scope_composer/model_spec.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjhkNmJhMTM5OGNlMTBlZmNhNTcwNWI0ZWZkODEyZmM3YzUzOWE5Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjlkODgxODVjYmQwNzAxNDg1YmFjNDFiMjI0ZGQzZmIzOGY3MDc1NQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmQwYjJlZTlhODdkMjJlYzc1ZjAxNmI0NmYyNTBmOWQ3NzJhYWEyYzZlZTdi
|
10
|
+
Nzk2NTY3NjM3YzI2MThhNDE4ZGY4NzViNTg5MTcxNDE1M2M0ODA0ODFkYmI1
|
11
|
+
ZDM1MzdjZmJiOGFhMmE2OGJhZTg1MDU2NzQ1MzhjODQ5NjhlNzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjEwZDA5ZWJlYzdhNzI2ZjMzMGMwMzhiOWNjYTBkMjJmNGUyZTk4YWE4OTkz
|
14
|
+
NzUyNjA5Yjg2OTAzYTQ1MTEwYTVjMmIyOTAyZDA1MjU0ZmFlOTlkNjVmNjUw
|
15
|
+
MTcyOTc3NGI2MzE2MGIzMTM5OTlhMGFkMzMxY2U3ZGViMzkzMzI=
|
data/UPGRADE.md
CHANGED
data/lib/scope_composer/scope.rb
CHANGED
@@ -116,7 +116,9 @@ class Scope
|
|
116
116
|
# define method
|
117
117
|
define_method(name) do |*args|
|
118
118
|
# init
|
119
|
-
values =
|
119
|
+
values = nil
|
120
|
+
values = args.first if args.count == 1
|
121
|
+
values = args if args.count > 1
|
120
122
|
# if no value is given, act as a getter
|
121
123
|
return scope_attributes[name] if values.nil?
|
122
124
|
# otherwise set the value
|