Monday, June 19, 2017

Ruby Enviroment Setup in Windows

Please find below the steps that I followed to setup the environment in my Windows PC:

1)      First uninstall any version of Ruby installed in your system. Then go to C: drive and delete the corresponding Ruby folder which will have the gems installed (if any). Ensure that Ruby path is removed from the PATH in Environment Variables.

2)      Now based on your operating system (32-bit or 64-bit), chose & download the Ruby Installer (v-2.2.1) and DevKit from the FTP server. Install the Ruby in default C:\Ruby22-x64 (for 64-bit system) drive. Run the DevKit exe and extract it to directory C:\DevKit (recommended).
32-bit
/sftp/home/psftp_adhoc/upload/EK/Softwares/32-bit/rubyinstaller-2.2.1.exe
/sftp/home/psftp_adhoc/upload/EK/Softwares/32-bit/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
64-bit
/sftp/home/psftp_adhoc/upload/EK/Softwares/64-bit/rubyinstaller-2.2.1-x64.exe
/sftp/home/psftp_adhoc/upload/EK/Softwares/64-bit/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe

3)      Check the Ruby path under the PATH section in Environment Variables.

4)      Open Command Prompt and go to C:\DevKit. Initialize the DevKit installer by running: "ruby dk.rb init". And then "ruby dk.rb install"

5)      Open Command Prompt and install the bundler gem -> “gem install bundler –v=1.13.6”. If needed add the “source” attribute as http://rubygems.org
NOTE: Do not install any other gem.

6)      Open Command Prompt and go to the EK project code (MyTrips branch code is placed in /sftp/home/psftp_adhoc/upload/EK/Branch_Code/ekandroidapp.zip directory) and enter into MyTripsV2.0 folder.

7)      Run the command “bundle install”. If needed add the “source” attribute as http://rubygems.org
NOTE: This will take some time, especially when installing gherkin gem

8)      Just for reference, attaching the gem list screenshot from Client which Murugaraj sent. And also screenshot from my system.

9)      Now place the APK file “APP-Rajatt-Feb-12.apk” in the “D:\Workspace\ekandroidapp\MyTripsV2.0” project workspace directory.

10)   Run the command “calabash-android resign APP-Rajatt-Feb-12.apk

11)   If that is successful then run the command “calabash-android run APP-Rajatt-Feb-12.apk”.
Note: If you get any error in resign step (step 10) then try the steps given in document “Calabash_Configuration_updated.pdf” under “Step 3: Configuration for Android”

That’s it, now I am able to run the app in my mobile device. Please note that after the run command, it might throw some warnings/error (probably related to what Murugaraj said) but the command won’t stop and the app would eventually start after some time. Please be patient J


Let me know if you find any other issues. My system is 64-bit operating system and everything worked as per the above steps. Now we are going to try in 32-bit systems of other team-mates here, will update if we come across any issues.




No comments:

Post a Comment

CTS Outlook Configuration

You can configure outlook using the below settings. 1) Open Control panel and select Mail 2) Select show profile now 3) Select A...