exvo_warez 0.2.6 → 0.2.29

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/.bundle/config ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_WITHOUT: staging:production
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source :gemcutter
2
+
3
+ gemspec
4
+
5
+ gem "rack-useragent-filter", :git => "git://github.com/seku/rack-useragent.git"
6
+ # gem "rack-useragent-filter", :path => "~/exvo/rack-useragent"
data/Gemfile.lock ADDED
@@ -0,0 +1,82 @@
1
+ GIT
2
+ remote: git://github.com/seku/rack-useragent.git
3
+ revision: 1740099e78b67599c414f305a260d0eeb63f5b21
4
+ specs:
5
+ rack-useragent-filter (0.1.10)
6
+ rack (>= 0.9.1)
7
+ tilt (>= 1.0.0)
8
+ useragent (>= 0.1.5)
9
+
10
+ PATH
11
+ remote: .
12
+ specs:
13
+ exvo_warez (0.3.1)
14
+ exvo-auth (> 0.9.6)
15
+ rack-useragent-filter (>= 0.1.9)
16
+ rack_referral (= 0.0.1)
17
+
18
+ GEM
19
+ remote: http://rubygems.org/
20
+ specs:
21
+ abstract (1.0.0)
22
+ actionpack (3.0.5)
23
+ activemodel (= 3.0.5)
24
+ activesupport (= 3.0.5)
25
+ builder (~> 2.1.2)
26
+ erubis (~> 2.6.6)
27
+ i18n (~> 0.4)
28
+ rack (~> 1.2.1)
29
+ rack-mount (~> 0.6.13)
30
+ rack-test (~> 0.5.7)
31
+ tzinfo (~> 0.3.23)
32
+ activemodel (3.0.5)
33
+ activesupport (= 3.0.5)
34
+ builder (~> 2.1.2)
35
+ i18n (~> 0.4)
36
+ activesupport (3.0.5)
37
+ addressable (2.2.4)
38
+ builder (2.1.2)
39
+ crack (0.1.8)
40
+ erubis (2.6.6)
41
+ abstract (>= 1.0.0)
42
+ exvo-auth (0.12.1)
43
+ actionpack (~> 3.0.0)
44
+ activemodel (~> 3.0.0)
45
+ httparty (~> 0.6.1)
46
+ oa-oauth (~> 0.0.4)
47
+ faraday (0.4.6)
48
+ addressable (>= 2.1.1)
49
+ rack (>= 1.0.1)
50
+ httparty (0.6.1)
51
+ crack (= 0.1.8)
52
+ i18n (0.5.0)
53
+ multi_json (0.0.5)
54
+ nokogiri (1.4.4)
55
+ oa-core (0.0.5)
56
+ rack (~> 1.1)
57
+ oa-oauth (0.0.5)
58
+ multi_json (~> 0.0.2)
59
+ nokogiri (~> 1.4.2)
60
+ oa-core (= 0.0.5)
61
+ oauth (~> 0.4.0)
62
+ oauth2 (~> 0.0.10)
63
+ oauth (0.4.4)
64
+ oauth2 (0.0.13)
65
+ faraday (~> 0.4.1)
66
+ multi_json (>= 0.0.4)
67
+ rack (1.2.2)
68
+ rack-mount (0.6.14)
69
+ rack (>= 1.0.0)
70
+ rack-test (0.5.7)
71
+ rack (>= 1.0)
72
+ rack_referral (0.0.1)
73
+ tilt (1.2.2)
74
+ tzinfo (0.3.25)
75
+ useragent (0.3.1)
76
+
77
+ PLATFORMS
78
+ ruby
79
+
80
+ DEPENDENCIES
81
+ exvo_warez!
82
+ rack-useragent-filter!
data/Rakefile CHANGED
@@ -1,31 +1,2 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/testtask'
4
- require 'rake/rdoctask'
5
-
6
- desc 'Default: run unit tests.'
7
- task :default => :test
8
-
9
- desc 'Run all tests'
10
- Rake::TestTask.new(:test) do |t|
11
- t.libs << "test"
12
- t.test_files = FileList['test/*_test.rb']
13
- t.verbose = true
14
- end
15
-
16
- begin
17
- require 'jeweler'
18
- Jeweler::Tasks.new do |gemspec|
19
- gemspec.name = "exvo_warez"
20
- gemspec.authors = ["Tomasz Mazur"]
21
- gemspec.email = "defkode@gmail.com"
22
- gemspec.homepage = "http://github.com/defkode/rack-useragent"
23
- gemspec.summary = "ExvoWarez"
24
- gemspec.add_dependency("rack-useragent-filter", "0.1.8")
25
- gemspec.add_dependency("rack_referral", "0.0.1")
26
- gemspec.add_dependency("exvo-auth", "> 0.9.6")
27
- end
28
- Jeweler::GemcutterTasks.new
29
- rescue LoadError
30
- puts "Jeweler not available. Install it with: gem install jeweler"
31
- end
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/VERSION CHANGED
@@ -1 +0,0 @@
1
- 0.2.6
data/exvo_warez.gemspec CHANGED
@@ -1,60 +1,46 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
5
-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "version"
6
4
  Gem::Specification.new do |s|
