Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
Ben Burkert 8058b4454f Fix Key#inspect, Key#to_s, SubKey#inspect, & SubKey#to_s on 1.8.
* sprintf('%c', 'a') works fine on 1.9, but on 1.8 it raises "TypeError:
  can't convert String into Integer"
2011-08-08 14:10:26 -07:00
Albert Llop c213840f65 Requiring rubygems on test_helper, otherwise crashes in 1.8.7 2011-05-11 13:47:47 +02:00
Albert Llop a42bf18677 GPGME::Signature, GPGME::Key and GPGME::SubKey helper methods and tests,
* GPGME::Signature now has methods to check if its expired, bad, revoked, etc.
* GPGME::Key and GPGME::SubKey can now say if they're expired.
2011-05-09 18:31:28 +02:00
Albert Llop d36f9f3296 Improved general test coverage. 2011-05-09 18:31:07 +02:00
Albert Llop eb1e6f4112 Moved all GPGME::Crypto class methods to instance methods. Tests and docs updated.
* This allows for a nicer interface with common options:
  crypto = GPGME::Crypto.new :armor => true, :password => "gpgme"
  crypto.encrypt "Some text", :symmetric => true
* Also solves the problem of having increased the level of modules that were needed
  to call methods.
2011-05-09 18:27:12 +02:00
Albert Llop 49410a7b2d GPGME::Engine reviewed and GPGME::Engine.home_dir= added. Used in tests. 2011-05-09 18:26:05 +02:00
Albert Llop 20f7165491 Symmetric encryption is now explicit with :symmetric option. 2011-05-09 18:25:21 +02:00
Albert Llop cdb211c958 GPGME::Ctx.new :key_password option automatically sets a callback func which puts the passed value. 2011-05-09 18:23:44 +02:00
Albert Llop ee66dcd440 Moved HighLevel API to Crypto and Engine modules.
This is an effort to split responsibilities in different class/modules that
make more sense, and not everything in one single module.
2011-05-09 18:23:43 +02:00
Albert Llop 0440cc295a GPGME.import/export moved from HighLevel to GPGME::Key 2011-05-09 18:23:43 +02:00
Albert Llop 59869c326b GPGME::Ctx improved tests for it 2011-05-09 18:23:43 +02:00
Albert Llop cb87d30678 GPGME::Ctx#generate_key fixed and with tests 2011-05-09 18:23:43 +02:00
Albert Llop c170dcd9aa Tests now have 4 keys available 2011-05-09 18:23:43 +02:00
Albert Llop d85482b19f GPGME::Ctx refactored, documentation and tests 2011-05-09 18:23:40 +02:00
Albert Llop 3e59430d8e Moved high level API to a new file, tests moved too. 2011-05-09 18:09:57 +02:00
Albert Llop f9d9823cc7 GPGME.decrypt refactored, documented, and with tests 2011-05-09 18:06:27 +02:00
Albert Llop 1003ff0b58 GPGME.encrypt refactored with some tests 2011-05-09 18:06:27 +02:00
Albert Llop 0c5c28171b GPGME.resolve_keys => GPGME::Key.find, tests, and extracted common code for Key and SubKey 2011-05-09 18:06:27 +02:00
Albert Llop dee891d20e Refactoring of GPGME::Data, with documentation and tests 2011-05-09 18:06:27 +02:00
Albert Llop a9f1917ddd Update of structure: bundler, minitest, ruby-debug and split classes into new files. 2011-05-09 18:06:14 +02:00