gemsmith 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07cd4df85b4cf55e1d3bd17526cb1a61d1776a9d
4
- data.tar.gz: d9bd360a9dd640f4783db77e77c943482646dc63
3
+ metadata.gz: ed4b0644caf9cad4f2608978f4e730d3e7b92dda
4
+ data.tar.gz: e98c4c2a2d3d91f1b18b6e2fa3da722c0455d374
5
5
  SHA512:
6
- metadata.gz: e6a6ebe567e658eaaccd0434db33eee317e8388eba11a90ca2652f2bde45ce4cb20c1ea3cf6bd116ef7d42111c5f5588a0834f3fea5bd8bcacfadc15f14bdf13
7
- data.tar.gz: ae3eab57ce10d3217c37fd4614440792822dd1f494dc9881bf4677665ef977440be15c2a51c9f0b541d9e8f11280a01f0914af6794305ab3967f22b0a22239f3
6
+ metadata.gz: 0d51edd62620c7383e42ae07f44f79a55748ea8ea5cff2bd4db996284f8d931f0405f3002007585fc81703b27d3029f3047a8fac53063900436e9d094f1d879e
7
+ data.tar.gz: e8c4aa16228b37f97e21780533f5afff5d5ea971bd1dea5ffe11d6c79d969343c48c10f6741a038e2a013b2cf757b8e0e6ef6e8d0d86593a4ec7e8e96d95b4ee
@@ -2,9 +2,9 @@
2
2
 
3
3
  require "gemsmith/identity"
4
4
  require "gemsmith/git"
5
- require "gemsmith/credentials"
6
5
  require "gemsmith/authenticators/basic"
7
6
  require "gemsmith/authenticators/ruby_gems"
7
+ require "gemsmith/credentials"
8
8
  require "gemsmith/errors/base"
9
9
  require "gemsmith/errors/requirement_conversion"
10
10
  require "gemsmith/errors/requirement_operator"
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "net/http"
4
4
  require "uri"
5
+ require "openssl"
5
6
 
6
7
  module Gemsmith
7
8
  module Authenticators
@@ -36,6 +36,10 @@ module Gemsmith
36
36
  def gem_path
37
37
  configuration.dig :gem, :path
38
38
  end
39
+
40
+ def gem_root
41
+ File.join cli.destination_root, gem_name
42
+ end
39
43
  end
40
44
  end
41
45
  end
@@ -5,7 +5,7 @@ module Gemsmith
5
5
  # Generates Bundler support.
6
6
  class Bundler < Base
7
7
  def run
8
- Dir.chdir(cli.destination_root) do
8
+ Dir.chdir(gem_root) do
9
9
  cli.info "Installing gem dependencies..."
10
10
  `bundle install`
11
11
  end
@@ -15,8 +15,8 @@ module Gemsmith
15
15
  end
16
16
 
17
17
  def update_readme
18
- file = File.join cli.destination_root, configuration.dig(:gem, :name), "README.md"
19
- Tocer::Writer.new(file).write
18
+ readme = File.join gem_root, "README.md"
19
+ Tocer::Writer.new(readme).write
20
20
  end
21
21
 
22
22
  def run
@@ -9,7 +9,7 @@ module Gemsmith
9
9
  end
10
10
 
11
11
  def create_repository
12
- Dir.chdir(gem_dir) do
12
+ Dir.chdir(gem_root) do
13
13
  `git init`
14
14
  `git add .`
15
15
  `git commit --all --no-verify --message "Added Gemsmith files."`
@@ -20,12 +20,6 @@ module Gemsmith
20
20
  create_ignore_file
21
21
  create_repository
22
22
  end
23
-
24
- private
25
-
26
- def gem_dir
27
- File.join cli.destination_root, configuration.dig(:gem, :name)
28
- end
29
23
  end
30
24
  end
31
25
  end
@@ -33,7 +33,7 @@ module Gemsmith
33
33
  private
34
34
 
35
35
  def whitelisted_files
36
- Pathname.glob(%(#{cli.destination_root}/**/*{#{whitelist.join ","}})).select(&:file?)
36
+ Pathname.glob(%(#{gem_root}/**/*{#{whitelist.join ","}})).select(&:file?)
37
37
  end
38
38
  end
39
39
  end
@@ -12,7 +12,7 @@ module Gemsmith
12
12
  end
13
13
 
14
14
  def self.version
15
- "9.2.0"
15
+ "9.3.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -1,4 +1,4 @@
1
- guard :rspec, cmd: "bundle exec rspec" do
1
+ guard :rspec, cmd: "bundle exec rspec --format documentation" do
2
2
  watch(%r(^spec/.+_spec\.rb$))
3
3
  watch(%r(^lib/(.+)\.rb$)) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
4
  watch("spec/spec_helper.rb") { "spec" }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.0
4
+ version: 9.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-11 00:00:00.000000000 Z
11
+ date: 2017-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -435,7 +435,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
435
435
  version: '0'
436
436
  requirements: []
437
437
  rubyforge_project:
438
- rubygems_version: 2.6.10
438
+ rubygems_version: 2.6.11
439
439
  signing_key:
440
440
  specification_version: 4
441
441
  summary: A command line interface for smithing new Ruby gems.