gemify 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. data/lib/gemify.rb +2 -4
  2. metadata +3 -2
data/lib/gemify.rb CHANGED
@@ -9,9 +9,7 @@ class Gemify
9
9
  REPLACE = {:rubyforge_project => "RubyForge project"}
10
10
  def initialize
11
11
  @settings = {}
12
- @bin = Dir["bin/**/*"]
13
- @lib = Dir["lib/**/*"]
14
- @all = @bin + @lib
12
+ @all = (@bin = Dir["bin/**/*"]) + Dir["lib/**/*"]
15
13
 
16
14
  if @all.empty?
17
15
  puts "Can't find anything to make a gem out of..."
@@ -91,7 +89,7 @@ class Gemify
91
89
  s.platform = Gem::Platform::RUBY
92
90
  s.files = @all
93
91
  s.bindir = "bin"
94
- s.require_paths = "lib"
92
+ s.require_path = "lib"
95
93
 
96
94
  unless @bin.empty?
97
95
  s.executables = @bin.map{|x|x[4..-1]}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Holm
@@ -29,7 +29,8 @@ homepage: http://dojo.rubyforge.org
29
29
  post_install_message:
30
30
  rdoc_options: []
31
31
 
32
- require_paths: lib
32
+ require_paths:
33
+ - lib
33
34
  required_ruby_version: !ruby/object:Gem::Requirement
34
35
  requirements:
35
36
  - - ">="