genRelease 0.1.0 → 1.0.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: 4f77cc0b64bd944b6d92fdaacf9f3842b9bdbbd9
4
- data.tar.gz: f974ed647361a226f26732fbfdd9c95b75511c4a
3
+ metadata.gz: 3bf46944a48faae33ca1ccb8f83efb2a73a0d0bf
4
+ data.tar.gz: 5764d8b71f1e015f74242a6fe96322a7c0745e0d
5
5
  SHA512:
6
- metadata.gz: 6f8da4d91797d58140cfeb6530fe96bf2c4b8e8dac6475b1d83a99dd2ac0139b83d7fcac03ade316f33decab5bec9e90eddb37fdab7c18685ee34e9a4fe71a69
7
- data.tar.gz: 760753e09ff4f9db86666054d08226217ff92ac06ace4a6df649b7d42fac11c257cf3af0295205df623cf90873e1406d60a2451435d80a76d920019ca23710bb
6
+ metadata.gz: 5e24d0f7e878916c68ff0e6caa273439cd5d6b3c47aa732d7e6aef6f57672683ec24e3dc73a43cb9dd85696493f822efc10d41e94d0cc3643b040a90b489a38a
7
+ data.tar.gz: c16f152b70397f9641dc3661fc6df2f4588ace9dde40f2d6429977d393a2f14f99bfcc6bb2726d7a5aac1fd88ac43cc9430dbedf5dd9c867df9a66f7f3328a7a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- genRelease (0.0.1)
4
+ genRelease (0.1.3)
5
5
  gli (= 2.12.2)
6
6
 
7
7
  GEM
@@ -8,10 +8,6 @@ rescue LoadError
8
8
  STDERR.puts "Feel free to remove this message from bin/genRelease now"
9
9
  exit 64
10
10
  end
11
- # require commands files
12
- Dir.glob("./lib/genRelease/commands/*.rb").sort.each do |f|
13
- require f
14
- end
15
11
 
16
12
  include GLI::App
17
13
 
@@ -2,3 +2,12 @@ require 'genRelease/version.rb'
2
2
 
3
3
  # Add requires for other files you add to your project here, so
4
4
  # you just need to require this one file in your bin file
5
+ module GenRelease
6
+ autoload :FileUtils, 'genRelease/commands/help_modules/FileUtils'
7
+ autoload :OpenSSLUtils, 'genRelease/commands/help_modules/OpenSSLUtils'
8
+ module Commands
9
+ autoload :Sign, 'genRelease/commands/sign'
10
+ autoload :Create, 'genRelease/commands/create'
11
+ autoload :Build, 'genRelease/commands/build'
12
+ end
13
+ end
@@ -1,6 +1,5 @@
1
1
  require 'digest/md5'
2
2
  require 'digest/sha1'
3
- require 'genRelease/commands/help_modules/FileUtils'
4
3
  module GenRelease
5
4
  module Commands
6
5
  class Build
@@ -60,4 +59,4 @@ module GenRelease
60
59
  end
61
60
  end
62
61
  end
63
- end
62
+ end
@@ -1,4 +1,3 @@
1
- require 'genRelease/commands/help_modules/OpenSSLUtils'
2
1
  module GenRelease
3
2
  module Commands
4
3
  class Create
@@ -12,4 +11,4 @@ module GenRelease
12
11
  end
13
12
  end
14
13
  end
15
- end
14
+ end
@@ -1,4 +1,4 @@
1
- 'genRelease/commands/help_modules/FileUtils'
1
+ require 'openssl'
2
2
  module GenRelease
3
3
  module OpenSSLUtils
4
4
  extend self
@@ -7,7 +7,7 @@ module GenRelease
7
7
  PEM = "rsa.pem"
8
8
 
9
9
  def new_certification_file
10
- rsa = OpenSSL::PKey::RSA.new 2048
10
+ rsa = ::OpenSSL::PKey::RSA.new 2048
11
11
  p rsa.to_pem
12
12
  FileUtils::write PRIKEY, rsa.to_pem
13
13
  p rsa.public_key.to_s
@@ -15,4 +15,4 @@ module GenRelease
15
15
  FileUtils::write PEM, "#{rsa.public_key}#{rsa.to_pem}"
16
16
  end
17
17
  end
18
- end
18
+ end
@@ -1,7 +1,6 @@
1
1
  require 'digest/md5'
2
2
  require 'digest/sha1'
3
- require 'genRelease/commands/help_modules/FileUtils'
4
-
3
+ require 'openssl'
5
4
  module GenRelease
6
5
  module Commands
7
6
  class Sign
@@ -12,11 +11,11 @@ module GenRelease
12
11
  end
13
12
 
14
13
  def sign
15
- @rsa = OpenSSL::PKey::RSA.new File.read "#{@current_dir}#{File::SEPARATOR}rsa.pem"
14
+ @rsa = ::OpenSSL::PKey::RSA.new File.read "#{@current_dir}#{File::SEPARATOR}rsa.pem"
16
15
  content = File.open("#{@current_dir}#{File::SEPARATOR}Release",'rb') {|file| file.read}
17
16
  message = @rsa.private_encrypt(content.gsub("\n",""))
18
- FileUtils::write "#{@current_dir}#{File::SEPARATOR}#{FILENAME}",message
17
+ ::GenRelease::FileUtils::write "#{@current_dir}#{File::SEPARATOR}#{FILENAME}",message
19
18
  end
20
19
  end
21
20
  end
22
- end
21
+ end
@@ -1,3 +1,3 @@
1
1
  module GenRelease
2
- VERSION = '0.1.0'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genRelease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - megrez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake