oat 0.4.1 → 0.4.2

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: 893259bf479fe9a2252a4808283fb66b61a072c1
4
- data.tar.gz: ff6de9dc5fdb82bdb5f8488bed683289921b65c7
3
+ metadata.gz: 29daa48acfa55036cbe55f6a00346d2f2763166a
4
+ data.tar.gz: d76e9111cc5ac06483e0ea84448012b23dd6f225
5
5
  SHA512:
6
- metadata.gz: d9210ee288987100dddc96fe006c0285d0f28f225a70fb6f38119fa4c36ccc723e90fe603312e9be5df1bdde2161870e0df632d67c32e79e7e13af6458af3b61
7
- data.tar.gz: 05d979883b19f1b84c7299c5bc3cf630f55e19ab336f3c77b33d059a1db51fdd29648a2c0f3981e632b4cc3a9215c29c2cf107176329013c8d63a9808e388217
6
+ metadata.gz: 1ad23decf7d3026c53cabebe75d671c39ac1330d68284be96268b3fa8cd9493ed7b64e4c666e20d55fca18a3cbc69e2a7ef6fc8ccef41a311d848643b22babb1
7
+ data.tar.gz: b309089b7338ef562134aa7e83b14554d73bb0cbd43c3b2f7ee49bcc0c7bae91bbbfaa40ef01cbb4f408f06ee2f05f37e27f617c39604839e0ae568400a033fc
@@ -66,7 +66,7 @@ module Oat
66
66
  data[:fields] << field.data
67
67
  end
68
68
 
69
- %w(href method title).each do |attribute|
69
+ %w(href method title type).each do |attribute|
70
70
  define_method(attribute) do |value|
71
71
  data[attribute.to_sym] = value
72
72
  end
data/lib/oat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oat
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -64,7 +64,8 @@ describe Oat::Adapters::Siren do
64
64
  :name => :close_account,
65
65
  :href => "http://foo.bar.com/#{user.id}/close_account",
66
66
  :class => ['danger', 'irreversible'],
67
- :method => 'DELETE'
67
+ :method => 'DELETE',
68
+ :type => 'application/json'
68
69
  )
69
70
  expect(actions.first.fetch(:fields)).to include(
70
71
  :name => :current_password,
data/spec/fixtures.rb CHANGED
@@ -41,6 +41,7 @@ module Fixtures
41
41
  action.class 'danger'
42
42
  action.class 'irreversible'
43
43
  action.method 'DELETE'
44
+ action.type 'application/json'
44
45
  action.field :current_password do |field|
45
46
  field.type :password
46
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-25 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport