decanter 0.8.0 → 0.8.1

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: 284c077381d45c71768a4e7523843a6970ad386c
4
- data.tar.gz: 09fc5570e94021864b353ae4f928aea669e1507c
3
+ metadata.gz: 131816782f1a7b858d71bbf5f1a4d53b97172522
4
+ data.tar.gz: 2931a7585f5d4765878c7d122c24479b48dd2ee7
5
5
  SHA512:
6
- metadata.gz: a058f4fc3a206341742af0e39d62abc663d7a8665b244f2ab29bc8f9df73cd810955fa19502bc8943b32f8662e1dcf254c4ceeac6ce20eed997a9b51a48e9317
7
- data.tar.gz: 19442b1a6b19562768fa4a87a125f661199660bac14eebf4c19ef78bfbc64d4fbab11d6f181d4e97ddb8e9db16fb08bcb3de3f28cd95db9ca3386aad99f247ea
6
+ metadata.gz: 3967922ec16bfaf59298e80970b3f0319fc39115a05776b8f6f9d6c99f824420acc2cfd72d2768bec0483597ac1913dcf9929ae946bf5f4381abc442ff9cc9e0
7
+ data.tar.gz: 58810234000908bf2ac966e20c1ec41f90bb85753a7d0c86a7cccab52faf72f41547ee16d2ca6caff520546df50cf21b14778d573adfb69cc36dc6d59b5301df
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decanter (0.7.2)
4
+ decanter (0.8.0)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -184,7 +184,7 @@ You'll notice that the above ```parser do``` block takes a ```:parse_format``` o
184
184
  ```ruby
185
185
  # app/decanters/trip_decanter.rb
186
186
 
187
- class TripDecanter < Decanter::ValueParser
187
+ class TripDecanter < Decanter::Base
188
188
  input :name, :string
189
189
  input :start_date, :date, parse_format: '%Y-%m-%d'
190
190
  input :end_date, :date, parse_format: '%Y-%m-%d'
@@ -1,3 +1,3 @@
1
1
  module Decanter
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
@@ -13,7 +13,7 @@ module Rails
13
13
  private
14
14
 
15
15
  def parent_class_name
16
- 'Decanter::Parser::Base'
16
+ 'Decanter::Parser::ValueParser'
17
17
  end
18
18
  end
19
19
  end
@@ -1,6 +1,6 @@
1
1
  <% module_namespacing do -%>
2
2
  class <%= class_name %>Parser < <%= parent_class_name %>
3
- parser do |name, value, options|
3
+ parser do |value, options|
4
4
  value
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decanter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-05-20 00:00:00.000000000 Z
12
+ date: 2016-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport