paper_house 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +46 -12
- data/LICENSE +674 -0
- data/README.md +18 -10
- data/Rakefile +7 -117
- data/features/executable_task.feature +6 -0
- data/features/step_definitions/paper_house_steps.rb +1 -1
- data/features/support/env.rb +3 -32
- data/lib/paper_house/auto_depends.rb +4 -23
- data/lib/paper_house/build_failed.rb +18 -0
- data/lib/paper_house/build_task.rb +10 -24
- data/lib/paper_house/cc_options.rb +1 -23
- data/lib/paper_house/dependency.rb +1 -23
- data/lib/paper_house/executable_task.rb +1 -27
- data/lib/paper_house/library_task.rb +1 -23
- data/lib/paper_house/linker_options.rb +1 -23
- data/lib/paper_house/platform.rb +11 -32
- data/lib/paper_house/ruby_extension_task.rb +1 -27
- data/lib/paper_house/safe_popen.rb +1 -23
- data/lib/paper_house/shared_library_task.rb +1 -27
- data/lib/paper_house/static_library_task.rb +2 -24
- data/lib/paper_house/version.rb +2 -24
- data/lib/paper_house.rb +1 -23
- data/paper_house.gemspec +11 -9
- data/spec/paper_house/executable_task_spec.rb +26 -53
- data/spec/paper_house/ruby_extension_task_spec.rb +26 -53
- data/spec/paper_house/shared_library_task_spec.rb +30 -57
- data/spec/paper_house/static_library_task_spec.rb +41 -68
- data/spec/paper_house/version_spec.rb +1 -23
- data/spec/spec_helper.rb +3 -31
- metadata +24 -67
- data/.gitignore +0 -19
- data/.rspec +0 -3
- data/.rubocop.yml +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -18
- data/Gemfile +0 -35
- data/Guardfile +0 -22
- data/cucumber.yml +0 -3
- data/examples/executable/.gitignore +0 -4
- data/examples/executable/Rakefile +0 -5
- data/examples/executable/Rakefile.llvm +0 -5
- data/examples/executable/hello.c +0 -7
- data/examples/executable_subdirs/.gitignore +0 -4
- data/examples/executable_subdirs/Rakefile +0 -11
- data/examples/executable_subdirs/includes/hello.h +0 -1
- data/examples/executable_subdirs/sources/hello.c +0 -6
- data/examples/executable_subdirs/sources/main.c +0 -8
- data/examples/ruby_extension/.gitignore +0 -5
- data/examples/ruby_extension/Rakefile +0 -5
- data/examples/ruby_extension/Rakefile.llvm +0 -5
- data/examples/ruby_extension/hello.c +0 -6
- data/examples/shared_library/.gitignore +0 -8
- data/examples/shared_library/Rakefile +0 -23
- data/examples/shared_library/Rakefile.llvm +0 -25
- data/examples/shared_library/hello.c +0 -6
- data/examples/shared_library/hello.h +0 -1
- data/examples/shared_library/main.c +0 -7
- data/examples/shared_library_subdirs/.gitignore +0 -8
- data/examples/shared_library_subdirs/Rakefile +0 -28
- data/examples/shared_library_subdirs/includes/hello.h +0 -1
- data/examples/shared_library_subdirs/sources/hello.c +0 -6
- data/examples/shared_library_subdirs/sources/main.c +0 -8
- data/examples/static_library/.gitignore +0 -7
- data/examples/static_library/Rakefile +0 -14
- data/examples/static_library/Rakefile.llvm +0 -14
- data/examples/static_library/hello.c +0 -6
- data/examples/static_library/hello.h +0 -1
- data/examples/static_library/main.c +0 -7
- data/examples/static_library_subdirs/.gitignore +0 -7
- data/examples/static_library_subdirs/Rakefile +0 -19
- data/examples/static_library_subdirs/includes/hello.h +0 -1
- data/examples/static_library_subdirs/sources/hello.c +0 -6
- data/examples/static_library_subdirs/sources/main.c +0 -8
- data/rake_simplecov_hook.rb +0 -24
- data/rubocop-todo.yml +0 -6
@@ -1,19 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
require 'paper_house'
|
4
|
-
|
5
|
-
task :hello => :libhello
|
6
|
-
|
7
|
-
PaperHouse::StaticLibraryTask.new :libhello do | task |
|
8
|
-
task.library_name = 'hello'
|
9
|
-
task.target_directory = 'objects'
|
10
|
-
task.sources = 'sources/hello.c'
|
11
|
-
task.includes = 'includes'
|
12
|
-
task.cflags = %w(-Werror -Wall -Wextra)
|
13
|
-
end
|
14
|
-
|
15
|
-
PaperHouse::ExecutableTask.new :hello do | task |
|
16
|
-
task.sources = 'sources/main.c'
|
17
|
-
task.includes = 'includes'
|
18
|
-
task.ldflags = '-Lobjects'
|
19
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
void print_hello();
|
data/rake_simplecov_hook.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'rubygems'
|
3
|
-
require 'simplecov'
|
4
|
-
|
5
|
-
def scenario_name
|
6
|
-
File.basename Dir.pwd
|
7
|
-
end
|
8
|
-
|
9
|
-
def id_file
|
10
|
-
File.join Dir.pwd, '..', '..', ".#{scenario_name}_id"
|
11
|
-
end
|
12
|
-
|
13
|
-
def new_scenario_id
|
14
|
-
new_id = 0
|
15
|
-
new_id = IO.read(id_file).chomp.to_i + 1 if File.exists?(id_file)
|
16
|
-
File.open(id_file, 'w') { | file | file.puts new_id }
|
17
|
-
new_id
|
18
|
-
end
|
19
|
-
|
20
|
-
SimpleCov.start do
|
21
|
-
root File.dirname(__FILE__)
|
22
|
-
command_name "#{scenario_name} scenario ##{new_scenario_id}"
|
23
|
-
use_merging true
|
24
|
-
end
|
data/rubocop-todo.yml
DELETED