spree_sendwithus 2.0.11.10 → 2.0.11.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: a7a620cc934476f6cf59befc3959e978856c2558
4
- data.tar.gz: d709dd5e8d6e43feac72f1718e28b631a9d7c280
3
+ metadata.gz: 7b8b910e17a17a20914c11e2bb89a64c0b99f5d3
4
+ data.tar.gz: 1570519d244cd4ca60f6b8cd1f69ca1352de735d
5
5
  SHA512:
6
- metadata.gz: 01aa94279d92af7b5f2e5726fe348a25e45dbd8f249828dc37f4d3762ae78517214479f88f0b8acdfe18cd0007e8ab94eefd0b85df789673214e1b75493f9df4
7
- data.tar.gz: 6404d8ed3b31cd4b9fac631e47407626f68c62acec6089feaa21637da01eabf0bcaf25b82891b6d3c34a98e47e36e8b714fbe562470ba29472137377fa991da5
6
+ metadata.gz: d7454b88b076420e8813d70b9a2445d9e76323014d942408fa3d999c618cb5828a0e21b7cf6648a92ae28334bd1c43b0309bd8b629a8f83ded31932aa7df3089
7
+ data.tar.gz: 465e5014ddd0ac68c5318fb018ebf7824ee3d178348738aa0b810ca0ccb434bf2f17c028fb03d3907a4cad8f0ecfad179986b585bdd3afb6dbc4863fde5635d6
@@ -4,7 +4,7 @@ module Spree
4
4
  module SendWithUs
5
5
  class Message
6
6
  attr_reader :to, :from, :email_id, :email_data, :cc, :bcc, :files,
7
- :esp_account, :tags, :locale
7
+ :esp_account, :tags, :locale, :version_name
8
8
 
9
9
  def initialize
10
10
  @email_data = {}
@@ -16,6 +16,7 @@ module Spree
16
16
  @esp_account = Base.esp_account || ""
17
17
  @tags = []
18
18
  @locale = I18n.default_locale.to_s
19
+ @version_name = ""
19
20
  end
20
21
 
21
22
  def assign(key, value)
@@ -49,6 +50,8 @@ module Spree
49
50
  @tags = value
50
51
  when :locale
51
52
  @locale = value
53
+ when :version_name
54
+ @version_name = value
52
55
  end
53
56
  end
54
57
  end
@@ -65,7 +68,8 @@ module Spree
65
68
  esp_account: @esp_account,
66
69
  files: @files,
67
70
  tags: @tags,
68
- locale: @locale
71
+ locale: @locale,
72
+ version_name: @version_name
69
73
  }
70
74
  )
71
75
  end
@@ -49,7 +49,8 @@ describe Spree::SendWithUs::Message do
49
49
  files: ["path/to/file.txt", "../another_file.txt"],
50
50
  esp_account: "esp_1234",
51
51
  tags: ['thing'],
52
- locale: "en"
52
+ locale: "en",
53
+ version_name: "rawr"
53
54
  ] }
54
55
 
55
56
  before do
@@ -100,6 +101,10 @@ describe Spree::SendWithUs::Message do
100
101
  it "contains the expected locale" do
101
102
  expect(subject.locale).to eq 'en'
102
103
  end
104
+
105
+ it "contains the expected version_name" do
106
+ expect(subject.version_name).to eq 'rawr'
107
+ end
103
108
  end
104
109
 
105
110
  describe "#deliver" do
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_sendwithus'
5
- s.version = '2.0.11.10'
5
+ s.version = '2.0.11.11'
6
6
  s.summary = 'SendWithUs integration'
7
7
  s.license = 'BSD-3'
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_sendwithus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11.10
4
+ version: 2.0.11.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - FreeRunning Technologies
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core