andrake 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -7
- data/Gemfile.lock +4 -4
- data/README.rdoc +10 -2
- data/VERSION +1 -1
- data/andrake.gemspec +3 -1
- data/bin/andrake +2 -1
- data/lib/andrake.rb +1 -0
- data/lib/andrake/commands.rb +32 -0
- data/spec/commands/commands_spec.rb +14 -0
- metadata +4 -2
data/Gemfile
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
-
# Add dependencies required to use your gem here.
|
3
|
-
# Example:
|
4
|
-
# gem "activesupport", ">= 2.3.5"
|
5
|
-
|
6
|
-
# Add dependencies to develop your gem here.
|
7
|
-
# Include everything needed to run rake, tests, features, etc.
|
8
2
|
gem "nokogiri"
|
9
3
|
group :development do
|
10
4
|
gem "rspec", "~> 2.3.0"
|
11
5
|
gem "bundler", "~> 1.0.0"
|
12
|
-
gem "jeweler", "~> 1.
|
6
|
+
gem "jeweler", "~> 1.6.4"
|
13
7
|
gem "rcov", ">= 0"
|
14
8
|
end
|
data/Gemfile.lock
CHANGED
@@ -3,12 +3,12 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
diff-lcs (1.1.2)
|
5
5
|
git (1.2.5)
|
6
|
-
jeweler (1.
|
7
|
-
bundler (~> 1.0
|
6
|
+
jeweler (1.6.4)
|
7
|
+
bundler (~> 1.0)
|
8
8
|
git (>= 1.2.5)
|
9
9
|
rake
|
10
10
|
nokogiri (1.4.4)
|
11
|
-
rake (0.
|
11
|
+
rake (0.9.2)
|
12
12
|
rcov (0.9.9)
|
13
13
|
rspec (2.3.0)
|
14
14
|
rspec-core (~> 2.3.0)
|
@@ -24,7 +24,7 @@ PLATFORMS
|
|
24
24
|
|
25
25
|
DEPENDENCIES
|
26
26
|
bundler (~> 1.0.0)
|
27
|
-
jeweler (~> 1.
|
27
|
+
jeweler (~> 1.6.4)
|
28
28
|
nokogiri
|
29
29
|
rcov
|
30
30
|
rspec (~> 2.3.0)
|
data/README.rdoc
CHANGED
@@ -2,7 +2,15 @@
|
|
2
2
|
|
3
3
|
rake tasks for android development
|
4
4
|
|
5
|
-
==
|
5
|
+
== initialize
|
6
|
+
andrake new
|
7
|
+
|
8
|
+
and create Rakefile
|
9
|
+
|
10
|
+
== generate
|
11
|
+
andrake g activity # not implemented
|
12
|
+
|
13
|
+
== Rake tasks
|
6
14
|
count up version of AndroidManifest.xml automaticaly
|
7
15
|
|
8
16
|
by
|
@@ -23,6 +31,6 @@ by
|
|
23
31
|
|
24
32
|
== Copyright
|
25
33
|
|
26
|
-
Copyright (c) 2011
|
34
|
+
Copyright (c) 2011 masarakki. See LICENSE.txt for
|
27
35
|
further details.
|
28
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.1
|
data/andrake.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{andrake}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Yamada Masaki"]
|
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
"andrake.gemspec",
|
31
31
|
"bin/andrake",
|
32
32
|
"lib/andrake.rb",
|
33
|
+
"lib/andrake/commands.rb",
|
33
34
|
"lib/andrake/generator.rb",
|
34
35
|
"lib/andrake/generator/rakefile.rb",
|
35
36
|
"lib/andrake/manifest.rb",
|
@@ -37,6 +38,7 @@ Gem::Specification.new do |s|
|
|
37
38
|
"lib/andrake/tasks.rb",
|
38
39
|
"lib/andrake/templates/Rakefile",
|
39
40
|
"spec/andrake_spec.rb",
|
41
|
+
"spec/commands/commands_spec.rb",
|
40
42
|
"spec/generator/rakefile_spec.rb",
|
41
43
|
"spec/manifest/AndroidManifest.xml",
|
42
44
|
"spec/manifest/manifest_spec.rb",
|
data/bin/andrake
CHANGED
data/lib/andrake.rb
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
class Andrake::Commands
|
2
|
+
def parse(argv = nil)
|
3
|
+
return {:command => "new"} if argv.nil?
|
4
|
+
command = argv.shift
|
5
|
+
command = aliases[command] || command
|
6
|
+
{:command => command}
|
7
|
+
end
|
8
|
+
|
9
|
+
def aliases
|
10
|
+
{"g" => "generate", "d" => "destroy" }
|
11
|
+
end
|
12
|
+
|
13
|
+
def run(argv)
|
14
|
+
command = parse(argv)
|
15
|
+
case command[:command]
|
16
|
+
when 'generate'
|
17
|
+
puts 'generate'
|
18
|
+
when 'destroy'
|
19
|
+
puts 'destroy'
|
20
|
+
when 'new'
|
21
|
+
Andrake::Generator::Rakefile.run!
|
22
|
+
else
|
23
|
+
puts "hogehoge"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class << self
|
28
|
+
def run!(argv)
|
29
|
+
self.new.run(argv)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe Andrake::Commands do
|
4
|
+
subject { Andrake::Commands.new }
|
5
|
+
its(:aliases) { should == {"g" => "generate", "d" => "destroy" } }
|
6
|
+
its(:parse) { should == {:command => "new"} }
|
7
|
+
describe 'parse ["generate"]' do
|
8
|
+
example { subject.parse(["generate"]).should == {:command => "generate"} }
|
9
|
+
end
|
10
|
+
describe 'parse(["g"])' do
|
11
|
+
example { subject.parse(["g"]).should == {:command => "generate"} }
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: andrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Yamada Masaki
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- andrake.gemspec
|
90
90
|
- bin/andrake
|
91
91
|
- lib/andrake.rb
|
92
|
+
- lib/andrake/commands.rb
|
92
93
|
- lib/andrake/generator.rb
|
93
94
|
- lib/andrake/generator/rakefile.rb
|
94
95
|
- lib/andrake/manifest.rb
|
@@ -96,6 +97,7 @@ files:
|
|
96
97
|
- lib/andrake/tasks.rb
|
97
98
|
- lib/andrake/templates/Rakefile
|
98
99
|
- spec/andrake_spec.rb
|
100
|
+
- spec/commands/commands_spec.rb
|
99
101
|
- spec/generator/rakefile_spec.rb
|
100
102
|
- spec/manifest/AndroidManifest.xml
|
101
103
|
- spec/manifest/manifest_spec.rb
|
@@ -115,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
117
|
requirements:
|
116
118
|
- - ">="
|
117
119
|
- !ruby/object:Gem::Version
|
118
|
-
hash:
|
120
|
+
hash: 930107277
|
119
121
|
segments:
|
120
122
|
- 0
|
121
123
|
version: "0"
|