teapot 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eddf99e30dfd202f8c03b4b075c276eb4eccf6a6
4
- data.tar.gz: b739803f53360546415b4f6aa91f51677b2b8dd5
3
+ metadata.gz: b2941cf53da430cdf791523506bc5d24df115506
4
+ data.tar.gz: cc7092f377444bbc67dd3232137626418f58971f
5
5
  SHA512:
6
- metadata.gz: a76805afdfba7756138fd61d50d9d8cbc63e05bd5e66857d23d94e45bef06206cd0a187f016cd0c4975f45eaf6c22e9a7226fc6f869e90b268a243d70bbcdaaa
7
- data.tar.gz: 3df933c8591927c119010d54377a1679a59b40281d5793c9a3e68acafbf8a3c2a3660da7e91172940d1f014b9df8d91a56714e213d1d943247b106b05ede56e8
6
+ metadata.gz: d3c0fabbb37b1d116467422a3309370a30e04c429dd8ca2c3b297096ae58b4143a5842c59290cd7a214bad74e244225239db32167b3788ebe9c4c588aba7dcf2
7
+ data.tar.gz: 0a967401cf2bc91f38c71b2a3bb1c622f155bbe91f1e18b4a43373af8c5e5f3537ba6da6f00226dfc7f1ddfdb3ef95401eb0f02f997ea0ec7e71ba56ba5522aa
data/.rspec CHANGED
@@ -1,3 +1,5 @@
1
- --color
2
- --format documentation
1
+ --color
2
+ --format documentation
3
+ --backtrace
3
4
  --warnings
5
+ --require spec_helper
@@ -1,18 +1,19 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ dist: trusty
4
+ cache: bundler
3
5
  before_install:
4
6
  # For testing purposes:
5
- - git config --global user.name "Samuel Williams"
6
7
  - git config --global user.email "samuel@oriontransfer.net"
8
+ - git config --global user.name "Samuel Williams"
7
9
  rvm:
8
- - 2.1.8
9
- - 2.2.4
10
- - 2.3.0
10
+ - 2.1
11
+ - 2.2
12
+ - 2.3
13
+ - 2.4
14
+ - jruby-head
11
15
  - ruby-head
12
- - rbx-2
13
- env: COVERAGE=true
14
16
  matrix:
15
- fast_finish: true
16
17
  allow_failures:
17
18
  - rvm: ruby-head
18
- - rvm: "rbx-2"
19
+ - rvm: jruby-head
data/README.md CHANGED
@@ -149,19 +149,21 @@ To only see things exported by your current project, you can run:
149
149
 
150
150
  The new project doesn't define any targets so we can do that now. Add the following to `teapot.rb`:
151
151
 
152
- # Build Targets
153
-
154
- define_target "my-project-tests" do |target|
155
- target.build do
156
- run tests: 'UnitTest', source_files: target.package.path.glob("test/MyProject/**/*.cpp")
157
- end
158
-
159
- target.depends :platform
160
- target.depends "Language/C++11"
161
- target.depends "Library/UnitTest"
162
-
163
- target.provides "Test/MyProject"
152
+ ```ruby
153
+ # Build Targets
154
+
155
+ define_target "my-project-tests" do |target|
156
+ target.build do
157
+ run tests: 'UnitTest', source_files: target.package.path.glob("test/MyProject/**/*.cpp")
164
158
  end
159
+
160
+ target.depends :platform
161
+ target.depends "Language/C++11"
162
+ target.depends "Library/UnitTest"
163
+
164
+ target.provides "Test/MyProject"
165
+ end
166
+ ```
165
167
 
166
168
  We can now build and run unit tests (althoght there aren't any yet):
167
169
 
data/Rakefile CHANGED
@@ -1,8 +1,19 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
 
4
- RSpec::Core::RakeTask.new(:spec) do |task|
5
- task.rspec_opts = ["--require", "simplecov"] if ENV['COVERAGE']
4
+ # Load all rake tasks:
5
+ import(*Dir.glob('tasks/**/*.rake'))
6
+
7
+ RSpec::Core::RakeTask.new(:test)
8
+
9
+ task :environment do
10
+ $LOAD_PATH.unshift File.expand_path('lib', __dir__)
11
+ end
12
+
13
+ task :console => :environment do
14
+ require 'pry'
15
+
16
+ Pry.start
6
17
  end
7
18
 
8
- task :default => :spec
19
+ task :default => :test
@@ -25,8 +25,6 @@ require_relative 'definition'
25
25
  require 'build/environment'
26
26
  require 'build/rulebook'
27
27
 
28
- require 'pry'
29
-
30
28
  module Teapot
31
29
  class BuildError < StandardError
32
30
  end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Teapot
22
- VERSION = "1.3.0"
22
+ VERSION = "1.3.1"
23
23
  end
@@ -0,0 +1,29 @@
1
+
2
+ if ENV['COVERAGE'] || ENV['TRAVIS']
3
+ begin
4
+ require 'simplecov'
5
+
6
+ SimpleCov.start do
7
+ add_filter "/spec/"
8
+ end
9
+
10
+ if ENV['TRAVIS']
11
+ require 'coveralls'
12
+ Coveralls.wear!
13
+ end
14
+ rescue LoadError
15
+ warn "Could not load simplecov: #{$!}"
16
+ end
17
+ end
18
+
19
+ require "bundler/setup"
20
+ require "teapot"
21
+
22
+ RSpec.configure do |config|
23
+ # Enable flags like --only-failures and --next-failure
24
+ config.example_status_persistence_file_path = ".rspec_status"
25
+
26
+ config.expect_with :rspec do |c|
27
+ c.syntax = :expect
28
+ end
29
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teapot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -177,7 +177,6 @@ extra_rdoc_files: []
177
177
  files:
178
178
  - ".gitignore"
179
179
  - ".rspec"
180
- - ".simplecov"
181
180
  - ".travis.yml"
182
181
  - Gemfile
183
182
  - Gemfile.local
@@ -214,6 +213,7 @@ files:
214
213
  - materials/kurocha.svg
215
214
  - materials/teapot.png
216
215
  - materials/teapot.svg
216
+ - spec/spec_helper.rb
217
217
  - spec/teapot/command_spec.rb
218
218
  - spec/teapot/context_spec.rb
219
219
  - spec/teapot/context_spec/teapot.rb
@@ -254,6 +254,7 @@ signing_key:
254
254
  specification_version: 4
255
255
  summary: Teapot is a tool for managing complex cross-platform builds.
256
256
  test_files:
257
+ - spec/spec_helper.rb
257
258
  - spec/teapot/command_spec.rb
258
259
  - spec/teapot/context_spec.rb
259
260
  - spec/teapot/context_spec/teapot.rb
data/.simplecov DELETED
@@ -1,9 +0,0 @@
1
-
2
- SimpleCov.start do
3
- add_filter "/spec/"
4
- end
5
-
6
- if ENV['TRAVIS']
7
- require 'coveralls'
8
- Coveralls.wear!
9
- end