licenser 0.1.1 → 0.2.1

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: 4de18d0f6fc3881126824cc8cf534402c41a258e
4
- data.tar.gz: 478d1eb93507fe9291606c5f4d823f66296f32b0
3
+ metadata.gz: 69963b297a9588f0e2b104bf73bbbbfbe9f293ed
4
+ data.tar.gz: 785692ece876f15de1b48593d0ace49bc2eada19
5
5
  SHA512:
6
- metadata.gz: 5df60db989cf220c657e0bee367796aaced02d064488f7baeec7f51f2330a74f70e62d6922b85fbcef6fc36b5283ce0fbafef61d8071029e3257fa66d43fd28c
7
- data.tar.gz: 19a0b9ab217513628b9cc3f438de6890f921c32a37eb0975935dfbe3540fe9744387c071779f67a3ad9c637e5e116fa08123434eb210855066a3463ddc6165c2
6
+ metadata.gz: 663615601ac9d3ab411a1d0cfd5ebe2ec416ef8bb2bbeac12cb95e62a109c68c0c0a905cef980ca2adfdc3d951048cafb483c27e4be8ca729ba6ba70e86c7f23
7
+ data.tar.gz: ff89cc2b84ee274312b1ec6eedb31ce86f7356382742cf83e2f7b93659f6cfb781fea5d4894c1abcb9876971cad9c66a1b1a65df345470c8f6d3a9ba78390d59
@@ -1,5 +1,6 @@
1
1
  require 'clamp'
2
2
 
3
+ require_relative "license/path"
3
4
  require_relative "license/license"
4
5
  require_relative "license/licenses"
5
6
  require_relative "license/opt_parse"
@@ -9,7 +9,7 @@ module License
9
9
 
10
10
  def parse_license
11
11
  if License::LICENSES.include? @license
12
- FileUtils.cp("data/#{@license}", "#{@outfile}")
12
+ FileUtils.cp(License::PATH + "/data/#{@license}", "#{@outfile}")
13
13
  else
14
14
  puts "Unsupported license please use --list to show all supported licenses"
15
15
  exit
@@ -1,6 +1,3 @@
1
- # TODO
2
- # Make this automated
3
-
4
1
  module License
5
- LICENSES = `ls --ignore="*.notice" data/`.split("\n")
2
+ LICENSES = `ls --ignore="*.notice" #{License::PATH}/data`.split("\n")
6
3
  end
@@ -0,0 +1,3 @@
1
+ module License
2
+ PATH = File.expand_path("../../../",__FILE__)
3
+ end
@@ -1,3 +1,3 @@
1
1
  module License
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licenser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Skoglund
@@ -33,6 +33,7 @@ files:
33
33
  - lib/license/license.rb
34
34
  - lib/license/licenses.rb
35
35
  - lib/license/opt_parse.rb
36
+ - lib/license/path.rb
36
37
  - lib/version.rb
37
38
  homepage: http://github.com/EricIO/license
38
39
  licenses: