martijnsch / optimizely-gem Goto Github PK
View Code? Open in Web Editor NEWOptimizely GEM
License: GNU General Public License v2.0
Optimizely GEM
License: GNU General Public License v2.0
A new json rubygem was released (2.0.1).
Using ruby 2.3 on a freshly checked out git repo.
thomas@optimizely-gem git:(master) 1≡$ bundle _1.13.6_ exec rake
Loaded suite /Users/thomas/.rvm/gems/ruby-2.3.3@global/gems/rake-10.4.2/lib/rake/rake_test_loader
Started
.......F
==============================================================================================================================================================================================================================================================================================
Failure: test_retrieve_projects_forbidden(OptimizelyTest)
/Users/thomas/work/optimizely-gem/test/test_optimizely.rb:65:in `test_retrieve_projects_forbidden'
62:
63: def test_retrieve_projects_forbidden
64: optimizely = Optimizely.new({ api_token: '1234567890:xxxxx' })
=> 65: assert_raise OptimizelyError::Forbidden do
66: optimizely.projects
67: end
68: end
<OptimizelyError::Forbidden> expected but was
<OptimizelyError::Unauthorized(<Your API token was missing or included in the body rather than the header (status code: 401).>)>
diff:
? OptimizelyError::F orbi d de n
? Unauth ze (<Your API token was missing or inclu d i the body rather than the header (status code: 401).>)
==============================================================================================================================================================================================================================================================================================
..
Finished in 0.468807 seconds.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10 tests, 10 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
90% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
21.33 tests/s, 21.33 assertions/s
rake aborted!
Command failed with status (1): [ruby -I"lib:test" -I"/Users/thomas/.rvm/gems/ruby-2.3.3@global/gems/rake-10.4.2/lib" "/Users/thomas/.rvm/gems/ruby-2.3.3@global/gems/rake-10.4.2/lib/rake/rake_test_loader.rb" "test/test*.rb" ]
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `load'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:27:in `run'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/cli.rb:332:in `exec'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/cli.rb:20:in `dispatch'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/cli.rb:11:in `start'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/exe/bundle:34:in `block in <top (required)>'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/Users/thomas/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/exe/bundle:26:in `<top (required)>'
/Users/thomas/.rvm/gems/ruby-2.3.3/bin/bundle:22:in `load'
/Users/thomas/.rvm/gems/ruby-2.3.3/bin/bundle:22:in `<main>'
/Users/thomas/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
/Users/thomas/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => default => test
(See full trace by running task with --trace)
I was investigating an api issue with optimizely and I just learned about Optimizely X which is basically the optimizely api v2. This gem uses the classic optimizely api v1.
I also found that optimizely has an official ruby gem at https://github.com/optimizely/ruby-sdk and this is available as a ruby gem called optimizely-sdk.
Maybe this gem should be deprecated in favor of the official one?
Please add release tags for 1.2.2
& 1.2.3
.
This would help me do a diff and understand the differences between these 2 gems.
Also, please tag the release.
There have been enough changes imo to justify a new release.
I opened #10 and I expected travis to run automatically. It did not.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.