bitstamp 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bitstamp"
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeffrey Wilcke"]
12
- s.date = "2013-05-31"
12
+ s.date = "2013-06-11"
13
13
  s.description = "Ruby API for use with bitstamp."
14
14
  s.email = "stygeo@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -15,7 +15,11 @@ module Bitstamp
15
15
  # Set the attributes based on the given hash
16
16
  def attributes=(attributes = {})
17
17
  attributes.each do |name, value|
18
- send("#{name}=", value)
18
+ begin
19
+ send("#{name}=", value)
20
+ rescue NoMethodError => e
21
+ puts "Unable to assign #{name}. No such method."
22
+ end
19
23
  end
20
24
  end
21
25
 
@@ -1,6 +1,6 @@
1
1
  module Bitstamp
2
2
  class Ticker < Bitstamp::Model
3
- attr_accessor :last, :high, :low, :volume, :bid, :ask
3
+ attr_accessor :last, :high, :low, :volume, :bid, :ask, :timestamp
4
4
 
5
5
  def self.from_api
6
6
  Bitstamp::Helper.parse_object!(Bitstamp::Net.get('/ticker').body_str, self)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitstamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-31 00:00:00.000000000 Z
12
+ date: 2013-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: 4151466020053277384
168
+ hash: -610655929508996508
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements: