drugs 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5f10e040a0f16282b4b0da605d2c83e5d9576fe1
4
+ data.tar.gz: 36f0b4d6345d5f3be0c52850f7178f85d63db957
5
+ SHA512:
6
+ metadata.gz: 0689192fbfc42c0a571dc71e5f81b387c5f5a45df64bbfdec9f58e79d18db926b03f8182901579b064294044a8a796c37f8d1fff4586a3d3b1fd408c96d199d5
7
+ data.tar.gz: 2d67e82a2229911f2c73f35b3622b4af13e2d8482dbed716c26736b6bcab62dbe86cba1151c9d8dc741433286b67d26f9090122e65426c7c7dd03deb0de4a613
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in drugs.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Martin Andert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # Drugs
2
+
3
+ A list of pharmaceuticals. Useful for fighting contact form spam etc.
4
+
5
+
6
+ ## Installation & Usage
7
+
8
+ ### As a Node.js package
9
+
10
+ Using [npm](https://www.npmjs.com/):
11
+
12
+ ```
13
+ $ npm install --save drugs
14
+ ```
15
+
16
+ or using [yarn](https://yarnpkg.com/):
17
+
18
+ ```
19
+ $ yarn add drugs
20
+ ```
21
+
22
+ Then, in your code:
23
+
24
+ ```js
25
+ var drugs = require('drugs');
26
+
27
+ console.log(drugs)
28
+ //=> ['abilify', 'advil', 'albuterol', ...]
29
+ ```
30
+
31
+ ### As a Ruby gem
32
+
33
+ Add this line to your application's Gemfile:
34
+
35
+ ```ruby
36
+ gem 'drugs'
37
+ ```
38
+
39
+ And then execute:
40
+
41
+ $ bundle
42
+
43
+ Or install it yourself as:
44
+
45
+ $ gem install drugs
46
+
47
+ Then, in your code:
48
+
49
+ ```ruby
50
+ require "drugs"
51
+
52
+ include Drugs
53
+ puts drugs #=> ["abilify", "advil", "albuterol", ...]
54
+
55
+ # Or without including the module
56
+ Drugs.drugs #=> ["abilify", "advil", "albuterol", ...]
57
+ ```
58
+
59
+
60
+ ## Contributing
61
+
62
+ Bug reports and pull requests are welcome on GitHub at https://github.com/martinandert/drugs.
63
+
64
+
65
+ ## License
66
+
67
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
68
+
data/data/drugs.json ADDED
@@ -0,0 +1,79 @@
1
+ [
2
+ "abilify",
3
+ "advil",
4
+ "albuterol",
5
+ "alli diet",
6
+ "amoxicillin",
7
+ "amoxil",
8
+ "ampicillin",
9
+ "arimidex",
10
+ "atenolol",
11
+ "augmentin",
12
+ "avodart",
13
+ "baclofen",
14
+ "benicar",
15
+ "bupropion",
16
+ "buspar",
17
+ "cafergot",
18
+ "celebrex",
19
+ "celexa",
20
+ "chlorthalidone",
21
+ "cialis",
22
+ "cipro",
23
+ "cleocin",
24
+ "clindamycin",
25
+ "clomid",
26
+ "clonidine",
27
+ "cymbalta",
28
+ "diclofenac",
29
+ "effexor",
30
+ "elimite",
31
+ "esomeprazole",
32
+ "flagyl",
33
+ "fluconazole",
34
+ "fourosimide",
35
+ "hydrochlorothiazide",
36
+ "inderal",
37
+ "indocin",
38
+ "indomethacin",
39
+ "lasix",
40
+ "levitra",
41
+ "lexapro",
42
+ "lipitor",
43
+ "lisinopril",
44
+ "medrol",
45
+ "methotrexate",
46
+ "minoxidil",
47
+ "motilium",
48
+ "motrin",
49
+ "nexium",
50
+ "nolvadex",
51
+ "permethrin",
52
+ "prednisolone",
53
+ "prednisone",
54
+ "proscar",
55
+ "provera",
56
+ "prozac",
57
+ "retin-a",
58
+ "rimonabant",
59
+ "robaxin",
60
+ "rogaine",
61
+ "seroquel",
62
+ "sildenafil",
63
+ "strattera",
64
+ "suhagra",
65
+ "synthroid",
66
+ "tadacip",
67
+ "tadalafil",
68
+ "tenormin",
69
+ "toradol",
70
+ "tretinoin",
71
+ "triamterene",
72
+ "vermox",
73
+ "viagra",
74
+ "vigara",
75
+ "yasmin",
76
+ "zithromax",
77
+ "zofran",
78
+ "zoloft"
79
+ ]
data/drugs.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "drugs/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "drugs"
8
+ spec.version = Drugs::VERSION
9
+ spec.authors = ["Martin Andert"]
10
+ spec.email = ["mandert@gmail.com"]
11
+
12
+ spec.summary = "A list of pharmaceuticals."
13
+ spec.description = "A list of pharmaceuticals."
14
+ spec.homepage = "https://github.com/martinandert/drugs#readme"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test/|spec/|features/|\.gitignore|\.npmignore|Makefile|Rakefile|index\.js|package\.json)})
19
+ end
20
+
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.13"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ end
data/lib/drugs.rb ADDED
@@ -0,0 +1,12 @@
1
+ require "json"
2
+ require "drugs/version"
3
+
4
+ module Drugs
5
+ DRUGS = JSON.parse(File.read(File.expand_path("../../data/drugs.json", __FILE__))).freeze
6
+
7
+ def drugs
8
+ DRUGS
9
+ end
10
+
11
+ extend self
12
+ end
@@ -0,0 +1,3 @@
1
+ module Drugs
2
+ VERSION = "1.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: drugs
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Martin Andert
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-11-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: A list of pharmaceuticals.
42
+ email:
43
+ - mandert@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - Gemfile
49
+ - LICENSE.txt
50
+ - README.md
51
+ - data/drugs.json
52
+ - drugs.gemspec
53
+ - lib/drugs.rb
54
+ - lib/drugs/version.rb
55
+ homepage: https://github.com/martinandert/drugs#readme
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.5.1
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: A list of pharmaceuticals.
79
+ test_files: []