Giter Club home page Giter Club logo

rconfig's Introduction

Hi there ๐Ÿ‘‹

rconfig's People

Contributors

dependabot[bot] avatar jrhorn424 avatar lepek avatar rahmal avatar th33x1l3 avatar vandries avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rconfig's Issues

Erro when trying to set load path on windows

When using this gem on windows and trying to set up the load path, the following error occurs, because the parse_load_paths is trying to split by ':'

Since in windows all paths have the : it fails on checking the first part ()

Error Trace:

This directory is invalid: ["C"] (RConfig::InvalidLoadPathError)
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rconfig-0.5.2/lib/rconfig/load_paths.rb:42:in `block in parse_load_paths'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rconfig-0.5.2/lib/rconfig/load_paths.rb:40:in `each'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rconfig-0.5.2/lib/rconfig/load_paths.rb:40:in `parse_load_paths'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rconfig-0.5.2/lib/rconfig/load_paths.rb:13:in `set_load_paths'
C:/Users/Fabio Rodrigues/RubymineProjects/ECH/Automated_Tests/Triagem/features/support/env.rb:23:in `<top (required)>'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/rb_support/rb_language.rb:96:in `load'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/rb_support/rb_language.rb:96:in `load_code_file'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:142:in `load_file'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:84:in `block in load_files!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:83:in `each'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:83:in `load_files!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime.rb:253:in `load_step_definitions'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime.rb:61:in `run!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/cli/main.rb:32:in `execute!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/bin/cucumber:8:in `<top (required)>'
C:/Ruby23-x64/bin/cucumber:23:in `load'
C:/Ruby23-x64/bin/cucumber:23:in `<top (required)>'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide.rb:88:in `debug_load'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide.rb:88:in `debug_program'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta2/bin/rdebug-ide:130:in `<top (required)>'
-e:1:in `load'
-e:1:in `<main>'

uninitialized constant HashWithIndifferentAccess (NameError)

Hi,

Thank you again for the update.

I use RConfig in a Non-Rails app.
After having updated RConfig in 0.4.0 version, this error occured :

/usr/local/lib/ruby/gems/1.9.1/gems/rconfig-0.4.0/lib/rconfig/config.rb:10:in `': uninitialized constant HashWithIndifferentAccess (NameError)

Bump activesupport gem dependency in gemspec

Can you bump activesupport version to not lock at major version 3.x

when installing your gem you downgrade activesupport to a very low version:

abio@fabio-LIFEBOOK-A544:~/projects/discriminator_fixes$ bundle update
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies....
Using rake 11.2.2
Using i18n 0.7.0
Using multi_json 1.12.1
Using ansi 1.5.0
Using awesome_print 1.7.0
Using builder 3.2.2
Using ffi 1.9.14
Using commonwatir 4.0.0
Using gherkin 4.0.0
Using cucumber-wire 0.0.1
Using diff-lcs 1.2.5
Using multi_test 0.1.2
Using log4r 1.1.10
Using yml_reader 0.7
Using headless 2.2.3
Using json 2.0.2
Using logger 1.2.8
Using minitest 5.9.0
Using ruby-progressbar 1.8.1
Using rubyzip 1.2.0
Using websocket 1.2.3
Using require_all 1.3.3
Using rspec-support 3.5.0
Using yard 0.9.5
Using bundler 1.12.5
Using faker 1.6.6
Using activesupport 3.2.22.4 (was 5.0.0.1)
Using childprocess 0.5.9
Using cucumber-core 1.5.0
Using minitest-reporters 1.1.11
Using rspec-core 3.5.2
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Using data_magic 0.22
Using rconfig 0.5.4 (was 0.5.2)
Using selenium-webdriver 3.0.0.beta2.1
Using cucumber 2.4.0
Using rspec 3.5.0
Using page_navigation 0.9
Using watir-webdriver 0.9.3
Using crtu 0.1.1
Using page-object 1.2.0
Using watir 5.0.0
Bundle updated!

When trying to execute code:

fabio@fabio-LIFEBOOK-A544:~/projects/discriminator_fixes$ rake cucumber
/home/fabio/.rvm/rubies/ruby-2.3.0/bin/ruby -S bundle exec cucumber -r features/ --format progress --out reports/progress.out --format html --out reports/report.html --format json --out reports/cucumber.json
uninitialized constant I18n
Did you mean?  I18n (NameError)
/home/fabio/.rvm/gems/ruby-2.3.0@discriminator_fixes/gems/activesupport-3.2.22.4/lib/active_support/i18n.rb:9:in `<top (required)>'
/home/fabio/.rvm/gems/ruby-2.3.0@discriminator_fixes/gems/i18n-0.7.0/lib/i18n/version.rb:1:in `require'
/home/fabio/.rvm/gems/ruby-2.3.0@discriminator_fixes/gems/i18n-0.7.0/lib/i18n/version.rb:1:in `<top (required)>'
/home/fabio/.rvm/gems/ruby-2.3.0@discriminator_fixes/gems/i18n-0.7.0/lib/i18n.rb:1:in `require'
/home/fabio/.rvm/gems/ruby-2.3.0@discriminator_fixes/gems/i18n-0.7.0/lib/i18n.rb:1:in `<top (required)>'
/home/fabio/.rvm/gems/ruby-2.3.0@discriminator_fixes/gems/faker-1.6.6/lib/faker.rb:9:in `require'
/home/fabio/.rvm/gems/ruby-2.3.0@discriminator_fixes/gems/faker-1.6.6/lib/faker.rb:9:in `<top (required)>'

Wrong number of arguments on hash_with_indifferent_access

โฏ bundle exec rails --version
Rails 3.2.16

โฏ bundle show rconfig
/Users/jrhorn424/.gem/ruby/2.0.0/gems/rconfig-0.5.2
[1] pry(#<#<Class:0x007fa906118378>>)> RConfig.address.states
ArgumentError: wrong number of arguments (2 for 1)
from /Users/jrhorn424/.gem/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/hash_with_indifferent_access.rb:166:in `convert_value'

rconfig doesn't work with activesupport > 3.0

I recently stumbled upon rconfig and I would like to using with my Sinatra app.

No problem so far, but adding rconfig to my Gemfile install activesupport 3.2.1 (because it's the latest version).

However when I require rconfig with that activesupport version I get the following error:

require 'rconfig' NameError: uninitialized constant PropertiesFileParser::Singleton from /home/leifg/code/tinyfruits/vendor/local/ruby/1.8/gems/rconfig-0.3.3/lib/rconfig/properties_file_parser.rb:24 from /home/leifg/code/tinyfruits/vendor/local/ruby/1.8/gems/rconfig-0.3.3/lib/rconfig.rb:34:in require'
from /home/leifg/code/tinyfruits/vendor/local/ruby/1.8/gems/rconfig-0.3.3/lib/rconfig.rb:34
from (irb):1:in require' from (irb):1

I did a little testing and the latest version that works is activesupport 2.3.14 (latest 2.3 version).

Since 3.0+ requiring rconfig throws this error.

The workarount would be to add gem "activesupport" ,"<=2.3.14" to the Gemfile.

It would be better though, to set the requirements in the rconfig.gemspec correctly (or even better, implement correct behaviour for activesupport >= 3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.