acts_as_dynamic_method 1.0.0 → 1.0.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.
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+
6
+ script: bundle exec rspec spec
7
+
8
+ notifications:
9
+ email: false
10
+ campfire:
11
+ on_success: change
12
+ on_failure: always
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # ActsAsDynamicMethod
2
2
 
3
+ [![Build Status](https://travis-ci.org/azaytc/acts_as_dynamic_method.png)](https://travis-ci.org/azaytc/acts_as_dynamic_method)
4
+
3
5
  TODO: Write a gem description
4
6
 
5
7
  ## Installation
data/Rakefile CHANGED
@@ -1 +1,4 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ task :default => :spec
4
+
@@ -18,4 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_development_dependency "rspec"
21
+ gem.add_development_dependency "rake"
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsDynamicMethod
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -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.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-17 00:00:00.000000000 Z
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