yodatra 0.2.2 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65d36e7172948cd089594808cfdc04392e99cd70
4
- data.tar.gz: 216763ae662e18305bfc6ed9a3722f4d05d647e3
3
+ metadata.gz: 8240525f02de795c9ed1797d8877c28013b54d33
4
+ data.tar.gz: 120a6466d5d5d68adb3bafdaca0c0e5d44ba9c8a
5
5
  SHA512:
6
- metadata.gz: dc542b12dccae838b5f9974e2901aa70dbb986d8b5f163a275cb02e053fa364a6ab39a6a094892248c63ea2181c89f974ef6accdd0f9fd1621dc0fab592026b9
7
- data.tar.gz: 5282a19fc4509496d5a0e49dc4351a977e3845440fb7d97c14a632b7099b080551e51436b0d311c4a7d7b44c3d69c3049d50f4a72dfc397c4977b99c15339c07
6
+ metadata.gz: 52a3a01dfb5e39b366742bb7a17660692a921191a395a48392612fac532b00df135d871fa59cdd9343eee44710a96a0ab90b32dd6e3090813a1e7609546801d8
7
+ data.tar.gz: 69896da77b0e39f0d1dfda73a13dc174f16deb04fc1f394ad54f5bfaba38e36fc3ed21ebff42be0637d8967dd1db943295c0e1beef4101b54bbb51dae1de6e93
@@ -55,7 +55,7 @@ module Yodatra
55
55
  post ALL_ROUTE do
56
56
  retrieve_resources CREATE_ONE do |resource|
57
57
  hash = self.send("#{model_name.underscore}_params".to_sym)
58
- @one = resource.new hash
58
+ @one = resource.create hash
59
59
 
60
60
  if @one.save
61
61
  @one.as_json(read_scope).to_json
@@ -196,4 +196,4 @@ module Yodatra
196
196
  end
197
197
 
198
198
  end
199
- end
199
+ end
@@ -1,3 +1,3 @@
1
1
  module Yodatra
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.11'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yodatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Bonaud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-25 00:00:00.000000000 Z
11
+ date: 2014-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack