nokogiri Questions

4

I have problem trying to do bundle install nokogiri 1.7.2 I am using gem 'rails', '4.2.4' MacOS High Sierra version 10.13.6 Im not sure what is wrong below is my error output: full error out...
Circumlocution asked 4/9, 2018 at 14:56

3

I'm writing a test code in Ruby and trying to parse a HTML source file of a website. It has a JavaScript variable which I can use to compare it against other values. For example: <script ...
Turley asked 9/2, 2011 at 0:29

3

Solved

I am trying to convert a document with content like the following into another document, leaving the CDATA exactly as it was in the first document, but I haven't figured out how to preserve the CDA...
Vasectomy asked 1/10, 2009 at 5:42

4

Solved

I try to use paginate with kaminari. My project used bootsrap css, and the result is so ugly:) The html is generated by nokogiri <nav class="pagination"> <span class="first"> <a...
Humes asked 10/11, 2012 at 9:28

8

Solved

One of my developers have updated Nokogiri, and when pulling the updated Gemfile my bundle install fails. ➜ my-project git:(master) bundle install Fetching source index from https://rubygems.org/ ...
Gretel asked 7/1, 2016 at 9:27

12

Solved

I'm working on a rails app that allows for image attachments to each use account. I'm using paperclip and amazon web services: gem 'paperclip' gem 'aws-sdk' When I run bundle install, I get this...
Vernievernier asked 16/12, 2014 at 2:18

3

Solved

I have to handle deep nesting of ul, ol, and li tags. I need to give the same view as we are giving in the browser. I want to achieve the following example in a pdf file: text = " <body> &...
Hurtful asked 14/5, 2018 at 8:54

2

Solved

I have been receiving messages that GitHub found known dependency vulnerability in my Gemfile.lock, this is loofah (2.0.3) and Nokogiri (1.7.0.1) but these gems are dependencies I did not specifica...
Pressey asked 21/3, 2018 at 20:21

3

Solved

I am looking for my input element using Nokogiri's xpath method. It's returning an object of class Nokogiri::XML::NodeSet: [#<Nokogiri::XML::Element:0x3fcc0e07de14 name="input" attributes=[#&l...
Krimmer asked 15/6, 2012 at 13:31

3

Solved

I am using Nokogiri to pull the <h1> and <title> tags, but I am having trouble getting these: <meta name="description" content="I design and develop websites and applications."> ...
Steak asked 22/7, 2013 at 7:26

3

Im trying to deploy my Rails application with AWS Elastic Beanstalk. I've created the instance and all but when I try to deploy the app using aws.push I get the following errors in the event log: ...

2

I've seen this question asked and tried everything I've seen suggested. I got a new macbook and am looking to set up an existing app. When i clone the app, it will not bundle install and acts lik...
Optimist asked 22/8, 2014 at 2:26

2

I am trying to install nokogiri 1.6.2.1 on Debian Linux. I am running Ruby-2.1.1. I have installed libxml2, libxml2-dev, libxslt, and libxslt-dev. Output: Gem::Ext::BuildError: ERROR: Failed to b...
Economically asked 14/5, 2014 at 17:11

2

Solved

Well I have a simple problem with Nokogiri. I want to make Nokogiri::HTML::Builder to make an HTML fragment of the following form: <div> #Some stuff in here </div> <div> #Some ot...
Kagera asked 5/2, 2011 at 11:51

2

Solved

I Have a HTML document with links links, for exemple: <html> <body> <ul> <li><a href="http://someurl.com/etc/etc">teste1</a></li> <li><a href...
Divulgate asked 22/4, 2010 at 23:21

8

I've been working through the Rails install instructions (http://railsapps.github.io/installrubyonrails-mac.html) and everything was okay up until I got to gem install rails part under New Rails Ap...
Overwrite asked 18/3, 2015 at 6:21

5

Solved

I'm installing the Ruby Nokogiri gem and finding the error below. How to diagnose this and solve it? # gem install nokogiri Building native extensions. This could take a while... ERROR: Error ins...
Ravens asked 9/9, 2012 at 2:53

5

Solved

I am trying to get Rails to work on Windows 10. I am using Ruby 2.3.0, and Rails 4.2.6, and am temporarily using Nokogiri 1.6.3. When I try running rails new demo, it returns an error: An error o...
Soidisant asked 26/4, 2016 at 14:45

2

Solved

class GenericFormatter < Formatter attr_accessor :tag_name,:objects def generate_xml builder = Nokogiri::XML::Builder.new do |xml| xml.send(tag_name.pluralize) { objects.each do |obj| xml...
Tung asked 29/6, 2017 at 7:10

1

Solved

I am trying to install Rails by using sudo gem install rails on a fresh version of Ubuntu 16.04. Ruby 2.3.1p112 is already installed. During the installation of Rails, once fetching Nokogiri is...
Alcina asked 8/6, 2017 at 12:30

2

Solved

I'm using Rails 5 to use a Rails cache to store Nokogiri objects. I created this in config/initializers/cache.rb: $cache = ActiveSupport::Cache::MemoryStore.new and I wanted to store documents...
Nynorsk asked 19/4, 2017 at 15:4

1

Solved

When I scrape several related nodes from HTML or XML to extract the text, all the text is joined into one long string, making it impossible to recover the individual text strings. For instance: r...
Carnauba asked 24/4, 2017 at 17:45

1

Using Rails 5, Ruby 2.4. If I have located a node using Nokogiri parsing, how would I find all the nodes that occur before my found node that do not also include that found node? That is, let's say...
Crystallo asked 4/4, 2017 at 22:4

3

Solved

I have a client that is sending XML for my site to parse. I am typically a PHP guy and understand how to parse it via PHP, but I am not sure how to do the same with Ruby. The client said they are g...
Semantics asked 28/10, 2011 at 20:47

17

sudo gem install nokogiri Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Users/sajeev86/.rvm/rubies/ruby-1...
Semination asked 3/2, 2012 at 19:32

© 2022 - 2024 — McMap. All rights reserved.