pluginizer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pluginizer/plugin_builder.rb +11 -0
- data/lib/pluginizer/version.rb +1 -1
- data/templates/%name%.gemspec.tt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca11aaa9134b5dfbfdcdb85859d083330975a476
|
4
|
+
data.tar.gz: e9cd0d394ec87ebdc6604260135ad4375ba78b11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0615f74ff0df78c4c4455e92731c3ee33316aa8f6468afc4252145af854c624b78828833a01e41f9793c3a245bfcae0d00522a6274e6cc141b6e508bfbe6fa36
|
7
|
+
data.tar.gz: eba8868f91454fe94e4afdf78c7018968a46a8a7cad156d6f55027bebe817e69db7d400967d44fed5d6154da73d17d1d99c33176a3a8b1f18ec5640040124f85
|
@@ -10,6 +10,7 @@ module Pluginizer
|
|
10
10
|
def leftovers
|
11
11
|
template '.ruby-version'
|
12
12
|
template "lib/%namespaced_name%/configuration.rb"
|
13
|
+
configure_gemfile
|
13
14
|
|
14
15
|
after_bundle do
|
15
16
|
in_root do
|
@@ -28,6 +29,16 @@ module Pluginizer
|
|
28
29
|
|
29
30
|
private
|
30
31
|
|
32
|
+
def configure_gemfile
|
33
|
+
insert_into_file 'Gemfile', <<-END.strip_heredoc, after: "source 'https://rubygems.org'"
|
34
|
+
\n
|
35
|
+
git_source(:github) do |repo_name|
|
36
|
+
repo_name = "\#{repo_name}/\#{repo_name}" unless repo_name.include?("/")
|
37
|
+
"https://github.com/\#{repo_name}.git"
|
38
|
+
end
|
39
|
+
END
|
40
|
+
end
|
41
|
+
|
31
42
|
def configure_database_yml
|
32
43
|
insert_into_file 'spec/dummy/config/database.yml', <<-END.strip_heredoc.indent(2), after: "encoding: unicode"
|
33
44
|
|
data/lib/pluginizer/version.rb
CHANGED
data/templates/%name%.gemspec.tt
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.version = <%= camelized_modules %>::VERSION
|
10
10
|
s.authors = ["Patrice Lebel"]
|
11
11
|
s.email = ["patleb@users.noreply.github.com"]
|
12
|
-
s.homepage = "https://github.com/patleb/<%= name
|
12
|
+
s.homepage = "https://github.com/patleb/<%= name %>"
|
13
13
|
s.summary = "<%= camelized_modules %>"
|
14
14
|
s.description = "<%= camelized_modules %>"
|
15
15
|
s.license = "MIT"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pluginizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrice Lebel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|