7
5
  s.name = %q{exvo_warez}
8
- s.version = "0.2.6"
6
+ s.version = ExvoWarez::VERSION
9
7
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.required_rubygems_version = ">= 1.3.6"
9
+ s.date = %q{2011-03-23}
11
10
  s.authors = ["Tomasz Mazur"]
12
- s.date = %q{2011-02-23}
11
+ s.description = %q{Maintain Exvo Notifications in external apps}
13
12
  s.email = %q{defkode@gmail.com}
13
+ s.summary = %q{ExvoWarez}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
16
16
  "README.rdoc"
17
17
  ]
18
- s.files = [
19
- ".gitignore",
20
- "LICENSE",
21
- "README.rdoc",
22
- "Rakefile",
23
- "VERSION",
24
- "exvo_warez.gemspec",
25
- "lib/exvo_warez.rb",
26
- "lib/rack/exvo/seo.rb",
27
- "lib/rack/exvo/templates/links.erb",
28
- "test/exvo_warez_test.rb",
29
- "test/helper.rb"
30
- ]
31
18
  s.homepage = %q{http://github.com/defkode/rack-useragent}
32
- s.rdoc_options = ["--charset=UTF-8"]
33
- s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.7}
35
- s.summary = %q{ExvoWarez}
36
- s.test_files = [
37
- "test/exvo_warez_test.rb",
38
- "test/helper.rb"
39
- ]
19
+ s.rubyforge_project = %q{exvo_warez}
40
20
 
41
21
  if s.respond_to? :specification_version then
42
22
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
23
  s.specification_version = 3
44
-
24
+
45
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- s.add_runtime_dependency(%q<rack-useragent-filter>, ["= 0.1.8"])
26
+ s.add_runtime_dependency(%q<rack-useragent-filter>, [">= 0.1.9"])
47
27
  s.add_runtime_dependency(%q<rack_referral>, ["= 0.0.1"])
48
28
  s.add_runtime_dependency(%q<exvo-auth>, ["> 0.9.6"])
49
29
  else
50
- s.add_dependency(%q<rack-useragent-filter>, ["= 0.1.8"])
30
+ s.add_dependency(%q<rack-useragent-filter>, [">= 0.1.9"])
51
31
  s.add_dependency(%q<rack_referral>, ["= 0.0.1"])
52
32
  s.add_dependency(%q<exvo-auth>, ["> 0.9.6"])
53
33
  end
54
34
  else
55
- s.add_dependency(%q<rack-useragent-filter>, ["= 0.1.8"])
35
+ s.add_dependency(%q<rack-useragent-filter>, [">= 0.1.9"])
56
36
  s.add_dependency(%q<rack_referral>, ["= 0.0.1"])
57
37
  s.add_dependency(%q<exvo-auth>, ["> 0.9.6"])
58
38
  end
39
+
40
+ s.files = `git ls-files`.split("\n")
41
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
42
+ s.require_path = 'lib'
59
43
  end
60
44
 
45
+
46
+
data/lib/exvo_warez.rb CHANGED
@@ -13,7 +13,7 @@ module Rack
13
13
 
14
14
  def apply_middlewares
15
15
  if env == "development"
16
- #
16
+ apply_useragent_filter
17
17
  end
18
18
 
19
19
  if env == "staging"
@@ -51,7 +51,7 @@ module Rack
51
51
  ["Firefox", "3.0"]
52
52
  ]
53
53
 
