abstract_interface 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +7 -63
- data/spec/haml_builder_spec.rb +2 -2
- data/spec/helper.rb +2 -5
- metadata +6 -20
- data/spec/spec.opts +0 -4
data/Rakefile
CHANGED
@@ -1,66 +1,10 @@
|
|
1
|
-
require '
|
2
|
-
require 'fileutils'
|
3
|
-
current_dir = File.expand_path(File.dirname(__FILE__))
|
4
|
-
Dir.chdir current_dir
|
1
|
+
require 'rake_ext'
|
5
2
|
|
6
|
-
|
7
|
-
#
|
8
|
-
# Specs
|
9
|
-
#
|
10
|
-
require 'spec/rake/spectask'
|
11
|
-
|
12
|
-
task :default => :spec
|
13
|
-
|
14
|
-
Spec::Rake::SpecTask.new('spec') do |t|
|
15
|
-
t.spec_files = FileList["spec/**/*_spec.rb"].select{|f| f !~ /\/_/}
|
16
|
-
t.libs = ["#{current_dir}/lib"]
|
17
|
-
end
|
18
|
-
|
19
|
-
|
20
|
-
#
|
21
|
-
# Gem
|
22
|
-
#
|
23
|
-
require 'rake/clean'
|
24
|
-
require 'rake/gempackagetask'
|
25
|
-
|
26
|
-
gem_options = {
|
3
|
+
gem_spec(
|
27
4
|
:name => "abstract_interface",
|
28
|
-
:version => "0.1.
|
29
|
-
:summary => "Abstract Interface for the Crystal Framework",
|
30
|
-
:dependencies => %w(crystal)
|
31
|
-
}
|
32
|
-
|
33
|
-
gem_name = gem_options[:name]
|
34
|
-
spec = Gem::Specification.new do |s|
|
35
|
-
gem_options.delete(:dependencies).each{|d| s.add_dependency d}
|
36
|
-
gem_options.each{|k, v| s.send "#{k}=", v}
|
37
|
-
|
38
|
-
s.name = gem_name
|
39
|
-
s.author = "Alexey Petrushin"
|
40
|
-
s.homepage = "http://github.com/alexeypetrushin/#{gem_options[:name]}"
|
41
|
-
s.require_path = "lib"
|
42
|
-
s.files = (%w{Rakefile readme.md} + Dir.glob("{lib,spec}/**/*"))
|
43
|
-
|
44
|
-
s.platform = Gem::Platform::RUBY
|
45
|
-
s.has_rdoc = true
|
46
|
-
end
|
47
|
-
|
48
|
-
package_dir = "#{current_dir}/build"
|
49
|
-
Rake::GemPackageTask.new(spec) do |p|
|
50
|
-
p.need_tar = true if RUBY_PLATFORM !~ /mswin/
|
51
|
-
p.need_zip = true
|
52
|
-
p.package_dir = package_dir
|
53
|
-
end
|
54
|
-
|
55
|
-
task :push do
|
56
|
-
# dir = Dir.chdir package_dir do
|
57
|
-
gem_file = Dir.glob("#{package_dir}/#{gem_name}*.gem").first
|
58
|
-
system "gem push #{gem_file}"
|
59
|
-
# end
|
60
|
-
end
|
61
|
-
|
62
|
-
task :clean do
|
63
|
-
system "rm -r #{package_dir}"
|
64
|
-
end
|
5
|
+
:version => "0.1.5",
|
6
|
+
:summary => "Abstract Interface for the Crystal Framework",
|
65
7
|
|
66
|
-
|
8
|
+
:author => "Alexey Petrushin",
|
9
|
+
:homepage => "http://github.com/alexeypetrushin/abstract_interface"
|
10
|
+
)
|
data/spec/haml_builder_spec.rb
CHANGED
data/spec/helper.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
lib_dir = File.expand_path("#{dir}/../../../lib")
|
1
|
+
lib_dir = "#{__FILE__.parent_dirname}/lib"
|
3
2
|
$LOAD_PATH << lib_dir unless $LOAD_PATH.include? lib_dir
|
4
3
|
|
5
4
|
require 'crystal/support'
|
6
5
|
require 'abstract_interface/support'
|
7
|
-
require "abstract_interface/haml_builder"
|
8
|
-
|
9
|
-
require 'spec_ext'
|
6
|
+
require "abstract_interface/haml_builder"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstract_interface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexey Petrushin
|
@@ -15,23 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-13 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
|
22
|
-
name: crystal
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: *id001
|
20
|
+
dependencies: []
|
21
|
+
|
35
22
|
description:
|
36
23
|
email:
|
37
24
|
executables: []
|
@@ -54,7 +41,6 @@ files:
|
|
54
41
|
- lib/abstract_interface.rb
|
55
42
|
- spec/haml_builder_spec.rb
|
56
43
|
- spec/helper.rb
|
57
|
-
- spec/spec.opts
|
58
44
|
has_rdoc: true
|
59
45
|
homepage: http://github.com/alexeypetrushin/abstract_interface
|
60
46
|
licenses: []
|
data/spec/spec.opts
DELETED