Skip to content

Commit

Permalink
Upgrade to Klam 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gregspurrier committed Mar 15, 2015
1 parent 6211c8c commit a7dabac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Expand Up @@ -3,6 +3,7 @@
## Not Yet Released
### Features
- Upgrade to Shen 17.2
- Upgrade to Klam 0.0.8 for performance improvements

### Bug Fixes
- Evaluating "c#13;" no longer triggers the message "warning: encountered \r in middle of line, treated as a mere space."
Expand Down
6 changes: 2 additions & 4 deletions lib/shen_ruby/converters.rb
Expand Up @@ -11,13 +11,11 @@ def list_to_array(l)
end

def array_to_vector(a)
v = Klam::Absvector.new(a)
v.unshift(a.size)
v
Klam::Absvector.new(a)
end

def vector_to_array(v)
Array.new(v.slice(1,v[0]))
v.to_a
end
end
end
2 changes: 1 addition & 1 deletion lib/shen_ruby/shen.rb
Expand Up @@ -55,7 +55,7 @@ def element?(x, l)

def vector(n)
v = ::Klam::Absvector.new(n + 1, :"shen.fail!")
v[0] = n
v.store(0, n)
v
end
end
Expand Down
2 changes: 1 addition & 1 deletion shen-ruby.gemspec
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|

s.required_ruby_version = ">= 1.9.3"

s.add_runtime_dependency 'klam', '0.0.7', '0.0.7'
s.add_runtime_dependency 'klam', '0.0.8', '0.0.8'

s.add_development_dependency 'rake', '~> 10.4.2', '>= 10.4.2'
s.add_development_dependency 'rspec', '~> 3.1', '>= 3.1.0'
Expand Down

0 comments on commit a7dabac

Please sign in to comment.