opensource 0.3.5 → 0.3.6

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: 37302f78af43b2a1e96c347c9864517e16325f4e
4
- data.tar.gz: c1a5e3fbe71eb6f9dafd0e6a8dde5f4477efc6dc
3
+ metadata.gz: b8714dd8ab3cfe0f923895791eaa2b35ee863d92
4
+ data.tar.gz: 6a545bd08039abac000e711f607ec38ad32903a0
5
5
  SHA512:
6
- metadata.gz: 31f4dd00c5548ae4949a38a4eff1968174d96f61cb93f91985014352e5290736dce73198a759401b62730c735dadbbd418fd492912598630650eeb1f4a5d027f
7
- data.tar.gz: 99e50ebc6bb7aec2e4192c7cf28dc1fdba2540e23d4fa4931f969677b3e13e10131c885ced14b8bf5bc70cee0e390ef455a1ad6f15bce98ae518052ed91e984d
6
+ metadata.gz: 0338c3240f470221b60e8c8b3912705b4c9bb0309690c37ed4e1c53b5ee6f03d7a1763ab74933a1a4082402b09bbc61e5648a9e33b883a25d782d0dcdeb833dc
7
+ data.tar.gz: c416226f09e37b5d29636fed735fdae8d24165c0291441b3f60cc1fb154f5da841649e8e3482cc682cb4efbd31fe9a44f784256cbd04291c3a2299bdd29682dd
data/bin/opensource CHANGED
@@ -6,17 +6,12 @@ require_relative '../lib/opensource'
6
6
 
7
7
  options = {}
8
8
 
9
- puts Dir.pwd
10
- LICENSES = Dir.new("#{Dir.pwd}/templates").map do |filename|
11
- File.basename(filename, '.erb') if !['.', '..'].include?(filename)
12
- end.compact
13
-
14
9
  OptionParser.new do |opts|
15
10
  opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} OPTIONS"
16
11
  opts.separator ''
17
12
  opts.separator 'Specific options:'
18
13
 
19
- opts.on('-l', '--license LICENSE', LICENSES, "LICENSE can be #{LICENSES.join('|')}") do |l|
14
+ opts.on('-l', '--license LICENSE', Opensource::LICENSES, "LICENSE can be #{Opensource::LICENSES.join('|')}") do |l|
20
15
  options[:license] = l
21
16
  end
22
17
 
data/lib/opensource.rb CHANGED
@@ -4,5 +4,7 @@ require_relative 'opensource/owner'
4
4
  require_relative 'opensource/license'
5
5
 
6
6
  module Opensource
7
-
7
+ LICENSES = Dir.entries("./templates").map do |filename|
8
+ File.basename(filename, '.erb') if !['.', '..'].include?(filename)
9
+ end.compact
8
10
  end
@@ -1,3 +1,3 @@
1
1
  module Opensource
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
data/opensource.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["i@mohni.sh"]
11
11
  spec.summary = %q{Add a license to your opensource project}
12
12
  spec.description = %q{Add a license to your opensource project by running a simple command}
13
- spec.homepage = "http://mohni.sh/opensource"
13
+ spec.homepage = "https://github.com/mohnish/opensource.rb"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opensource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohnish Thallavajhula
@@ -60,7 +60,7 @@ files:
60
60
  - lib/opensource/version.rb
61
61
  - opensource.gemspec
62
62
  - templates/mit.erb
63
- homepage: http://mohni.sh/opensource
63
+ homepage: https://github.com/mohnish/opensource.rb
64
64
  licenses:
65
65
  - MIT
66
66
  metadata: {}