device_cloud 0.0.9 → 0.0.10

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.
@@ -22,8 +22,7 @@ module DeviceCloud
22
22
  end
23
23
 
24
24
  def file_name
25
- return '' unless id
26
- id['fdName']
25
+ @file_data.file_name
27
26
  end
28
27
 
29
28
  def mac_address
@@ -1,3 +1,3 @@
1
1
  module DeviceCloud
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -14,7 +14,7 @@ describe DeviceCloud::PushNotification::BaseNotification do
14
14
  OpenStruct.new(
15
15
  full_path: '/some/place/file_name.json',
16
16
  data: data,
17
- full_path: '/foo/bar/baz.json'
17
+ file_name: 'file_name.json'
18
18
  )
19
19
  end
20
20
 
@@ -55,14 +55,7 @@ describe DeviceCloud::PushNotification::BaseNotification do
55
55
 
56
56
  describe "#file_name" do
57
57
  context 'when id is present' do
58
- its(:file_name) { should eq data['id']['fdName']}
59
- end
60
-
61
- context 'when id is nil' do
62
- before(:each) do
63
- data['id'] = nil
64
- end
65
- its(:file_name) { should eq '' }
58
+ its(:file_name) { should eq file_data.file_name}
66
59
  end
67
60
  end
68
61
  end
data/spec/version_spec.rb CHANGED
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe 'DeviceCloud::VERSION' do
4
4
  it 'should be the correct version' do
5
- DeviceCloud::VERSION.should == '0.0.9'
5
+ DeviceCloud::VERSION.should == '0.0.10'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: device_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: