Skip to content

Commit cc611f8

Browse files
committed
Move library logo image to doc folder
* Also ignore from gem build [ci skip]
1 parent 25d3b68 commit cc611f8

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Gemfile.lock
77
InstalledFiles
88
_yardoc
99
coverage
10-
doc/
1110
lib/bundler/man
1211
pkg
1312
rdoc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Decent Exposure](decent_exposure.png)
1+
![Decent Exposure](./doc/decent_exposure.png)
22

33
[![Gem Version](https://img.shields.io/gem/v/decent_exposure.svg)](https://rubygems.org/gems/decent_exposure)
44
[![Build Status](https://img.shields.io/github/workflow/status/hashrocket/decent_exposure/CI)](https://github.com/hashrocket/decent_exposure/actions?query=workflow%3ACI)

decent_exposure.gemspec

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
require File.expand_path("../lib/decent_exposure/version", __FILE__)
1+
lib = File.expand_path("../lib", __FILE__)
2+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3+
require "version"
24

35
Gem::Specification.new do |spec|
46
spec.name = "decent_exposure"
57
spec.version = DecentExposure::VERSION
68
spec.authors = ["Pavel Pravosud", "Stephen Caudill"]
79
spec.email = ["info@hashrocket.com"]
8-
spec.summary = "A helper for creating declarative interfaces in controllers"
10+
spec.summary = "Create declarative interfaces in Ruby on Rails controllers & views"
911
spec.description = '
1012
DecentExposure helps you program to an interface, rather than an
1113
implementation in your Rails controllers. The fact of the matter is that
@@ -16,8 +18,9 @@ Gem::Specification.new do |spec|
1618
'
1719
spec.homepage = "https://github.com/hashrocket/decent_exposure"
1820
spec.license = "MIT"
19-
spec.files = `git ls-files -z`.split("\x0")
20-
spec.test_files = spec.files.grep(/\Aspec\//)
21+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
22+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|doc)/}) }
23+
end
2124
spec.require_path = "lib"
2225

2326
spec.required_ruby_version = ">= 2.6"

0 commit comments

Comments
 (0)