I think I'm in a loop: [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install "ruby-2.4.1" Required ruby-2.4.1 is not installed. To install do: 'rvm install "ruby-2.4.1"'
So I found a description of how to install the latest rvm but it fails too. [MacBook-Pro-10:~/apache/git/whimsy] clr% \curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable Downloading https://github.com/rvm/rvm/archive/1.29.10.tar.gz Downloading https://github.com/rvm/rvm/releases/download/1.29.10/1.29.10.tar.gz.asc gpg: Signature made Wed Mar 25 14:58:42 2020 PDT gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB gpg: Good signature from "Piotr Kuczynski <piotr.kuczyn...@gmail.com>" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB GPG verified '/Users/clr/.rvm/archives/rvm-1.29.10.tgz' Upgrading the RVM installation in /Users/clr/.rvm/ RVM PATH line found in /Users/clr/.bashrc /Users/clr/.zshrc. RVM sourcing line found in /Users/clr/.bash_profile /Users/clr/.zprofile. Installing rvm gem in 1 gemsetsError running 'command gem install /Users/clr/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc', please read /Users/clr/.rvm/log/1589398851_ruby-2.0.0-p195/gem.install.rvm->=1.11.3.9.log . Installing gem-wrappers gem in 1 gemsetsError running 'command gem install /Users/clr/.rvm/gem-cache/gem-wrappers-1.4.0.gem --local --no-ri --no-rdoc', please read /Users/clr/.rvm/log/1589398851_ruby-2.0.0-p195/gem.install.gem-wrappers->=1.4.0.log . Regenerating gem wrappers in 1 rubiesERROR: While executing gem ... (Gem::CommandLineError) Unknown command wrappers ERROR: While executing gem ... (Gem::CommandLineError) Unknown command wrappers . Upgrade of RVM in /Users/clr/.rvm/ is complete. /Users/clr/.bash_profile:1:export PATH=~/android-sdk-mac_86/tools * WARNING: Above files contains PATH= with no $PATH inside, this can break RVM, for details check https://github.com/rvm/rvm/issues/1351#issuecomment-10939525 to avoid this warning prepend $PATH Thanks for installing RVM 🙏 > On May 13, 2020, at 10:46 AM, Sam Ruby <ru...@intertwingly.net> wrote: > > On Wed, May 13, 2020 at 1:03 PM Craig Russell <apache....@gmail.com > <mailto:apache....@gmail.com>> wrote: >> >> Thanks for the suggestion. I think I did it right. Could you please take a >> look? > > LGTM. > >> Also, how do I test this on my own machine? > > I would suggest either: > > 1) Using https://github.com/apache/whimsy/blob/master/SETUPMYMAC.md > <https://github.com/apache/whimsy/blob/master/SETUPMYMAC.md>, > and visiting http://whimsy.local/roster/ <http://whimsy.local/roster/> > > 2) Creating a virtual machine using VirtualBox, loading Ubuntu on > it, and running > https://github.com/apache/whimsy/blob/master/UBUNTU.md > <https://github.com/apache/whimsy/blob/master/UBUNTU.md> > >> [MacBook-Pro-10:~/apache/git/whimsy] clr% cd www/roster/ >> [MacBook-Pro-10:whimsy/www/roster] clr% rake server >> bundle update >> /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/digest.rb:16:in `const_missing': >> library not found for class Digest::MD5 -- digest/md5 (LoadError) > > It looks like that library was introduced in Ruby version 2.4: > > https://ruby-doc.org/stdlib-2.4.0/libdoc/digest/rdoc/Digest/MD5.html > <https://ruby-doc.org/stdlib-2.4.0/libdoc/digest/rdoc/Digest/MD5.html> > > whimsy-vm4.apache.org <http://whimsy-vm4.apache.org/> runs Ruby 2.4.1. That > version or later would be fine. > > If you do want to run this tool standalone, it will currently fail > with an error in "NSCFConstantString initialize" on Mac machines. A > workaround would be to set > > export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES > >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/source/rubygems/remote.rb:26:in >> `cache_slug' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:107:in >> `cache_path' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:83:in >> `compact_index_client' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:643:in >> `warn_on_outdated_bundler' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:24:in >> `block in dispatch' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor.rb:384:in >> `dispatch' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:22:in >> `dispatch' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in >> `start' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:13:in >> `start' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:30:in `block >> in <top (required)>' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/friendly_errors.rb:121:in >> `with_friendly_errors' >> from >> /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:22:in `<top >> (required)>' >> from /usr/local/bin/bundle:23:in `load' >> from /usr/local/bin/bundle:23:in `<main>' >> rake aborted! >> Command failed with status (1): [bundle update...] >> /Users/clr/apache/git/whimsy/www/roster/Rakefile:9:in `block in <top >> (required)>' >> /usr/local/lib/ruby/gems/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top >> (required)>' >> Tasks: TOP => server => bundle => Gemfile.lock >> (See full trace by running task with --trace) > > - Sam Ruby > >>> On May 12, 2020, at 5:57 PM, Sam Ruby <ru...@intertwingly.net> wrote: >>> >>> On Tue, May 12, 2020 at 7:36 PM Craig Russell <apache....@gmail.com> wrote: >>>> >>>> https://github.com/apache/whimsy/pull/93 >>>> >>>> I'm starting this project with a simple(r) task: allowing the roster >>>> committer page to display any files related to the member's emeritus >>>> status: files in documents/emeritus and >>>> documents/emeritus-requests-received. >>>> >>>> I added a find method to the EmeritusRequestFiles and EmeritusFiles >>>> classes. There should be a way to *not* copy and paste the details of >>>> these methods, like a generic or static method. >>> >>> Looks like a job for inheritance. Example: >>> >>> class Base >>> def self.find(name) >>> self.value[name] >>> end >>> end >>> >>> class First < Base >>> def self.value >>> {text: 'first class'} >>> end >>> end >>> >>> class Second < Base >>> def self.value >>> {text: 'second class'} >>> end >>> end >>> >>> puts First.find(:text) >>> puts Second.find(:text) >>> >>>> Suggestions/comments are appreciated. >>>> >>>> Thanks, >>>> Craig >>> >>> - Sam Ruby >>> >>>>> On May 6, 2020, at 1:01 PM, Sam Ruby <ru...@intertwingly.net> wrote: >>>>> >>>>> On Wed, May 6, 2020 at 3:48 PM Craig Russell <apache....@gmail.com> wrote: >>>>>> >>>>>> I've been looking for where the roster post actions are handled. I have >>>>>> the model for committer and the html in the browser. >>>>>> >>>>>> But where are post action:emeritus and action:active handled? >>>>> >>>>> All of the routes are defined here: >>>>> >>>>> https://github.com/apache/whimsy/blob/master/www/roster/main.rb >>>>> >>>>> Unless you have unusual needs, you can take advantage of the generic >>>>> route defined here: >>>>> >>>>> https://github.com/apache/whimsy/blob/1316a898d5e8c91e8a33d89565d12efc4842dd56/www/roster/main.rb#L343 >>>>> >>>>> If you use that route, then /actions/emeritus will invoke a script by >>>>> that name in the whimsy/www/roster/views/actions directory, and will >>>>> take value returned by the last line, convert it to JSON and sent the >>>>> results back to the client. >>>>> >>>>>> Thanks, >>>>>> Craig >>>>> >>>>> - Sam Ruby >>>>> >>>>>> Craig L Russell >>>>>> c...@apache.org >>>>>> >>>> >>>> Craig L Russell >>>> c...@apache.org >>>> >> >> Craig L Russell >> c...@apache.org Craig L Russell c...@apache.org