creategem 0.3.0 → 0.3.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: 5add3a3dac7e5ff9812043965a627947b99a7ad7
4
- data.tar.gz: b95596df6e881f81ca38229a93be018a71ba6490
3
+ metadata.gz: 0452dd278719eb69957f5db609862ba4b4f67045
4
+ data.tar.gz: d755bd62db8791a965406b70b1ecb11eff270418
5
5
  SHA512:
6
- metadata.gz: 403be2da109f88db9e33573c13ad768d812f18d21589f3022b708bc0587c728b98f8bb851f103f7cb99d4d34fd72af4118bf5577cd1dd5cd08be7871acb0ecf3
7
- data.tar.gz: 51be3943b891418a942a4af831d8592055da35723d143554a979f369c805972cb9a7fd8716d88cade6dbca973e10ee2212b0b258db80b0452925898cf66c80a1
6
+ metadata.gz: cf8117103038aae8f077232e685847c0454b691b40df9b231fca562d737cc25296ff238dfe6296282dc5865718b34bd2f48bfd2dc63ec28564356c4acff099d9
7
+ data.tar.gz: 08f7141cf0e04ae0a8ec0025f59807b2bc2fa1494f33a1429758e2e5ad9d7f2b9eef96c91cfd99306a4f7b6e46eb5c7a3d1c8aa4de4ece7929bd3b4a160a9d75
data/.envrc ADDED
@@ -0,0 +1 @@
1
+ PATH_add bin
data/lib/creategem/cli.rb CHANGED
@@ -73,7 +73,9 @@ module Creategem
73
73
  def initialize_repository(gem_name)
74
74
  Dir.chdir gem_name do
75
75
  create_local_git_repository
76
- run "bundle install"
76
+ run "bundle update"
77
+ run "chmod +x bin/*"
78
+ run "chmod +x exe/*" if @executable
77
79
  create_remote_git_repository(@repository) if yes?("Do you want me to create #{@vendor} repository named #{gem_name}? (y/n)")
78
80
  end
79
81
  say "The gem #{gem_name} was successfully created.", :green
@@ -1,3 +1,3 @@
1
1
  module Creategem
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -6,7 +6,9 @@ ENGINE_PATH = File.expand_path('../../lib/<%= gem_name %>/engine', __FILE__)
6
6
 
7
7
  # Set up gems listed in the Gemfile.
8
8
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
9
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
9
+ require 'bundler/setup'
10
10
 
11
11
  require 'rails/all'
12
12
  require 'rails/engine/commands'
13
+
14
+ load Gem.bin_path("rails", "rails")
@@ -0,0 +1 @@
1
+ PATH_add bin
@@ -0,0 +1,29 @@
1
+ require 'simplecov-rcov'
2
+ class SimpleCov::Formatter::MergedFormatter
3
+ def format(result)
4
+ SimpleCov::Formatter::HTMLFormatter.new.format(result)
5
+ SimpleCov::Formatter::RcovFormatter.new.format(result)
6
+ end
7
+ end
8
+ SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
9
+
10
+ SimpleCov.start do
11
+ coverage_dir 'test/coverage'
12
+
13
+ <% if @engine -%>
14
+ load_profile 'rails'
15
+
16
+ add_group 'Controllers', 'app/controllers'
17
+ add_group 'Mailers', 'app/mailers'
18
+ add_group 'Models', 'app/models'
19
+ add_group 'Helpers', 'app/helpers'
20
+ add_group 'Libraries', 'lib'
21
+
22
+ add_filter 'db'
23
+ add_filter 'test'
24
+ add_filter 'config'
25
+ add_filter 'vendor'
26
+ <% end %>
27
+ end
28
+
29
+
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require "pathname"
10
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require "rubygems"
14
+ require "bundler/setup"
15
+
16
+ load Gem.bin_path("rake", "rake")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creategem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
@@ -146,6 +146,7 @@ executables:
146
146
  extensions: []
147
147
  extra_rdoc_files: []
148
148
  files:
149
+ - ".envrc"
149
150
  - ".gitignore"
150
151
  - ".ruby-version"
151
152
  - ".travis.yml"
@@ -177,13 +178,16 @@ files:
177
178
  - templates/executable_scaffold/exe/%gem_name%.tt
178
179
  - templates/executable_scaffold/lib/%gem_name%/cli.rb.tt
179
180
  - templates/gem_scaffold/%gem_name%.gemspec.tt
181
+ - templates/gem_scaffold/.envrc
180
182
  - templates/gem_scaffold/.gitignore.tt
181
183
  - templates/gem_scaffold/.ruby-version
184
+ - templates/gem_scaffold/.simplecov.tt
182
185
  - templates/gem_scaffold/.travis.yml
183
186
  - templates/gem_scaffold/Gemfile.tt
184
187
  - templates/gem_scaffold/README.md.tt
185
188
  - templates/gem_scaffold/Rakefile.tt
186
- - templates/gem_scaffold/bin/console
189
+ - templates/gem_scaffold/bin/console.tt
190
+ - templates/gem_scaffold/bin/rake
187
191
  - templates/gem_scaffold/bin/setup
188
192
  - templates/gem_scaffold/lib/%gem_name%.rb.tt
189
193
  - templates/gem_scaffold/lib/%gem_name%/version.rb.tt
File without changes