gemsmith 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +5 -2
- data/lib/gemsmith/cli.rb +4 -2
- data/lib/gemsmith/skeletons/coveralls_skeleton.rb +9 -0
- data/lib/gemsmith/templates/%gem_name%/.coveralls.yml.tt +3 -0
- data/lib/gemsmith/templates/%gem_name%/README.md.tt +5 -2
- data/lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt +7 -7
- data/lib/gemsmith/version.rb +1 -1
- metadata +8 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46fb87f97117b8e22b3d94589c758871916cf3cb
|
4
|
+
data.tar.gz: 724e1ebf33f2a705fdd4365c57e3f01ac87818b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c45ece477e3ea0cd92fc3732cf44886f754259c4cdf83357213fd61290a1b64a1be24bb1e29f25d3682fd829e57f9e28426a300d95ab22746aa97a01b504e6b3
|
7
|
+
data.tar.gz: 7f04fbb0a6797ce0e8b4c914deea9a57e1623e2cd07767e73e8874da4355f2e6c440a4d33a94a4ed0b8660cef5a7449e5aa832f1e9db1852b2f5bba9f4fcae9b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -42,9 +42,12 @@ gem. Gemsmith is essentially an enhanced version of Bundler's gem building capab
|
|
42
42
|
For a secure install, type the following from the command line (recommended):
|
43
43
|
|
44
44
|
gem cert --add <(curl -Ls http://www.redalchemist.com/gem-public.pem)
|
45
|
-
gem install gemsmith --trust-policy
|
45
|
+
gem install gemsmith --trust-policy MediumSecurity
|
46
46
|
|
47
|
-
|
47
|
+
NOTE: A HighSecurity trust policy would be best but MediumSecurity enables signed gem verification while
|
48
|
+
allowing the installation of unsigned dependencies since they are beyond the scope of this gem.
|
49
|
+
|
50
|
+
For an insecure install, type the following (not recommended):
|
48
51
|
|
49
52
|
gem install gemsmith
|
50
53
|
|
data/lib/gemsmith/cli.rb
CHANGED
@@ -5,13 +5,14 @@ require "thor_plus/actions"
|
|
5
5
|
require "gemsmith/cli_options"
|
6
6
|
require "gemsmith/cli_helpers"
|
7
7
|
require "gemsmith/skeletons/base_skeleton"
|
8
|
+
require "gemsmith/skeletons/cli_skeleton"
|
9
|
+
require "gemsmith/skeletons/coveralls_skeleton"
|
8
10
|
require "gemsmith/skeletons/default_skeleton"
|
9
11
|
require "gemsmith/skeletons/documentation_skeleton"
|
10
|
-
require "gemsmith/skeletons/
|
12
|
+
require "gemsmith/skeletons/git_skeleton"
|
11
13
|
require "gemsmith/skeletons/rails_skeleton"
|
12
14
|
require "gemsmith/skeletons/rspec_skeleton"
|
13
15
|
require "gemsmith/skeletons/travis_skeleton"
|
14
|
-
require "gemsmith/skeletons/git_skeleton"
|
15
16
|
|
16
17
|
module Gemsmith
|
17
18
|
class CLI < Thor
|
@@ -55,6 +56,7 @@ module Gemsmith
|
|
55
56
|
Skeletons::RailsSkeleton.run(self) if template_options[:rails]
|
56
57
|
Skeletons::RspecSkeleton.run(self) if template_options[:rspec]
|
57
58
|
Skeletons::TravisSkeleton.run(self) if template_options[:travis]
|
59
|
+
Skeletons::CoverallsSkeleton.run self
|
58
60
|
Skeletons::GitSkeleton.run self
|
59
61
|
|
60
62
|
info "Gem created."
|
@@ -27,9 +27,12 @@
|
|
27
27
|
For a secure install, type the following from the command line (recommended):
|
28
28
|
|
29
29
|
gem cert --add <(curl -Ls http://www.my-website.com/gem-public.pem)
|
30
|
-
gem install <%= config[:gem_name] %> --trust-policy
|
30
|
+
gem install <%= config[:gem_name] %> --trust-policy MediumSecurity
|
31
31
|
|
32
|
-
|
32
|
+
NOTE: A HighSecurity trust policy would be best but MediumSecurity enables signed gem verification while
|
33
|
+
allowing the installation of unsigned dependencies since they are beyond the scope of this gem.
|
34
|
+
|
35
|
+
For an insecure install, type the following (not recommended):
|
33
36
|
|
34
37
|
gem install <%= config[:gem_name] %>
|
35
38
|
|
@@ -1,13 +1,14 @@
|
|
1
1
|
require "bundler/setup"
|
2
|
+
<%- if config[:coveralls] -%>
|
3
|
+
require "coveralls"
|
4
|
+
Coveralls.wear!
|
5
|
+
<%- end -%>
|
2
6
|
require "<%= config[:gem_name] %>"
|
3
7
|
<%- if config[:pry] -%>
|
4
8
|
require "pry"
|
5
9
|
require "pry-remote"
|
6
10
|
require "pry-rescue"
|
7
11
|
<%- end -%>
|
8
|
-
<%- if config[:coveralls] -%>
|
9
|
-
require "coveralls"
|
10
|
-
<%- end -%>
|
11
12
|
|
12
13
|
<%- if config[:pry] -%>
|
13
14
|
case Gem.ruby_engine
|
@@ -22,11 +23,10 @@ case Gem.ruby_engine
|
|
22
23
|
end
|
23
24
|
<%- end -%>
|
24
25
|
|
25
|
-
<%- if config[:coveralls] -%>
|
26
|
-
Coveralls.wear!
|
27
|
-
<%- end -%>
|
28
|
-
|
29
26
|
RSpec.configure do |config|
|
30
27
|
config.run_all_when_everything_filtered = true
|
31
28
|
config.filter_run focus: true
|
29
|
+
|
30
|
+
config.before(:all) { GC.disable }
|
31
|
+
config.after(:all) { GC.enable }
|
32
32
|
end
|
data/lib/gemsmith/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemsmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
SJpzzzZ8gO6BKn4fhd+ENNQ333Qy3nuNk07TVIaNnlgeHhowUDuD9T7Z8Lka0pt3
|
31
31
|
4PteiTppsf0SSVAM9zSO5IuFngXMRwWgvjOfXE70f43RDuUVTCSyylc=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-
|
33
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: pry-byebug
|
@@ -66,28 +66,28 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0.
|
69
|
+
version: '0.19'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '0.
|
76
|
+
version: '0.19'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: thor_plus
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
83
|
+
version: '1.5'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '1.
|
90
|
+
version: '1.5'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rake
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,6 +220,7 @@ files:
|
|
220
220
|
- lib/gemsmith/kit.rb
|
221
221
|
- lib/gemsmith/skeletons/base_skeleton.rb
|
222
222
|
- lib/gemsmith/skeletons/cli_skeleton.rb
|
223
|
+
- lib/gemsmith/skeletons/coveralls_skeleton.rb
|
223
224
|
- lib/gemsmith/skeletons/default_skeleton.rb
|
224
225
|
- lib/gemsmith/skeletons/documentation_skeleton.rb
|
225
226
|
- lib/gemsmith/skeletons/git_skeleton.rb
|
@@ -227,6 +228,7 @@ files:
|
|
227
228
|
- lib/gemsmith/skeletons/rspec_skeleton.rb
|
228
229
|
- lib/gemsmith/skeletons/travis_skeleton.rb
|
229
230
|
- lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt
|
231
|
+
- lib/gemsmith/templates/%gem_name%/.coveralls.yml.tt
|
230
232
|
- lib/gemsmith/templates/%gem_name%/.gitignore.tt
|
231
233
|
- lib/gemsmith/templates/%gem_name%/.rspec.tt
|
232
234
|
- lib/gemsmith/templates/%gem_name%/.ruby-version.tt
|
metadata.gz.sig
CHANGED
Binary file
|