rapid 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +43 -38
- metadata +47 -5
data/Rakefile
CHANGED
@@ -1,66 +1,71 @@
|
|
1
1
|
require 'rake'
|
2
|
-
require '
|
2
|
+
require 'fileutils'
|
3
|
+
current_dir = File.expand_path(File.dirname(__FILE__))
|
4
|
+
Dir.chdir current_dir
|
3
5
|
|
4
|
-
Dir.chdir File.dirname(__FILE__)
|
5
6
|
|
7
|
+
#
|
6
8
|
# Specs
|
9
|
+
#
|
10
|
+
require 'spec/rake/spectask'
|
11
|
+
|
7
12
|
task :default => :spec
|
8
13
|
|
9
14
|
Spec::Rake::SpecTask.new('spec') do |t|
|
10
15
|
t.spec_files = FileList["spec/**/*_spec.rb"].select{|f| f !~ /\/_/}
|
11
|
-
t.libs = [
|
16
|
+
t.libs = ["#{current_dir}/lib"]
|
12
17
|
end
|
13
18
|
|
19
|
+
|
20
|
+
#
|
14
21
|
# Gem
|
22
|
+
#
|
15
23
|
require 'rake/clean'
|
16
24
|
require 'rake/gempackagetask'
|
17
|
-
require 'fileutils'
|
18
25
|
|
26
|
+
gem_options = {
|
27
|
+
:name => "rapid",
|
28
|
+
:version => "0.0.2",
|
29
|
+
:summary => "Rapid Application Development platform for Crystal Framework",
|
30
|
+
:dependencies => %w(
|
31
|
+
crystal
|
32
|
+
crystal_ext
|
33
|
+
mongo_mapper_ext
|
34
|
+
jquery_client
|
35
|
+
)
|
36
|
+
}
|
37
|
+
|
38
|
+
gem_name = gem_options[:name]
|
19
39
|
spec = Gem::Specification.new do |s|
|
20
|
-
|
21
|
-
|
22
|
-
s.summary = "Rapid Application Development platform for Crystal framework"
|
23
|
-
s.description = "Rapid Application Development platform for Crystal framework"
|
24
|
-
s.author = "Alexey Petrushin"
|
25
|
-
# s.email = ""
|
26
|
-
s.homepage = "http://github.com/alexeypetrushin/rapid"
|
40
|
+
gem_options.delete(:dependencies).each{|d| s.add_dependency d}
|
41
|
+
gem_options.each{|k, v| s.send "#{k}=", v}
|
27
42
|
|
28
|
-
|
29
|
-
s.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
[
|
38
|
-
'crystal',
|
39
|
-
].each{|name| s.add_dependency(name)}
|
40
|
-
|
43
|
+
s.name = gem_name
|
44
|
+
s.author = "Alexey Petrushin"
|
45
|
+
s.homepage = "http://github.com/alexeypetrushin/#{gem_options[:name]}"
|
46
|
+
s.require_path = "lib"
|
47
|
+
s.files = (%w{Rakefile readme.md} + Dir.glob("{lib,spec}/**/*"))
|
48
|
+
|
49
|
+
s.platform = Gem::Platform::RUBY
|
50
|
+
s.has_rdoc = true
|
41
51
|
end
|
42
52
|
|
43
|
-
|
44
|
-
|
53
|
+
package_dir = "#{current_dir}/build"
|
45
54
|
Rake::GemPackageTask.new(spec) do |p|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
p.need_zip = true
|
50
|
-
p.package_dir = package_dir
|
55
|
+
p.need_tar = true if RUBY_PLATFORM !~ /mswin/
|
56
|
+
p.need_zip = true
|
57
|
+
p.package_dir = package_dir
|
51
58
|
end
|
52
59
|
|
53
|
-
# CLEAN.include [ 'pkg', '*.gem']
|
54
|
-
|
55
60
|
task :push do
|
56
|
-
dir = Dir.chdir
|
57
|
-
|
58
|
-
|
59
|
-
end
|
61
|
+
# dir = Dir.chdir package_dir do
|
62
|
+
gem_file = Dir.glob("#{package_dir}/#{gem_name}*.gem").first
|
63
|
+
system "gem push #{gem_file}"
|
64
|
+
# end
|
60
65
|
end
|
61
66
|
|
62
67
|
task :clean do
|
63
|
-
system "rm -r #{
|
68
|
+
system "rm -r #{package_dir}"
|
64
69
|
end
|
65
70
|
|
66
71
|
task :release => [:gem, :push, :clean]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexey Petrushin
|
@@ -32,7 +32,49 @@ dependencies:
|
|
32
32
|
version: "0"
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
|
-
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: crystal_ext
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: mongo_mapper_ext
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: jquery_client
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
type: :runtime
|
76
|
+
version_requirements: *id004
|
77
|
+
description:
|
36
78
|
email:
|
37
79
|
executables: []
|
38
80
|
|
@@ -133,6 +175,6 @@ rubyforge_project:
|
|
133
175
|
rubygems_version: 1.3.7
|
134
176
|
signing_key:
|
135
177
|
specification_version: 3
|
136
|
-
summary: Rapid Application Development platform for Crystal
|
178
|
+
summary: Rapid Application Development platform for Crystal Framework
|
137
179
|
test_files: []
|
138
180
|
|