teapot 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/teapot +1 -1
- data/lib/teapot/command.rb +3 -2
- data/lib/teapot/controller/create.rb +2 -2
- data/lib/teapot/loader.rb +4 -1
- data/lib/teapot/version.rb +1 -1
- data/teapot.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4bfd194ca00174f46b3aaabbbda830fc54eef84
|
4
|
+
data.tar.gz: 32625f507076639c8c44ad272d8d2462cf436ec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c2abd3f954db6ac4e05caaeea24c77ba36bea3b59b4ad37cc935e8408bfe33cc62d7009e0dde44b33cd61941170a3047c163b01e6217a9db5b485b7ad7f1197
|
7
|
+
data.tar.gz: 73348cf334edf075ab61e38bcc2e6e29ad778b987059d153ef2875e472c655f99d34215038a9e764bb6f30dfbef4db5624fabd42ef045c45bfd14441d79675a0
|
data/bin/teapot
CHANGED
@@ -57,7 +57,7 @@ OPTIONS = Trollop::options(ARGUMENTS) do
|
|
57
57
|
opt :only, "Only compiled direct dependencies."
|
58
58
|
opt :continuous, "Run the build graph continually (experimental).", :type => :boolean, :short => :n
|
59
59
|
|
60
|
-
opt :in, "Work in the given directory.", :type => :string
|
60
|
+
opt :in, "Work in the given directory.", :type => :string
|
61
61
|
opt :unlock, "Don't use package lockfile when fetching."
|
62
62
|
|
63
63
|
opt :force, "Force the operation if it would otherwise be be stopped due to a warning."
|
data/lib/teapot/command.rb
CHANGED
@@ -30,6 +30,7 @@ require_relative 'controller/visualize'
|
|
30
30
|
require_relative 'repository'
|
31
31
|
|
32
32
|
require 'trollop'
|
33
|
+
require 'pry'
|
33
34
|
|
34
35
|
module Teapot
|
35
36
|
# This module implements all top-level teapot commands.
|
@@ -87,9 +88,9 @@ module Teapot
|
|
87
88
|
|
88
89
|
def create
|
89
90
|
project_name, source, *packages = @arguments
|
90
|
-
project_path = @options
|
91
|
+
project_path = @options[:in] || project_name.gsub(/\s+/, '-').downcase
|
91
92
|
|
92
|
-
root = Build::Files::Path.
|
93
|
+
root = Build::Files::Path.expand(project_path)
|
93
94
|
|
94
95
|
if root.exist?
|
95
96
|
abort "#{root} already exists!".color(:red)
|
@@ -31,9 +31,9 @@ module Teapot
|
|
31
31
|
log "Creating project named #{project_name} at path #{@root}...".color(:cyan)
|
32
32
|
|
33
33
|
File.open(@root + TEAPOT_FILE, "w") do |output|
|
34
|
-
output.puts "\# Teapot configuration generated at #{Time.now.to_s}", ''
|
34
|
+
output.puts "\# Teapot v#{VERSION} configuration generated at #{Time.now.to_s}", ''
|
35
35
|
|
36
|
-
output.puts "required_version #{
|
36
|
+
output.puts "required_version #{LOADER_VERSION.dump}", ''
|
37
37
|
|
38
38
|
output.puts "\# Build Targets", ''
|
39
39
|
|
data/lib/teapot/loader.rb
CHANGED
@@ -31,7 +31,10 @@ require 'build/files'
|
|
31
31
|
require 'system'
|
32
32
|
|
33
33
|
module Teapot
|
34
|
-
|
34
|
+
# Cannot load packages newer than this:
|
35
|
+
LOADER_VERSION = "1.1"
|
36
|
+
|
37
|
+
# Cannot load packages older than this:
|
35
38
|
MINIMUM_LOADER_VERSION = "1.0"
|
36
39
|
|
37
40
|
class IncompatibleTeapotError < StandardError
|
data/lib/teapot/version.rb
CHANGED
data/teapot.gemspec
CHANGED
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_dependency "graphviz", "~> 0.3.0"
|
37
37
|
|
38
38
|
spec.add_dependency "build", "~> 1.0.7"
|
39
|
+
spec.add_dependency "build-files", "~> 1.0.4"
|
39
40
|
|
40
41
|
# This could be a good option in the future for teapot fetch:
|
41
42
|
#spec.add_dependency "rugged"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teapot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.0.7
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: build-files
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.0.4
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.0.4
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|