mudfly 0.0.1 → 0.0.2
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 +4 -4
- data/Gemfile.lock +3 -1
- data/README.md +3 -10
- data/bin/mudfly +21 -0
- data/lib/mudfly/version.rb +1 -1
- data/mudfly.gemspec +1 -0
- metadata +19 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b84691e036eebc86eccc87cc102db009b262fe1c
|
|
4
|
+
data.tar.gz: a0def9df26c8ae7371393c522ffbebc4d2db8cab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b87307f49ead770e56bfdc8f5e11fa4161459f15117ae320cdd8159c74361862cf303844879d4dea1866ca8f1b746cc28570afc2d992d46a336a17cbf2e79747
|
|
7
|
+
data.tar.gz: ff6623551875f26d0f14ca53322a2476c6a90b1e3cd6cb1cca568c5ab472c1a23028457347fc3af2408a8aba7a231370c740a0337ddd8bc056828c64861218f0
|
data/Gemfile.lock
CHANGED
|
@@ -3,12 +3,13 @@ PATH
|
|
|
3
3
|
specs:
|
|
4
4
|
mudfly (0.0.1)
|
|
5
5
|
faraday
|
|
6
|
+
thor
|
|
6
7
|
|
|
7
8
|
GEM
|
|
8
9
|
remote: https://rubygems.org/
|
|
9
10
|
specs:
|
|
10
11
|
diff-lcs (1.2.1)
|
|
11
|
-
faraday (0.8.
|
|
12
|
+
faraday (0.8.7)
|
|
12
13
|
multipart-post (~> 1.1)
|
|
13
14
|
multipart-post (1.2.0)
|
|
14
15
|
rake (10.0.3)
|
|
@@ -20,6 +21,7 @@ GEM
|
|
|
20
21
|
rspec-expectations (2.13.0)
|
|
21
22
|
diff-lcs (>= 1.1.3, < 2.0)
|
|
22
23
|
rspec-mocks (2.13.0)
|
|
24
|
+
thor (0.18.1)
|
|
23
25
|
|
|
24
26
|
PLATFORMS
|
|
25
27
|
ruby
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Mudfly 0.0.
|
|
1
|
+
# Mudfly (0.0.2)
|
|
2
2
|
|
|
3
|
-
A Ruby wrapper for the PageSpeed Insights API
|
|
3
|
+
A Ruby wrapper for the PageSpeed Insights API.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -53,7 +53,7 @@ See [this](https://developers.google.com/speed/docs/insights/languages) for a va
|
|
|
53
53
|
|
|
54
54
|
require 'mudfly'
|
|
55
55
|
|
|
56
|
-
# Configure Mudfly
|
|
56
|
+
# Configure Mudfly here
|
|
57
57
|
|
|
58
58
|
Mudfly.analyze('https://github.com') # Desktop report for github.com
|
|
59
59
|
Mudfly.analyze('https://github.com', strategy: :desktop) # Same as above
|
|
@@ -67,7 +67,6 @@ See [this](https://developers.google.com/speed/docs/insights/languages) for a va
|
|
|
67
67
|
|
|
68
68
|
report = Mudfly.analyze('http://pabloelic.es', strategy: :desktop)
|
|
69
69
|
|
|
70
|
-
|
|
71
70
|
# Report Info
|
|
72
71
|
|
|
73
72
|
puts "Kind: #{report.kind}"
|
|
@@ -76,7 +75,6 @@ See [this](https://developers.google.com/speed/docs/insights/languages) for a va
|
|
|
76
75
|
puts "Title: #{report.title}"
|
|
77
76
|
puts "Score: #{report.score}"
|
|
78
77
|
|
|
79
|
-
|
|
80
78
|
# Page Stats
|
|
81
79
|
|
|
82
80
|
puts "Resources Number: #{report.stats.resources_number}"
|
|
@@ -90,23 +88,18 @@ See [this](https://developers.google.com/speed/docs/insights/languages) for a va
|
|
|
90
88
|
puts "JavaScript Resources Number: #{report.stats.javascript_resources_number}"
|
|
91
89
|
puts "CSS Resources Number: #{report.stats.css_resources_number}"
|
|
92
90
|
|
|
93
|
-
|
|
94
91
|
# Rules
|
|
95
92
|
|
|
96
93
|
report.rules.each do |rule|
|
|
97
|
-
|
|
98
94
|
puts "Rule Name: #{rule.name}"
|
|
99
95
|
puts "Rule Score: #{rule.score}"
|
|
100
96
|
puts "Rule Impact: #{rule.impact}"
|
|
101
|
-
|
|
102
97
|
end
|
|
103
98
|
|
|
104
|
-
|
|
105
99
|
# Report API Version
|
|
106
100
|
|
|
107
101
|
puts "Report API Version: #{report.version.major}.#{report.version.minor}"
|
|
108
102
|
|
|
109
|
-
|
|
110
103
|
## Copyright
|
|
111
104
|
|
|
112
105
|
Copyright © 2013 Pablo Elices. See [license](https://github.com/pabloelices/mudfly/blob/master/LICENSE.txt) for details.
|
data/bin/mudfly
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
require 'thor'
|
|
2
|
+
|
|
3
|
+
require 'mudfly'
|
|
4
|
+
|
|
5
|
+
class CLI < Thor
|
|
6
|
+
|
|
7
|
+
package_name 'Mudfly'
|
|
8
|
+
|
|
9
|
+
map '-v' => :version
|
|
10
|
+
|
|
11
|
+
desc '-v', 'Show Mudfly version'
|
|
12
|
+
|
|
13
|
+
def version
|
|
14
|
+
|
|
15
|
+
puts "Mudfly #{Mudfly::VERSION}"
|
|
16
|
+
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
CLI.start(ARGV)
|
data/lib/mudfly/version.rb
CHANGED
data/mudfly.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mudfly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pablo Elices
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-04-
|
|
11
|
+
date: 2013-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: thor
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
42
|
name: bundler
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -68,7 +82,8 @@ dependencies:
|
|
|
68
82
|
version: '0'
|
|
69
83
|
description: Mudfly is a Ruby wrapper for the PageSpeed Insights API.
|
|
70
84
|
email: contact@pabloelic.es
|
|
71
|
-
executables:
|
|
85
|
+
executables:
|
|
86
|
+
- mudfly
|
|
72
87
|
extensions: []
|
|
73
88
|
extra_rdoc_files: []
|
|
74
89
|
files:
|
|
@@ -78,6 +93,7 @@ files:
|
|
|
78
93
|
- LICENSE.txt
|
|
79
94
|
- README.md
|
|
80
95
|
- Rakefile
|
|
96
|
+
- bin/mudfly
|
|
81
97
|
- lib/mudfly.rb
|
|
82
98
|
- lib/mudfly/client.rb
|
|
83
99
|
- lib/mudfly/configuration.rb
|