cloudflarer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8a2f6e43fc361748b241c9769ea1d877510f30d3
4
+ data.tar.gz: e860c81fb5006e1121e97af88e242e17900c8590
5
+ SHA512:
6
+ metadata.gz: 84594eb4febe34ee17e52b484b824dfb348f61066fb8ac0b2138e186efce4f9dbeda996b5a2af6cbe1fee467030f2e92af04a6a8c4824b36b1c3d6a043ea9800
7
+ data.tar.gz: 30d684fdd488b0c749a0f5dd1c75574b8d84c193db429bc24e81074ada488ce224248862b435b2d77f809419e4833dff3db8d6d90a03f5fcf52e09ce049fbf50
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.12.5
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at jj@bjjb.org. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cloudflarer.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 JJ Buckley
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.
@@ -0,0 +1,58 @@
1
+ # Cloudflarer
2
+
3
+ A Ruby API client and library for [Cloudflare][].
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'cloudflarer'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install cloudflarer
20
+
21
+ ## Usage
22
+
23
+ For help with the command-line interface, just run
24
+
25
+ cloudflarer --help
26
+
27
+ once the gem is installed.
28
+
29
+ The [API][] (v4) is documented by Cloudflare.
30
+
31
+ ## Development
32
+
33
+ After checking out the repo, run `bin/setup` to install dependencies. Then,
34
+ run `rake test` to run the tests. You can also run `bin/console` for an
35
+ interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`.
38
+ To release a new version, update the version number in `version.rb`, and then
39
+ run `bundle exec rake release`, which will create a git tag for the version,
40
+ push git commits and tags, and push the `.gem` file to
41
+ [rubygems.org](https://rubygems.org).
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at
46
+ https://github.com/bjjb/cloudflarer. This project is intended to be a
47
+ safe, welcoming space for collaboration, and contributors are expected to
48
+ adhere to the [Contributor Covenant](http://contributor-covenant.org) code of
49
+ conduct.
50
+
51
+
52
+ ## License
53
+
54
+ The gem is available as open source under the terms of the [MIT
55
+ License](http://opensource.org/licenses/MIT).
56
+
57
+ [Cloudflare]: https://cloudflare.com
58
+ [API]: https://api.cloudflare.com
@@ -0,0 +1,10 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << 'test'
6
+ t.libs << 'lib'
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task default: :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'cloudflarer'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cloudflarer/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cloudflarer'
8
+ spec.version = Cloudflarer::VERSION
9
+ spec.authors = ['JJ Buckley']
10
+ spec.email = ['jj@bjjb.org']
11
+
12
+ spec.summary = 'A Ruby/Cloudflare CLI/API-client'
13
+ spec.description = <<-DESC
14
+ A Ruby API library for managing your cloudflare domains and settings. Comes
15
+ with a simple command-line tool.
16
+ DESC
17
+ spec.homepage = "http://bjjb.gitlab.com/cloudflarer"
18
+ spec.license = 'MIT'
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
21
+ f.match(%r{^(test|spec|features)/})
22
+ end
23
+ spec.bindir = 'exe'
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ['lib']
26
+
27
+ spec.add_dependency 'faraday', '~> 0.9.2'
28
+ spec.add_dependency 'hipsterhash', '>= 0.0.4'
29
+ spec.add_dependency 'ordu', '>= 0.0.4'
30
+ spec.add_dependency 'mustache', '~> 1.0'
31
+ spec.add_development_dependency 'bundler', '~> 1.12'
32
+ spec.add_development_dependency 'rake', '~> 10.0'
33
+ spec.add_development_dependency 'minitest', '~> 5.0'
34
+ end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'cloudflarer/cli'
4
+
5
+ Cloudflarer::CLI.parse!(ARGV)
@@ -0,0 +1,12 @@
1
+ # A library to help manage your Cloudflare domains and settings.
2
+ module Cloudflarer
3
+ autoload :VERSION, 'cloudflarer/version'
4
+ autoload :API_VERSION, 'cloudflarer/version'
5
+ autoload :Client, 'cloudflarer/client'
6
+ autoload :YAML, 'yaml'
7
+ autoload :Pathname, 'pathname'
8
+
9
+ def self.new(*args)
10
+ Client.new(*args)
11
+ end
12
+ end
@@ -0,0 +1,230 @@
1
+ require 'ordu'
2
+ require 'cloudflarer'
3
+ require 'yaml'
4
+ require 'mustache'
5
+
6
+ module Cloudflarer
7
+ class CLI < Ordu
8
+ option('-h', '--help', 'show this message') do
9
+ puts to_s
10
+ exit
11
+ end
12
+ option('-k', '--api-key API_KEY', 'specify the API key') do |key|
13
+ CLOUDFLARE_API_KEY = key
14
+ end
15
+ option('-e', '--email EMAIL', 'specify the Cloudflare Email') do |email|
16
+ CLOUDFLARE_EMAIL = email
17
+ end
18
+ option('-v', '--[no-]verbose', 'print request/response') do |v|
19
+ $verbose = v
20
+ end
21
+ option('-q', '--[no-]quiet', 'print less information') do |q|
22
+ $quiet = q
23
+ end
24
+ option('-D', '--[no-]debug', 'print lots of internal info') do |d|
25
+ $debug = d
26
+ end
27
+ option('-V', '--version', 'show the version number') do |v|
28
+ puts "Cloudflarer v#{Cloudflarer::VERSION}"
29
+ puts "Cloudflare API version #{Cloudflarer::API_VERSION}"
30
+ exit
31
+ end
32
+ option('-f', '--format FMT', 'specify output format') { |f| template(f) }
33
+ command 'user', 'manage your user' do
34
+ command 'update', 'change user properties' do
35
+ option('--first_name NAME', 'First name') { |v| set(first_name: v) }
36
+ option('--last_name NAME', 'Last name') { |v| set(last_name: v) }
37
+ option('--telephone PHONE', 'Telephone') { |v| set(telephone: v) }
38
+ option('--country ISO', 'Country') { |v| set(country: v) }
39
+ option('--zipcode ZIP', 'Zipcode') { |v| set(zipcode: v) }
40
+ action { update('user') }
41
+ end
42
+
43
+ action { show('user') }
44
+ end
45
+
46
+ command 'zones', 'manage your zones' do
47
+ command 'show', 'show a zone' do
48
+ action do |*ids|
49
+ die("You need to specify the zone ID") if ids.empty?
50
+ ids.each { |z| show("zones/#{z}") }
51
+ end
52
+ end
53
+ command 'create', 'create a zone' do
54
+ option('--[no-]jump_start', 'auto-fetch DNS records') do |j|
55
+ set(:jump_start, j)
56
+ end
57
+ option('--name DOMAIN', 'domain name') { |v| set(name: v) }
58
+ action { |name| post('zones' ) }
59
+ end
60
+ action { list('zones') }
61
+ end
62
+
63
+ command 'records', 'manage DNS records' do
64
+ option('-z', '--zone ID', 'specify the zone') { |z| set(zone: z) }
65
+ command 'show', 'show a DNS record' do
66
+ action do |*ids|
67
+ die("You need to specify the record ID") if ids.empty?
68
+ template('{{id}} {{type}} {{name}} {{content}}')
69
+ zone { |z| ids.each { |r| show("zones/#{z}/dns_records/#{r}") } }
70
+ end
71
+ end
72
+ command 'create', 'create a new DNS record' do
73
+ option('-z', '--zone ID', 'specify the zone') { |z| set(zone: z) }
74
+ option('--type TYPE', 'DNS record type') { |v| set(type: v) }
75
+ option('--name NAME', 'DNS record name') { |v| set(name: v) }
76
+ option('--content ADDR', 'DNS record content') { |v| set(content: v) }
77
+ action do
78
+ zone { |z| create("zones/#{z}/dns_records") }
79
+ end
80
+ end
81
+ command 'delete', 'delete a DNS record' do
82
+ option('-z', '--zone ID', 'specify the zone') { |z| set(zone: z) }
83
+ action do |*ids|
84
+ die('You need to specify te record ID') if ids.empty?
85
+ zone { |z| ids.each { |r| destroy("zones/#{z}/dns_records/#{r}") } }
86
+ end
87
+ end
88
+
89
+ action do
90
+ template('{{id}} {{type}} {{name}} {{content}}')
91
+ zone { |z| show("zones/#{z}/dns_records") }
92
+ end
93
+ end
94
+
95
+ # Yields the zone popped from the params, or dies
96
+ def zone(&block)
97
+ @zone ||= params.delete(:zone)
98
+ die('You need to specify the zone (-z)') unless @zone
99
+ yield @zone
100
+ end
101
+
102
+ # A place to gather params for queries
103
+ def params
104
+ @params ||= {}
105
+ end
106
+
107
+ # Sets a param for a query (used by options)
108
+ def set(params = {})
109
+ self.params.merge!(params)
110
+ end
111
+
112
+ # Creates a record (using params)
113
+ def create(path)
114
+ output { post(path, params) }
115
+ end
116
+
117
+ # Updates a record (using params)
118
+ def update(path)
119
+ output { patch(path, params) }
120
+ end
121
+
122
+ # Gets and shows a single resource
123
+ def show(path)
124
+ output { get(path) }
125
+ end
126
+
127
+ # Deletes and shows a resource
128
+ def destroy(path)
129
+ output { delete(path) }
130
+ end
131
+
132
+ # Gets and lists multiple resources
133
+ def list(path)
134
+ output { get(path) }
135
+ end
136
+
137
+ # Gets a resource
138
+ def get(path)
139
+ time("GET #{path}") { Cloudflarer.new.get(path) }
140
+ end
141
+
142
+ # Updates a resource (using params)
143
+ def patch(path, params)
144
+ time("PATCH #{path}") { Cloudflarer.new.patch(path, params) }
145
+ end
146
+
147
+ # Creates a resource (using params)
148
+ def post(path, params)
149
+ time("POST #{path}") { Cloudflarer.new.post(path, params) }
150
+ end
151
+
152
+ # Destroys a resource
153
+ def delete(path)
154
+ time("DELETE #{path}") { Cloudflarer.new.delete(path) }
155
+ end
156
+
157
+ # Times the block, which should return something with a status
158
+ def time(msg, &block)
159
+ return(yield) unless $verbose
160
+ print "#{msg}..."
161
+ t = Time.now.to_f
162
+ response = yield
163
+ print "(%0.2f ms) " % (Time.now.to_f - t)
164
+ if info = response['result_info']
165
+ print "[%s/%s/%s/%s] " %
166
+ info.values_at(*%w(page per_page count total_count)).map(&:to_s)
167
+ end
168
+ puts "OK" if response.fetch('success')
169
+ puts "FAIL" unless response.fetch('success')
170
+ response
171
+ end
172
+
173
+ # Gets the formatter
174
+ def format(&block)
175
+ object = yield
176
+ return object if object.is_a?(String)
177
+ return object.to_yaml if template == 'yaml'
178
+ return object.to_json if template == 'json'
179
+ return render(template, object) if template.is_a?(String)
180
+ return tablualte { yield } if template.nil?
181
+ raise "Invalid template: #{template}"
182
+ end
183
+
184
+ # Gets the template with which to present the object
185
+ def template(template = nil)
186
+ $template ||= template
187
+ $template || '{{id}} {{name}}'
188
+ end
189
+
190
+ # Renders the given object through the Mustache template
191
+ def render(template, object)
192
+ return object.map { |o| render(template, o) } if object.is_a?(Array)
193
+ Mustache.render(template, object)
194
+ end
195
+
196
+ # Filters results, if required. Currently doesn't do anything.
197
+ def filter(&block)
198
+ result = yield
199
+ return result.map { |o| filter { o } } if result.is_a?(Array)
200
+ result
201
+ end
202
+
203
+ # Outputs in the format requested
204
+ def output(&block)
205
+ response = yield
206
+ if response.fetch('success')
207
+ puts format { filter { response.fetch('result') } }
208
+ else
209
+ puts format { response.fetch('error') }
210
+ end
211
+ end
212
+
213
+ # Print the result of the block, if $debug is on
214
+ def debug(msg, &block)
215
+ result = yield
216
+ puts "-- #{msg} #{'-' * (74 - msg.length)}" if $debug
217
+ result
218
+ end
219
+
220
+ # Print the message to STDERR and exit (non-zero)
221
+ def die(msg, code = 1)
222
+ STDERR.puts msg
223
+ exit code
224
+ end
225
+ end
226
+ end
227
+
228
+ if __FILE__ == $0
229
+ Cloudflarer::CLI.parse!(ARGV)
230
+ end
@@ -0,0 +1,45 @@
1
+ require 'faraday'
2
+ require 'json'
3
+ require 'hipsterhash'
4
+
5
+ module Cloudflarer
6
+ class Client
7
+ API_VERSION = 'v4'.freeze
8
+ HOST = 'api.cloudflare.com'.freeze
9
+ PATH = "/client/#{API_VERSION}".freeze
10
+ URL = "https://#{HOST}#{PATH}".freeze
11
+
12
+ def initialize(api_key: nil, email: nil)
13
+ api_key ||= ENV['CLOUDFLARE_API_KEY']
14
+ raise ArgumentError, "API Key is required." unless api_key
15
+ email ||= ENV['CLOUDFLARE_EMAIL']
16
+ raise ArgumentError, "Email is required" unless email
17
+ headers = {
18
+ 'X-Auth-Key' => api_key,
19
+ 'X-Auth-Email' => email,
20
+ 'Content-Type': 'application/json'
21
+ }
22
+ @connection = Faraday.new(URL, headers: headers)
23
+ end
24
+
25
+ %i(get head delete options).each do |verb|
26
+ define_method verb do |path|
27
+ respond { @connection.public_send(verb, path) }
28
+ end
29
+ end
30
+
31
+ %i(put post patch).each do |verb|
32
+ define_method verb do |path, data={}|
33
+ respond { @connection.public_send(verb, path, data.to_json) }
34
+ end
35
+ end
36
+
37
+ private
38
+
39
+ def respond(&block)
40
+ JSON.parse(yield.body)
41
+ end
42
+
43
+ Error = Class.new(Exception)
44
+ end
45
+ end
@@ -0,0 +1,4 @@
1
+ module Cloudflarer
2
+ VERSION = '0.0.1'.freeze
3
+ API_VERSION = '4'.freeze
4
+ end
metadata ADDED
@@ -0,0 +1,160 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cloudflarer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - JJ Buckley
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: hipsterhash
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.0.4
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: ordu
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.0.4
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.4
55
+ - !ruby/object:Gem::Dependency
56
+ name: mustache
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.12'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.12'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '10.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '10.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '5.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '5.0'
111
+ description: |
112
+ A Ruby API library for managing your cloudflare domains and settings. Comes
113
+ with a simple command-line tool.
114
+ email:
115
+ - jj@bjjb.org
116
+ executables:
117
+ - cloudflarer
118
+ extensions: []
119
+ extra_rdoc_files: []
120
+ files:
121
+ - ".gitignore"
122
+ - ".travis.yml"
123
+ - CODE_OF_CONDUCT.md
124
+ - Gemfile
125
+ - LICENSE.txt
126
+ - README.md
127
+ - Rakefile
128
+ - bin/console
129
+ - bin/setup
130
+ - cloudflarer.gemspec
131
+ - exe/cloudflarer
132
+ - lib/cloudflarer.rb
133
+ - lib/cloudflarer/cli.rb
134
+ - lib/cloudflarer/client.rb
135
+ - lib/cloudflarer/version.rb
136
+ homepage: http://bjjb.gitlab.com/cloudflarer
137
+ licenses:
138
+ - MIT
139
+ metadata: {}
140
+ post_install_message:
141
+ rdoc_options: []
142
+ require_paths:
143
+ - lib
144
+ required_ruby_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ requirements: []
155
+ rubyforge_project:
156
+ rubygems_version: 2.5.1
157
+ signing_key:
158
+ specification_version: 4
159
+ summary: A Ruby/Cloudflare CLI/API-client
160
+ test_files: []