ginjo / rfm

FileMaker to Ruby adapter.
MIT License
45 stars 22 forks source link

undefined method `encoding' for #<Array:0x007f91ee3a2028> #36

Open caseyprovost opened 8 years ago

caseyprovost commented 8 years ago

I get "undefined method encoding for #Array:0x007f91ee3a2028" whenever I tried to call all from a layout.

My environment: Ruby: 2.2.3 ginjo-rfm: 3.0.11

Gemset

  * actionmailer (3.2.22)
  * actionpack (3.2.22)
  * activemodel (3.2.22)
  * activerecord (3.2.22)
  * activeresource (3.2.22)
  * activesupport (3.2.22)
  * acts-as-taggable-on (3.5.0)
  * addressable (2.4.0)
  * arel (3.0.3)
  * ast (2.2.0)
  * astrolabe (1.3.1)
  * bcrypt (3.1.10)
  * bcrypt-ruby (3.1.5)
  * better_errors (2.1.1)
  * binding_of_caller (0.7.2)
  * builder (3.0.4)
  * bundler (1.11.2)
  * byebug (8.2.1)
  * callsite (0.0.11)
  * capybara (2.5.0)
  * chosen_rails (0.1.0)
  * chunky_png (1.3.5)
  * climate_control (0.0.3)
  * cliver (0.3.2)
  * cocaine (0.5.8)
  * coderay (1.1.0)
  * coffee-rails (3.2.2)
  * coffee-script (2.4.1)
  * coffee-script-source (1.10.0)
  * compass (0.12.7)
  * compass-normalize (1.1.2)
  * compass-rails (1.0.3)
  * crack (0.4.3)
  * crass (1.0.2)
  * cucumber (2.1.0)
  * cucumber-core (1.3.1)
  * cucumber-rails (1.3.0)
  * daemons (1.2.3)
  * database_cleaner (1.5.1)
  * debug_inspector (0.0.2)
  * delayed_job (4.1.1)
  * delayed_job_active_record (4.1.0)
  * devise (1.5.3)
  * diff-lcs (1.2.5)
  * draper (2.1.0)
  * dynamic_form (1.1.4)
  * email_spec (1.6.0)
  * epoxy (0.3.1)
  * erubis (2.7.0)
  * eventmachine (1.0.8)
  * execjs (2.6.0)
  * factory_girl (4.1.0)
  * factory_girl_rails (4.1.0)
  * faker (1.6.1)
  * fssm (0.2.10)
  * gherkin3 (3.1.2)
  * ginjo-rfm (3.0.11)
  * git-version-bump (0.15.1)
  * haml (4.0.7)
  * haml-rails (0.4)
  * hashdiff (0.2.3)
  * highline (1.7.8)
  * hike (1.2.3)
  * httpclient (2.7.0.1)
  * humanize (1.1.0)
  * i18n (0.7.0)
  * journey (1.0.4)
  * jquery-rails (2.1.3)
  * jquery-ui-rails (4.1.1)
  * json (1.8.3)
  * kaminari (0.16.3)
  * launchy (2.4.3)
  * letter_opener (1.4.1)
  * libv8 (3.16.14.13)
  * mail (2.5.4)
  * meta_request (0.3.4)
  * methlab (0.1.0)
  * mime-types (1.25.1)
  * mini_portile2 (2.0.0)
  * minitest (5.8.3)
  * multi_json (1.11.2)
  * multi_test (0.1.2)
  * mysql2 (0.3.20)
  * nested_form (0.3.2)
  * newrelic_rpm (3.14.1.311)
  * nice_password (1.0.0)
  * nokogiri (1.6.7.1)
  * nokogumbo (1.4.7)
  * oj (2.12.14)
  * options (2.3.2)
  * orm_adapter (0.0.7)
  * paperclip (3.2.0)
  * paperclip-storage-ftp (1.2.7)
  * parallel (1.6.1)
  * parallel_tests (2.2.1)
  * parser (2.2.3.0)
  * pg (0.18.4)
  * poltergeist (1.8.1)
  * polyglot (0.3.5)
  * power_assert (0.2.6)
  * powerpack (0.1.1)
  * pr_geohash (1.0.0)
  * progress_bar (1.0.5)
  * rack (1.4.7)
  * rack-cache (1.5.1)
  * rack-contrib (1.4.0)
  * rack-mini-profiler (0.9.8)
  * rack-ssl (1.3.4)
  * rack-test (0.6.3)
  * rails (3.2.22)
  * railties (3.2.22)
  * rainbow (2.0.0)
  * rake (10.4.2)
  * rdbi (0.9.1)
  * rdbi-driver-odbc (0.1.2)
  * rdbi-driver-sqlite3 (0.9.1)
  * rdiscount (2.1.8)
  * rdoc (3.12.2)
  * ref (2.0.0)
  * request_store (1.2.1)
  * retriable (2.1.0)
  * rollbar (2.7.1)
  * rsolr (1.0.13)
  * rspec-collection_matchers (1.1.2)
  * rspec-core (2.99.2)
  * rspec-expectations (2.99.2)
  * rspec-mocks (2.99.4)
  * rspec-rails (2.99.0)
  * rubocop (0.35.1)
  * ruby-odbc (0.99992)
  * ruby-progressbar (1.7.5)
  * safe_yaml (1.0.4)
  * sanitize (4.0.1)
  * sass (3.2.19)
  * sass-rails (3.2.5)
  * shoulda (3.5.0)
  * shoulda-context (1.2.1)
  * shoulda-matchers (2.8.0)
  * sprockets (2.2.3)
  * sqlite3 (1.3.11)
  * sqlite3-ruby (1.3.3)
  * sunspot (1.3.3)
  * sunspot_rails (1.3.3)
  * sunspot_solr (1.3.3)
  * sunspot_test (0.4.0)
  * susy (1.0.9)
  * test-unit (3.1.5)
  * therubyracer (0.12.2)
  * thin (1.6.4)
  * thor (0.19.1)
  * tilt (1.4.1)
  * tins (1.6.0)
  * treetop (1.4.15)
  * typelib (0.1.0)
  * tzinfo (0.3.46)
  * uglifier (2.7.2)
  * validate_url (1.0.2)
  * vcr (3.0.1)
  * warden (1.2.4)
  * webmock (1.22.3)
  * websocket-driver (0.6.3)
  * websocket-extensions (0.1.2)
  * whiskey_disk (0.6.24)
  * xpath (2.0.0)
  * yajl-ruby (1.2.1)

Code that errors:

@fm_database = @fm_server[@filemaker_config.database]
fm_super_categories = @fm_database['Web_Super_Categories']

@fm_super_categories.all.each do |super_category|
  ..stuff
 end
ginjo commented 8 years ago

Hi, thanks for pointing this out. I'm guessing this is an incompatibility with ruby 2.3. I have not tested Rfm on anything greater than ruby 2.1.3... yet. I'll have to do some cleanup, before I add any more ruby versions to my dev machine. Anyone else using ruby 2.3? Tried it with Rfm yet? I do recall something having to do with encoding changes in newer versions of ruby.