creategem 0.4.2 → 0.4.3
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/README.md +6 -1
- data/lib/creategem/cli.rb +3 -0
- data/lib/creategem/version.rb +1 -1
- data/templates/plugin_scaffold/test/dummy/.envrc +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ae18d8ccde333b70e3acb42b450bec1cdf2dd53
|
|
4
|
+
data.tar.gz: 55854004497fa8b2b7fa87ccdab74514091713ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 902dfab09356123b8da4dc78cfa97acd30e2dea46d37753ecb9ec363b787f11a797705ddebd30123b2501c5918313b6a0863aae7a47618a35fb5a34f74d8a038
|
|
7
|
+
data.tar.gz: 4310dd6bbf9db41776a70ff5b5beaafb40105a1a911d4406de9dd5711644d1b38a8ffccdba0d63fd4c7099bf64d52c59be44df4ffaa93ea542ce2e125547fc76
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Features:
|
|
|
24
24
|
- executable based on [Thor](http://whatisthor.com) (can be omited with --no-executable)
|
|
25
25
|
- test infrastructure based on minitest and minitest-reporters
|
|
26
26
|
- release to rubygems.org or to private geminabox gem server
|
|
27
|
-
- readme with badges for travis, codeclimate, coveralls, etc. for public projects
|
|
27
|
+
- readme with badges for travis, codeclimate, coveralls, etc. for public projects (like the badges you see above)
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
## Installation
|
|
@@ -49,6 +49,11 @@ Per default a gem is created with an executable based on Thor, but you can omit
|
|
|
49
49
|
After you create the gem, edit your gemspec and change the summary and the description, commit the changes to git and invoke `rake release_patch` and your gem is being released.
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
$ creategem plugin GEM_NAME [--engine] [--mountable] [--private] [--executable]
|
|
53
|
+
|
|
54
|
+
`creategem plugin` creates a rails plugin. You can also specify if the plugin should be an engine (`--engine`) or a mountable engine (`--mountable`).
|
|
55
|
+
|
|
56
|
+
|
|
52
57
|
## Development
|
|
53
58
|
|
|
54
59
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/creategem/cli.rb
CHANGED
|
@@ -64,6 +64,9 @@ module Creategem
|
|
|
64
64
|
def create_plugin_scaffold(gem_name)
|
|
65
65
|
say "Create a rails plugin scaffold for gem named: #{gem_name}", :green
|
|
66
66
|
directory "plugin_scaffold", gem_name
|
|
67
|
+
Dir.chdir gem_name do
|
|
68
|
+
run "chmod +x test/dummy/bin/*"
|
|
69
|
+
end
|
|
67
70
|
end
|
|
68
71
|
|
|
69
72
|
def create_engine_scaffold(gem_name)
|
data/lib/creategem/version.rb
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
PATH_add bin
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: creategem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Igor Jancev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -201,6 +201,7 @@ files:
|
|
|
201
201
|
- templates/mountable_scaffold/app/helpers/%gem_name%/application_helper.rb.tt
|
|
202
202
|
- templates/mountable_scaffold/app/views/layouts/%gem_name%/application.html.erb.tt
|
|
203
203
|
- templates/plugin_scaffold/lib/tasks/%gem_name%_tasks.rake.tt
|
|
204
|
+
- templates/plugin_scaffold/test/dummy/.envrc
|
|
204
205
|
- templates/plugin_scaffold/test/dummy/README.rdoc
|
|
205
206
|
- templates/plugin_scaffold/test/dummy/Rakefile
|
|
206
207
|
- templates/plugin_scaffold/test/dummy/app/assets/images/.keep
|