waxseal 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1de7140387804ef43db83a00f586a229933e1c46
4
+ data.tar.gz: 1b765e9e90f1c02d931434254e0fe0de11e712d6
5
+ SHA512:
6
+ metadata.gz: bb2b61e7fcca1d023123623ff4fe6b1a85e053a0e9d53cfb9ca93634316e806e0727f3e908f22ac0a3e6fd170ec22087a977a5b1182f0a6300dea0f7d9ac474e
7
+ data.tar.gz: 6b387ec87d6f23171bc59b1d820454fb79dc0fcd89828072a1cca0a7e23ab62db2a46bff529b6ec6db32c9f4c297e81cebb0bd93d621b04a3c9e3a3c68af8465
checksums.yaml.gz.sig ADDED
Binary file
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # waxseal
2
2
 
3
+ ![seal](http://www.maleschek.com/assets/images/initialen-siegel.jpg)
4
+
3
5
  ## Install
4
6
 
5
- [sudo] gem install waxseal
7
+ [sudo] gem cert --add <(curl -L https://gist.github.com/steakknife/5333881/raw/gem-public_cert.pem) # adds my cert (do once)
8
+ [sudo] gem install waxseal -P HighSecurity
6
9
 
7
10
  ## Usage
8
11
 
@@ -15,3 +18,5 @@
15
18
  ## License
16
19
 
17
20
  MIT
21
+
22
+ (Try not to get wax all over, it's hard to clean.)
data/bin/waxseal CHANGED
@@ -45,7 +45,6 @@ def email
45
45
  return result
46
46
  end
47
47
 
48
-
49
48
  def check_key(confirm = true)
50
49
  keys_path = File.expand_path(PERSONAL_KEY_PATH)
51
50
  FileUtils.mkdir_p(keys_path)
@@ -61,7 +60,7 @@ def check_key(confirm = true)
61
60
  fail 'Could not create certificates for gem signing'
62
61
  end
63
62
  end
64
- FileUtils.chmod(0600, PRIVATE_KEY_FILENAME)
63
+ FileUtils.chmod(0400, PRIVATE_KEY_FILENAME)
65
64
  FileUtils.chmod(0644, PUBLIC_CERT_FILENAME)
66
65
  unless system "gem cert --add #{PUBLIC_CERT_FILENAME}"
67
66
  fail 'Could not add certificate to trusted gem cert list'
@@ -87,13 +86,13 @@ def make_signable(confirm = true)
87
86
  puts "updated #{gemspec_file} for signing"
88
87
  end
89
88
 
90
-
91
-
92
89
  def run(confirm, commit)
93
90
  check_key(confirm)
94
91
  make_signable(confirm)
95
92
  if commit
96
- unless system "git add *.gemspec #{PUBLIC_CERT_FILENAME} && git commit -m 'enable gem signing: stamped with waxseal'"
93
+ args = []
94
+ args << '--signoff' << '--gpg-sign' if $gpg_sign
95
+ unless system "git add *.gemspec #{PUBLIC_CERT_FILENAME} && git commit #{args.join(' ')} -m 'enable gem signing: stamped with waxseal'"
97
96
  fail "Could not commit changes made by waxseal, please save changed *.gemspec and #{PUBLIC_CERT_FILENAME}"
98
97
  end
99
98
  end
@@ -120,6 +119,7 @@ end
120
119
 
121
120
  OptionParser.new do |o|
122
121
  o.on('-c', '--commit', "Make a new git commit automatically. can also set WAXSEAL_AUTO_COMMIT=1") { $commit = true }
122
+ o.on('-s', '--sign-also-with-gpg' "Sign commit using ") { $sign = true }
123
123
  o.on('-e', '--email EMAIL', "Email address to use for signing, overrides optional variable WAXSEAL_GEM_SIGNING_EMAIL") { |email| set_email(email) }
124
124
  o.on('-f', '--force', "No prompts. Can also be set by WAXSEAL_NO_CONFIRM=1") { $confirm = false }
125
125
  o.on('-h', '--help') { $stderr.puts o ; exit 1 }
@@ -1,3 +1,3 @@
1
1
  module Waxseal
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,79 +1,66 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waxseal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Barry Allard
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain:
12
- - !binary |-
13
- LS0tLS1CRUdJTiBDRVJUSUZJ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FWjP438UoUTs
19
+ J17G/HuQb0SmjPCMZy8967Fb2wqs+QRbcmpnmtYA1vilgC2CIzntFOFLSA2KpfZH
20
+ dJSsg6aaXqwS4/KJxK6ooDsp+iR6zGTINwkdUt4ktpqgCHz1VYuzvii2slnazbm4
21
+ cQUi/wWIynHyzzdrPvDhGgaZm161MYHidCtV+wzqwjeVeFsyQwCFVEkrD/0G98ho
22
+ Gti8vB6Xj6VjO3n+kh/KlYZgmM7SWauLpo+2RGlIYVYdpQQWGwhMEmvSgBxjfX4c
23
+ unDFxO1ZAQIRBQIDAQABozkwNzAJBgNVHRMEAjAAMB0GA1UdDgQWBBS+Kk7ypi9u
24
+ kFUcaqJlpaKO7eWiUTALBgNVHQ8EBAMCBLAwDQYJKoZIhvcNAQEFBQADggEBALie
25
+ YCNeW9EIQ/j8+2emMm0484JVtycOqPyIu5UALtsU42En392HVOZ6oEA/rh2KFRvq
26
+ dcDwcJPI/u7PzWp9TNp81PTShtHMtSs7Wv1UsC04vQ9b6XBEomWbbzoxxgzyjP7l
27
+ ZV4L5HzmX0nDOSEFJyYkqbwgYjIoldg2TMlw2BeoVqGm7Gx1ljXKb2Kg5iasyDpI
28
+ C/gAiGBIAX7FxyIXmjZq38xWBOxyGF3NFL/W6z+vhJg81HGdNBCpIdwrQ/eXOjba
29
+ VqwwfY+Ms3gcCHSERG1X4AFW1zesX+UWcTCwVLtAsuRWQhC8odDSVDWzUfkZmOQt
30
+ ViIxU1ZphInql7L5g34=
31
+ -----END CERTIFICATE-----
32
+ date: 2014-01-13 00:00:00.000000000 Z
41
33
  dependencies:
42
34
  - !ruby/object:Gem::Dependency
43
35
  name: rspec
44
36
  requirement: !ruby/object:Gem::Requirement
45
- none: false
46
37
  requirements:
47
- - - ! '>='
38
+ - - ">="
48
39
  - !ruby/object:Gem::Version
49
40
  version: '0'
50
41
  type: :development
51
42
  prerelease: false
52
43
  version_requirements: !ruby/object:Gem::Requirement
53
- none: false
54
44
  requirements:
55
- - - ! '>='
45
+ - - ">="
56
46
  - !ruby/object:Gem::Version
57
47
  version: '0'
58
48
  - !ruby/object:Gem::Dependency
59
49
  name: shoulda
60
50
  requirement: !ruby/object:Gem::Requirement
61
- none: false
62
51
  requirements:
63
- - - ! '>='
52
+ - - ">="
64
53
  - !ruby/object:Gem::Version
65
54
  version: '0'
66
55
  type: :development
67
56
  prerelease: false
68
57
  version_requirements: !ruby/object:Gem::Requirement
69
- none: false
70
58
  requirements:
71
- - - ! '>='
59
+ - - ">="
72
60
  - !ruby/object:Gem::Version
73
61
  version: '0'
74
- description: ! ' Adds certificate stuff to your gems.
75
-
76
- '
62
+ description: |2
63
+ Adds certificate stuff to your gems.
77
64
  email:
78
65
  - barry.allard@gmail.com
79
66
  executables:
@@ -81,14 +68,15 @@ executables:
81
68
  extensions: []
82
69
  extra_rdoc_files: []
83
70
  files:
84
- - lib/waxseal/version.rb
85
71
  - LICENSE
86
72
  - README.md
87
73
  - bin/waxseal
74
+ - lib/waxseal/version.rb
88
75
  homepage: https://github.com/steakknife/waxseal
89
76
  licenses:
90
77
  - MIT
91
- post_install_message: ! "\n :: waxseal | post-install notes ::\n\n In this order...\n\n
78
+ metadata: {}
79
+ post_install_message: "\n :: waxseal | post-install notes ::\n\n In this order...\n\n
92
80
  \ - If rbenv is installed, run:\n\n rbenv rehash\n\n - If ZSH is
93
81
  installed, run:\n\n rehash\n\n And then just cd to any of your gem's unsigned
94
82
  source directory and run `waxseal`\n\n Thanks for installing waxseal. \n\n\n"
@@ -96,22 +84,19 @@ rdoc_options: []
96
84
  require_paths:
97
85
  - lib
98
86
  required_ruby_version: !ruby/object:Gem::Requirement
99
- none: false
100
87
  requirements:
101
- - - ! '>='
88
+ - - ">="
102
89
  - !ruby/object:Gem::Version
103
90
  version: '0'
104
91
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
92
  requirements:
107
- - - ! '>='
93
+ - - ">="
108
94
  - !ruby/object:Gem::Version
109
95
  version: '0'
110
96
  requirements: []
111
97
  rubyforge_project:
112
- rubygems_version: 1.8.23
98
+ rubygems_version: 2.2.0
113
99
  signing_key:
114
- specification_version: 3
100
+ specification_version: 4
115
101
  summary: Sign thee gems with a fancy, vintage wax seal
116
102
  test_files: []
117
- has_rdoc:
metadata.gz.sig CHANGED
Binary file