gandinet 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: 3c32bf8bead936bf2cc53d25981e690351f392c54cf0f6b178957ac09358f2e1
4
- data.tar.gz: cff146cb07cf5fa3d6413ac5f32ee077cb3f63505c85c29fca937046242b2046
3
+ metadata.gz: 11eaddb99e076097ac7523e05b1c38eef4de47d923c0f626dab419a2e5c32216
4
+ data.tar.gz: ad6e77de309bd056217e9333ac9e52865dc7d6c307d28eb449f918db30a2dc94
5
5
  SHA512:
6
- metadata.gz: 1fdf1474bcbca15f4112cb103761e34f59cab4df3b32daa0d96699bb2c07fc0b66d597e94329f10a63db846004022db98286f439b95cefabcacbcba96a41caa1
7
- data.tar.gz: b9c19c0a8654e727a7254973656c53f9863a0157e9442592844aa06873f266a4f36f3abd6d2d20ce4c717b7a0904cd310f3041c360065f6385a8214a19bda882
6
+ metadata.gz: 28e945074313292d7aad98b5d9751a2bcc3ffc4aa3cf63e1694fdf5df798457f4521b868f1ed48c4bfebcc0c900d132a8cd29c3c4acedbca5d5133e9633a68df
7
+ data.tar.gz: b1f836657881b5f0ed64a4a4f07018b5845db698fef4b1b5b4cd507f3fce77a3854129f0f2ea6f701a8e1f1237261e2829703255e29cc90ceee67142eb74c6f1
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gandinet`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
@@ -21,8 +19,21 @@ Or install it yourself as:
21
19
  $ gem install gandinet
22
20
 
23
21
  ## Usage
22
+ irb:
23
+
24
+ require 'gandinet'
25
+ initialize:
26
+
27
+ client = GandiNet::Client.new("KEY", dryrun: false) # Be careful with dry run!
28
+ List Domains:
24
29
 
25
- TODO: Write usage instructions here
30
+ client.domains # Get them
31
+ Create Domain:
32
+
33
+ client.create(fqdn,given,family,country,streetaddr,orgname,email,phone,zip,city)
34
+ Info on Domain:
35
+
36
+ client.info("fqdn")
26
37
 
27
38
  ## Development
28
39
 
@@ -32,8 +43,31 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
43
 
33
44
  ## Contributing
34
45
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gandinet.
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/usiegl00/gandinet.
47
+
48
+ [Gandi Api Docs](https://api.gandi.net/docs/)
36
49
 
37
50
  ## License
38
51
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+ This is free and unencumbered software released into the public domain.
53
+
54
+ Anyone is free to copy, modify, publish, use, compile, sell, or
55
+ distribute this software, either in source code form or as a compiled
56
+ binary, for any purpose, commercial or non-commercial, and by any
57
+ means.
58
+
59
+ In jurisdictions that recognize copyright laws, the author or authors
60
+ of this software dedicate any and all copyright interest in the
61
+ software to the public domain. We make this dedication for the benefit
62
+ of the public at large and to the detriment of our heirs and
63
+ successors. We intend this dedication to be an overt act of
64
+ relinquishment in perpetuity of all present and future rights to this
65
+ software under copyright law.
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
68
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
69
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
70
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
71
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
72
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
73
+ OTHER DEALINGS IN THE SOFTWARE.
File without changes
data/bin/setup CHANGED
File without changes
@@ -9,14 +9,12 @@ Gem::Specification.new do |spec|
9
9
 
10
10
  spec.summary = %q{Gandinet is a gem for interacting with the gandi api.}
11
11
  spec.homepage = "https://rubygems.org/gems/gandinet"
12
- spec.license = "MIT"
12
+ spec.license = "Unlicense"
13
13
  # Specify which files should be added to the gem when it is released.
14
14
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
15
15
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
16
16
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  end
18
- spec.bindir = "exe"
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
18
  spec.require_paths = ["lib"]
21
19
 
22
20
  spec.add_development_dependency "bundler", "~> 2.0"
@@ -41,7 +41,7 @@ module GandiNet
41
41
  response = http.request(request)
42
42
  JSON.parse(response.read_body)
43
43
  end
44
- # client.info("DOMAIN")
44
+ # client.info("fqdn")
45
45
  def info(fqdn)
46
46
  url = URI("https://api.gandi.net/v5/domain/domains/#{fqdn}")
47
47
  http = Net::HTTP.new(url.host, url.port)
@@ -1,3 +1,3 @@
1
1
  module GandiNet
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gandinet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - usiegl00
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2019-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,9 +44,8 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - ".gitignore"
48
47
  - Gemfile
49
- - LICENSE.txt
48
+ - LICENSE
50
49
  - README.md
51
50
  - Rakefile
52
51
  - bin/console
@@ -56,7 +55,7 @@ files:
56
55
  - lib/gandinet/version.rb
57
56
  homepage: https://rubygems.org/gems/gandinet
58
57
  licenses:
59
- - MIT
58
+ - Unlicense
60
59
  metadata: {}
61
60
  post_install_message:
62
61
  rdoc_options: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 TODO: Write your name
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.