robotkit 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/README.md +9 -23
- data/lib/robotkit/cli.rb +7 -7
- data/lib/robotkit/version.rb +1 -1
- data/robotkit.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4419dfd30e86740927ed401eb68eee2789f3ec5e
|
4
|
+
data.tar.gz: 754c0ac45a547b992b064edb3b5bfa482dccc95f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84cde4222560f3528ea796b850ba8ff4b293db82fae9c65ea63512876423a76484a069fca9cc9e398d3d683539052913d48ce3cafd322eb59eef50bb08620586
|
7
|
+
data.tar.gz: c96bfc2015f461b674fba2bd94f4aea1aa2798aaeaa35bc2518389aec5a3b7d97e1a082f5fa7b2842a254e8b91e32bfd3aea0cad9d94229afba1400ffc90ed79
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,34 +2,20 @@
|
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
|
5
|
-
|
5
|
+
`gem install robotkit`
|
6
6
|
|
7
|
-
|
8
|
-
gem 'robotkit'
|
9
|
-
```
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install robotkit
|
7
|
+
Or add this line `gem 'robotkit'` to your application's Gemfile and execute `bundle`
|
18
8
|
|
19
9
|
## Usage
|
20
10
|
|
21
|
-
|
22
|
-
|
23
|
-
## Development
|
24
|
-
|
25
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
-
|
27
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/robotkit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
11
|
+
robotkit create :output_dir --package your.package.name
|
32
12
|
|
13
|
+
Options
|
14
|
+
```
|
15
|
+
option :package, required: true
|
16
|
+
option :library_module, desc: "library module_name (default: library)"
|
17
|
+
option :sample_module, desc: "sample module_name (default: sample)"
|
18
|
+
```
|
33
19
|
|
34
20
|
## License
|
35
21
|
|
data/lib/robotkit/cli.rb
CHANGED
@@ -6,24 +6,24 @@ require "erb"
|
|
6
6
|
module Robotkit
|
7
7
|
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
|
8
8
|
class CLI < Thor
|
9
|
-
desc "create :
|
9
|
+
desc "create :output_dir", "Create Android library project."
|
10
10
|
option :package, required: true
|
11
11
|
option :library_module
|
12
12
|
option :sample_module
|
13
13
|
option :fixtures_dir
|
14
|
-
def create(
|
15
|
-
puts
|
16
|
-
Robotkit.exec(options.merge({output_dir:
|
14
|
+
def create(output_dir)
|
15
|
+
puts output_dir
|
16
|
+
Robotkit.exec(options.merge({output_dir: output_dir}))
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
def self.exec(params)
|
21
|
-
|
21
|
+
fixtures_dir = params[:fixtures_dir] || File.join(PROJECT_ROOT_PATH, "fixtures")
|
22
|
+
output_dir = params[:output_dir]
|
22
23
|
library_package_name = params[:package]
|
24
|
+
sample_package_name = "#{params[:package]}.sample"
|
23
25
|
library_module = params[:library_module] || "library"
|
24
26
|
sample_module = params[:sample_module] || "sample"
|
25
|
-
fixtures_dir = params[:fixtures_dir] || File.join(PROJECT_ROOT_PATH, "fixtures")
|
26
|
-
output_dir = params[:output_dir]
|
27
27
|
|
28
28
|
# copy from fixtues dir to output dir
|
29
29
|
FileUtils.mkdir(output_dir)
|
data/lib/robotkit/version.rb
CHANGED
data/robotkit.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robotkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kazuki-yoshida
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.10'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.10'
|
69
83
|
description: You do only type package name.
|
70
84
|
email:
|
71
85
|
- kzk.yshd@gmail.com
|