VersionEye has now new dependency badges for Java, Ruby, PHP and Node.JS. You will find them on every package page. They look like this. They badges are showing you immediately if the dependencies of a software library are up-to-date, out-of-date or unknown. By clicking on the badges a popup will appear with code snippets forContinue reading “VersionEye now with new Dependency Badges”
Author Archives: Robert Reiz
Usage of GitHub Scopes refactored at VersionEye
At VersionEye we provide a login with your GitHub Account. Initially we implemented the GitHub login with the “repo” scope. That means that you give VersionEye read and write access to ALL your repositories, even your private ones. Many people asked me why VersionEye needs read and write access to private repositories. Well. VersionEye don’tContinue reading “Usage of GitHub Scopes refactored at VersionEye”
Testing AJAX with Capybara and Selenium
In the past days I migrated my tests from WebRat to Capybara and I wrote a couple new acceptance tests with RSpec, Capybara and the selenium-webdriver. All in one it’s pretty cool. You can just keep writing your acceptance tests as usual with RSpec and Capybara. Here is a small example. This test is sendingContinue reading “Testing AJAX with Capybara and Selenium”
Don’t use Webrat anymore
Webrat is a testing Framework for Ruby. In general it is pretty cool, but DEAD! The last version was released more than 2 years ago. And there are only 200 GEMs referencing it. The newest PullRequests on GitHub are 1 year old! Not an active project! Don’t use dead projects! I moved my tests toContinue reading “Don’t use Webrat anymore”
Moving Tests from Webrat to Capybara
I one of my applications I had a bunch of tests written with RSpec and Webrat. Unfortunately it seems that Webrat is not longer maintained actively anymore. That’s why it is a good decision to move to Capybara, an active Test Framework for Ruby. The Migration was so far pretty smooth. Most time it wasContinue reading “Moving Tests from Webrat to Capybara”
Testing SSL with Capybara and Selenium
I am using Capybara with Selenium as JS engine to write acceptance tests for a Ruby on Rails application. In some controllers I am forcing SSL with the “force_ssl” filter from Rails. By running the tests with Selenium this caused some problems. Selenium is launching Firefox and calls the URL https://127.0.0.1:3000/signin. Of course there isContinue reading “Testing SSL with Capybara and Selenium”
undefined method `visit’ for RSpec with Capybara
I just started to write an acceptance test with capybara. I followed the code example on the GitHub Page and I got this odd error: Failure/Error: visit ‘http://127.0.0.1:3000/signin’ NoMethodError: undefined method `visit’ for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x007fda48e0f680> I placed my test in “spec/requests”. After some research I found out that the new Capybara GEM expects the test to beContinue reading “undefined method `visit’ for RSpec with Capybara”
Improving the Dependency Wheel at the GitMerge Hackathon
Last week I attended to the GitMerge Conference in Berlin. It was sponsored by GitHub and Google. On Saturday their was the hackathon day. I found somebody who want to contribute to the dependency wheel project. Many Thanks to Coding46 for his contributions! The dependency wheel project is a JavaScript Library which enables you toContinue reading “Improving the Dependency Wheel at the GitMerge Hackathon”
Hasso Plattner Ventures is investing in VersionEye
In the last weeks it was a little bit silent around VersionEye. The company was running low on Money and I spend my time with approaching Investors. In the end I had different options. There was also one offer from a US based VC willing to invest a “bigger amount”. But in the end IContinue reading “Hasso Plattner Ventures is investing in VersionEye”
How to mock the GitHub API
If you write code against the GitHub API you have to mock it somehow. Otherwise it can be tricky to test it. Here is how I did it. I found this great GEM FakeWeb. With this GEM you can fake Web Requests. It allows you to register URLs with fix responses. Her is an example:Continue reading “How to mock the GitHub API”
Determine scopes for given GitHub Token
If you have a given token from GitHub and you want to know which scopes it has you have to check the Headers. Just use the token for any resource on the GitHub API and double check the headers of the response. In the headers the “x-oauth-scopes” field tells you the which scopes the tokenContinue reading “Determine scopes for given GitHub Token”
GitHub API : User Agent Now Mandatory
GitHub now enforces the User Agent. If you do API calls without user agent you will get a 403 error message back. Check out this post: http://developer.github.com/changes/2013-04-24-user-agent-required/. If you are using the HTTParty GEM in Ruby to do the API calls you have to set the headers. Here an example:
Hack And Tell Berlin
Yesterday night I went to Hack And Tell in Berlin. This monthly MeetUp is organised here http://www.meetup.com/Berlin-Hack-and-Tell in the web. And on Twitter you find it here: https://twitter.com/BerlinHacknTell. The official HashTag is #bhnt. The event is every time at the C-Base Spaceship. It is a little bit similar to SFNewTech. Everybody can go on the stage and doContinue reading “Hack And Tell Berlin”
Table view for Dependencies
Just pushed a new version online. The dependencies at VersionEye are now displayed in a table view. This is how it looks for Hibernate on the package page. You can see now immediately on the package page which dependencies are outdated. The dependency view for your private projects is changed as well. Here is anContinue reading “Table view for Dependencies”
VersionEye API : Dependency stable
At the last DevCamp in KA I had some good discussion about the VersionEye API. That’s why I enhanced it a little bit. I just introduced a new attribute to the project dependencies. The “stable” attribute. If this is true than that means that the newest version is stable, otherwise the newest version is unstable.Continue reading “VersionEye API : Dependency stable”
Swagger UI File Upload Bug
Swagger UI is a pretty cool JS Library to auto generate documentation for APIs. I am using it for VersionEye. The API page at VersionEye is completely running on Swagger UI: http://versioneye.com/api. Unfortunately there is a small bug in the JavaScript. If you have 2 file upload fields with the same name, than swagger UI isContinue reading “Swagger UI File Upload Bug”
DevCamp KA
I will go to the DevCamp on this weekend in Karlsruhe. Check this out: http://www.nerd-zone.com/devcamp. I will be there on Saturday and Sunday and do some talks to Continuous Updating and VersionEye. If you have questions to that and want to talk with me, you should join the event.
Minimum Stability
The PHP Package Manager Composer has a very cool Feature, called minimum-stability. That defines the minimun stability for wildcard versions. Let’s say you define this in your composer.json file: “symfony/finder” : “2.2.*” By default the minimum stability is “stable”. That means the package manager will look for the newest version in the “2.2.” branch, whichContinue reading “Minimum Stability”
Ruby Link Checker
This code checks if the given link exists and returns an HTTP Code 200.
Remove 1 Document from ElasticSearch Index via Tire
It is possible to remove 1 single document from an existing ElasticSearch Index! I am using the Ruby GEM Tire to deal with the ElasticSearch Server. This is the command to delete an existing document: Tire.index( <INDEX_NAME> ).remove( <DOCUMENT_TYPE> , DOCUMENT_ID ) Worked fine for me 🙂