dynamic_class 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b151ef4fe4e1436998fe710a7398d0f4260f17c
4
- data.tar.gz: 7814c667c0cb6bfb2495e65a216198de3b23338a
3
+ metadata.gz: c69992c117fad6249f4c1dadce8be4f7c5a39a5b
4
+ data.tar.gz: 12b707299bc700af152e22b9cb282c3419aeba2f
5
5
  SHA512:
6
- metadata.gz: 0f2bf53ba80db5106d3b26b498cc694e72b81adb5a4bafeb6dc0597f6b65f503c0fdcd55c85a3068645058a86abdd4d245381bf375e2c0a1f460d6ed70cb8ff7
7
- data.tar.gz: 0f2a16f2112a9cccd930ad8bb49ce34f0a4ea99866c0edeb11efd12c14e3c65c049a6fb08a24288490123a344aa93063686fcd26b3ac20b2a34d4320477b64d9
6
+ metadata.gz: ff3e15014d94901120b674df2a76129b4253bb5df0aac07ffdb8f6822c71b31e2bdfe6ac3e97fa970fa8ac796c3b9dde4661646505f7d9f8016107007aa77395
7
+ data.tar.gz: 1e48c6d83ab28be87e9ddce409c125120982a7897726df5cf4e279c94b08ce21c3d96136bdcdbf74fd850b7437d731fd621ac3ecf2853f8fd00e9809332b950b
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.1
3
+ - 2.1.8
4
+ - 2.2.4
5
+ - 2.3.0
4
6
  before_install: gem install bundler -v 1.11.2
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/dynamic_class.svg)](https://badge.fury.io/rb/dynamic_class)
2
+ [![Build Status](https://travis-ci.org/amcaplan/dynamic_class.svg?branch=master)](https://travis-ci.org/amcaplan/dynamic_class)
3
+ [![Code Climate](https://codeclimate.com/github/amcaplan/dynamic_class.png)](https://codeclimate.com/github/amcaplan/dynamic_class)
4
+
1
5
  # DynamicClass
2
6
 
3
7
  Many developers use `OpenStruct` as a convenient way of consuming APIs through
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = '>= 2.1.0'
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.11"
22
24
  spec.add_development_dependency "rake", "~> 10.0"
23
25
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -1,3 +1,3 @@
1
1
  module DynamicClass
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/dynamic_class.rb CHANGED
@@ -59,7 +59,7 @@ module DynamicClass
59
59
 
60
60
  def initialize(attributes = {})
61
61
  attributes.each_pair do |key, value|
62
- send(:"#{key}=", value)
62
+ __send__(:"#{key}=", value)
63
63
  end
64
64
  end
65
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_class
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - amcaplan
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: '0'
132
+ version: 2.1.0
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - ">="