@@ -12423,3 +12423,36 @@ plus extensible, lightweight validation and coercion.")
(home-page
"https://github.com/tomdalling/value_semantics")
(license license:expat)))
+
+(define-public ruby-promise.rb
+ (package
+ (name "ruby-promise.rb")
+ (version "0.7.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "promise.rb" version))
+ (sha256
+ (base32
+ "0a819sikcqvhi8hck1y10d1nv2qkjvmmm553626fmrh51h2i089d"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:test-target "spec"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'extract-gemspec 'less-strict-dependencies
+ (lambda _
+ (substitute* "Rakefile"
+ (("if Gem.ruby_version.*") "if false\n"))
+ (substitute* "spec/spec_helper.rb"
+ ((".*devtools/spec_helper.*") "\n"))
+ #t)))))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)
+ ("ruby-rspec-its" ,ruby-rspec-its)
+ ("ruby-awesome-print" ,ruby-awesome-print)
+ ("ruby-fuubar" ,ruby-fuubar)))
+ (synopsis "Promises/A+ for Ruby")
+ (description "Promises/A+ for Ruby")
+ (home-page "https://github.com/lgierth/promise.rb")
+ (license license:unlicense)))