atlas 1.2.0 → 1.2.1

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: bfcc9c5fb98681ad07faaaf69d275418c22b1ea4
4
- data.tar.gz: 55823eb3defae3a970ceb99b298e636fb90cd2b0
3
+ metadata.gz: b8ff1489b801883f3b882fb78019dfb1082583d8
4
+ data.tar.gz: cd4e91f98e9fa33b6ec3c5163f6d7c3332030a58
5
5
  SHA512:
6
- metadata.gz: b04a692cdba04c4b6f6bf5986acd7840eadd74493a696d777af8377ee57a3e3b20d2e558ce0e908653a6f74740ee60b11cb6ed9335210839e6dd183b3c898913
7
- data.tar.gz: ae9887e9120916d97b94404523dbbb9c7db8340168a483afca4be1244f8a403c1253a78f8fa1659f323247f64039298f7a25fdee598d0c70951318d0dbf411ee
6
+ metadata.gz: 957112c6bb96cb0139c366e69fe66f0fa45be9d108b4393e0e2ccaecaa94052a8da6d315cd8e4b005dfe833c4b50d6b2b4e09257ca39648115b62e98b0c6cdca
7
+ data.tar.gz: b127d0b494e31f40ae44048afd3a993ece45316f3133fede40959bf97eb4871ca5103b0cf2f47efb8a16f8dc74b7d94a2d7ff613b561ac6d4151cf4c5283937a
@@ -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
@@ -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
@@ -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['description'] = hash['description_markdown']
48
+ if hash.key? 'description_markdown'
49
+ hash['description'] = hash['description_markdown']
50
+ end
49
51
 
50
52
  super(tag, hash)
51
53
  end
@@ -1,4 +1,4 @@
1
1
  # Version information.
2
2
  module Atlas
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
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.0
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-07-29 00:00:00.000000000 Z
11
+ date: 2015-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon