potassium 1.2.0 → 1.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/potassium/cli.rb +3 -3
- data/lib/potassium/cli/commands/create.rb +3 -0
- data/lib/potassium/templates/application/generator.rb +4 -4
- data/lib/potassium/templates/application/recipes/unicorn.rb +5 -0
- data/lib/potassium/templates/application/template.rb +1 -0
- data/lib/potassium/version.rb +1 -1
- metadata +3 -3
- data/lib/potassium.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bf9de3b5b4c8ea4ae586b8ae920b4ed048c9e95
|
4
|
+
data.tar.gz: b412419918408d64783639d1358750649f6e4817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e9bd1706d30902aba3383e10bd66e3ac845cb8e0f0954286d1aaf7d395cc7500a1a764eada0037fa1e2506582b55a5a397fa969091b1b21186c5d6cfa07149e
|
7
|
+
data.tar.gz: d7774fae9a5548a833c8d577610e5de95af178f5ab5b8f69962c2b8d7c44986ada511114314adb13cf61607cdd4309e3f2975009336878c05e2f5d5c7c50dc22
|
data/CHANGELOG.md
CHANGED
data/lib/potassium/cli.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "potassium/version"
|
2
|
+
require "gli"
|
3
3
|
|
4
4
|
module Potassium::CLI
|
5
5
|
extend GLI::App
|
@@ -7,7 +7,7 @@ module Potassium::CLI
|
|
7
7
|
version Potassium::VERSION
|
8
8
|
hide_commands_without_desc true
|
9
9
|
|
10
|
-
commands_from
|
10
|
+
commands_from "potassium/cli/commands"
|
11
11
|
|
12
12
|
exit Potassium::CLI.run(ARGV)
|
13
13
|
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
module Potassium::CLI
|
2
2
|
command :create do |c|
|
3
3
|
c.action do |global_options, options, args|
|
4
|
+
require "potassium/templates/application/generator"
|
5
|
+
require "potassium/template_finder"
|
6
|
+
|
4
7
|
template_finder = Potassium::TemplateFinder.new
|
5
8
|
template = template_finder.default_template
|
6
9
|
template.source_paths << Rails::Generators::AppGenerator.source_root
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require "rails/generators"
|
2
|
+
require "rails/generators/rails/app/app_generator"
|
3
|
+
require "inquirer"
|
4
4
|
|
5
5
|
module Potassium
|
6
6
|
class ApplicationGenerator < Rails::Generators::AppGenerator
|
7
7
|
def finish_template
|
8
|
-
require_relative
|
8
|
+
require_relative "./helpers/template-dsl"
|
9
9
|
TemplateDSL.extend_dsl(self, source_path: __FILE__)
|
10
10
|
template_location = File.expand_path('./template.rb', File.dirname(__FILE__))
|
11
11
|
instance_eval File.read(template_location), template_location
|
data/lib/potassium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: potassium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- juliogarciag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -96,7 +96,6 @@ files:
|
|
96
96
|
- Rakefile
|
97
97
|
- bin/potassium
|
98
98
|
- docs/dsl.md
|
99
|
-
- lib/potassium.rb
|
100
99
|
- lib/potassium/cli.rb
|
101
100
|
- lib/potassium/cli/commands/create.rb
|
102
101
|
- lib/potassium/template_finder.rb
|
@@ -140,6 +139,7 @@ files:
|
|
140
139
|
- lib/potassium/templates/application/recipes/rbenv.rb
|
141
140
|
- lib/potassium/templates/application/recipes/readme.rb
|
142
141
|
- lib/potassium/templates/application/recipes/testing.rb
|
142
|
+
- lib/potassium/templates/application/recipes/unicorn.rb
|
143
143
|
- lib/potassium/templates/application/template.rb
|
144
144
|
- lib/potassium/version.rb
|
145
145
|
- potassium.gemspec
|