r_fast_r_furious 0.0.1 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +24 -0
- data/README.md +31 -0
- data/Rakefile +1 -0
- data/lib/r_fast_r_furious/version.rb +3 -0
- data/lib/r_fast_r_furious.rb +16 -0
- data/r_fast_r_furious.gemspec +25 -0
- metadata +64 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d77a6e32fc45fc178450380e586db627632b4a87
|
4
|
+
data.tar.gz: 977a43532cb758b4a6cb7ddc69703acb3da6ccae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1b209e550b7f40e714ca7a9a037a5e1ad9e3a17f55e49a315a1cd00e8643bb0bf125a4b61cf9779f9801bc78b6e58ed4c07643eaa351c4a605ec171b6278509
|
7
|
+
data.tar.gz: c373300050093232fd25cb8702319c9bad7a303de650a2ee31934204c4e92daf1ff45e0a6943a533b476a75f8d83b889bda0eb8fee5df2f7b67f1788a36a8160
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
2
|
+
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
4
|
+
distribute this software, either in source code form or as a compiled
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
6
|
+
means.
|
7
|
+
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
9
|
+
of this software dedicate any and all copyright interest in the
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
11
|
+
of the public at large and to the detriment of our heirs and
|
12
|
+
successors. We intend this dedication to be an overt act of
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
14
|
+
software under copyright law.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
24
|
+
For more information, please refer to <http://unlicense.org/>
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# RFastRFurious
|
2
|
+
|
3
|
+
easily validate movie titles from the fast and the furious saga
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'r_fast_r_furious'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install r_fast_r_furious
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
require "r_fast_r_furious"
|
22
|
+
RFastRFurious.check("Fast Five") # => true
|
23
|
+
RFastRFurious.check("The Sorrow and the Pity") # => false
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require "r_fast_r_furious/version"
|
2
|
+
require "v8"
|
3
|
+
require "net/http"
|
4
|
+
require "uri"
|
5
|
+
|
6
|
+
module RFastRFurious
|
7
|
+
SOURCE = "https://raw.github.com/alunny/r_fast_r_furious/master/fast.js"
|
8
|
+
def check(string, url = SOURCE)
|
9
|
+
uri = URI.parse(SOURCE)
|
10
|
+
content = Net::HTTP.get(uri)
|
11
|
+
cxt = V8::Context.new
|
12
|
+
cxt.eval(content, "fast.js")
|
13
|
+
cxt["r_fast_r_furious"].call(string)
|
14
|
+
end
|
15
|
+
module_function :check
|
16
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'r_fast_r_furious/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "r_fast_r_furious"
|
8
|
+
spec.version = RFastRFurious::VERSION
|
9
|
+
spec.authors = ["Tim Carey-Smith"]
|
10
|
+
spec.email = ["tim@spork.in"]
|
11
|
+
spec.description = %q{easily validate movie titles from the fast and the furious saga}
|
12
|
+
spec.summary = %q{sometimes you just don't have enough time to read}
|
13
|
+
spec.homepage = "https://github.com/halorgium/r_fast_r_furious"
|
14
|
+
spec.license = "Public Domain"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "therubyracer"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
end
|
metadata
CHANGED
@@ -1,23 +1,75 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r_fast_r_furious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 1.0.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Tim Carey-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
11
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: therubyracer
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: easily validate movie titles from the fast and the furious saga
|
56
|
+
email:
|
57
|
+
- tim@spork.in
|
15
58
|
executables: []
|
16
59
|
extensions: []
|
17
60
|
extra_rdoc_files: []
|
18
|
-
files:
|
19
|
-
|
20
|
-
|
61
|
+
files:
|
62
|
+
- .gitignore
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- lib/r_fast_r_furious.rb
|
68
|
+
- lib/r_fast_r_furious/version.rb
|
69
|
+
- r_fast_r_furious.gemspec
|
70
|
+
homepage: https://github.com/halorgium/r_fast_r_furious
|
71
|
+
licenses:
|
72
|
+
- Public Domain
|
21
73
|
metadata: {}
|
22
74
|
post_install_message:
|
23
75
|
rdoc_options: []
|
@@ -30,14 +82,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
30
82
|
version: '0'
|
31
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
32
84
|
requirements:
|
33
|
-
- - '
|
85
|
+
- - '>'
|
34
86
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
87
|
+
version: 1.3.1
|
36
88
|
requirements: []
|
37
89
|
rubyforge_project:
|
38
90
|
rubygems_version: 2.0.0
|
39
91
|
signing_key:
|
40
92
|
specification_version: 4
|
41
|
-
summary:
|
93
|
+
summary: sometimes you just don't have enough time to read
|
42
94
|
test_files: []
|
43
|
-
has_rdoc:
|