simplemdm 0.2.0 → 1.0.0

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: f4d891d5691bcc0146922d6daa0746f3d76b3cc3
4
- data.tar.gz: ea0dbdd673b284b07eb55feab36419cead0dca43
3
+ metadata.gz: 94d0daa10a153b75d7ab2b308143d760e327b926
4
+ data.tar.gz: 703be9145e4736bc439aa9be99f1dace8c6e27f7
5
5
  SHA512:
6
- metadata.gz: 73fd0ee0fdba0e9653074f24b1d9a01cc2ec8e0e9683d254b25c1ab78546e5111f9062c9f763e48e9e9f070761369285125e36f0317badaa8bc997cae1d479f1
7
- data.tar.gz: d98f63b56ffd2598dff1e45e0651b091fc977365887a51d6aa7dfbe0f9d6029d71d09831eceebf1b28ffa18d67c2a8c9b04fdace65477ec5c9ef620505260396
6
+ metadata.gz: 56deca1f114634998ec4b70ae5f7b58d7a7e4b47d2177566edb098c34f9fea7e0561c98026bedb17e3c3d0e930e669d68d39764f1b9f1e486b5ba48c42847688
7
+ data.tar.gz: fbb7236ca0464bdb64e1f33f9653b2574591f2f2289feaefc555f784ec7724d8a4da6b79b98b282e5876722a8d122208180ed7a9c4b21e296ba01f90a6b340a9
data/.gitignore CHANGED
@@ -8,5 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
 
11
- *.DS_Store
12
- simplemdm*.gem
11
+ .DS_Store
12
+ simplemdm*.gem
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.2.0] - 2016-07-01
4
+ ### Removed
5
+ - API no longer allows the enterprise app name to be specified. The name is automatically set to that which is specified in the app binary.
6
+
7
+ ### Fixed
8
+ - App 'version' attribute is now properly updated after uploading an updated binary file.
9
+
3
10
  ## [0.2.0] - 2016-05-03
4
11
  ### Added
5
12
  - Add and remove devices from app groups.
data/lib/simplemdm/app.rb CHANGED
@@ -27,19 +27,9 @@ module SimpleMDM
27
27
  @binary_file = val
28
28
  end
29
29
 
30
- def name=(val)
31
- if val != self.name
32
- @dirty = true
33
- end
34
-
35
- self['name'] = val
36
- end
37
-
38
30
  def save
39
- if @dirty || new?
40
- params = {}
41
- params[:name] = self.name
42
- params[:binary] = @binary_file unless @binary_file.nil?
31
+ if (@dirty || new?) && @binary_file
32
+ params = { binary: @binary_file }
43
33
 
44
34
  if new?
45
35
  hash, code = fetch("apps", :post, params)
@@ -48,6 +38,7 @@ module SimpleMDM
48
38
  self.merge!(hash['data']['attributes'])
49
39
  else
50
40
  hash, code = fetch("apps/#{self.id}", :patch, params)
41
+ self.merge!(hash['data']['attributes'])
51
42
  end
52
43
 
53
44
  @dirty = false
@@ -1,3 +1,3 @@
1
1
  module SimpleMDM
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplemdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Boyko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,12 +80,9 @@ files:
80
80
  - LICENSE.txt
81
81
  - README.md
82
82
  - Rakefile
83
- - bin/.DS_Store
84
83
  - bin/console
85
84
  - bin/setup
86
- - lib/.DS_Store
87
85
  - lib/simplemdm.rb
88
- - lib/simplemdm/.DS_Store
89
86
  - lib/simplemdm/account.rb
90
87
  - lib/simplemdm/app.rb
91
88
  - lib/simplemdm/app_group.rb