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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fbff85759ba9026fbaf03eab869d5e4eafc657e
4
- data.tar.gz: de7daabd89c43994ecb86538d9dc6bb349a629bf
3
+ metadata.gz: 4419dfd30e86740927ed401eb68eee2789f3ec5e
4
+ data.tar.gz: 754c0ac45a547b992b064edb3b5bfa482dccc95f
5
5
  SHA512:
6
- metadata.gz: ff43164dbcf182d26ce5601fd434b1f21e9b36581f3fb663b8147e118d8b0e68af71e50c439e22f2b0bc87b4bf5ffbc723c55bc1d2fcfadccc1ed132be1ec8b7
7
- data.tar.gz: 15df1eced0859376bf1bd7a91111f38c88a9a5ab65ebf3e0dc0cb96fd8e70b6b26d480e9a80e10a2c6713a50e060b740e6c1ed0d4cae38eaf6045c644faece92
6
+ metadata.gz: 84cde4222560f3528ea796b850ba8ff4b293db82fae9c65ea63512876423a76484a069fca9cc9e398d3d683539052913d48ce3cafd322eb59eef50bb08620586
7
+ data.tar.gz: c96bfc2015f461b674fba2bd94f4aea1aa2798aaeaa35bc2518389aec5a3b7d97e1a082f5fa7b2842a254e8b91e32bfd3aea0cad9d94229afba1400ffc90ed79
data/Gemfile CHANGED
@@ -2,4 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in robotkit.gemspec
4
4
  gemspec
5
- gem "pry"
data/README.md CHANGED
@@ -2,34 +2,20 @@
2
2
 
3
3
  ## Installation
4
4
 
5
- Add this line to your application's Gemfile:
5
+ `gem install robotkit`
6
6
 
7
- ```ruby
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
- TBD
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 :project_name --package com.github.library", "Create Android project"
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(project_name)
15
- puts project_name
16
- Robotkit.exec(options.merge({output_dir: project_name}))
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
- sample_package_name = "#{params[:package]}.sample"
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)
@@ -1,3 +1,3 @@
1
1
  module Robotkit
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/robotkit.gemspec CHANGED
@@ -26,4 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "bundler", "~> 1.13"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
+ spec.add_development_dependency "pry", "~> 0.10"
29
30
  end
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.3
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