sniffles 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/analytics/facebook_insights')
3
+
4
+ describe Sniffles::Sniffers::FacebookInsights do
5
+ describe "#output" do
6
+ context "facebook_insights", :vcr => { :cassette_name => 'facebook_insights' } do
7
+ let(:facebook_insights) { described_class.new(page_body("http://simplymeasured.com")) }
8
+
9
+ it { facebook_insights.output[:found].should eq true }
10
+ it { facebook_insights.output[:admin_ids].should eq '661401101, 100000956903317, 827925001, 7001517' }
11
+ it { facebook_insights.output[:app_id].should eq '208102605913336' }
12
+ it { facebook_insights.output[:page_id].should eq '155315114482294' }
13
+ end
14
+
15
+ context "no quantcast" do
16
+ let(:blank) { described_class.new(empty_html_doc) }
17
+
18
+ it { blank.output[:found].should eq false }
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,18 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/cms/drupal')
3
+
4
+ describe Sniffles::Sniffers::Drupal do
5
+ describe "#output" do
6
+ context "drupal", :vcr => { :cassette_name => "drupal" } do
7
+ let(:drupal) { described_class.new(page_body("http://www.whitehouse.gov/")) }
8
+
9
+ it { drupal.output[:found].should eq true }
10
+ end
11
+
12
+ context "not drupal" do
13
+ let(:blank) { described_class.new(empty_html_doc) }
14
+
15
+ it { blank.output[:found].should eq false }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/cms/magento')
3
+
4
+ describe Sniffles::Sniffers::Magento do
5
+ describe "#output" do
6
+ context "magento", :vcr => { :cassette_name => "magento" } do
7
+ let(:magento) { described_class.new(page_body("http://www.jonessoda.com/")) }
8
+
9
+ it { magento.output[:found].should eq true }
10
+ end
11
+
12
+ context "not magento" do
13
+ let(:blank) { described_class.new(empty_html_doc) }
14
+
15
+ it { blank.output[:found].should eq false }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,20 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/cms/sitefinity')
3
+
4
+ describe Sniffles::Sniffers::Sitefinity do
5
+ describe "#output" do
6
+ context "Sitefinity", :vcr => { :cassette_name => "sitefinity_com" } do
7
+ let(:sitefinity) { described_class.new(page_body("http://sites.kiwanis.org/kiwanis/en/home.aspx")) }
8
+
9
+ it { sitefinity.output[:found].should eq true }
10
+ it { sitefinity.output[:version].should eq "3.7" }
11
+ end
12
+
13
+ context "Not a Sitefinity website" do
14
+ let(:blank) { described_class.new(empty_html_doc) }
15
+
16
+ it { blank.output[:found].should eq false }
17
+ it { blank.output[:version].nil?.should eq true }
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sniffles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
5
- prerelease:
4
+ version: 0.1.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ezekiel Templin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-03-20 00:00:00.000000000 Z
11
+ date: 2013-06-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: typhoeus
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: vcr
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -106,6 +97,7 @@ files:
106
97
  - lib/sniffles/sniffers/advertising/tribalfusion.rb
107
98
  - lib/sniffles/sniffers/analytics/chartbeat.rb
108
99
  - lib/sniffles/sniffers/analytics/clicky.rb
100
+ - lib/sniffles/sniffers/analytics/facebook_insights.rb
109
101
  - lib/sniffles/sniffers/analytics/google_analytics.rb
110
102
  - lib/sniffles/sniffers/analytics/kissmetrics.rb
111
103
  - lib/sniffles/sniffers/analytics/mixpanel.rb
@@ -114,9 +106,11 @@ files:
114
106
  - lib/sniffles/sniffers/cms/bigcommerce.rb
115
107
  - lib/sniffles/sniffers/cms/blogger.rb
116
108
  - lib/sniffles/sniffers/cms/cscart.rb
109
+ - lib/sniffles/sniffers/cms/drupal.rb
117
110
  - lib/sniffles/sniffers/cms/flatpress.rb
118
111
  - lib/sniffles/sniffers/cms/invision.rb
119
112
  - lib/sniffles/sniffers/cms/joomla.rb
113
+ - lib/sniffles/sniffers/cms/magento.rb
120
114
  - lib/sniffles/sniffers/cms/movabletype.rb
121
115
  - lib/sniffles/sniffers/cms/mybb.rb
122
116
  - lib/sniffles/sniffers/cms/oscommerce.rb
@@ -124,6 +118,7 @@ files:
124
118
  - lib/sniffles/sniffers/cms/posterous.rb
125
119
  - lib/sniffles/sniffers/cms/prestashop.rb
126
120
  - lib/sniffles/sniffers/cms/shopify.rb
121
+ - lib/sniffles/sniffers/cms/sitefinity.rb
127
122
  - lib/sniffles/sniffers/cms/tumblr.rb
128
123
  - lib/sniffles/sniffers/cms/typepad.rb
129
124
  - lib/sniffles/sniffers/cms/vanilla.rb
