what are the steps to using ruby gem guard-shopify - ruby-on-rails

I am currently creating a theme on Shopify and found a ruby gem called guard-shopify. I am struggling to use the gem. It is installed and i got to the point of adding the api key and secret password but now I am struggling to find out how to go about editing theme files locally and getting it to work with guard shopify so it pushes the most recent changes to the shopify account via guard.
Does anyone have good experience using this ruby gem?
Thanks,
Mark

try the shopify_theme gem - it has a watch option - https://rubygems.org/gems/shopify_theme

Related

Is it possible to use piwik with Rails 4.2 and postgres

I am looking for an open source web analytic for my Rails 4.2 app, so after some research I found that piwik fit my needs. can I use "piwik" with postgresql ? it seems that they only support mysql but I am not sure if it still true at this moment!
also I've found a post about how to integrate it within Rails here but they use piwik_analytics which is a Gem for Ruby on Rails 3.x and may not work with 4.2 !
All the information I've found are a little outdated and I am not sure if there is a way to make it work with my current requirements. any help please ?
Piwik supports only MySQL, that's true
You don't need any gem because Piwik just needs to load some Javascript that needs to be embedded into your layout/views. The Rails app doesn't directly interact with it, only your visitors' browser. Which also means that it shouldn't matter whether it supports Postgres because it will most likely run on another machine as your Rails app.
Edit:
Regarding the gem you mentioned: I looked at it, too, when adding Piwik analytics to my app, but in the end went with writing the few required lines of JS myself.

Setting up ruby on rails gem ga_events

I am relatively new to web dev and I am trying to set up the ruby on rails gem ga_events (https://github.com/Nix-wie-weg/ga_events). I am doing this because I need to have google analytics event tracking within controllers and this gem seems like a good way to do it. The issue I am having is where the readme says, "After requiring ga_events.js, you have to choose an adapter." I am using Google Universal Analytics and thus I would like to choose that one. It doesn't say specifically how to do this. Where do I put that code block (https://github.com/Nix-wie-weg/ga_events#google-universal-analytics-analyticsjs)? Do I need to make a new file somewhere?
I'm assuming it's obvious for a more experienced developer. More detailed instructions+explanation would be really helpful. Thanks.
I'm using Rails 4.0.13 and Ruby 2.0.0p643.
I was having the same issue here! Turns out, it is just javascript code.
I put mine under application.js since it's a code that need to be on every page.

What is the easiest way to work with Google Docs API in Ruby on Rails?

What is the easiest way to work with the Google Docs API in a Ruby on Rails application? Is there a gem available?
I did find this page: Google Data on Rails, is it the most up to date resource?
The google data rails on page is really out of date, at least in a ruby 1.9.3 environment its non useful.
Having a play with the google_drive gem now....
https://github.com/gimite/google-drive-ruby#readme
I was able to get it to work by simply installing it and pasting the readme code into a file. What more can you ask for!?
You can also Bearer universal API client available in Ruby.
This way you can query Google Docs API very easily and don't even have to worry about OAuth or refresh tokens: https://www.bearer.sh/integrations/33/google-docs-api
The Google Docs developers have now released their own gem to work with the API. Here's a guide to getting started: https://developers.google.com/sheets/api/quickstart/ruby
And the gem itself can be downloaded in the normal way from Rubygems: gem install google-api-client
There's more information in the Readme for the gem's source code repository: https://github.com/google/google-api-ruby-client
you can use this gem omniauth-google-oauth2. Make configuration with consumer-key and secret-key. Add gem in Gemfile. Follow github.

What's the best gem to develop a Facebook Canvas/iFrame App (Rails 3.1.1, Ruby 1.9.2)?

I want to built a facebook canvas iFrame App. I tried to use facebooker but it does not work with rails 3. Can anybody suggest what gem I should use? If possible, please also provide a reference to a tutorial that can help me get started.
I would recommend fb_graph gem. The sample app code can be found at https://github.com/nov/fb_graph_sample.

Jasper Reports in Ruby on Rails

I have assigned to use jasperserver reports in a rails application.
There is a plugin for jasperserver to use in Ruby application.
https://github.com/gunark/jasperserver-client
I want to know whether this plugin can use in my rails 3 version of application.
I've checked in railsplugin.org .But it shows "no result found".
I'l be please if u people gave me any help link.
According to the wiki, the author recommends you install it as a gem & not as a plugin. They go on to give an example of how to use the gem in a rails project on this wiki page.
I haven't used this, but your compatibility issues probably won't be with rails. Maybe the ruby version or soap4r version - but there don't seem to be any rails dependencies here.
You maybe use this simple ruby script for this => http://www.redrails.com.br/2013/03/07/ruby-client-para-rest-api-do-jasper-report-server/

Resources