moki_ruby 0.2.1 → 0.2.2

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: a60594ae19e516ec2c82d3c4876924dc6c56fd23
4
- data.tar.gz: eafd8d331996cb470737b0dba5180997e85c0960
3
+ metadata.gz: 8ad0b87bab83ff6766d3e624acf8b8d87ce48c0e
4
+ data.tar.gz: 3c8d58751328739d56bb739809746f5fcd848bd2
5
5
  SHA512:
6
- metadata.gz: 0f86a6d04a03d7384120a11e08365ab5bc064dbcdd9d29ea7c39f65c8789b30cafdd8d41f1e2b3aecaf1f4e0a193c68a494bcb0ec12d0c7cc91f8bf4f7c71292
7
- data.tar.gz: 8ad7040c41e05da24a783bdc3699121bade80f0e5a4404b6016d915c084ecb16bfaa7fff8c54ad0a7b7b4ca017617449c5a59d4fdc619a9dd226f54b517c8f83
6
+ metadata.gz: 08476531d69fb17d912531e5fff2b0da7a12860786f99e9adef8561e01dd1a8ad84feb950d82403ab17489208ae44386f11963d91c509ae9b0f596445c8a38c9
7
+ data.tar.gz: faee68164d9f70413c5b60a6eed2525220759035f32ef21c54d578044a7c26c176fe04fed44acd4724265a15aae5487d6808b65b181ab83752dd45d91d68438b
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ tmp
19
19
  *.o
20
20
  *.a
21
21
  mkmf.log
22
+ .ruby-version
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- moki_ruby (0.2.1)
4
+ moki_ruby (0.2.2)
5
5
  celluloid
6
6
  celluloid-io
7
7
  faraday
@@ -33,7 +33,7 @@ module MokiRuby
33
33
  "action" => "install_app",
34
34
  "thirdPartyUser" => "moki_ruby",
35
35
  "clientName" => "MokiRuby",
36
- "itemName" => self.name,
36
+ "itemName" => self.name || "iOS App",
37
37
  "notify" => true,
38
38
  "payload" => {
39
39
  "ManagementFlags" => self.management_flag,
@@ -1,3 +1,3 @@
1
1
  module MokiRuby
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -82,5 +82,10 @@ describe TenantManagedApp do
82
82
  expect(app.install_hash["payload"]["ManifestURL"]).to be_nil
83
83
  expect(app.install_hash["payload"]["iTunesStoreID"]).to eq(response_hash["iTunesStoreID"])
84
84
  end
85
+
86
+ it "will replace a null name with an approriate one" do
87
+ app = TenantManagedApp.from_hash(response_hash.merge({ "name" => nil }))
88
+ expect(app.install_hash["itemName"]).to eq("iOS App")
89
+ end
85
90
  end
86
91
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moki_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Springer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-01 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday