trufflepig 0.2.11 → 0.2.12
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.
- data/.travis.yml +2 -0
- data/README.md +14 -1
- data/VERSION +1 -1
- data/data/caniuse.json +1 -1
- data/data/features.json +1 -1
- data/lib/tasks/featurelist.rb +22 -0
- data/trufflepig.gemspec +2 -2
- metadata +3 -3
data/lib/tasks/featurelist.rb
CHANGED
@@ -4,6 +4,28 @@ namespace :featurelist do
|
|
4
4
|
Trufflepig::FeatureList.build
|
5
5
|
end
|
6
6
|
|
7
|
+
desc 'Fetch caniuse.com data from the official repository'
|
8
|
+
task :fetch do
|
9
|
+
require 'net/http'
|
10
|
+
require 'net/https' if RUBY_VERSION < '1.9'
|
11
|
+
|
12
|
+
uri = URI("https://raw.github.com/Fyrd/caniuse/master/data.json")
|
13
|
+
target_path = File.join File.dirname(__FILE__), "..", "..", "data", "caniuse.json"
|
14
|
+
|
15
|
+
Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
|
16
|
+
request = Net::HTTP::Get.new uri.to_s
|
17
|
+
|
18
|
+
if response = http.request(request)
|
19
|
+
open(target_path, "w") do |file|
|
20
|
+
file.write(response.body)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
desc 'Fetch caniuse.com data and build new feature/pattern list'
|
27
|
+
task :update => [:fetch, :build]
|
28
|
+
|
7
29
|
desc 'Dummy search'
|
8
30
|
task :search do
|
9
31
|
search = Trufflepig::Search.new("/Users/basti/src/5apps/example-apps/heliogram")
|
data/trufflepig.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "trufflepig"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.12"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sebastian Kippe", "Garret Alfert"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-06-19"
|
13
13
|
s.description = "Detects Web platform feature usage in source files"
|
14
14
|
s.email = "rubygems@5apps.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trufflepig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: purdytest
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash:
|
114
|
+
hash: 3408706701503031677
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|