gem_bootstrap 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bf056f7e4ff20ab05ed480da0d8a0a1a40118cd6
4
+ data.tar.gz: aab58ad2489c64a6eca94976e6d31e54f725da60
5
+ SHA512:
6
+ metadata.gz: 30ec92d36bbca8a29feebf94c546e9c322a9859192a50223d1a7e2f95a5b9abca773075833d49f153424c5f9fa9fa9455cc22326e1b9e22739b2fefcc42e71c6
7
+ data.tar.gz: aefa81c88a14930ae0bffc935b1c7826cf9146868ab28494ba487aa2f7b7cf7b035271ba24a547ce013d908e1d2157bdd11df6ebc83ed24e9cc2ca6644283c7a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### 0.2.3
2
+
3
+ - Add option for specifying RSpec or Minitest as testing framework.
4
+ - Contributed by [Nick den Engelsman](https://github.com/nicka)
5
+ - Add the missing activesupport-core-ext
6
+
1
7
  #### 0.2.2
2
8
 
3
9
  - Support ruby version 1.9.3+ onward
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  Generate the starting template for creating ruby gem in ruby in just one command.
12
12
 
13
- TL;DR
13
+ TL;DR;
14
14
  First install the gem
15
15
 
16
16
  ```sh
@@ -23,17 +23,23 @@ then generate the new gem
23
23
  gem_bootstrap awesome_gem --github-id awesome_developer --email cool@awesomedev.com --author 'John Guru II'
24
24
  ```
25
25
 
26
- or the shot version
26
+ or the short version
27
27
 
28
28
  ```sh
29
29
  gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II'
30
30
  ```
31
31
 
32
+ rather use rspec instead of the default minitest
33
+
34
+ ```sh
35
+ gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II' -t rspec
36
+ ```
37
+
32
38
  Note: this gem will be release following the [Semantic Versioning][] start from `0.1.0`
33
39
 
34
40
  ### Features:
35
41
 
36
- - Test framework using [Minitest][]
42
+ - Test framework using [Minitest][] or [Rspec][]
37
43
  - Document with [Yard][]
38
44
  - Style check with [Rubocop][]
39
45
  - Debug with [Pry][]
@@ -78,7 +84,7 @@ gem_bootstrap awesome_gem
78
84
  To generate the gem just type the command like
79
85
 
80
86
  ```
81
- gem_bootstrap awesome_gem --github-id awesome_developer -- email cool@awesomedev.com --author 'John Guru II'
87
+ gem_bootstrap awesome_gem --github-id awesome_developer --email cool@awesomedev.com --author 'John Guru II'
82
88
  ```
83
89
  Which should output something like
84
90
 
@@ -134,6 +140,7 @@ awesome_gem
134
140
  [github]: https://github.com/
135
141
  [Grit]: https://github.com/mojombo/grit
136
142
  [Minitest]: https://github.com/seattlerb/minitest
143
+ [Rspec]: https://github.com/rspec/rspec
137
144
  [Thor]: https://github.com/erikhuda/thor
138
145
  [Yard]: https://github.com/lsegal/yard
139
146
  [Rubocop]: https://github.com/bbatsov/rubocop
@@ -26,8 +26,11 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
27
27
  spec.test_files = Dir.glob("test/**/*")
28
28
  spec.require_paths = ["lib"]
29
+
30
+ spec.add_runtime_dependency "activesupport-core-ext", "~> 4.0.0.2"
29
31
  spec.add_runtime_dependency "grit", "~> 2.5.0"
30
32
  spec.add_runtime_dependency "thor", "~> 0.19.1"
33
+
31
34
  spec.add_development_dependency "awesome_print", "~> 1.2.0"
32
35
  spec.add_development_dependency "bundler", "~> 1.7.0"
33
36
  spec.add_development_dependency "gem-ctags", "~> 1.0.6"
@@ -1,11 +1,17 @@
1
1
  require "thor"
2
+ require 'active_support'
3
+ require 'active_support/core_ext/object/blank'
4
+ require 'active_support/core_ext/hash/keys'
5
+ require 'active_support/core_ext/hash/indifferent_access'
2
6
  require_relative "./misc_utils"
3
7
  require_relative "./git_utils"
4
8
  module GemBootstrap
9
+ # The common template directory
10
+ TEMPLATES_DIR = "../../templates"
5
11
  class CLI < Thor::Group
6
12
  include Thor::Actions
7
-
8
13
  argument :name
14
+
9
15
  class_option :github_id,
10
16
  aliases: "-g",
11
17
  desc: "github profile id",
@@ -18,28 +24,48 @@ module GemBootstrap
18
24
  aliases: "-e",
19
25
  desc: "Email for github",
20
26
  required: true
27
+ class_option :test_framework,
28
+ default: "minitest",
29
+ aliases: "-t",
30
+ desc: "minitest or rspec",
31
+ required: false
32
+
21
33
  def self.source_root
22
34
  File.dirname(__FILE__)
23
35
  end
24
36
 
25
37
  # rubocop:disable MethodLength, LineLength
26
38
  def create_lib_file
27
- template "../../templates/README.md", "#{name}/README.md"
28
- template "../../templates/CHANGELOGS.md", "#{name}/CHANGELOGS.md"
29
- template "../../templates/dot_yardopts", "#{name}/.yardopts"
30
- template "../../templates/dot_gitignore", "#{name}/.gitignore"
31
- template "../../templates/Gemfile", "#{name}/Gemfile"
32
- template "../../templates/Rakefile", "#{name}/Rakefile"
33
- template "../../templates/Guardfile", "#{name}/Guardfile"
34
- template "../../templates/dot_rubocop.yml", "#{name}/.rubocop.yml"
35
- template "../../templates/newgem.gemspec.tt", "#{name}/#{name}.gemspec"
36
- template "../../templates/bin/newgem", "#{name}/bin/#{name}"
37
- template "../../templates/lib/newgem.rb", "#{name}/lib/#{name}.rb"
38
- template "../../templates/lib/newgem/version.rb", "#{name}/lib/#{name}/version.rb"
39
- template "../../templates/lib/newgem/cli.rb", "#{name}/lib/#{name}/cli.rb"
40
- template "../../templates/lib/newgem/newgem.rb", "#{name}/lib/#{name}/#{name}.rb"
41
- template "../../templates/test/test_helper.rb", "#{name}/test/test_helper.rb"
42
- template "../../templates/test/lib/newgem/test_newgem.rb", "#{name}/test/lib/#{name}/test_#{name}.rb"
39
+ template "#{TEMPLATES_DIR}/README.md", "#{name}/README.md"
40
+ template "#{TEMPLATES_DIR}/CHANGELOGS.md", "#{name}/CHANGELOGS.md"
41
+ template "#{TEMPLATES_DIR}/dot_yardopts", "#{name}/.yardopts"
42
+ template "#{TEMPLATES_DIR}/dot_gitignore", "#{name}/.gitignore"
43
+ template "#{TEMPLATES_DIR}/Gemfile", "#{name}/Gemfile"
44
+ template "#{TEMPLATES_DIR}/dot_rubocop.yml", "#{name}/.rubocop.yml"
45
+ template "#{TEMPLATES_DIR}/bin/newgem", "#{name}/bin/#{name}"
46
+ template "#{TEMPLATES_DIR}/lib/newgem.rb", "#{name}/lib/#{name}.rb"
47
+ template "#{TEMPLATES_DIR}/lib/newgem/version.rb", "#{name}/lib/#{name}/version.rb"
48
+ template "#{TEMPLATES_DIR}/lib/newgem/cli.rb", "#{name}/lib/#{name}/cli.rb"
49
+ template "#{TEMPLATES_DIR}/lib/newgem/newgem.rb", "#{name}/lib/#{name}/#{name}.rb"
50
+
51
+ # TODO: store this for code reuse
52
+ test_framework = options.symbolize_keys[:test_framework]
53
+
54
+ template "#{TEMPLATES_DIR}/Rakefile-#{test_framework}", "#{name}/Rakefile"
55
+ template "#{TEMPLATES_DIR}/Guardfile-#{test_framework}", "#{name}/Guardfile"
56
+ template "#{TEMPLATES_DIR}/newgem-#{test_framework}.gemspec.tt", "#{name}/#{name}.gemspec"
57
+ end
58
+ # rubocop:enable all
59
+
60
+ # rubocop:disable MethodLength, LineLength
61
+ def copy_test_files
62
+ if options.symbolize_keys[:test_framework] == 'minitest'
63
+ template "#{TEMPLATES_DIR}/test/test_helper.rb", "#{name}/test/test_helper.rb"
64
+ template "#{TEMPLATES_DIR}/test/lib/newgem/test_newgem.rb", "#{name}/test/lib/#{name}/test_#{name}.rb"
65
+ else
66
+ template "#{TEMPLATES_DIR}/spec/spec_helper.rb", "#{name}/spec/spec_helper.rb"
67
+ template "#{TEMPLATES_DIR}/spec/lib/newgem/newgem_spec.rb", "#{name}/spec/lib/#{name}/#{name}_spec.rb"
68
+ end
43
69
  end
44
70
  # rubocop:enable all
45
71
 
@@ -13,11 +13,14 @@ module GemBootstrap
13
13
 
14
14
  Usage/Synopsis:
15
15
 
16
- $gem_bootstrap [GEM_NAME] -g, --github-id [GITHUB_ID] -e, --email [EMAIL] -a, --author [AUTHOR]
16
+ $gem_bootstrap [GEM_NAME] -g, --github-id [GITHUB_ID] -e, --email [EMAIL] -a, --author [AUTHOR] --test-framework [FRAMEWORK]
17
17
 
18
18
  e.g. create a gem name 'awesome_gem'
19
19
  $gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II'
20
20
 
21
+ Choose test framework --test-framework or -t (defaults to minitest)
22
+ $gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II' -t rspec
23
+
21
24
  EOT
22
25
  puts generate_usage
23
26
  end
@@ -1,3 +1,3 @@
1
1
  module GemBootstrap
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,7 +1,6 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
3
  guard 'minitest' do
4
- # with Minitest::Unit
5
4
  watch(%r|^test/(.*)\/?test_(.*)\.rb|)
6
5
  watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
7
6
  watch(%r|^test/test_helper\.rb|) { "test" }
@@ -0,0 +1,7 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+ guard :rspec, cmd: 'rspec' do
4
+ watch(%r{^spec/.+_spec\.rb$})
5
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
6
+ watch('spec/spec_helper.rb') { "spec" }
7
+ end
data/templates/README.md CHANGED
@@ -8,19 +8,15 @@
8
8
  [gemnasium]: https://gemnasium.com/<%= options[:github_id] %>/<%= name %>
9
9
  [codeclimate]: https://codeclimate.com/github/<%= options[:github_id] %>/<%= name %>
10
10
 
11
- Quickly generate the starting template for creating CLI ruby gem.
12
- Generated template contain the simplest possible structure so that we don't have
13
- to start from scratch.
11
+ Here are list of gems that you can use with your project
14
12
 
15
- Features:
16
-
17
- - Test with [minitest][]
13
+ - Test with either [Minitest][] or [Rspec][]
18
14
  - Build with the power of [Thor][]
19
- - Debug with pry[pry][]
20
- - Documentation with [yard][]
21
- - Style check with [rubocop][]
22
- - BDD/TDD with guard [guard][]
23
- - Initial git manipulation using [grit][]
15
+ - Debug with [Pry][]
16
+ - Documentation with [Yard][]
17
+ - Style check with [Rubocop][]
18
+ - BDD/TDD with guard [Guard][]
19
+ - Initial git manipulation using [Grit][]
24
20
 
25
21
  ### Installation
26
22
 
@@ -54,10 +50,11 @@ include <%= MiscUtils.camel_case(name) %>
54
50
  4. Push to the branch (`git push origin my-new-feature`)
55
51
  5. Create new Pull Request
56
52
 
57
- [thor]: https://github.com/erikhuda/thor
58
- [minitest]: https://github.com/seattlerb/minitest
59
- [guard]: https://github.com/guard/guard
60
- [yard]: https://github.com/lsegal/yard
61
- [pry]: https://github.com/pry/pry
62
- [rubocop]: https://github.com/bbatsov/rubocop
63
- [grit]: https://github.com/mojombo/grit
53
+ [Thor]: https://github.com/erikhuda/thor
54
+ [Minitest]: https://github.com/seattlerb/minitest
55
+ [RSpec]: https://github.com/rspec
56
+ [Guard]: https://github.com/guard/guard
57
+ [Yard]: https://github.com/lsegal/yard
58
+ [Pry]: https://github.com/pry/pry
59
+ [Rubocop]: https://github.com/bbatsov/rubocop
60
+ [Grit]: https://github.com/mojombo/grit
File without changes
@@ -0,0 +1,23 @@
1
+ require "bundler/gem_tasks"
2
+ Bundler::GemHelper.install_tasks
3
+ require "rspec/core/rake_task"
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task :pry do
7
+ require "pry"
8
+ require "awesome_print"
9
+ require_relative "lib/<%= name %>"
10
+ include <%= MiscUtils.camel_case(name) %>
11
+ ARGV.clear
12
+ Pry.start
13
+ end
14
+
15
+ require "rubocop/rake_task"
16
+ desc "Run RuboCop on the lib directory"
17
+ RuboCop::RakeTask.new(:rubocop) do |task|
18
+ task.patterns = ["lib/**/*.rb"]
19
+ task.formatters = ["files"]
20
+ task.fail_on_error = false
21
+ end
22
+
23
+ task default: [:spec, :rubocop]
data/templates/bin/newgem CHANGED
File without changes
@@ -7,6 +7,7 @@ AllCops:
7
7
  - <%= name %>.gemspec
8
8
  - lib/**/*.rb
9
9
  - test/**/*.rb
10
+
10
11
  # Avoid long parameter lists
11
12
  ParameterLists:
12
13
  Max: 5
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require '<%= name %>/version'
5
+ Gem::Specification.new do |spec|
6
+ spec.name = '<%= name %>'
7
+ spec.version = <%= MiscUtils.camel_case(name) %>::VERSION
8
+ spec.authors = ['<%= options[:author] %>']
9
+ spec.email = ['<%= options[:email] %>']
10
+ spec.summary = %q{CLI template for <%= MiscUtils.camel_case(name) %>}
11
+ spec.description = %q{The starting template for <%= MiscUtils.camel_case(name) %>}
12
+ spec.homepage = 'https://github.com/<%= options[:github_id] %>/<%= name %>'
13
+ spec.required_ruby_version = ">= 1.9.3"
14
+ spec.license = 'MIT'
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ # runtime dependencies
21
+ spec.add_runtime_dependency 'activesupport-core-ext', '~> 4.0.0.2'
22
+ spec.add_runtime_dependency 'thor', '~> 0.19.1'
23
+
24
+ # development dependencies
25
+ spec.add_development_dependency 'awesome_print', '~> 1.2.0'
26
+ spec.add_development_dependency 'bundler', '~> 1.7.0'
27
+ spec.add_development_dependency 'gem-ctags', '~> 1.0.6'
28
+ spec.add_development_dependency 'guard', '~> 2.6.1'
29
+ spec.add_development_dependency 'guard-rspec', '~> 4.3.1'
30
+ spec.add_development_dependency 'pry', '~> 0.10.0'
31
+ spec.add_development_dependency 'rake', '~> 10.3.2'
32
+ spec.add_development_dependency 'rspec', '~> 3.0.0'
33
+ spec.add_development_dependency 'rubocop', '~> 0.24.0'
34
+ spec.add_development_dependency 'yard', '~> 0.8.7'
35
+ end
@@ -0,0 +1,8 @@
1
+ require_relative '../../spec_helper'
2
+ describe <%= MiscUtils.camel_case(name) %> do
3
+ context '#dummy_test' do
4
+ it 'passes the simple test' do
5
+ expect('test string').to_not be_nil
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ require 'rspec'
2
+ require 'pry'
3
+ require 'awesome_print'
4
+ require_relative '../lib/<%= name %>'
5
+ include <%= MiscUtils.camel_case(name) %>
6
+ RSpec.configure do |config|
7
+ config.color = true
8
+ config.formatter = 'documentation'
9
+ end
metadata CHANGED
@@ -1,228 +1,215 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Burin Choomnuan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
13
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport-core-ext
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.0.2
14
27
  - !ruby/object:Gem::Dependency
15
28
  name: grit
16
29
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
30
  requirements:
19
- - - ~>
31
+ - - "~>"
20
32
  - !ruby/object:Gem::Version
21
33
  version: 2.5.0
22
34
  type: :runtime
23
35
  prerelease: false
24
36
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
37
  requirements:
27
- - - ~>
38
+ - - "~>"
28
39
  - !ruby/object:Gem::Version
29
40
  version: 2.5.0
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: thor
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ~>
45
+ - - "~>"
36
46
  - !ruby/object:Gem::Version
37
47
  version: 0.19.1
38
48
  type: :runtime
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ~>
52
+ - - "~>"
44
53
  - !ruby/object:Gem::Version
45
54
  version: 0.19.1
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: awesome_print
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ~>
59
+ - - "~>"
52
60
  - !ruby/object:Gem::Version
53
61
  version: 1.2.0
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ~>
66
+ - - "~>"
60
67
  - !ruby/object:Gem::Version
61
68
  version: 1.2.0
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: bundler
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ~>
73
+ - - "~>"
68
74
  - !ruby/object:Gem::Version
69
75
  version: 1.7.0
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ~>
80
+ - - "~>"
76
81
  - !ruby/object:Gem::Version
77
82
  version: 1.7.0
78
83
  - !ruby/object:Gem::Dependency
79
84
  name: gem-ctags
80
85
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
86
  requirements:
83
- - - ~>
87
+ - - "~>"
84
88
  - !ruby/object:Gem::Version
85
89
  version: 1.0.6
86
90
  type: :development
87
91
  prerelease: false
88
92
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
93
  requirements:
91
- - - ~>
94
+ - - "~>"
92
95
  - !ruby/object:Gem::Version
93
96
  version: 1.0.6
94
97
  - !ruby/object:Gem::Dependency
95
98
  name: guard
96
99
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
100
  requirements:
99
- - - ~>
101
+ - - "~>"
100
102
  - !ruby/object:Gem::Version
101
103
  version: 2.6.1
102
104
  type: :development
103
105
  prerelease: false
104
106
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
107
  requirements:
107
- - - ~>
108
+ - - "~>"
108
109
  - !ruby/object:Gem::Version
109
110
  version: 2.6.1
110
111
  - !ruby/object:Gem::Dependency
111
112
  name: guard-minitest
112
113
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 2.3.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
121
  requirements:
123
- - - ~>
122
+ - - "~>"
124
123
  - !ruby/object:Gem::Version
125
124
  version: 2.3.1
126
125
  - !ruby/object:Gem::Dependency
127
126
  name: minitest
128
127
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
128
  requirements:
131
- - - ~>
129
+ - - "~>"
132
130
  - !ruby/object:Gem::Version
133
131
  version: 5.4.0
134
132
  type: :development
135
133
  prerelease: false
136
134
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
135
  requirements:
139
- - - ~>
136
+ - - "~>"
140
137
  - !ruby/object:Gem::Version
141
138
  version: 5.4.0
142
139
  - !ruby/object:Gem::Dependency
143
140
  name: minitest-spec-context
144
141
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
142
  requirements:
147
- - - ~>
143
+ - - "~>"
148
144
  - !ruby/object:Gem::Version
149
145
  version: 0.0.3
150
146
  type: :development
151
147
  prerelease: false
152
148
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
149
  requirements:
155
- - - ~>
150
+ - - "~>"
156
151
  - !ruby/object:Gem::Version
157
152
  version: 0.0.3
158
153
  - !ruby/object:Gem::Dependency
159
154
  name: pry
160
155
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
156
  requirements:
163
- - - ~>
157
+ - - "~>"
164
158
  - !ruby/object:Gem::Version
165
159
  version: 0.10.0
166
160
  type: :development
167
161
  prerelease: false
168
162
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
163
  requirements:
171
- - - ~>
164
+ - - "~>"
172
165
  - !ruby/object:Gem::Version
173
166
  version: 0.10.0
174
167
  - !ruby/object:Gem::Dependency
175
168
  name: rake
176
169
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
170
  requirements:
179
- - - ~>
171
+ - - "~>"
180
172
  - !ruby/object:Gem::Version
181
173
  version: 10.3.2
182
174
  type: :development
183
175
  prerelease: false
184
176
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
177
  requirements:
187
- - - ~>
178
+ - - "~>"
188
179
  - !ruby/object:Gem::Version
189
180
  version: 10.3.2
190
181
  - !ruby/object:Gem::Dependency
191
182
  name: rubocop
192
183
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
184
  requirements:
195
- - - ~>
185
+ - - "~>"
196
186
  - !ruby/object:Gem::Version
197
187
  version: 0.24.1
198
188
  type: :development
199
189
  prerelease: false
200
190
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
191
  requirements:
203
- - - ~>
192
+ - - "~>"
204
193
  - !ruby/object:Gem::Version
205
194
  version: 0.24.1
206
195
  - !ruby/object:Gem::Dependency
207
196
  name: yard
208
197
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
198
  requirements:
211
- - - ~>
199
+ - - "~>"
212
200
  - !ruby/object:Gem::Version
213
201
  version: 0.8.7
214
202
  type: :development
215
203
  prerelease: false
216
204
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
205
  requirements:
219
- - - ~>
206
+ - - "~>"
220
207
  - !ruby/object:Gem::Version
221
208
  version: 0.8.7
222
- description: ! "Bootstrap the creation of ruby gem so that you don't have to start
223
- from scratch.\n Build with simple, sensible default and
224
- very easy to extend.\n TL;DR; create new gem with `gem_bootstrap
225
- awesome_gem -g github_id -e your@email.com -a 'John Guru'`"
209
+ description: |-
210
+ Bootstrap the creation of ruby gem so that you don't have to start from scratch.
211
+ Build with simple, sensible default and very easy to extend.
212
+ TL;DR; create new gem with `gem_bootstrap awesome_gem -g github_id -e your@email.com -a 'John Guru'`
226
213
  email:
227
214
  - agilecreativity@gmail.com
228
215
  executables:
@@ -230,65 +217,69 @@ executables:
230
217
  extensions: []
231
218
  extra_rdoc_files: []
232
219
  files:
220
+ - ".gitignore"
221
+ - ".rubocop.yml"
222
+ - CHANGELOG.md
223
+ - Gemfile
224
+ - LICENSE
225
+ - README.md
226
+ - Rakefile
233
227
  - bin/gem_bootstrap
228
+ - gem_bootstrap.gemspec
229
+ - lib/gem_bootstrap.rb
234
230
  - lib/gem_bootstrap/cli.rb
235
231
  - lib/gem_bootstrap/gem_bootstrap.rb
236
232
  - lib/gem_bootstrap/git_utils.rb
237
233
  - lib/gem_bootstrap/misc_utils.rb
238
234
  - lib/gem_bootstrap/version.rb
239
- - lib/gem_bootstrap.rb
240
235
  - templates/CHANGELOGS.md
241
236
  - templates/GNU_LICENSE
242
237
  - templates/Gemfile
243
- - templates/Guardfile
238
+ - templates/Guardfile-minitest
239
+ - templates/Guardfile-rspec
244
240
  - templates/MIT_LICENSE
245
241
  - templates/README.md
246
- - templates/Rakefile
242
+ - templates/Rakefile-minitest
243
+ - templates/Rakefile-rspec
247
244
  - templates/bin/newgem
248
245
  - templates/dot_gitignore
249
246
  - templates/dot_rubocop.yml
250
247
  - templates/dot_yardopts
248
+ - templates/lib/newgem.rb
251
249
  - templates/lib/newgem/cli.rb
252
250
  - templates/lib/newgem/newgem.rb
253
251
  - templates/lib/newgem/version.rb
254
- - templates/lib/newgem.rb
255
- - templates/newgem.gemspec.tt
252
+ - templates/newgem-minitest.gemspec.tt
253
+ - templates/newgem-rspec.gemspec.tt
254
+ - templates/spec/lib/newgem/newgem_spec.rb
255
+ - templates/spec/spec_helper.rb
256
256
  - templates/test/lib/newgem/test_newgem.rb
257
257
  - templates/test/test_helper.rb
258
- - Gemfile
259
- - Rakefile
260
- - gem_bootstrap.gemspec
261
- - README.md
262
- - CHANGELOG.md
263
- - LICENSE
264
- - .rubocop.yml
265
- - .gitignore
266
258
  - test/lib/gem_bootstrap/test_gem_bootstrap.rb
267
259
  - test/test_helper.rb
268
260
  homepage: https://github.com/agilecreativity/gem_bootstrap
269
261
  licenses:
270
262
  - MIT
263
+ metadata: {}
271
264
  post_install_message:
272
265
  rdoc_options: []
273
266
  require_paths:
274
267
  - lib
275
268
  required_ruby_version: !ruby/object:Gem::Requirement
276
- none: false
277
269
  requirements:
278
- - - ! '>='
270
+ - - ">="
279
271
  - !ruby/object:Gem::Version
280
272
  version: 1.9.3
281
273
  required_rubygems_version: !ruby/object:Gem::Requirement
282
- none: false
283
274
  requirements:
284
- - - ! '>='
275
+ - - ">="
285
276
  - !ruby/object:Gem::Version
286
277
  version: '0'
287
278
  requirements: []
288
279
  rubyforge_project:
289
- rubygems_version: 1.8.23.2
280
+ rubygems_version: 2.2.2
290
281
  signing_key:
291
- specification_version: 3
282
+ specification_version: 4
292
283
  summary: Bootstrap the creation of ruby gem so that you don't have to start from scratch
293
284
  test_files:
294
285
  - test/lib/gem_bootstrap/test_gem_bootstrap.rb