Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

daily_active method fails #47

Open
fcojavierdomenech opened this issue Jan 26, 2018 · 0 comments
Open

daily_active method fails #47

fcojavierdomenech opened this issue Jan 26, 2018 · 0 comments

Comments

@fcojavierdomenech
Copy link

my code, change to a real app id and use valid credentials, the rest of methods are working just fine

spec = Gem::Specification.find_by_path('fabricio')
spec.activate
gem_original_require 'fabricio'

client = Fabricio::Client.new do |config|
    config.username = 'javi@*********.com'
    config.password = '*********'
end

date_ini = Time.new(2017,12,01)
date_end = Time.new(2018,01,01)

builds = [
    "1.7.6 (114)"
]

app_id =  '5677c7ae1b5c0932*******'

result = client.app.send("daily_active", *[app_id, date_ini.to_i, date_end.to_i, builds]);
print result
exit

Output:

➜  ruby ruby test.rb
/var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/models/point.rb:12:in `initialize': uninitialized constant Fabricio::Model::Point::DateTime (NameError)
        from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:81:in `new'
        from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:81:in `block in daily_active'
        from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:80:in `map'
        from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:80:in `daily_active'
        from test_active.rb:19:in `<main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant