dalliance 0.3.2 → 0.3.3

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: 1f175a2aa312e8b1f3b2ba9e07322e5c6aee2697
4
- data.tar.gz: 5a31efc7399491d323e73e363037b2463a9713e0
3
+ metadata.gz: 770b598ecda6d6367cfd24565553f708e299fafe
4
+ data.tar.gz: 35655132bdd46cc7f08c158f62ee7317639a23cc
5
5
  SHA512:
6
- metadata.gz: 8ea72c7f4cbf88c312da7dbc2fb50bbd8a566fbb36552e2384d69a4575e49e97bf0b20678902c98cf0d8e7cc01d29becb16b504e57b0e9a785dde9c3cd44f2a2
7
- data.tar.gz: 159e6e91c530bb07ef9ce8ba7a6c8d2c45250d17c029b7a2f974c030e43e92f4bd65d353fd7d33973533a233460b86c464128e31c6d0cda270fd94b76186681b
6
+ metadata.gz: 64e6db3bd0dd227225e6fb19478f12dab7ba5eeb6c61ba93b1f3e16f0a7f663989e841f352bc4928194564fe37dc70be43eabd8ace1b2d40b2ca78ad024b3b2f
7
+ data.tar.gz: 4548bf3c28267439d47e7a35d7ce3c18dcb0366d8ab90044e037e283f5a00e4163839de39c61e6c1738a9f8c3fcab024cebdb86e696e3cd25b8c1d4d668d919c
@@ -8,9 +8,8 @@ en:
8
8
  validation_error: Validation Error
9
9
  processing_error: Processing Error
10
10
  completed: Completed
11
- attributes:
12
- dalliance_status: Status
13
- dalliance_error_hash: Errors
14
- dalliance_duration: Processing Time
15
- dalliance:
11
+ attributes:
12
+ dalliance_status: Status
13
+ dalliance_error_hash: Errors
14
+ dalliance_duration: Processing Time
16
15
  dalliance_status_in: Status
@@ -2,7 +2,7 @@ module Dalliance
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 2
5
+ TINY = 3
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
@@ -3,15 +3,25 @@ require 'spec_helper'
3
3
  RSpec.describe 'Dalliance' do
4
4
  subject { DallianceModel.create }
5
5
 
6
+ before(:all) do
7
+ I18n.backend.store_translations(:en, YAML.load_file(File.open('./config/locales/en.yml'))['en'])
8
+ end
9
+
6
10
  context "self#dalliance_status_in_load_select_array" do
7
11
  it "should return [state, human_name]" do
8
12
  expect(DallianceModel.dalliance_status_in_load_select_array).to eq([
9
- ["completed", "completed"],
10
- ["pending", "pending"],
11
- ["processing", "processing"],
12
- ["processing error", "processing_error"],
13
- ["validation error", "validation_error"]
13
+ ["Completed", "completed"],
14
+ ["Pending", "pending"],
15
+ ["Processing", "processing"],
16
+ ["Processing Error", "processing_error"],
17
+ ["Validation Error", "validation_error"]
14
18
  ])
15
19
  end
16
20
  end
21
+
22
+ context "human_attribute_name" do
23
+ it "should display the correct locale" do
24
+ expect(DallianceModel.human_attribute_name(:dalliance_status)).to eq ('Status')
25
+ end
26
+ end
17
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dalliance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Sullivan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-03 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord