oat 0.4.3 → 0.4.4

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: ab0e0900530f72cfdc130451cf424e554b149972
4
- data.tar.gz: 090fe04c19edcf264da20b974649ed23f306056f
3
+ metadata.gz: e885fae5d75c7ebe3c3483f7a2d520b5478e85c3
4
+ data.tar.gz: 3799ac61914156b10bd4b4ef6f0a1b67fba615d9
5
5
  SHA512:
6
- metadata.gz: a7f8e7ba4461bdc707484ed4f80cfd14833fe220c41f68dc1d6525ce3f2259005c00e42c1e1a3d4744ffe10a7cc8e9a5864ea444df4f2acb7bcf12ec848c5995
7
- data.tar.gz: 29c1759132d79afba8def1a1a5887658d361cd99288e8ded27cd433a35578e1ffc4737457abf1994b180f5c4f05802a64dfbeb4e3df063ce8cdca621f57a4cf9
6
+ metadata.gz: 1c5f905b7ec2fef0251d8f588560d33c40d6261c5eda37586589bd3d1fde0c3338d84e21d008d020e24d4e7752203ece98e344f6edc4c14abb85e6aa697730ea
7
+ data.tar.gz: 402bf1413fd95c7aba6a35c0602c56a9518b2bbb163fac258a5646d0e350908cba5f17cbd5c82e2569a50802b519cfb28280898462e75e8117076b20decee56d
@@ -79,7 +79,7 @@ module Oat
79
79
  @data = { :name => name }
80
80
  end
81
81
 
82
- %w(type value).each do |attribute|
82
+ %w(type value title).each do |attribute|
83
83
  define_method(attribute) do |value|
84
84
  data[attribute.to_sym] = value
85
85
  end
data/lib/oat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oat
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -67,9 +67,11 @@ describe Oat::Adapters::Siren do
67
67
  :method => 'DELETE',
68
68
  :type => 'application/json'
69
69
  )
70
+
70
71
  expect(actions.first.fetch(:fields)).to include(
71
72
  :name => :current_password,
72
- :type => :password
73
+ :type => :password,
74
+ :title => 'enter password:'
73
75
  )
74
76
  end
75
77
 
data/spec/fixtures.rb CHANGED
@@ -44,6 +44,7 @@ module Fixtures
44
44
  action.type 'application/json'
45
45
  action.field :current_password do |field|
46
46
  field.type :password
47
+ field.title 'enter password:'
47
48
  end
48
49
  end
49
50
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
2
  require 'oat'
3
- require 'fixtures'
3
+ require 'fixtures'
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.3
4
+ version: 0.4.4
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-05-01 00:00:00.000000000 Z
11
+ date: 2014-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport