An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

bitwarden_ruby.rb is now rubywarden.rb (#58)

authored by

Ed Marshall and committed by
joshua stein
10da09e0 565c9d84

+10 -10
+1 -1
Rakefile
··· 7 7 8 8 namespace :db do 9 9 task :load_config do 10 - require "./lib/bitwarden_ruby.rb" 10 + require "./lib/rubywarden.rb" 11 11 end 12 12 end
+1 -1
tools/1password_import.rb
··· 25 25 # bitwarden-ruby installation after creating a new account. 26 26 # 27 27 28 - require File.realpath(File.dirname(__FILE__) + "/../lib/bitwarden_ruby.rb") 28 + require File.realpath(File.dirname(__FILE__) + "/../lib/rubywarden.rb") 29 29 require "getoptlong" 30 30 require 'uri' 31 31
+1 -1
tools/activate_totp.rb
··· 22 22 # TOTP secret is saved on the user account. 23 23 # 24 24 25 - require File.realpath(File.dirname(__FILE__) + "/../lib/bitwarden_ruby.rb") 25 + require File.realpath(File.dirname(__FILE__) + "/../lib/rubywarden.rb") 26 26 require "getoptlong" 27 27 require "rotp" 28 28 require "rqrcode"
+1 -1
tools/bitwarden_import.rb
··· 24 24 # bitwarden-ruby installation after creating a new account. 25 25 # 26 26 27 - require File.realpath(File.dirname(__FILE__) + '/../lib/bitwarden_ruby.rb') 27 + require File.realpath(File.dirname(__FILE__) + '/../lib/rubywarden.rb') 28 28 29 29 require 'csv' 30 30 require 'getoptlong'
+1 -1
tools/change_master_password.rb
··· 15 15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 # 17 17 18 - require File.realpath(File.dirname(__FILE__) + "/../lib/bitwarden_ruby.rb") 18 + require File.realpath(File.dirname(__FILE__) + "/../lib/rubywarden.rb") 19 19 require "getoptlong" 20 20 21 21 def usage
+2 -2
tools/keepass_import.rb
··· 26 26 # bitwarden-ruby installation after creating a new account. 27 27 # 28 28 29 - require File.realpath(File.dirname(__FILE__) + "/../lib/bitwarden_ruby.rb") 29 + require File.realpath(File.dirname(__FILE__) + "/../lib/rubywarden.rb") 30 30 require "getoptlong" 31 31 require "rubeepass" 32 32 ··· 141 141 cdata['Notes'] = encrypt(entry[1].notes) if entry[1].notes.present? 142 142 143 143 if entry[1].attachments.any? 144 - puts "This entry has an attachment - but it won't be converted as bitwarden_ruby does not support attachments yet." 144 + puts "This entry has an attachment - but it won't be converted as rubywarden does not support attachments yet." 145 145 end 146 146 147 147 c.data = cdata.to_json
+1 -1
tools/lastpass_import.rb
··· 26 26 # bitwarden-ruby installation after creating a new account. 27 27 # 28 28 29 - require File.realpath(File.dirname(__FILE__) + "/../lib/bitwarden_ruby.rb") 29 + require File.realpath(File.dirname(__FILE__) + "/../lib/rubywarden.rb") 30 30 require "getoptlong" 31 31 require "csv" 32 32
+2 -2
tools/migrate_to_ar.rb
··· 31 31 32 32 require 'yaml_db' 33 33 require 'fileutils' 34 - require File.realpath(File.dirname(__FILE__) + "/../lib/bitwarden_ruby.rb") 34 + require File.realpath(File.dirname(__FILE__) + "/../lib/rubywarden.rb") 35 35 ActiveRecord::Base.remove_connection 36 36 37 37 data_file = "db/dump.yml" ··· 66 66 i.update created_at: Time.at(i.created_at), updated_at: Time.at(i.updated_at) 67 67 end 68 68 end 69 - DBModel.record_timestamps = true 69 + DBModel.record_timestamps = true