entasis 0.3.0.pre1 → 0.3.0.rc1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,7 +16,7 @@ class Person
16
16
  end
17
17
  end
18
18
 
19
- hilda = Person.new(:name => 'Hilda', :age => '23', :city => 'Berlin')
19
+ hilda = Person.new(name: 'Hilda', age: '23', city: 'Berlin')
20
20
  hilda.attribute_names # => ["name", "age", "city"]
21
21
  hilda.attributes # => {"name"=>"Hilda", "age"=>23, "city"=>"Berlin"}
22
22
 
data/lib/entasis/model.rb CHANGED
@@ -28,7 +28,7 @@ module Entasis
28
28
 
29
29
  def attributes=(hash)
30
30
  hash.each do |name, value|
31
- if attribute_names.include?(name.to_s) || self.respond_to?(name)
31
+ if attribute_names.include?(name.to_s) || self.respond_to?("#{name}=")
32
32
  self.send("#{name}=", value)
33
33
  else
34
34
  raise self.class::UnknownAttributeError, "unkown attribute \"#{name}\""
@@ -1,3 +1,3 @@
1
1
  module Entasis
2
- VERSION = "0.3.0.pre1"
2
+ VERSION = "0.3.0.rc1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entasis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre1
4
+ version: 0.3.0.rc1.1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: