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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c51edd7f2a3a846799b8f5d70dc56ff59c83d188
4
- data.tar.gz: 5fa67fb93caf537fc0d1c9db4c50f340d3695fb8
3
+ metadata.gz: ca11aaa9134b5dfbfdcdb85859d083330975a476
4
+ data.tar.gz: e9cd0d394ec87ebdc6604260135ad4375ba78b11
5
5
  SHA512:
6
- metadata.gz: 96483bb14471aa5d8450bc8b1e390cd1e838371a82eaf81583acf797724ddea50f32b5fcf2737d4bd95ef46bbe24f8d3f95ad94ad6eb41e58be817efa79aa63e
7
- data.tar.gz: 303b7818729c20122711ce7695cafab5a1afea4f2563ead11d6e7828660ab9c3d8b77b087dc7770b89a58dc61fde2bfecf1e7046841fea8a3deb51590627ed07
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
 
@@ -1,3 +1,3 @@
1
1
  module Pluginizer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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.tr('_', '-') %>"
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails