trufflepig 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.travis.yml +4 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +25 -0
- data/LICENSE.txt +20 -0
- data/README.md +7 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/data/caniuse.json +1 -0
- data/data/features.json +1 -0
- data/data/patterns.json +79 -0
- data/lib/tasks/featurelist.rb +13 -0
- data/lib/trufflepig/feature_list.rb +34 -0
- data/lib/trufflepig/search.rb +45 -0
- data/lib/trufflepig.rb +5 -0
- data/spec/dummy_app/css/style.css +65 -0
- data/spec/dummy_app/index.html +19 -0
- data/spec/dummy_app/js/app.js +65 -0
- data/spec/dummy_app/js/jquery.js +4 -0
- data/spec/dummy_app/js/jquery.min.js +4 -0
- data/spec/helper.rb +20 -0
- data/spec/trufflepig/feature_list_spec.rb +35 -0
- data/spec/trufflepig/search_spec.rb +72 -0
- data/spec/trufflepig_spec.rb +5 -0
- data/trufflepig.gemspec +70 -0
- metadata +123 -0
data/.document
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
git (1.2.5)
|
5
|
+
jeweler (1.8.3)
|
6
|
+
bundler (~> 1.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
rdoc
|
10
|
+
json (1.6.5)
|
11
|
+
minitest (2.10.0)
|
12
|
+
purdytest (1.0.0)
|
13
|
+
minitest (~> 2.2)
|
14
|
+
rake (0.9.2.2)
|
15
|
+
rdoc (3.12)
|
16
|
+
json (~> 1.4)
|
17
|
+
|
18
|
+
PLATFORMS
|
19
|
+
ruby
|
20
|
+
|
21
|
+
DEPENDENCIES
|
22
|
+
bundler
|
23
|
+
jeweler (~> 1.8.3)
|
24
|
+
purdytest
|
25
|
+
rake
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Sebastian Kippe
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
[![Build Status](https://secure.travis-ci.org/5apps/trufflepig.png?branch=master)](http://travis-ci.org/5apps/trufflepig)
|
2
|
+
|
3
|
+
Scans files and directories for scrummy truffles. And by truffles, we mean shiny new features of HTML5, JavaScript APIs, CSS3, and friends. Obviously.
|
4
|
+
|
5
|
+
## License
|
6
|
+
|
7
|
+
This gem is licensed under the MIT license. The feature data is originally from [caniuse.com](http://caniuse.com) and published under the [CC BY-NC 3.0 license](http://creativecommons.org/licenses/by-nc/3.0/).
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
gem.name = "trufflepig"
|
17
|
+
gem.homepage = "http://github.com/5apps/trufflepig"
|
18
|
+
gem.license = "MIT"
|
19
|
+
gem.summary = %Q{Detects Web platform feature usage in source files}
|
20
|
+
gem.description = %Q{Detects Web platform feature usage in source files}
|
21
|
+
gem.email = "sebastian@kip.pe"
|
22
|
+
gem.authors = ["Sebastian Kippe"]
|
23
|
+
end
|
24
|
+
Jeweler::RubygemsDotOrgTasks.new
|
25
|
+
|
26
|
+
require 'rake/testtask'
|
27
|
+
Rake::TestTask.new(:test) do |test|
|
28
|
+
test.libs << 'lib' << 'spec'
|
29
|
+
test.pattern = 'spec/**/*_spec.rb'
|
30
|
+
test.verbose = true
|
31
|
+
end
|
32
|
+
|
33
|
+
Dir[File.dirname(__FILE__) + '/lib/trufflepig/*.rb'].each {|file| require file }
|
34
|
+
Dir[File.dirname(__FILE__) + '/lib/tasks/*.rb'].each {|file| require file }
|
35
|
+
|
36
|
+
task :default => :test
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.2.4
|