atlas 1.2.0 → 1.2.1
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/atlas/box_provider.rb +2 -2
- data/lib/atlas/box_version.rb +3 -1
- data/lib/atlas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8ff1489b801883f3b882fb78019dfb1082583d8
|
4
|
+
data.tar.gz: cd4e91f98e9fa33b6ec3c5163f6d7c3332030a58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 957112c6bb96cb0139c366e69fe66f0fa45be9d108b4393e0e2ccaecaa94052a8da6d315cd8e4b005dfe833c4b50d6b2b4e09257ca39648115b62e98b0c6cdca
|
7
|
+
data.tar.gz: b127d0b494e31f40ae44048afd3a993ece45316f3133fede40959bf97eb4871ca5103b0cf2f47efb8a16f8dc74b7d94a2d7ff613b561ac6d4151cf4c5283937a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.2.1 (03/10/2015)
|
4
|
+
|
5
|
+
* Fixes a bug where self-hosted box URLs wouldn't store correctly ([#1][])
|
6
|
+
* Fixes a bug where the box version description couldn't be specified on
|
7
|
+
creation ([#2][]).
|
8
|
+
|
3
9
|
## 1.2.0 (29/07/2015)
|
4
10
|
|
5
11
|
* Adds custom error classes and catching in the request.
|
@@ -16,3 +22,6 @@
|
|
16
22
|
|
17
23
|
* Initial release; handles creating, updating, deleting boxes, versions and
|
18
24
|
providers.
|
25
|
+
|
26
|
+
[#1]: https://github.com/nickcharlton/atlas-ruby/issues/1
|
27
|
+
[#2]: https://github.com/nickcharlton/atlas-ruby/issues/2
|
data/lib/atlas/box_provider.rb
CHANGED
@@ -4,7 +4,7 @@ module Atlas
|
|
4
4
|
# @attr_accessor [String] name The name of the provider.
|
5
5
|
# @attr_accessor [String] download_url The url to download from.
|
6
6
|
class BoxProvider < Resource
|
7
|
-
attr_accessor :name, :download_url
|
7
|
+
attr_accessor :name, :original_url, :download_url, :url
|
8
8
|
|
9
9
|
# Find a provider by it's tag.
|
10
10
|
#
|
@@ -42,7 +42,7 @@ module Atlas
|
|
42
42
|
# @param hash [String] :url An HTTP URL to the box file. Omit if uploading
|
43
43
|
# with Atlas.
|
44
44
|
def initialize(tag, hash = {})
|
45
|
-
hash[:url] = hash[:download_url]
|
45
|
+
hash[:url] = hash[:download_url] unless hash.key? :url
|
46
46
|
|
47
47
|
super(tag, hash)
|
48
48
|
end
|
data/lib/atlas/box_version.rb
CHANGED
@@ -45,7 +45,9 @@ module Atlas
|
|
45
45
|
# @param attr [String] :version The version number.
|
46
46
|
# @param attr [String] :description Description of the box.
|
47
47
|
def initialize(tag, hash = {})
|
48
|
-
hash
|
48
|
+
if hash.key? 'description_markdown'
|
49
|
+
hash['description'] = hash['description_markdown']
|
50
|
+
end
|
49
51
|
|
50
52
|
super(tag, hash)
|
51
53
|
end
|
data/lib/atlas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atlas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Charlton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|