blendris 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ require "redis"
9
9
  require "fileutils"
10
10
  require "./lib/blendris"
11
11
 
12
- Echoe.new("blendris", "0.0.3") do |p|
12
+ Echoe.new("blendris", "0.0.4") do |p|
13
13
 
14
14
  p.description = "A redis library for Ruby"
15
15
  p.url = "http://github.com/alexmchale/blendris"
@@ -2,12 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{blendris}
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Alex McHale"]
9
- s.cert_chain = ["/Users/amchale/Dropbox/Security/gem-public_cert.pem"]
10
- s.date = %q{2010-02-15}
9
+ s.date = %q{2010-02-16}
11
10
  s.description = %q{A redis library for Ruby}
12
11
  s.email = %q{alexmchale@gmail.com}
13
12
  s.extra_rdoc_files = ["README.markdown", "lib/blendris.rb", "lib/blendris/accessor.rb", "lib/blendris/errors.rb", "lib/blendris/integer.rb", "lib/blendris/list.rb", "lib/blendris/model.rb", "lib/blendris/node.rb", "lib/blendris/reference.rb", "lib/blendris/reference_base.rb", "lib/blendris/reference_set.rb", "lib/blendris/set.rb", "lib/blendris/string.rb", "lib/blendris/types.rb", "lib/blendris/utils.rb", "tasks/rspec.rake"]
@@ -17,7 +16,6 @@ Gem::Specification.new do |s|
17
16
  s.require_paths = ["lib"]
18
17
  s.rubyforge_project = %q{blendris}
19
18
  s.rubygems_version = %q{1.3.5}
20
- s.signing_key = %q{/Users/amchale/Dropbox/Security/gem-private_key.pem}
21
19
  s.summary = %q{A redis library for Ruby}
22
20
 
23
21
  if s.respond_to? :specification_version then
@@ -1,3 +1,5 @@
1
1
  module Blendris
2
2
 
3
+ class BlendrisCannotSetKeyValue < Exception; end
4
+
3
5
  end
@@ -48,6 +48,10 @@ module Blendris
48
48
 
49
49
  if node = redis_symbol(name)
50
50
  if setter
51
+ if self.class.local_parameters.find {|p| p.kind_of?(Symbol) && p.to_s == name}
52
+ raise BlendrisCannotSetKeyValue.new(name)
53
+ end
54
+
51
55
  return node.set(*arguments)
52
56
  else
53
57
  return node.get
@@ -21,6 +21,11 @@ describe Model do
21
21
  @onion.category.name.should == "vegetable"
22
22
  end
23
23
 
24
+ it "should not allow its key values to be changed" do
25
+ lambda { @onion.name = "asdf" }.should raise_exception(BlendrisCannotSetKeyValue)
26
+ lambda { @onion.description = "asdf" }.should_not raise_exception
27
+ end
28
+
24
29
  it "should have a valid reference set" do
25
30
  @fruit.foods.count.should == 0
26
31
 
metadata CHANGED
@@ -1,36 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blendris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex McHale
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYDVQQDDAphbGV4
14
- bWNoYWxlMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNj
15
- b20wHhcNMTAwMjExMjEyNTU4WhcNMTEwMjExMjEyNTU4WjBBMRMwEQYDVQQDDAph
16
- bGV4bWNoYWxlMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
17
- FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9mTbsd+4JqyuW
18
- z/J6OxXyyzb89ydr/wKmJZMyQmD7w/Qf3V8uGW9+NlYbRMJZYqY08QhTbSX3IW6c
19
- 6Hj4Xo0wqR0Fd6c0Vxdt9m5LZDEo2H+2jisgDBYFUN1itg+FGZtGczISlmG34tWN
20
- efWA+DgtzKD9UG13AtzxoxfqeY03v0+/1/SCtpvbZrungWND8sg9sHSxsME0xB9d
21
- u6BkunOrdy7iqd105MuPHL35SLhr57GKU/hjR2+FKAauT4eu7CeQXEWCBPXizknN
22
- 5w/HNs311sBJmzaZwDiX98e+/X10tMxJqWo4t4Us7Ke8b/0uYbuwWoaoKWjM3UYX
23
- ppWhyNNFAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
24
- BBQK0Aj0bDKnLJrVNjdgNAXnVaS1qDANBgkqhkiG9w0BAQUFAAOCAQEAU/1kVZUf
25
- wjl9bhqLZXgcKgIkzgVYwDcqFE0OdBXFD/N+oNBfV80iN/R8iCf6y4dymYDzWalD
26
- Rho49BN531OSYbWAD0lv5/MQYDpH8uHU4cDTzV1cYkOcjFVGsO26aPM7q1SoMhf+
27
- 8tCJEl/PSHrV6JmgGRDy6YTnbQGSKPNmykEZep8wWEFXMSW9OmwaeyZyEuWUZIS4
28
- RtAGR/Bf1/mwYLD0ZZPvsgRy0yBrTeJoaRzJXCT08cN8xBX9sa+PFsjpc267TFsv
29
- b0cDNnwAzS78yK9xMdpD5l7/mqtfdQPVLfvra4sMBknSW3ukOP3S/WUOfKOz7Ohf
30
- V3OoCfxVK/4Dqg==
31
- -----END CERTIFICATE-----
10
+ cert_chain: []
32
11
 
33
- date: 2010-02-15 00:00:00 -06:00
12
+ date: 2010-02-16 00:00:00 -06:00
34
13
  default_executable:
35
14
  dependencies: []
36
15
 
data.tar.gz.sig DELETED
@@ -1 +0,0 @@
1
- �f�҅�J&"�� ��%��>��K����XwM�v�N��3Ǜ�Jn˖7'f#�ia�a��vCT?v���|����Fv�2�?&��h4)=��.h 8��$�"JO�0����wO���E(V�[�\X��nw���o���?����_��A�x��%�u�t2�mlD����NJ�S�U>�(��� �a�#*S���O��8�@�VfaB M�5�s��J���[��8@����`��.���u�2���|�i!�� Q
metadata.gz.sig DELETED
Binary file