@@ -144,6 +139,8 @@ files:
144
139
  - spec/cassettes/demo_forum-software_org_mybb.yml
145
140
  - spec/cassettes/demo_oscommerce_com.yml
146
141
  - spec/cassettes/downlopedia_com.yml
142
+ - spec/cassettes/drupal.yml
143
+ - spec/cassettes/facebook_insights.yml
147
144
  - spec/cassettes/flatpress_org_home_blog.yml
148
145
  - spec/cassettes/forum-software_org_vanilla.yml
149
146
  - spec/cassettes/foursquare_com.yml
@@ -152,6 +149,7 @@ files:
152
149
  - spec/cassettes/humemes_com.yml
153
150
  - spec/cassettes/invisionmodding_com.yml
154
151
  - spec/cassettes/joomla_org.yml
152
+ - spec/cassettes/magento.yml
155
153
  - spec/cassettes/metafilter_com.yml
156
154
  - spec/cassettes/movabletype_com_blog.yml
157
155
  - spec/cassettes/orangecrushbeads_com.yml
@@ -159,6 +157,7 @@ files:
159
157
  - spec/cassettes/pearsonified_com.yml
160
158
  - spec/cassettes/phpbb_com.yml
161
159
  - spec/cassettes/shop_angrybirds_com.yml
160
+ - spec/cassettes/sitefinity_com.yml
162
161
  - spec/cassettes/sixflags_com.yml
163
162
  - spec/cassettes/softpedia_com.yml
164
163
  - spec/cassettes/soulemama_typepad_com.yml
@@ -181,6 +180,7 @@ files:
181
180
  - spec/sniffles/sniffers/advertising/tribalfusion_spec.rb
182
181
  - spec/sniffles/sniffers/analytics/chartbeat_spec.rb
183
182
  - spec/sniffles/sniffers/analytics/clicky_spec.rb
183
+ - spec/sniffles/sniffers/analytics/facebook_insights_spec.rb
184
184
  - spec/sniffles/sniffers/analytics/google_analytics_spec.rb
185
185
  - spec/sniffles/sniffers/analytics/kissmetrics_spec.rb
186
186
  - spec/sniffles/sniffers/analytics/mixpanel_spec.rb
@@ -189,9 +189,11 @@ files:
189
189
  - spec/sniffles/sniffers/cms/bigcommerce_spec.rb
190
190
  - spec/sniffles/sniffers/cms/blogger_spec.rb
191
191
  - spec/sniffles/sniffers/cms/cscart_spec.rb
192
+ - spec/sniffles/sniffers/cms/drupal_spec.rb
192
193
  - spec/sniffles/sniffers/cms/flatpress_spec.rb
193
194
  - spec/sniffles/sniffers/cms/invision_spec.rb
194
195
  - spec/sniffles/sniffers/cms/joomla_spec.rb
196
+ - spec/sniffles/sniffers/cms/magento_spec.rb
195
197
  - spec/sniffles/sniffers/cms/movabletype_spec.rb
196
198
  - spec/sniffles/sniffers/cms/mybb_spec.rb
197
199
  - spec/sniffles/sniffers/cms/oscommerce_spec.rb
@@ -199,6 +201,7 @@ files:
199
201
  - spec/sniffles/sniffers/cms/posterous_spec.rb
200
202
  - spec/sniffles/sniffers/cms/prestashop_spec.rb
201
203
  - spec/sniffles/sniffers/cms/shopify_spec.rb
204
+ - spec/sniffles/sniffers/cms/sitefinity_spec.rb
202
205
  - spec/sniffles/sniffers/cms/tumblr_spec.rb
203
206
  - spec/sniffles/sniffers/cms/typepad_spec.rb
204
207
  - spec/sniffles/sniffers/cms/vanilla_spec.rb
@@ -214,32 +217,25 @@ files:
214
217
  - spec/support/helpers.rb
215
218
  homepage: http://documentup.com/ezkl/sniffles
216
219
  licenses: []
220
+ metadata: {}
217
221
  post_install_message:
218
222
  rdoc_options: []
219
223
  require_paths:
220
224
  - lib
221
225
  required_ruby_version: !ruby/object:Gem::Requirement
222
- none: false
223
226
  requirements:
224
- - - ! '>='
227
+ - - '>='
225
228
  - !ruby/object:Gem::Version
226
229
  version: '0'
227
- segments:
228
- - 0
229
- hash: 3203100753512274119
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
- none: false
232
231
  requirements:
233
- - - ! '>='
232
+ - - '>='
234
233
  - !ruby/object:Gem::Version
235
234
  version: '0'
236
- segments:
237
- - 0
238
- hash: 3203100753512274119
239
235
  requirements: []
240
236
  rubyforge_project:
241
- rubygems_version: 1.8.19
237
+ rubygems_version: 2.0.2
242
238
  signing_key:
243
- specification_version: 3
239
+ specification_version: 4
244
240
  summary: Detect the platforms and libraries a website is running.
245
241
  test_files: []