netlify 0.2.0 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 437996fb50a44a765375a8b7f176fc5b4e2e8b14
4
- data.tar.gz: 902fce5832eba704da8714fc7d24a5d77e0d4d71
3
+ metadata.gz: c72dfb654f316b931bded09235fe428a4bafaa73
4
+ data.tar.gz: afd364ee0e63a4faa3c00410733bd9e29662b90c
5
5
  SHA512:
6
- metadata.gz: fc9e999d347c6c0e23a5381f5a35235a6da6c5509befa1fc52fbc14b4c4f32b439da8215c7e9ff9df57049a71441be93b67a512575dca27380d462c8f3872df5
7
- data.tar.gz: 96c84262f78082f8d127131ad2ebb9effbcd8a66eda35fbf2aae37784198a8055e9290ee5480a9d54fcdf45df789c411bf565a350555d331154afb7fb8274740
6
+ metadata.gz: fbe97cb8486236171ea17edbe9c985b15048ec7a4bfcc5f59fbf9eec589bf3d7b40fd8893b8c95ea66d9daee91ac9a71e6a11d5a2aae27829165616ef4fb427b
7
+ data.tar.gz: 191b1af59d508a358dab849608ae108bebf29e050df9e3f4839eee94b61d5f60c150d7311a3027502e99e4e7f7c3ba9f404ef993be3206a69d29da416cf14859
@@ -2,6 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  netlify (0.2.1)
5
+ github_api
5
6
  highline
6
7
  oauth2 (>= 0.9.2)
7
8
  slop
@@ -11,22 +12,37 @@ GEM
11
12
  specs:
12
13
  addressable (2.3.3)
13
14
  crack (0.3.2)
14
- faraday (0.9.0)
15
+ descendants_tracker (0.0.4)
16
+ thread_safe (~> 0.3, >= 0.3.1)
17
+ faraday (0.9.1)
15
18
  multipart-post (>= 1.2, < 3)
19
+ github_api (0.12.2)
20
+ addressable (~> 2.3)
21
+ descendants_tracker (~> 0.0.4)
22
+ faraday (~> 0.8, < 0.10)
23
+ hashie (>= 3.3)
24
+ multi_json (>= 1.7.5, < 2.0)
25
+ nokogiri (~> 1.6.3)
26
+ oauth2
27
+ hashie (3.3.1)
16
28
  highline (1.6.21)
17
- jwt (1.0.0)
29
+ jwt (1.5.1)
30
+ mini_portile (0.6.2)
18
31
  minitest (5.0.8)
19
- multi_json (1.10.1)
32
+ multi_json (1.11.1)
20
33
  multi_xml (0.5.5)
21
34
  multipart-post (2.0.0)
35
+ nokogiri (1.6.6.2)
36
+ mini_portile (~> 0.6.0)
22
37
  oauth2 (1.0.0)
23
38
  faraday (>= 0.8, < 0.10)
24
39
  jwt (~> 1.0)
25
40
  multi_json (~> 1.3)
26
41
  multi_xml (~> 0.5)
27
42
  rack (~> 1.2)
28
- rack (1.5.2)
29
- slop (3.6.0)
43
+ rack (1.6.1)
44
+ slop (4.0.0)
45
+ thread_safe (0.3.5)
30
46
  webmock (1.11.0)
31
47
  addressable (>= 2.2.7)
32
48
  crack (>= 0.3.2)
@@ -1,4 +1,4 @@
1
- require "Netlify/access_token"
1
+ require "netlify/access_token"
2
2
 
3
3
  module Netlify
4
4
  class AccessTokens < CollectionProxy
@@ -73,7 +73,8 @@ module Netlify
73
73
  begin
74
74
  raise AuthenticationError, "Authorize with Netlify before making requests" unless oauth_token
75
75
 
76
- oauth_token.request(verb, ::File.join("/api", API_VERSION, path), opts, &block)
76
+ ssl_options = {:version => :TLSv1_2}
77
+ oauth_token.request(verb, ::File.join("/api", API_VERSION, path), ssl_options.merge(opts), &block)
77
78
  rescue OAuth2::Error => e
78
79
  case e.response.status
79
80
  when 401
@@ -1,4 +1,4 @@
1
- require "Netlify/dns_records"
1
+ require "netlify/dns_records"
2
2
 
3
3
  module Netlify
4
4
  class DeployKey < Model
@@ -1,4 +1,4 @@
1
- require "Netlify/deploy_key"
1
+ require "netlify/deploy_key"
2
2
 
3
3
  module Netlify
4
4
  class DeployKeys < CollectionProxy
@@ -1,4 +1,4 @@
1
- require "Netlify/deploy"
1
+ require "netlify/deploy"
2
2
 
3
3
  module Netlify
4
4
  class Deploys < CollectionProxy
@@ -1,7 +1,7 @@
1
- require "Netlify/dns_record"
1
+ require "netlify/dns_record"
2
2
 
3
3
  module Netlify
4
4
  class DnsRecords < CollectionProxy
5
5
  path "/dns_records"
6
6
  end
7
- end
7
+ end
@@ -1,4 +1,4 @@
1
- require "Netlify/dns_records"
1
+ require "netlify/dns_records"
2
2
 
3
3
  module Netlify
4
4
  class DnsZone < Model
@@ -8,4 +8,4 @@ module Netlify
8
8
  DnsRecords.new(client, path)
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -1,4 +1,4 @@
1
- require "Netlify/dns_zone"
1
+ require "netlify/dns_zone"
2
2
 
3
3
  module Netlify
4
4
  class DnsZones < CollectionProxy
@@ -8,4 +8,4 @@ module Netlify
8
8
  DnsRecords.new(client, path)
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -1,7 +1,7 @@
1
- require "Netlify/file"
1
+ require "netlify/file"
2
2
 
3
3
  module Netlify
4
4
  class Files < CollectionProxy
5
5
  path "/files"
6
6
  end
7
- end
7
+ end
@@ -1,7 +1,7 @@
1
- require "Netlify/form"
1
+ require "netlify/form"
2
2
 
3
3
  module Netlify
4
4
  class Forms < CollectionProxy
5
5
  path "/forms"
6
6
  end
7
- end
7
+ end
@@ -1,4 +1,4 @@
1
- require "Netlify/site"
1
+ require "netlify/site"
2
2
  require "digest/sha1"
3
3
 
4
4
  module Netlify
@@ -1,7 +1,7 @@
1
- require "Netlify/snippet"
1
+ require "netlify/snippet"
2
2
 
3
3
  module Netlify
4
4
  class Snippets < CollectionProxy
5
5
  path "/snippets"
6
6
  end
7
- end
7
+ end
@@ -1,7 +1,7 @@
1
- require "Netlify/submission"
1
+ require "netlify/submission"
2
2
 
3
3
  module Netlify
4
4
  class Submissions < CollectionProxy
5
5
  path "/submissions"
6
6
  end
7
- end
7
+ end
@@ -1,7 +1,7 @@
1
- require "Netlify/user"
1
+ require "netlify/user"
2
2
 
3
3
  module Netlify
4
4
  class Users < CollectionProxy
5
5
  path "/users"
6
6
  end
7
- end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Netlify
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netlify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Biilmann Christensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2015-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -171,3 +171,4 @@ test_files:
171
171
  - test/multipass_test.rb
172
172
  - test/sites_test.rb
173
173
  - test/test_helper.rb
174
+ has_rdoc: