scash 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 +4 -4
- data/lib/scash.rb +2 -3
- data/lib/scash/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afb3c105339a4820c5d2fe359594bd710f7bace6
|
4
|
+
data.tar.gz: 06965713698f73c8da9eab643e4d5ae73aa4d167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7551bb81e9e0ca26bde47cf371e891172d19e18397175560febd0b429578f4e8645246c3f9437f70766e6aac357edb75ea4834c94379a749b3657ab83992c070
|
7
|
+
data.tar.gz: ed4217efe76a8978e28335ccea253726dbaaf06dc49b1c18310f06a1d53196920d39f58e89a80ac5ff7c0c65678e254af36208cc84c04d10573d25a83c977dc6
|
data/lib/scash.rb
CHANGED
@@ -14,7 +14,6 @@ class Scash
|
|
14
14
|
@klass = klass
|
15
15
|
@hash = convert(variables)
|
16
16
|
@inverse_hash = convert(variables)
|
17
|
-
@global_variables = {}
|
18
17
|
end
|
19
18
|
|
20
19
|
def to_hash
|
@@ -36,7 +35,7 @@ class Scash
|
|
36
35
|
variables.keys.each{|key| @inverse_hash.delete(key)}
|
37
36
|
@inverse_hash.merge!(previous_inverse_hash)
|
38
37
|
@hash.merge!(previous_hash)
|
39
|
-
@hash.merge!(
|
38
|
+
@hash.merge!(global_variables)
|
40
39
|
end
|
41
40
|
alias :with :scope
|
42
41
|
|
@@ -54,7 +53,7 @@ class Scash
|
|
54
53
|
|
55
54
|
def define_global_variables(variables)
|
56
55
|
@hash.merge! variables
|
57
|
-
|
56
|
+
global_variables.merge! variables
|
58
57
|
end
|
59
58
|
|
60
59
|
private
|
data/lib/scash/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephan Kaag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.2.
|
119
|
+
rubygems_version: 2.2.2
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: A scoped hash
|