dslimple 1.0.0 → 1.0.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: d3524b1943dd7ea604e2dc0405d806500a4c5c3f
4
- data.tar.gz: bbd8df2e9fa8193f6fa6941784503115335a0e9b
3
+ metadata.gz: cbf7f4149dcbade896ca6a2e726c8a37fbd544db
4
+ data.tar.gz: 972fd40427086e75455b684a1db193df36fe2870
5
5
  SHA512:
6
- metadata.gz: b50b823159fdbcb21b32c6db9723a0728f951affc184e354b3e786d48098042c552ce1dbf74c150f93db37aedb51d1803b7c03d6d51f8163d91b0871017b83da
7
- data.tar.gz: 4f1ea991bdbe56a6a6e8c58ccc444c4e22bacff0b0cc4da2f0a8796e49e897383720a2a0565414d50dcabb5908637b77a53901a1f63d73755c4522273b8a40da
6
+ metadata.gz: c13675d9aa205ddd94370d156146930cfa0ed9e8d93008397936c25f7660d557ddf4e91e662868c82d4530943ba7f68565edc63494f46f61bde694bbf2eba0dd
7
+ data.tar.gz: c0ddde8ee688d609710d89d7d11e38a211203bac8ba76e29a34e4a91c5d6c5b6b2f129530e9c30036c6807793ef7925dc471cbc9479873022d39b6f03447993d
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # DSLimple
2
2
 
3
+ ![After DSLimple](http://zeny.io/blog/2016/02/14/dslimple-v1/after-dslimple.png)
4
+
3
5
  __DSLimple__ is a tool to manage [DNSimple](https://dnsimple.com/).
4
6
 
5
7
  It defines the state of DNSimple using DSL, and updates DNSimple according to DSL.
@@ -23,8 +25,8 @@ Or install it yourself as:
23
25
  ## Usage
24
26
 
25
27
  ```shell
26
- export DLSIMPLE_EMAIL="..."
27
- export DLSIMPLE_API_TOKEN="..."
28
+ export DSLIMPLE_EMAIL="..."
29
+ export DSLIMPLE_API_TOKEN="..."
28
30
  dslimple export -f Domainfile
29
31
  vi Domainfile
30
32
  dslimple apply --dry-run -f Domainfile
data/lib/dslimple/cli.rb CHANGED
@@ -12,7 +12,7 @@ class Dslimple::CLI < Thor
12
12
  class_option :email, type: :string, aliases: %w(-e), desc: 'Your E-Mail address'
13
13
  class_option :api_token, type: :string, aliases: %w(-t), desc: 'Your API token'
14
14
  class_option :domain_token, type: :string, aliases: %w(-dt), desc: 'Your Domain API token'
15
- class_option :sandbox, type: :boolean, default: ENV['DLSIMPLE_ENV'] == 'test', desc: 'Use sandbox API(at sandbox.dnsimple.com)'
15
+ class_option :sandbox, type: :boolean, default: ENV['DSLIMPLE_ENV'] == 'test', desc: 'Use sandbox API(at sandbox.dnsimple.com)'
16
16
  class_option :debug, type: :boolean, default: false
17
17
 
18
18
  desc 'export', 'Export domain specifications'
@@ -52,9 +52,9 @@ class Dslimple::CLI < Thor
52
52
 
53
53
  def api_client
54
54
  @api_client ||= Dnsimple::Client.new(
55
- username: options[:email] || ENV['DLSIMPLE_EMAIL'],
56
- api_token: options[:api_token] || ENV['DLSIMPLE_API_TOKEN'],
57
- domain_api_token: options[:domain_token] || ENV['DLSIMPLE_DOMAIN_TOKEN'],
55
+ username: options[:email] || ENV['DSLIMPLE_EMAIL'],
56
+ api_token: options[:api_token] || ENV['DSLIMPLE_API_TOKEN'],
57
+ domain_api_token: options[:domain_token] || ENV['DSLIMPLE_DOMAIN_TOKEN'],
58
58
  api_endpoint: options[:sandbox] ? SANDBOX_API_ENDPOINT : nil,
59
59
  user_agent: USER_AGENT
60
60
  )
@@ -1,3 +1,3 @@
1
1
  module Dslimple
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dslimple
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
  - Sho Kusano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-13 00:00:00.000000000 Z
11
+ date: 2016-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler