nebrija 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ecc592632938cf40066e031f960c72572656673
4
- data.tar.gz: e60a20a423d4eeda627b2889d0b5e4591fb2ae74
3
+ metadata.gz: 4050286f0a23281360fa18770f9aaadb6072c555
4
+ data.tar.gz: f12cd365e67e762f907dc6240d6513e76f1e6900
5
5
  SHA512:
6
- metadata.gz: 2ecf31ad07b0c2c505c62684e2c186fe180d33144e187c1195bc24e3598bdc1df6ee29400edbf7cc3977f48b5b7fe2c7b6207d1e0fd2d6f57d2204161a822d65
7
- data.tar.gz: 7d1ad0597624adc4bd366187004d63a05e69150d8903211b82f390536db0986389d8de42185985ff6f8c18fb7b138388cef91eae23467e9da25393763c2d8948
6
+ metadata.gz: a52d96e2611cc5e40f9bfe4654c43a230e34b9ef9d9c2f12bba2dc450950990c8aef19fbe0d1a6e9714e9d592afcef0016208fd7a1e5f165cc8a5f8df94ecafb
7
+ data.tar.gz: 88dcc55ff92dd5d46f484ef8808127f49233be6e26747a4368e6b747f28d63eee591a44fecbccdce2d41143e93bfea80bef885a11b714e38b7c004683de2a765
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.swp
3
+ *.lock
4
+ *.rbc
5
+ .bundle
6
+ .config
7
+ coverage
8
+ InstalledFiles
9
+ lib/bundler/man
10
+ pkg
11
+ rdoc
12
+ spec/reports
13
+ test/tmp
14
+ test/version_tmp
15
+ tmp
16
+
17
+ # YARD artifacts
18
+ .yardoc
19
+ _yardoc
20
+ doc/
data/.travis.yml ADDED
@@ -0,0 +1,2 @@
1
+ sudo: false
2
+ language: ruby
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/README.md ADDED
@@ -0,0 +1,61 @@
1
+ Nebrija: A rae parser
2
+ =====================
3
+
4
+
5
+ [![Build Status](https://travis-ci.org/javierhonduco/nebrija.svg?branch=master)](https://travis-ci.org/javierhonduco/nebrija)
6
+ [![Code Climate](https://img.shields.io/codeclimate/github/javierhonduco/nebrija.svg)](https://codeclimate.com/github/javierhonduco/nebrija)
7
+
8
+
9
+ Install
10
+ -------
11
+
12
+ ```bash
13
+ $ gem install nebrija
14
+ ```
15
+
16
+ API
17
+ ---
18
+ ```ruby
19
+ require 'nebrija'
20
+ res = Rae.new.search('word/id')
21
+ puts res # prints the results
22
+ ```
23
+
24
+ `HTTPRae` returns a hash where the key `status` can be `error`|`success`.
25
+
26
+ If the request is succesful, the key `type` indicates wheter the result type is a single word or multiple with `single`|`multiple`.
27
+
28
+ The response data can be found in the `response` key which is an array.
29
+
30
+ The response data is formatted as shown below:
31
+ * Single responses
32
+ ```ruby
33
+ [{:word=>"banca", :id=>"N4sDS8D9sDXX2ydchkDs"}, {:word=>"bancar", :id=>"MHpGWYJ6YDXX2bw9Ghwm"}, {:word=>"bance", :id=>"dkcRaDoJTDXX2mbtZ21J"}, {:word=>"banco", :id=>"E0yO6yORQDXX2M4zQtJ3"}]
34
+ ```
35
+ * Multiple responses
36
+ ```ruby
37
+ [{:word=>"A-1.", :etymology=>"(Del gr. ἀ-, priv.).", :meanings=>[{:meaning=>"Carece de significación precisa. Amatar. Asustar. Avenar.", :meta=>"pref."}]}, {:word=>"A1.", :etymology=> nil, :meanings=>[{:meaning=>"Primera letra del abecedario español y del orden latino internacional, que representa un fonema vocálico abierto y central.", :meta=>"f."}, {:meaning=>"Signo de la proposición universal afirmativa.", :meta=>"Fil."}]}, {:word=>"~ por ~ y b por b.", :etymology=> nil, :meanings=>[{:meaning=>"punto por punto.", :meta=>"adv."}]}, {:word=>"A-2.", :etymology=> nil, :meanings=>[{:meaning=>"Denota privación o negación. Acromático. Ateísmo. Ante vocal toma la forma an-. Anestesia. Anorexia.", :meta=>"pref."}]}]
38
+ ```
39
+ CLI searching
40
+ ---------
41
+ ```bash
42
+ $ nebrija <word>
43
+ ```
44
+
45
+ Friend projects/ project using this gem
46
+ ---------------------------------------
47
+ * [Rae downloader](https://github.com/raul/rae-downloader) by [@raul](https://github.com/raul)
48
+ * [Dulcinea: a nebrija frontend](https://github.com/javierhonduco/dulcinea)
49
+
50
+ TODO
51
+ ----
52
+ * Check it works properly.
53
+ * Doc. (return, hacks...)
54
+ * Improve the code.
55
+ * Add bulk search.
56
+ * Set a request timeout.
57
+ * ~~Search by id.~~
58
+ * ~~Handle errors.~~
59
+ * ~~Get it working without using cURL directly.~~
60
+ * ~~Improve the API.~~
61
+ * ~~Add Gemfile.~~
data/Rakefile CHANGED
@@ -7,3 +7,14 @@ end
7
7
 
8
8
  desc 'Run tests'
9
9
  task :default => :test
10
+
11
+ desc 'Publish'
12
+ task :publish do
13
+ $: << 'lib' and require 'nebrija/version'
14
+ version = Nebrija::VERSION
15
+
16
+ `gem build nebrija.gemspec`
17
+ `gem install nebrija-#{version}.gem`
18
+ `gem push nebrija-#{version}.gem`
19
+
20
+ end
data/bin/debug ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
4
+
5
+ require 'json'
6
+ require 'pp'
7
+ require 'nebrija'
8
+
9
+ pp Rae.new.search(ARGV.first)
data/bin/nebrija CHANGED
@@ -4,4 +4,4 @@ require 'json'
4
4
  require 'nebrija/cli'
5
5
 
6
6
  raise NotImplementedError
7
- #Nebrija::cli(ARGV.first)
7
+ # Nebrija::cli(ARGV.first)
File without changes
@@ -1,13 +1,12 @@
1
1
  require 'nokogiri'
2
2
 
3
3
  class Parser
4
-
5
4
  META_REGEX = /^([a-zA-Z]{1,4}+\.[ ]{1,2})+/
6
5
 
7
6
  def initialize(rae_data, word)
8
7
  @doc = Nokogiri::HTML(rae_data
9
- .gsub(/\n+/, '')
10
- .gsub(/\s{2,}+/, ' '))
8
+ .gsub(/\n+/, '')
9
+ .gsub(/\s{2,}+/, ' '))
11
10
  end
12
11
 
13
12
  def parse
@@ -0,0 +1,29 @@
1
+ require 'uri'
2
+ require 'typhoeus'
3
+
4
+ class Rae
5
+ SEARCH_URL = 'http://dle.rae.es/srv/fetch'
6
+ USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36'
7
+
8
+ def search(word)
9
+ Parser.new(query(word), word).parse
10
+ end
11
+
12
+ private
13
+
14
+ def query(word)
15
+ url = URI.escape("#{SEARCH_URL}?w=#{word}".encode('iso-8859-1'))
16
+ headers = {
17
+ 'User-Agent' => USER_AGENT,
18
+ 'Cookie' => 'TS017111a7=017ccc203c0b977befd5d97f3b75b80f201991f161b0d246f45e53dac0967ac4e4acfd7161'
19
+ }
20
+
21
+ response = Typhoeus::Request.get(
22
+ url,
23
+ headers: headers,
24
+ accept_encoding: 'gzip',
25
+ )
26
+
27
+ response.body
28
+ end
29
+ end
data/nebrija.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ $: << 'lib' and require 'nebrija/version'
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'nebrija'
5
+ s.version = Nebrija::VERSION
6
+ s.executables << 'nebrija'
7
+
8
+ s.authors = ['@javierhonduco']
9
+ s.date = Time.now.utc.strftime('%Y-%m-%d')
10
+ s.description = 'A gem to access the rae dictionary'
11
+ s.email = 'javierhonduco@gmail.com'
12
+ s.files = `git ls-files`.split($/)
13
+ s.test_files = ['test/test_rae.rb']
14
+ s.homepage = 'http://rubygems.org/gems/nebrija'
15
+
16
+ s.require_paths = ['lib']
17
+ s.summary = 'This gem provides access to the rae webpage'
18
+
19
+ s.add_dependency('nokogiri')
20
+ s.add_dependency('typhoeus', '~> 0')
21
+
22
+ s.add_development_dependency('rake', '~> 0')
23
+ s.add_development_dependency('minitest', '~> 5')
24
+ s.add_development_dependency('webmock', '~> 1.18.0', '>= 1.18.0')
25
+
26
+ s.license = 'MIT'
27
+ end
@@ -0,0 +1,34 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>RAE. DRAE. Aviso de error.</title>
5
+ <link href="/drae/css/W.estilos.css.pagespeed.cf.b4gFA5Rk6d.css" rel=
6
+ "stylesheet" type="text/css">
7
+ </head>
8
+
9
+ <body bgcolor="#FFFFFF" style="margin-left: 1em">
10
+ <br>
11
+
12
+ <table border="0" cellpadding="0" cellspacing="0">
13
+ <tbody>
14
+ <tr>
15
+ <td valign="top" width="652">
16
+ <table border="0" cellpadding="0" cellspacing="1" width="100%">
17
+ <tbody>
18
+ <tr>
19
+ <td class="textotittabl" width="85%">Aviso</td>
20
+ </tr>
21
+ </tbody>
22
+ </table>
23
+ </td>
24
+ </tr>
25
+ </tbody>
26
+ </table>
27
+
28
+ <p style="margin-left: 2em"><!-- RC_NF --> La palabra <b style=
29
+ "font-style: italic">NULL</b> no está en el Diccionario.</p><script async=""
30
+ src="//www.google-analytics.com/analytics.js"></script><script type="text/javascript">
31
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-44263049-1','auto');ga('send','pageview');
32
+ </script>
33
+ </body>
34
+ </html>
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <link href=
5
+ "/drae/css/W.drae.css+estilosCabDrae.css,Mcc.W_CzH9ApGk.css.pagespeed.cf.w1GLVsE-IR.css"
6
+ rel="stylesheet" type="text/css">
7
+
8
+ <title>Real Academia Española. Diccionario Usual.</title>
9
+ </head>
10
+
11
+ <body>
12
+ <ul style=
13
+ "text-align: left; font-family: Arial Unicode MS, TITUS Cyberbit Basic, Lucida Sans Unicode; font-size: 13pt">
14
+ <li>
15
+ <a href="search?id=MHpGWYJ6YDXX2bw9Ghwm"><span class="f" style=
16
+ "font-weight: bold">bancar</span><span class="f" style=
17
+ "font-weight: bold">.</span></a>
18
+ </li>
19
+
20
+ <li>
21
+ <a href="search?id=E0yO6yORQDXX2M4zQtJ3"><span class="f" style=
22
+ "font-weight: bold">banco</span><span class="f" style=
23
+ "font-weight: bold">.</span></a><i><span style=
24
+ "font-size:8pt; font-family: Arial">Real Academia Española © Todos
25
+ los derechos reservados</span></i><br>
26
+ </li>
27
+ </ul>
28
+ </body>
29
+ </html>
@@ -0,0 +1,125 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta content="no-cache" http-equiv="Pragma">
5
+ <meta content="-1" http-equiv="Expires">
6
+ <meta content="no-cache" http-equiv="CacheControl">
7
+ <script type="text/javascript">
8
+ function decode_string(in_str) {
9
+ return decodeURIComponent(in_str);
10
+ }
11
+
12
+ function decode_action() {
13
+ var f = document.forms[0];
14
+ if (f.attributes['action'] != undefined) {
15
+ f.attributes['action'].value = decode_string(f.attributes['action'].value);
16
+ } else {
17
+ f.action = decode_string(f.action);
18
+ }
19
+ }
20
+
21
+ function submit_form() {
22
+ var e = document.forms[0].elements;
23
+ e[1].value = decode_string(e[1].value);
24
+ e[2].value = decode_string(e[2].value);
25
+ e[4].value = decode_string(e[4].value);
26
+ e[6].value = decode_string(e[6].value);
27
+ document.forms[0].submit();
28
+ }
29
+
30
+ function cookie_redirect() {
31
+ var cookie = '';
32
+ var e = document.forms[0].elements;
33
+ var uri = (document.forms[0].attributes['action'] != undefined) ? document.forms[
34
+ 0].attributes['action'].value : document.forms[0].action;
35
+ var path = uri;
36
+ var tchr = '&';
37
+ var token = path.indexOf('?');
38
+ if (token < 0) {
39
+ token = path.indexOf('#');
40
+ tchr = '#';
41
+ }
42
+ if (token > 0) {
43
+ path = path.substr(0, token);
44
+ }
45
+ for (i = 0; i < e.length; i++) {
46
+ cookie += e[i].name + '=' + e[i].value;
47
+ if (i < (e.length - 1)) cookie += '&';
48
+ }
49
+ var d = new Date();
50
+ d.setTime(d.getTime() + 5000);
51
+ document.cookie = e[0].name.substr(0, 11) + '75=' + cookie + ';expires=' +
52
+ d.toGMTString() + ';path=' + path;
53
+ var qs = (token > 0) ? (tchr + uri.substr(token + 1, uri.length - token - 1)) :
54
+ '';
55
+ uri = path + '?' + e[0].name + '=' + e[0].value + qs;
56
+ window.location.replace(uri);
57
+ }
58
+
59
+ function challenge() {
60
+ var table =
61
+ "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D";
62
+ var c = 1477350835
63
+ var slt = "QG60Q2v4"
64
+ var s1 = 'j'
65
+ var s2 = 'n'
66
+ var n = 4
67
+ var send_cookie = 0
68
+ var start = s1.charCodeAt(0);
69
+ var end = s2.charCodeAt(0);
70
+ var arr = new Array(n);
71
+ var m = Math.pow(((end - start) + 1), n);
72
+ for (var i = 0; i < n; i++) arr[i] = s1;
73
+ for (var i = 0; i < m - 1; i++) {
74
+ for (var j = n - 1; j >= 0; --j) {
75
+ var t = arr[j].charCodeAt(0);
76
+ t++;
77
+ arr[j] = String.fromCharCode(t);
78
+ if (arr[j].charCodeAt(0) <= end) {
79
+ break;
80
+ } else {
81
+ arr[j] = s1;
82
+ }
83
+ }
84
+ var chlg = arr.join("");
85
+ var str = chlg + slt;
86
+ var crc = 0;
87
+ var crc = crc ^ (-1);
88
+ for (var k = 0, iTop = str.length; k < iTop; k++) {
89
+ crc = (crc >> 8) ^ ("0x" + table.substr(((crc ^ str.charCodeAt(k)) &
90
+ 0x000000FF) * 9, 8));
91
+ }
92
+ crc = crc ^ (-1);
93
+ crc = Math.abs(crc);
94
+ if (crc == parseInt(c)) {
95
+ break;
96
+ }
97
+ }
98
+ document.forms[0].elements[1].value = "42612abd48551544c72ae36bc40f440a:" +
99
+ chlg + ":" + slt + ":" + crc;
100
+ decode_action();
101
+ if (send_cookie == 0) {
102
+ submit_form();
103
+ } else {
104
+ cookie_redirect();
105
+ }
106
+ }
107
+ </script><noscript></noscript>
108
+
109
+ <title></title>
110
+ </head>
111
+
112
+ <body onload="challenge()">
113
+ Please enable JavaScript to view the page content.
114
+
115
+ <form action="%2fdrae%2fsrv%2fsearch%3fval%3damor" method="post">
116
+ <input name="TS014dfc77_id" type="hidden" value="3">
117
+ <input name="TS014dfc77_cr" type="hidden" value="">
118
+ <input name="TS014dfc77_76" type="hidden" value="0">
119
+ <input name="TS014dfc77_md" type="hidden" value="1">
120
+ <input name="TS014dfc77_rf" type="hidden" value="0">
121
+ <input name="TS014dfc77_ct" type="hidden" value="0">
122
+ <input name="TS014dfc77_pd" type="hidden" value="0">
123
+ </form>
124
+ </body>
125
+ </html>
@@ -0,0 +1,373 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <link href=
5
+ "/drae/css/W.drae.css+estilosCabDrae.css,Mcc.W_CzH9ApGk.css.pagespeed.cf.w1GLVsE-IR.css"
6
+ rel="stylesheet" type="text/css">
7
+
8
+ <title>Real Academia Española. Diccionario Usual.</title>
9
+ </head>
10
+
11
+ <body>
12
+ <div>
13
+ <a id="83341" name="83341"></a>
14
+
15
+ <p class="p"><a href="search?id=aB5y00M7d2x5mLqlwXF" target=
16
+ "_self"><img align="right" alt="Ver artículo enmendado" border="0" src=
17
+ "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH0AAAAZBAMAAADuyzxaAAAAElBMVEWEAgT8/vz8QkT8AgS8AgT8enxcJRi+AAAA0klEQVQ4y82SwQ3DMAhFOWQBxAJVqwyAWCCHjJDuv0r5OImR2hxqLkEWXxAeBis0vyu20LOCb85XBlidLwywBT8+wBr8y0btNrweGWmifIWwdN/5vVzOPpe8SveJl3z737x6zMJuoq7CzqOlQlhZkRGoQqz5xBty3sULw1kgFoAHbpFEs34S70UeN9QSz2ez6NOwb17sgu8Bypsq/+CB7nyevwf+zfLwmde2ItZgjbGx6fl+sbzE+2GN49zp/y3xNGwT+Mc4T+ALOE0LVa4nWqhoH2NuCULPEni8AAAAAElFTkSuQmCC"></a><span class="f"
18
+ style="font-weight: bold">amor</span><span class="f" style=
19
+ "font-weight: bold">.</span></p>
20
+
21
+ <p class="q"><span class="a">(<a>Del</a> <a title=
22
+ "latín, latino o latina">lat.</a> <i>amor, -ōris</i>).</span></p>
23
+
24
+ <p></p>
25
+
26
+ <p class="q"><a id="0_1" name="0_1"></a> <span class="d" style=
27
+ "font-weight: bold">1.</span> <span class="d" title=
28
+ "nombre masculino">m.</span> <span class="b">Sentimiento intenso del
29
+ ser humano que, partiendo de su propia insuficiencia, necesita y busca
30
+ el encuentro y unión con otro ser.</span></p>
31
+
32
+ <p class="q"><a id="0_2" name="0_2"></a> <span class="d" style=
33
+ "font-weight: bold">2.</span> <span class="g g" title=
34
+ "nombre masculino">m.</span> <span class="b">Sentimiento hacia otra
35
+ persona que naturalmente nos atrae y que, procurando reciprocidad en el
36
+ deseo de unión, nos completa, alegra y da energía para convivir,
37
+ comunicarnos y crear.</span></p>
38
+
39
+ <p class="q"><a id="0_3" name="0_3"></a> <span class="d" style=
40
+ "font-weight: bold">3.</span> <span class="g g" title=
41
+ "nombre masculino">m.</span> <span class="b">Sentimiento de afecto,
42
+ inclinación y entrega a alguien o algo.</span></p>
43
+
44
+ <p class="q"><a id="0_4" name="0_4"></a> <span class="d" style=
45
+ "font-weight: bold">4.</span> <span class="g g" title=
46
+ "nombre masculino">m.</span> <span class="b">Tendencia a la unión
47
+ sexual.</span></p>
48
+
49
+ <p class="q"><a id="0_5" name="0_5"></a> <span class="d" style=
50
+ "font-weight: bold">5.</span> <span class="g g" title=
51
+ "nombre masculino">m.</span> <span class="b">Blandura, suavidad.
52
+ <span class="h" style="font-style: italic">Cuidar el jardín con
53
+ amor</span></span></p>
54
+
55
+ <p class="q"><a id="0_6" name="0_6"></a> <span class="d" style=
56
+ "font-weight: bold">6.</span> <span class="g g" title=
57
+ "nombre masculino">m.</span> <span class="b">Persona amada.
58
+ <span class="d" title=
59
+ "Usado también en plural con el mismo significado que en singular">U.
60
+ t. en pl. con el mismo significado que en sing.</span> <span class="h"
61
+ style="font-style: italic">Para llevarle un don a sus
62
+ amores</span></span></p>
63
+
64
+ <p class="q"><a id="0_7" name="0_7"></a> <span class="d" style=
65
+ "font-weight: bold">7.</span> <span class="g g" title=
66
+ "nombre masculino">m.</span> <span class="b">Esmero con que se trabaja
67
+ una obra deleitándose en ella.</span></p>
68
+
69
+ <p class="q"><a id="0_8" name="0_8"></a> <span class="d" style=
70
+ "font-weight: bold">8.</span> <span class="g g" title=
71
+ "nombre masculino">m.</span> <span class="d d" title=
72
+ "poco usado o usada, poco usados o usadas">p. us.</span> <span class=
73
+ "b">Apetito sexual de los animales.</span></p>
74
+
75
+ <p class="q"><a id="0_9" name="0_9"></a> <span class="d" style=
76
+ "font-weight: bold">9.</span> <span class="g g" title=
77
+ "nombre masculino">m.</span> <span class="d d" title=
78
+ "anticuado o anticuada">ant.</span> <span class="b">Voluntad,
79
+ consentimiento.</span></p>
80
+
81
+ <p class="q"><a id="0_10" name="0_10"></a> <span class="d" style=
82
+ "font-weight: bold">10.</span> <span class="g g" title=
83
+ "nombre masculino">m.</span> <span class="d d" title=
84
+ "anticuado o anticuada">ant.</span> <span class="b">Convenio o
85
+ ajuste.</span></p>
86
+
87
+ <p class="q"><a id="0_11" name="0_11"></a> <span class="d" style=
88
+ "font-weight: bold">11.</span> <span class="g"><span class="g" title=
89
+ "nombre masculino">m.</span> <span class="d" title=
90
+ "plural">pl.</span></span> <span class="b">Relaciones
91
+ amorosas.</span></p>
92
+
93
+ <p class="q"><a id="0_12" name="0_12"></a> <span class="d" style=
94
+ "font-weight: bold">12.</span> <span class="g"><span class="g" title=
95
+ "nombre masculino">m.</span> <span class="g" title=
96
+ "plural">pl.</span></span> <span class="b">Objeto de cariño especial
97
+ para alguien.</span></p>
98
+
99
+ <p class="q"><a id="0_13" name="0_13"></a> <span class="d" style=
100
+ "font-weight: bold">13.</span> <span class="g"><span class="g" title=
101
+ "nombre masculino">m.</span> <span class="g" title=
102
+ "plural">pl.</span></span> <span class="b">Expresiones de <span class=
103
+ "j" style="font-weight: bold">amor,</span> caricias,
104
+ requiebros.</span></p>
105
+
106
+ <p class="q"><a id="0_14" name="0_14"></a> <span class="d" style=
107
+ "font-weight: bold">14.</span> <span class="g"><span class="g" title=
108
+ "nombre masculino">m.</span> <span class="g" title=
109
+ "plural">pl.</span></span> <span class="b"><a href=
110
+ "search?id=9Fr9MMwZ3DXX21i5CrX3#0_1"><span class="c" style=
111
+ "font-weight: bold">cadillo</span></a> (<span class="n">‖</span> planta
112
+ umbelífera).</span></p>
113
+
114
+ <p class="p"><a id="amor_al_uso." name="amor_al_uso."></a> <span class=
115
+ "k"><b>~</b> <b>al uso.</b></span></p>
116
+
117
+ <p class="q"><a id="amor_al_uso.1" name="amor_al_uso.1"></a>
118
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
119
+ title="nombre masculino">m.</span> <span class="b">Arbolito de la
120
+ familia de las Malváceas, parecido al abelmosco, de ramos cubiertos de
121
+ borra fina, hojas acorazonadas, angulosas y con cinco lóbulos,
122
+ pedúnculos casi tan largos como la hoja, y flor cuya corola es blanca
123
+ por la mañana, algo encarnada al mediodía y rosada por la tarde. Se
124
+ cría en la isla de Cuba y se cultiva en los jardines de
125
+ Europa.</span></p>
126
+
127
+ <p class="p"><a id="amor_de_hortelano." name="amor_de_hortelano."></a>
128
+ <span class="k"><b>~</b> <b>de hortelano.</b></span></p>
129
+
130
+ <p class="q"><a id="amor_de_hortelano.1" name=
131
+ "amor_de_hortelano.1"></a> <span class="k" style=
132
+ "font-weight: bold">1.</span> <span class="d" title=
133
+ "nombre masculino">m.</span> <span class="b">Planta anual de la familia
134
+ de las Rubiáceas, parecida al galio, de tallo ramoso, velludo en los
135
+ nudos y con aguijones echados hacia atrás en los ángulos, verticilos de
136
+ ocho hojas lineales, lanceoladas y ásperas en la margen, y fruto
137
+ globoso lleno de cerditas ganchosas en su ápice.</span></p>
138
+
139
+ <p class="q"><a id="amor_de_hortelano.2" name=
140
+ "amor_de_hortelano.2"></a> <span class="k" style=
141
+ "font-weight: bold">2.</span> <span class="g g" title=
142
+ "nombre masculino">m.</span> <span class="b"><a href=
143
+ "search?id=MrN01VqOBDXX2hWLwh4B#0_1"><span class="c" style=
144
+ "font-weight: bold">almorejo.</span></a></span></p>
145
+
146
+ <p class="q"><a id="amor_de_hortelano.3" name=
147
+ "amor_de_hortelano.3"></a> <span class="k" style=
148
+ "font-weight: bold">3.</span> <span class="g g" title=
149
+ "nombre masculino">m.</span> <span class="b"><a href=
150
+ "search?id=G8tz1sMu0DXX21ftlgSL#0_1"><span class="c" style=
151
+ "font-weight: bold">lampazo</span></a> (<span class="n">‖</span> planta
152
+ compuesta).</span></p>
153
+
154
+ <p class="p"><a id="amor_libre." name="amor_libre."></a> <span class=
155
+ "k"><b>~</b> <b>libre.</b></span></p>
156
+
157
+ <p class="q"><a id="amor_libre.1" name="amor_libre.1"></a> <span class=
158
+ "k" style="font-weight: bold">1.</span> <span class="d" title=
159
+ "nombre masculino">m.</span> <span class="b">Relaciones sexuales no
160
+ reguladas.</span></p>
161
+
162
+ <p class="p"><a id="amor_platónico." name="amor_platónico."></a>
163
+ <span class="k"><b>~</b> <b>platónico.</b></span></p>
164
+
165
+ <p class="q"><a id="amor_platónico.1" name="amor_platónico.1"></a>
166
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
167
+ title="nombre masculino">m.</span> <span class="b"><span class="j"
168
+ style="font-weight: bold">amor</span> idealizado y sin relación
169
+ sexual.</span></p>
170
+
171
+ <p class="p"><a id="amor_propio." name="amor_propio."></a> <span class=
172
+ "k"><b>~</b> <b>propio.</b></span></p>
173
+
174
+ <p class="q"><a id="amor_propio.1" name="amor_propio.1"></a>
175
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
176
+ title="nombre masculino">m.</span> <span class="b">El que alguien se
177
+ profesa a sí mismo, y especialmente a su prestigio.</span></p>
178
+
179
+ <p class="q"><a id="amor_propio.2" name="amor_propio.2"></a>
180
+ <span class="k" style="font-weight: bold">2.</span> <span class="g g"
181
+ title="nombre masculino">m.</span> <span class="b">Afán de mejorar la
182
+ propia actuación.</span></p>
183
+
184
+ <p class="p"><a id="amor_seco." name="amor_seco."></a> <span class=
185
+ "k"><b>~</b> <b>seco.</b></span></p>
186
+
187
+ <p class="q"><a id="amor_seco.1" name="amor_seco.1"></a> <span class=
188
+ "k" style="font-weight: bold">1.</span> <span class="d" title=
189
+ "nombre masculino">m.</span> <span class="b">Nombre que designa
190
+ diversas especies de plantas herbáceas cuyos frutos espinosos se
191
+ adhieren al pelo, a la ropa, etc.</span></p>
192
+
193
+ <p class="p"><a id="amores_secos." name="amores_secos."></a>
194
+ <span class="k"><b>~</b><b>es secos.</b></span></p>
195
+
196
+ <p class="q"><a id="amores_secos.1" name="amores_secos.1"></a>
197
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
198
+ title="nombre masculino">m.</span> <span class="d" title=
199
+ "plural">pl.</span> <span class="d d" style="font-style: italic" title=
200
+ "América Meridional">Am. Mer.</span> <span class="d">y <i><span class=
201
+ "d" title="Filipinas">Filip.</span></i></span> <span class="b"><a href=
202
+ "#amor_seco."><span class="c" style="font-weight: bold">amor
203
+ seco.</span></a></span></p>
204
+
205
+ <p class="p"><a id="al_amor_del_agua." name="al_amor_del_agua."></a>
206
+ <span class="k"><b>al</b> <b>~</b> <b>del agua.</b></span></p>
207
+
208
+ <p class="q"><a id="al_amor_del_agua.1" name="al_amor_del_agua.1"></a>
209
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
210
+ title="locución adverbial">loc. adv.</span> <span class="b">De modo que
211
+ se vaya con la corriente, navegando o nadando.</span></p>
212
+
213
+ <p class="q"><a id="al_amor_del_agua.2" name="al_amor_del_agua.2"></a>
214
+ <span class="k" style="font-weight: bold">2.</span> <span class="g g"
215
+ title="locución adverbial">loc. adv.</span> <span class=
216
+ "b">Contemporizando, dejando correr las cosas que debieran
217
+ reprobarse.</span></p>
218
+
219
+ <p class="p"><a id="al_amor_de_la_lumbre,_o_del_fuego." name=
220
+ "al_amor_de_la_lumbre,_o_del_fuego."></a> <span class="k"><b>al</b>
221
+ <b>~</b> <b>de la lumbre,</b> o <b>del fuego.</b></span></p>
222
+
223
+ <p class="q"><a id="al_amor_de_la_lumbre,_o_del_fuego.1" name=
224
+ "al_amor_de_la_lumbre,_o_del_fuego.1"></a> <span class="k" style=
225
+ "font-weight: bold">1.</span> <span class="d" title=
226
+ "locuciones adverbiales">locs. advs.</span> <span class="b">Cerca de
227
+ ella, o de él, de modo que calienten y no quemen.</span></p>
228
+
229
+ <p class="p"><a id="a_su_amor." name="a_su_amor."></a> <span class=
230
+ "k"><b>a su</b> <b>~</b><b>.</b></span></p>
231
+
232
+ <p class="q"><a id="a_su_amor.1" name="a_su_amor.1"></a> <span class=
233
+ "k" style="font-weight: bold">1.</span> <span class="d" title=
234
+ "locución adverbial">loc. adv.</span> <span class="d d" title=
235
+ "poco usado o usada, poco usados o usadas">p. us.</span> <span class=
236
+ "b"><a href="search?id=Kyung2ggdDXX2pBc5ho4#0_1"><span class="c" style=
237
+ "font-weight: bold">holgadamente.</span></a></span></p>
238
+
239
+ <p class="p"><a id="con_mil_amores." name="con_mil_amores."></a>
240
+ <span class="k"><b>con mil</b> <b>~</b><b>es.</b></span></p>
241
+
242
+ <p class="q"><a id="con_mil_amores.1" name="con_mil_amores.1"></a>
243
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
244
+ title="locución adverbial">loc. adv.</span> <span class="d d" title=
245
+ "coloquial">coloq.</span> <span class="b"><a href=
246
+ "#de_mil_amores."><span class="c" style="font-weight: bold">de mil
247
+ amores.</span></a></span></p>
248
+
249
+ <p class="p"><a id="dar_como_por_amor_de_Dios." name=
250
+ "dar_como_por_amor_de_Dios."></a> <span class="k"><b>dar como por</b>
251
+ <b>~</b> <b>de Dios.</b></span></p>
252
+
253
+ <p class="q"><a id="dar_como_por_amor_de_Dios.1" name=
254
+ "dar_como_por_amor_de_Dios.1"></a> <span class="k" style=
255
+ "font-weight: bold">1.</span> <span class="d" title=
256
+ "locución verbal">loc. verb.</span> <span class="d d" title=
257
+ "desusado, desusada, desusados o desusadas">desus.</span> <span class=
258
+ "b">Dar como de gracia lo que se debe de justicia.</span></p>
259
+
260
+ <p class="p"><a id="de_mil_amores." name="de_mil_amores."></a>
261
+ <span class="k"><b>de mil</b> <b>~</b><b>es.</b></span></p>
262
+
263
+ <p class="q"><a id="de_mil_amores.1" name="de_mil_amores.1"></a>
264
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
265
+ title="locución adverbial">loc. adv.</span> <span class="d d" title=
266
+ "coloquial">coloq.</span> <span class="b">Con mucho gusto, de muy buena
267
+ voluntad.</span></p>
268
+
269
+ <p class="p"><a id="en_amor_compaña." name="en_amor_compaña."></a>
270
+ <span class="k"><b>en</b> <b>~</b> <b>compaña.</b></span></p>
271
+
272
+ <p class="q"><a id="en_amor_compaña.1" name="en_amor_compaña.1"></a>
273
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
274
+ title="locución adverbial">loc. adv.</span> <span class="d d" title=
275
+ "coloquial">coloq.</span> <span class="b"><a href=
276
+ "#en_amor_y_compa%C3%B1a."><span class="c" style="font-weight: bold">en
277
+ amor y compaña.</span></a></span></p>
278
+
279
+ <p class="p"><a id="en_amor_y_compaña." name="en_amor_y_compaña."></a>
280
+ <span class="k"><b>en</b> <b>~</b> <b>y compaña.</b></span></p>
281
+
282
+ <p class="q"><a id="en_amor_y_compaña.1" name=
283
+ "en_amor_y_compaña.1"></a> <span class="k" style=
284
+ "font-weight: bold">1.</span> <span class="d" title=
285
+ "locución adverbial">loc. adv.</span> <span class="d d" title=
286
+ "coloquial">coloq.</span> <span class="b">En amistad y buena
287
+ compañía.</span></p>
288
+
289
+ <p class="p"><a id="hacer_el_amor." name="hacer_el_amor."></a>
290
+ <span class="k"><b>hacer el</b> <b>~</b><b>.</b></span></p>
291
+
292
+ <p class="q"><a id="hacer_el_amor.1" name="hacer_el_amor.1"></a>
293
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
294
+ title="locución verbal">loc. verb.</span> <span class="b">Enamorar,
295
+ galantear.</span></p>
296
+
297
+ <p class="q"><a id="hacer_el_amor.2" name="hacer_el_amor.2"></a>
298
+ <span class="k" style="font-weight: bold">2.</span> <span class="g g"
299
+ title="locución verbal">loc. verb.</span> <span class="b"><a href=
300
+ "search?id=CCdJ8FH5TDXX2kFFej7Y#0_1"><span class="c" style=
301
+ "font-weight: bold">copular</span></a> (<span class="n">‖</span> unirse
302
+ sexualmente).</span></p>
303
+
304
+ <p class="p"><a id="por_amor_al_arte." name="por_amor_al_arte."></a>
305
+ <span class="k"><b>por</b> <b>~</b> <b>al arte.</b></span></p>
306
+
307
+ <p class="q"><a id="por_amor_al_arte.1" name="por_amor_al_arte.1"></a>
308
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
309
+ title="locución adverbial">loc. adv.</span> <span class="d d" title=
310
+ "coloquial">coloq.</span> <span class="b">Gratuitamente, sin obtener
311
+ recompensa por el trabajo.</span></p>
312
+
313
+ <p class="p"><a id="por_amor_de." name="por_amor_de."></a> <span class=
314
+ "k"><b>por</b> <b>~</b> <b>de.</b></span></p>
315
+
316
+ <p class="q"><a id="por_amor_de.1" name="por_amor_de.1"></a>
317
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
318
+ title="locución preposicional">loc. prepos.</span> <span class="b">Por
319
+ causa de.</span></p>
320
+
321
+ <p class="p"><a id="por_amor_de_Dios." name="por_amor_de_Dios."></a>
322
+ <span class="k"><b>por</b> <b>~</b> <b>de Dios.</b></span></p>
323
+
324
+ <p class="q"><a id="por_amor_de_Dios.1" name="por_amor_de_Dios.1"></a>
325
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
326
+ title="expresión">expr.</span> <span class="b"><span class="d" title=
327
+ "Usado, usada, usados o usadas">U.</span> para pedir con encarecimiento
328
+ o excusarse con humildad. <span class="h" style=
329
+ "font-style: italic">Hágalo usted por amor de Dios</span> <span class=
330
+ "h" style="font-style: italic">Perdone usted por amor de
331
+ Dios</span></span></p>
332
+
333
+ <p class="p"><a id="requerir_de_amores." name=
334
+ "requerir_de_amores."></a> <span class="k"><b>requerir de</b>
335
+ <b>~</b><b>es.</b></span></p>
336
+
337
+ <p class="q"><a id="requerir_de_amores.1" name=
338
+ "requerir_de_amores.1"></a> <span class="k" style=
339
+ "font-weight: bold">1.</span> <span class="d" title=
340
+ "locución verbal">loc. verb.</span> <span class="b">Cortejar,
341
+ galantear.</span></p>
342
+
343
+ <p class="p"><a id="tratar_amores." name="tratar_amores."></a>
344
+ <span class="k"><b>tratar</b> <b>~</b><b>es.</b></span></p>
345
+
346
+ <p class="q"><a id="tratar_amores.1" name="tratar_amores.1"></a>
347
+ <span class="k" style="font-weight: bold">1.</span> <span class="d"
348
+ title="locución verbal">loc. verb.</span> <span class="b">Tener
349
+ relaciones amorosas.</span></p>
350
+
351
+ <p class="p">□<a title="Véase">V.</a></p>
352
+
353
+ <p class="q"><a href=
354
+ "search?id=ICWjMGU04DXX2p4uhV61#%C3%A1rbol_del_amor." target=
355
+ "_self"><span class="c" style="font-weight: bold">árbol del</span>
356
+ <b>amor</b></a></p>
357
+
358
+ <p class="q"><a href="search?id=z7A0PIT5sDXX2MzEzLWN#flor_de_amor."
359
+ target="_self"><span class="c" style="font-weight: bold">flor de</span>
360
+ <b>amor</b></a></p>
361
+
362
+ <p class="q"><a href="search?id=78oXFrsiADXX2pbmYlmX#trompeta_de_amor."
363
+ target="_self"><span class="c" style="font-weight: bold">trompeta
364
+ de</span> <b>amor</b></a></p>
365
+ </div>
366
+
367
+ <p class="o">Real Academia Española © Todos los derechos
368
+ reservados</p><script async="" src=
369
+ "//www.google-analytics.com/analytics.js"></script><script type="text/javascript">
370
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-44263049-1','auto');ga('send','pageview');
371
+ </script>
372
+ </body>
373
+ </html>
@@ -0,0 +1,4 @@
1
+ require 'rubygems'
2
+ require 'minitest/autorun'
3
+ require 'webmock/minitest'
4
+ require 'nebrija'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nebrija
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@javierhonduco"
@@ -93,10 +93,23 @@ executables:
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
+ - ".gitignore"
97
+ - ".travis.yml"
98
+ - Gemfile
99
+ - README.md
96
100
  - Rakefile
101
+ - bin/debug
97
102
  - bin/nebrija
98
103
  - lib/nebrija.rb
104
+ - lib/nebrija/cli.rb
99
105
  - lib/nebrija/parser.rb
106
+ - lib/nebrija/rae.rb
107
+ - nebrija.gemspec
108
+ - test/mocks/error.html
109
+ - test/mocks/multiple.html
110
+ - test/mocks/noscript.html
111
+ - test/mocks/single.html
112
+ - test/test_helper.rb
100
113
  - test/test_rae.rb
101
114
  homepage: http://rubygems.org/gems/nebrija
102
115
  licenses: