zapnito-cli 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 25206b27fef8d04dac567dfecdbb21a8519b36be
4
+ data.tar.gz: 72ae77e87418272882a984f08066698527b79873
5
+ SHA512:
6
+ metadata.gz: cce487c753dc22b1ea6aaf51a2203f7d4d884723e13c833eb63136201d44cde9d116f93bde272075a6a3c34e736620476da50f5df0fe10fc73d2c70a70520372
7
+ data.tar.gz: 9a5b9b014a2b8797346698e26b64f171eed1f85e7b7a229289d5645ee45a82af4b6d2a04505ec2fc8b2f2b76196e41fced011546eba4679729eddc28c5b2f3d6
@@ -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,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.4
4
+ before_install: gem install bundler -v 1.11.2
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in zapnito-cli.gemspec
4
+ gemspec
5
+
6
+ gem "pry"
7
+
8
+ group :test do
9
+ gem "mocha"
10
+ gem "rspec-its"
11
+ gem "bourne"
12
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 opsb
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,36 @@
1
+ # Zapnito::Cli
2
+
3
+ ## Install
4
+
5
+ $ gem install zapnito-cli
6
+
7
+ Add your api token to `~/.zapnito`
8
+
9
+ {
10
+ "apiToken": "yourZapnitoApiToken"
11
+ }
12
+
13
+ ## Usage
14
+
15
+ ### Create a theme for a tenant
16
+
17
+ $ zapnito theme add
18
+
19
+ ### Publish a theme
20
+
21
+ $ zapnito theme publish
22
+
23
+ ### Preview in browser
24
+
25
+ $ zapnito theme preview
26
+
27
+ ### Generate a preview link to share
28
+
29
+ $ zapnito theme preview_link
30
+
31
+ ## Development options
32
+
33
+ {
34
+ "proxy": "http://localhost:8888",
35
+ "debug": true
36
+ }
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "zapnito/cli"
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,5 @@
1
+ #!/usr/bin/env ruby -wU
2
+
3
+ require 'zapnito/cli'
4
+
5
+ Zapnito::Cli::Main.start(ARGV)
@@ -0,0 +1,24 @@
1
+ require "pry"
2
+
3
+ require "zapnito/cli/version"
4
+ require "zapnito/cli/utils"
5
+ require "zapnito/cli/initializers/configatron"
6
+ require "zapnito/cli/initializers/mime_types"
7
+ require "zapnito/cli/initializers/restclient"
8
+ require "zapnito/cli/models/theme"
9
+ require "zapnito/cli/services/local"
10
+ require "zapnito/cli/services/zapnito"
11
+ require "zapnito/cli/services/s3"
12
+ require "zapnito/cli/services"
13
+ require "zapnito/cli/questions"
14
+ require "thor"
15
+ require "zapnito/cli/commands/theme"
16
+
17
+ module Zapnito
18
+ module Cli
19
+ class Main < Thor
20
+ desc "theme COMMANDS", "Theme control"
21
+ subcommand "theme", Zapnito::Cli::Commands::Theme
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,44 @@
1
+ require "rest-client"
2
+ require "json"
3
+ require "launchy"
4
+ require "highline"
5
+
6
+ module Zapnito
7
+ module Cli
8
+ module Commands
9
+ class Theme < Thor
10
+ desc "add", "add a new tenant"
11
+ def add
12
+ tenant_slug = Questions.which_slug?
13
+ Services.local.create_theme!(tenant_slug)
14
+ end
15
+
16
+ desc "publish", "publishes the theme in the current directory"
17
+ def publish
18
+ theme = Services.local.load
19
+ puts "---> Publishing #{theme.tenant_slug}"
20
+
21
+ release_config = Services.zapnito.s3_upload_urls_for_theme(theme)
22
+ Services.s3.upload_theme(theme, release_config)
23
+ Services.zapnito.build_release(theme)
24
+
25
+ puts "---> Published #{theme.tenant_slug}/#{theme.revision}"
26
+ end
27
+
28
+ desc "preview_link", "show preview link for current theme"
29
+ def preview_link
30
+ theme = Services.local.load
31
+ link = Services.zapnito.preview_link(theme)
32
+ puts "---> #{link}"
33
+ end
34
+
35
+ desc "preview", "preview current theme in browser"
36
+ def preview
37
+ theme = Services.local.load
38
+ link = Services.zapnito.preview_link(theme)
39
+ Launchy.open(link)
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,34 @@
1
+ require "configatron"
2
+ require "json"
3
+
4
+ missing_token_warning = """
5
+ Add your apiToken to ~/.zapnito
6
+ {
7
+ \"apiToken\": \"your_zapnito_api_token\"
8
+ }
9
+
10
+ """
11
+
12
+ begin
13
+ config = JSON.parse(File.read(File.expand_path("~/.zapnito")))
14
+
15
+ configatron.api_token = config["apiToken"] || begin
16
+ puts missing_token_warning
17
+ exit
18
+ end
19
+
20
+ configatron.basepath = config["basepath"] || "https://zapnito.com"
21
+
22
+ configatron.working_dir = begin
23
+ dir_name = Dir.getwd
24
+
25
+ if dir_name =~ /zapnito-cli$/
26
+ File.expand_path(config["developmentThemeDir"])
27
+ else
28
+ dir_name
29
+ end
30
+ end
31
+
32
+ configatron.restclient_proxy = config["proxy"]
33
+ configatron.restclient_log = STDOUT if config["debug"]
34
+ end
@@ -0,0 +1,5 @@
1
+ require 'mime/types'
2
+
3
+ plain_text = MIME::Types['text/plain'].first
4
+ plain_text.add_extensions("scss")
5
+ MIME::Types.index_extensions(plain_text)
@@ -0,0 +1,4 @@
1
+ require "restclient"
2
+
3
+ RestClient.proxy = configatron.restclient_proxy if configatron.restclient_proxy
4
+ RestClient.log = configatron.restclient_log
@@ -0,0 +1,41 @@
1
+ module Zapnito
2
+ module Cli
3
+ module Models
4
+ class Theme
5
+ attr_reader :tenant_slug, :revision, :files
6
+
7
+ def initialize(path)
8
+ @path = with_trailing_slash(path)
9
+
10
+ @tenant_slug = File.basename(path)
11
+ @revision = build_revision(@path)
12
+ @files = build_files(@path)
13
+ end
14
+
15
+ def absolute_path_for(file)
16
+ File.join(@path, file)
17
+ end
18
+
19
+ def mime_type_for(file)
20
+ Utils.mime_type_for(file)
21
+ end
22
+
23
+ private
24
+
25
+ def with_trailing_slash(text)
26
+ text.gsub(/([^\/]{1,1})$/, '\1/')
27
+ end
28
+
29
+ def build_files(theme_path)
30
+ absolute_paths = Dir[File.join(theme_path, '**', '*')]
31
+ absolute_file_paths = absolute_paths.reject { |path| FileTest.directory?(path) }
32
+ absolute_file_paths.map { |path| path.gsub(theme_path, "") }
33
+ end
34
+
35
+ def build_revision(theme_path)
36
+ Utils.checksum_directory(theme_path)
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,25 @@
1
+ module Zapnito
2
+ module Cli
3
+ module Questions
4
+ extend self
5
+
6
+ def which_slug?
7
+ puts
8
+ HighLine.new.choose do |menu|
9
+ menu.prompt = "Which tenant do you want to add? "
10
+ available_slugs.each do |tenant_slug|
11
+ menu.choice(tenant_slug) { tenant_slug }
12
+ end
13
+ end
14
+ end
15
+
16
+ private
17
+
18
+ def available_slugs
19
+ tenant_slugs = Services.zapnito.tenant_slugs
20
+ existing_slugs = Services.local.tenant_slugs
21
+ tenant_slugs - existing_slugs
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,19 @@
1
+ module Zapnito
2
+ module Cli
3
+ module Services
4
+ extend self
5
+
6
+ def local
7
+ @local ||= Local.new
8
+ end
9
+
10
+ def zapnito
11
+ @zapnito ||= Zapnito.new(configatron.api_token)
12
+ end
13
+
14
+ def s3
15
+ @s3 ||= S3.new
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,28 @@
1
+ module Zapnito
2
+ module Cli
3
+ module Services
4
+ class Local
5
+ def load(path = configatron.working_dir)
6
+ Models::Theme.new(path)
7
+ end
8
+
9
+ def tenant_slugs
10
+ Dir.chdir(configatron.working_dir) do
11
+ Dir["*"]
12
+ end
13
+ end
14
+
15
+ def create_theme!(tenant_slug)
16
+ path = File.join(configatron.working_dir, tenant_slug)
17
+ FileUtils.mkdir(path)
18
+ FileUtils.mkdir("#{path}/assets")
19
+ FileUtils.touch("#{path}/assets/.gitkeep")
20
+ File.open("#{path}/tenant.scss", "w+") do |f|
21
+ f.write("@import \"base/main\";")
22
+ end
23
+ puts "---! Created #{tenant_slug}"
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,29 @@
1
+ require "active_support/gzip"
2
+
3
+ module Zapnito
4
+ module Cli
5
+ module Services
6
+ class S3
7
+ def upload_theme(theme, release_config)
8
+ release_config.each do |file_path, upload_url|
9
+ absolute_path = theme.absolute_path_for(file_path)
10
+ content_type = Utils.mime_type_for(file_path)
11
+ file = File.open(absolute_path).read
12
+
13
+ if should_gzip?(file_path)
14
+ RestClient.put(upload_url, file, content_type: content_type)
15
+ else
16
+ RestClient.put(upload_url, Utils.gzipped(file), content_type: content_type, content_encoding: "gzip")
17
+ end
18
+ end
19
+ end
20
+
21
+ private
22
+
23
+ def should_gzip?(file_path)
24
+ file_path =~ /scss$/
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,80 @@
1
+ module Zapnito
2
+ module Cli
3
+ module Services
4
+ class Zapnito
5
+ def initialize(api_token)
6
+ @api_token = api_token
7
+ end
8
+
9
+ def tenant_slugs
10
+ tenants = get_json("/theme_tenants.json")["tenants"]
11
+ tenants.map { |t| t["slug"] }.sort
12
+ end
13
+
14
+ def s3_upload_urls_for_theme(theme)
15
+ post_json("/themes/#{theme.tenant_slug}/uploads", build_payload(theme))
16
+ end
17
+
18
+ def build_release(theme)
19
+ put_json("/themes/#{theme.tenant_slug}/releases/#{theme.revision}")
20
+ end
21
+
22
+ def preview_link(theme)
23
+ url("/themes/#{theme.tenant_slug}/previews/#{theme.revision}")
24
+ end
25
+
26
+ private
27
+
28
+ def build_payload(theme)
29
+ JSON.dump({
30
+ revision: theme.revision,
31
+ resources: theme.files.each_with_object({}) do |theme_file, resources|
32
+ resources[theme_file] = { "contentType" => theme.mime_type_for(theme_file) }
33
+ end
34
+ })
35
+ end
36
+
37
+ def put_json(path)
38
+ RestClient.put(
39
+ url(path),
40
+ nil,
41
+ content_type: :json,
42
+ accept: :json,
43
+ "AUTHORIZATION" => authorization_header
44
+ )
45
+ end
46
+
47
+ def get_json(path)
48
+ response = RestClient.get(
49
+ url(path),
50
+ content_type: :json,
51
+ accept: :json,
52
+ "AUTHORIZATION" => authorization_header
53
+ )
54
+
55
+ JSON.parse(response)
56
+ end
57
+
58
+ def post_json(path, payload)
59
+ response = RestClient.post(
60
+ url(path),
61
+ payload,
62
+ content_type: :json,
63
+ accept: :json,
64
+ "AUTHORIZATION" => authorization_header
65
+ )
66
+
67
+ JSON.parse(response)
68
+ end
69
+
70
+ def authorization_header
71
+ "Token token=\"#{@api_token}\""
72
+ end
73
+
74
+ def url(path)
75
+ "#{configatron.basepath}#{path}"
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,30 @@
1
+ module Zapnito
2
+ module Cli
3
+ module Utils
4
+ extend self
5
+
6
+ def mime_type_for(file)
7
+ mime_type = MIME::Types.type_for(file).first
8
+ raise "Unable to determine mime_type for #{file}" unless mime_type
9
+ mime_type.to_s
10
+ end
11
+
12
+ def checksum_directory(path)
13
+ files = Dir["#{path}/**/*"].reject{|f| File.directory?(f)}
14
+
15
+ directory_md5 = Digest::MD5.new.tap do |md5|
16
+ files.each do |f|
17
+ md5 << f
18
+ md5 << File.read(f)
19
+ end
20
+ end
21
+
22
+ directory_md5.hexdigest
23
+ end
24
+
25
+ def gzipped(file)
26
+ ActiveSupport::Gzip.compress(file)
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,5 @@
1
+ module Zapnito
2
+ module Cli
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,41 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'zapnito/cli/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "zapnito-cli"
8
+ spec.version = Zapnito::Cli::VERSION
9
+ spec.authors = ["opsb"]
10
+ spec.email = ["olly@zapnito.com"]
11
+
12
+ spec.summary = %q{Command line tools for Zapnito}
13
+ spec.description = %q{Includes commands for managing Zapnito themes}
14
+ spec.homepage = "https://github.com/opsb/zapnito-cli"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "thor", "0.19.1"
23
+ spec.add_dependency "rest-client", "2.0.0.rc2"
24
+ spec.add_dependency "launchy", "2.4.3"
25
+ spec.add_dependency "mime-types", "2.99.1"
26
+ spec.add_dependency "netrc", "0.11.0"
27
+ spec.add_dependency "domain_name", "0.5.20160310"
28
+ spec.add_dependency "addressable", "2.4.0"
29
+ spec.add_dependency "unf", "0.1.4"
30
+ spec.add_dependency "unf_ext", "0.0.7.2"
31
+ spec.add_dependency "activesupport", "4.2.6"
32
+ spec.add_dependency "highline", "1.7.8"
33
+ spec.add_dependency "configatron", "4.5.0"
34
+ spec.add_dependency "json", "1.8.3"
35
+ spec.add_dependency "thread_safe", "0.3.4"
36
+ spec.add_dependency "minitest", "5.1"
37
+
38
+ spec.add_development_dependency "bundler", "~> 1.11"
39
+ spec.add_development_dependency "rake", "~> 10.0"
40
+ spec.add_development_dependency "rspec", "~> 3.0"
41
+ end
metadata ADDED
@@ -0,0 +1,320 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: zapnito-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - opsb
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.19.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.19.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rest-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.0.rc2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.0.rc2
41
+ - !ruby/object:Gem::Dependency
42
+ name: launchy
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.4.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.4.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: mime-types
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.99.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 2.99.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: netrc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 0.11.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.11.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: domain_name
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 0.5.20160310
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 0.5.20160310
97
+ - !ruby/object:Gem::Dependency
98
+ name: addressable
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 2.4.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 2.4.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: unf
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '='
116
+ - !ruby/object:Gem::Version
117
+ version: 0.1.4
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '='
123
+ - !ruby/object:Gem::Version
124
+ version: 0.1.4
125
+ - !ruby/object:Gem::Dependency
126
+ name: unf_ext
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '='
130
+ - !ruby/object:Gem::Version
131
+ version: 0.0.7.2
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '='
137
+ - !ruby/object:Gem::Version
138
+ version: 0.0.7.2
139
+ - !ruby/object:Gem::Dependency
140
+ name: activesupport
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '='
144
+ - !ruby/object:Gem::Version
145
+ version: 4.2.6
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '='
151
+ - !ruby/object:Gem::Version
152
+ version: 4.2.6
153
+ - !ruby/object:Gem::Dependency
154
+ name: highline
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '='
158
+ - !ruby/object:Gem::Version
159
+ version: 1.7.8
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '='
165
+ - !ruby/object:Gem::Version
166
+ version: 1.7.8
167
+ - !ruby/object:Gem::Dependency
168
+ name: configatron
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '='
172
+ - !ruby/object:Gem::Version
173
+ version: 4.5.0
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '='
179
+ - !ruby/object:Gem::Version
180
+ version: 4.5.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: json
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - '='
186
+ - !ruby/object:Gem::Version
187
+ version: 1.8.3
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - '='
193
+ - !ruby/object:Gem::Version
194
+ version: 1.8.3
195
+ - !ruby/object:Gem::Dependency
196
+ name: thread_safe
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - '='
200
+ - !ruby/object:Gem::Version
201
+ version: 0.3.4
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '='
207
+ - !ruby/object:Gem::Version
208
+ version: 0.3.4
209
+ - !ruby/object:Gem::Dependency
210
+ name: minitest
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - '='
214
+ - !ruby/object:Gem::Version
215
+ version: '5.1'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '='
221
+ - !ruby/object:Gem::Version
222
+ version: '5.1'
223
+ - !ruby/object:Gem::Dependency
224
+ name: bundler
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '1.11'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '1.11'
237
+ - !ruby/object:Gem::Dependency
238
+ name: rake
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '10.0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '10.0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rspec
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: '3.0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
263
+ - !ruby/object:Gem::Version
264
+ version: '3.0'
265
+ description: Includes commands for managing Zapnito themes
266
+ email:
267
+ - olly@zapnito.com
268
+ executables:
269
+ - zapnito
270
+ extensions: []
271
+ extra_rdoc_files: []
272
+ files:
273
+ - ".gitignore"
274
+ - ".travis.yml"
275
+ - Gemfile
276
+ - LICENSE.txt
277
+ - README.md
278
+ - Rakefile
279
+ - bin/console
280
+ - bin/setup
281
+ - exe/zapnito
282
+ - lib/zapnito/cli.rb
283
+ - lib/zapnito/cli/commands/theme.rb
284
+ - lib/zapnito/cli/initializers/configatron.rb
285
+ - lib/zapnito/cli/initializers/mime_types.rb
286
+ - lib/zapnito/cli/initializers/restclient.rb
287
+ - lib/zapnito/cli/models/theme.rb
288
+ - lib/zapnito/cli/questions.rb
289
+ - lib/zapnito/cli/services.rb
290
+ - lib/zapnito/cli/services/local.rb
291
+ - lib/zapnito/cli/services/s3.rb
292
+ - lib/zapnito/cli/services/zapnito.rb
293
+ - lib/zapnito/cli/utils.rb
294
+ - lib/zapnito/cli/version.rb
295
+ - zapnito-cli.gemspec
296
+ homepage: https://github.com/opsb/zapnito-cli
297
+ licenses:
298
+ - MIT
299
+ metadata: {}
300
+ post_install_message:
301
+ rdoc_options: []
302
+ require_paths:
303
+ - lib
304
+ required_ruby_version: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - ">="
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
309
+ required_rubygems_version: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ requirements: []
315
+ rubyforge_project:
316
+ rubygems_version: 2.6.3
317
+ signing_key:
318
+ specification_version: 4
319
+ summary: Command line tools for Zapnito
320
+ test_files: []