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 +4 -4
- data/.gitignore +2 -2
- data/CHANGELOG.md +7 -0
- data/lib/simplemdm/app.rb +3 -12
- data/lib/simplemdm/version.rb +1 -1
- metadata +2 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94d0daa10a153b75d7ab2b308143d760e327b926
|
4
|
+
data.tar.gz: 703be9145e4736bc439aa9be99f1dace8c6e27f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56deca1f114634998ec4b70ae5f7b58d7a7e4b47d2177566edb098c34f9fea7e0561c98026bedb17e3c3d0e930e669d68d39764f1b9f1e486b5ba48c42847688
|
7
|
+
data.tar.gz: fbb7236ca0464bdb64e1f33f9653b2574591f2f2289feaefc555f784ec7724d8a4da6b79b98b282e5876722a8d122208180ed7a9c4b21e296ba01f90a6b340a9
|
data/.gitignore
CHANGED
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
|
data/lib/simplemdm/version.rb
CHANGED
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.
|
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-
|
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
|