CocoaPods / Nanaimo

A native ruby implementation of ASCII plist parsing & serializing
MIT License
40 stars 7 forks source link

uninitialized constant Nanaimo::Writer::XMLWriter::Date #50

Open gmazzo opened 4 years ago

gmazzo commented 4 years ago

I'm trying to setup a CD environment using JRuby, but I'm getting this error while trying to validate a pod:

uninitialized constant Nanaimo::Writer::XMLWriter::Date
Did you mean?  Nanaimo::Writer::XMLWriter::Date

The same PodSpec validates fine if I run the command com MacOS native Ruby. Any clues why this Date constant may not be loading?

Error log

Validating spec
 -> MyPod (0.2.1)
    - ERROR | [iOS] unknown: Encountered an unknown error (uninitialized constant Nanaimo::Writer::XMLWriter::Date
Did you mean?  Nanaimo::Writer::XMLWriter::Date
               Date
               Nanaimo::Data
               Data) during validation.

pod env

   CocoaPods : 1.9.1
        Ruby : jruby 9.2.11.0 (2.5.7) 2020-03-02 612d7a05a6 Java HotSpot(TM) 64-Bit Server VM 25.212-b10 on 1.8.0_212-b10 +jit [darwin-x86_64]
    RubyGems : 3.0.6
        Host : Mac OS X 10.15.3 (19D76)
       Xcode : 11.3.1 (11C504)
         Git : git version 2.21.1 (Apple Git-122.3)
Ruby lib dir : uri:classloader:/META-INF/jruby.home/lib
Repositories : 

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

gem list

*** LOCAL GEMS ***
activesupport (4.2.11.1)
algoliasearch (1.27.1)
atomos (0.1.3)
CFPropertyList (3.0.2)
claide (1.0.3)
cmath (default: 1.0.0)
cocoapods (1.9.1)
cocoapods-core (1.9.1)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.3.0)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.4.1)
cocoapods-try (1.1.0)
colored2 (3.1.2)
concurrent-ruby (1.1.6)
csv (default: 1.0.0)
did_you_mean (1.2.0)
escape (0.0.4)
ethon (0.12.0)
ffi (1.12.2 java)
fileutils (default: 1.1.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (0.9.5)
ipaddr (default: 1.2.0)
jar-dependencies (default: 0.4.0)
jruby-openssl (default: 0.10.4 java)
jruby-readline (default: 1.3.7 java)
json (default: 2.2.0 java)
minitest (5.10.3)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
net-telnet (0.1.1)
netrc (0.11.0)
power_assert (1.1.3)
psych (default: 3.1.0 java)
rake (12.3.2)
rake-ant (default: 1.0.4)
rdoc (default: 6.1.2)
ruby-macho (1.4.0)
scanf (default: 1.0.0)
test-unit (3.2.8)
thread_safe (0.3.6 java)
typhoeus (1.3.1)
tzinfo (1.2.6)
webrick (default: 1.4.2)
xcodeproj (1.15.0)
xmlrpc (0.3.0)
amorde commented 4 years ago

Not sure, we have seen similar issues reported to CocoaPods when using JRuby but I don't know enough about JRuby to know why this isn't working

gmazzo commented 4 years ago

I can confirm the problem is with an incompatibility with JRuby. But yet I don't know who should fix it, to them to match the Ruby date implemention o here to not depend on this missing Date's feature.

segiddins commented 2 years ago

think it's been fixed on nanaimo master