Skip to content

daily_active method fails #47

@fcojavierdomenech

Description

@fcojavierdomenech

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>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions