rubyfromexcel 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,7 +75,7 @@ module RubyFromExcel
75
75
  instance_variable_name = "@#{cell}"
76
76
  unless instance_variable_defined?(instance_variable_name)
77
77
  self.class.class_eval do
78
- if method_defined?(cell)
78
+ if method_defined?(cell) && !method_defined?("old_#{cell}")
79
79
  alias_method "old_#{cell}", cell
80
80
  define_method(cell) do
81
81
  instance_variable_get(instance_variable_name) || self.send("old_#{cell}")
@@ -488,4 +488,4 @@ module RubyFromExcel
488
488
  end
489
489
 
490
490
  end
491
- end
491
+ end
@@ -24,6 +24,11 @@ describe "set" do
24
24
  v.a1.should == 99.0
25
25
  v.set('a1',nil)
26
26
  v.a1.should == 10.0
27
+ v = ValueSetTest.new
28
+ v.set('a1',99.0)
29
+ v.a1.should == 99.0
30
+ v = ValueSetTest.new
31
+ v.a1.should == 10.0
27
32
  end
28
33
  end
29
34
 
@@ -503,4 +508,4 @@ describe "array formula operations" do
503
508
  m.values.should == [["one3a", "one3b", "one3c"], ["one31", "one32", "one33"]]
504
509
  end
505
510
 
506
- end
511
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyfromexcel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-30 00:00:00.000000000Z
12
+ date: 2011-11-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70281110454620 !ruby/object:Gem::Requirement
16
+ requirement: &70264556132060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.4.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70281110454620
24
+ version_requirements: *70264556132060
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rubyscriptwriter
27
- requirement: &70281110454120 !ruby/object:Gem::Requirement
27
+ requirement: &70264556131560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.0.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70281110454120
35
+ version_requirements: *70264556131560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rubypeg
38
- requirement: &70281110453660 !ruby/object:Gem::Requirement
38
+ requirement: &70264556131100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 0.0.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70281110453660
46
+ version_requirements: *70264556131100
47
47
  description:
48
48
  email: ruby-from-excel@greenonblack.com
49
49
  executables: