scash 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scash.rb +2 -3
  3. data/lib/scash/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4176c2aeb1fef862467a9776c9f3a4524f9c69db
4
- data.tar.gz: 40ea5d25325f7a2de15f82d73850bb37a1913dac
3
+ metadata.gz: afb3c105339a4820c5d2fe359594bd710f7bace6
4
+ data.tar.gz: 06965713698f73c8da9eab643e4d5ae73aa4d167
5
5
  SHA512:
6
- metadata.gz: 1de6938194f4189ee0aa1e060e16b914e9c1d4dcb63477347122ee83afd66ba3a512bb9f6158e6667ba0c3efe3332342244124b064b118093d88818a8c2df506
7
- data.tar.gz: df6d5ea94b6b15d583695b953b7e21817b6d7a53e12fa9d749f4936c52e067434c451992b52a0b6a7beee7f0a82f104be100b4f45c49fff7b36aa9ab01e6c67c
6
+ metadata.gz: 7551bb81e9e0ca26bde47cf371e891172d19e18397175560febd0b429578f4e8645246c3f9437f70766e6aac357edb75ea4834c94379a749b3657ab83992c070
7
+ data.tar.gz: ed4217efe76a8978e28335ccea253726dbaaf06dc49b1c18310f06a1d53196920d39f58e89a80ac5ff7c0c65678e254af36208cc84c04d10573d25a83c977dc6
@@ -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!(@global_variables)
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
- @global_variables.merge! variables
56
+ global_variables.merge! variables
58
57
  end
59
58
 
60
59
  private
@@ -1,3 +1,3 @@
1
1
  class Scash
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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-02-13 00:00:00.000000000 Z
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.0
119
+ rubygems_version: 2.2.2
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: A scoped hash