54
- @app = Rack::UserAgent::Filter.new(@app, required_products, :force_with_cookie => "deprecated_browser")
54
+ @app = Rack::UserAgent::Filter.new(@app, required_products, :force_with_cookie => "deprecated_browser", :template => "http://www.exvo.com/browser_unsupported.html")
55
55
  # :template => "#{RAILS_ROOT}/public/browser_unsupported.html.erb"
56
56
  end
57
57
 
data/lib/rack/exvo/seo.rb CHANGED
@@ -9,7 +9,6 @@ module Rack
9
9
 
10
10
  def call(env)
11
11
  request = Rack::Request.new(env)
12
-
13
12
  status, headers, @body = @app.call(env)
14
13
 
15
14
  if request.xhr?
@@ -21,6 +20,7 @@ module Rack
21
20
  if cl = headers["Content-Length"]
22
21
  headers["Content-Length"] = (cl.to_i + @payload.length).to_s
23
22
  end
23
+
24
24
  [status, headers, self]
25
25
  else
26
26
  [status, headers, @body]
@@ -29,7 +29,7 @@ module Rack
29
29
  end
30
30
 
31
31
  def each
32
- @body.each do |chunk|
32
+ @body.split.each do |chunk|
33
33
  yield(end_of_body?(chunk) ? with_payload(chunk) : chunk)
34
34
  end
35
35
  end
@@ -34,6 +34,7 @@
34
34
  try {
35
35
  var pageTracker = _gat._getTracker("UA-2491324-1");
36
36
  pageTracker._trackPageview();
37
+ pageTracker._trackPageLoadTime();
37
38
  } catch(err) {}
38
39
  //]]>
39
40
  </script>
data/lib/version.rb ADDED
@@ -0,0 +1,3 @@
1
+ module ExvoWarez
2
+ VERSION = "0.2.29"
3
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo_warez
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 45
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 29
10
+ version: 0.2.29
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tomasz Mazur
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-23 00:00:00 +01:00
18
+ date: 2011-03-23 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -24,14 +24,14 @@ dependencies:
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - "="
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 11
29
+ hash: 9
30
30
  segments:
31
31
  - 0
32
32
  - 1
33
- - 8
34
- version: 0.1.8
33
+ - 9
34
+ version: 0.1.9
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: 0.9.6
67
67
  type: :runtime
68
68
  version_requirements: *id003
69
- description:
69
+ description: Maintain Exvo Notifications in external apps
70
70
  email: defkode@gmail.com
71
71
  executables: []
72
72
 
@@ -76,7 +76,10 @@ extra_rdoc_files:
76
76
  - LICENSE
77
77
  - README.rdoc
78
78
  files:
79
+ - .bundle/config
79
80
  - .gitignore
81
+ - Gemfile
82
+ - Gemfile.lock
80
83
  - LICENSE
81
84
  - README.rdoc
82
85
  - Rakefile
@@ -85,6 +88,7 @@ files:
85
88
  - lib/exvo_warez.rb
86
89
  - lib/rack/exvo/seo.rb
87
90
  - lib/rack/exvo/templates/links.erb
91
+ - lib/version.rb
88
92
  - test/exvo_warez_test.rb
89
93
  - test/helper.rb
90
94
  has_rdoc: true
@@ -92,8 +96,8 @@ homepage: http://github.com/defkode/rack-useragent
92
96
  licenses: []
93
97
 
94
98
  post_install_message:
95
- rdoc_options:
96
- - --charset=UTF-8
99
+ rdoc_options: []
100
+
97
101
  require_paths:
98
102
  - lib
99
103
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -110,17 +114,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
114
  requirements:
111
115
  - - ">="
112
116
  - !ruby/object:Gem::Version
113
- hash: 3
117
+ hash: 23
114
118
  segments:
115
- - 0
116
- version: "0"
119
+ - 1
120
+ - 3
121
+ - 6
122
+ version: 1.3.6
117
123
  requirements: []
118
124
 
119
- rubyforge_project:
125
+ rubyforge_project: exvo_warez
120
126
  rubygems_version: 1.3.7
121
127
  signing_key:
122
128
  specification_version: 3
123
129
  summary: ExvoWarez
124
- test_files:
125
- - test/exvo_warez_test.rb
126
- - test/helper.rb
130
+ test_files: []
131
+