acts_as_dynamic_method 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +12 -0
- data/Gemfile +0 -0
- data/README.md +2 -0
- data/Rakefile +3 -0
- data/acts_as_dynamic_method.gemspec +1 -0
- data/lib/acts_as_dynamic_method/version.rb +1 -1
- data/spec/acts_as_dynmic_method_spec.rb +4 -0
- metadata +19 -2
data/.travis.yml
ADDED
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -29,6 +29,10 @@ describe ActsAsDynamicMethod do
|
|
29
29
|
let(:base) { TestClass.new }
|
30
30
|
let(:dummy) { DummyClass.new }
|
31
31
|
|
32
|
+
it 'should have json field called attributes' do
|
33
|
+
DummyClass.json_field.should == 'attributes'
|
34
|
+
end
|
35
|
+
|
32
36
|
it 'should create method from json key' do
|
33
37
|
base.field_name_1.should eq('foo')
|
34
38
|
dummy.field_name_1.should eq('foo')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_dynamic_method
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
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-07-
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -27,6 +27,22 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
30
46
|
description: create methods dynamicly from json string
|
31
47
|
email:
|
32
48
|
- oleksiy.zaytsew@gmail.com
|
@@ -35,6 +51,7 @@ extensions: []
|
|
35
51
|
extra_rdoc_files: []
|
36
52
|
files:
|
37
53
|
- .gitignore
|
54
|
+
- .travis.yml
|
38
55
|
- Gemfile
|
39
56
|
- LICENSE.txt
|
40
57
|
- README.md
|