woopra_rails 1.0
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/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +72 -0
- data/Rakefile +1 -0
- data/lib/woopra_rails.rb +50 -0
- data/lib/woopra_rails/api.rb +28 -0
- data/lib/woopra_rails/engine.rb +10 -0
- data/lib/woopra_rails/error.rb +2 -0
- data/lib/woopra_rails/response.rb +18 -0
- data/lib/woopra_rails/session.rb +24 -0
- data/lib/woopra_rails/version.rb +3 -0
- data/spec/TestApp/.gitignore +16 -0
- data/spec/TestApp/Gemfile +7 -0
- data/spec/TestApp/README.rdoc +261 -0
- data/spec/TestApp/Rakefile +7 -0
- data/spec/TestApp/app/assets/images/rails.png +0 -0
- data/spec/TestApp/app/assets/javascripts/application.js +15 -0
- data/spec/TestApp/app/assets/stylesheets/application.css +13 -0
- data/spec/TestApp/app/controllers/application_controller.rb +12 -0
- data/spec/TestApp/app/helpers/application_helper.rb +2 -0
- data/spec/TestApp/app/mailers/.gitkeep +0 -0
- data/spec/TestApp/app/models/.gitkeep +0 -0
- data/spec/TestApp/app/views/application/index.html.erb +13 -0
- data/spec/TestApp/app/views/layouts/application.html.erb +14 -0
- data/spec/TestApp/config.ru +4 -0
- data/spec/TestApp/config/application.rb +62 -0
- data/spec/TestApp/config/boot.rb +6 -0
- data/spec/TestApp/config/database.yml +25 -0
- data/spec/TestApp/config/environment.rb +5 -0
- data/spec/TestApp/config/environments/development.rb +37 -0
- data/spec/TestApp/config/environments/production.rb +67 -0
- data/spec/TestApp/config/environments/test.rb +37 -0
- data/spec/TestApp/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/TestApp/config/initializers/inflections.rb +15 -0
- data/spec/TestApp/config/initializers/mime_types.rb +5 -0
- data/spec/TestApp/config/initializers/secret_token.rb +7 -0
- data/spec/TestApp/config/initializers/session_store.rb +8 -0
- data/spec/TestApp/config/initializers/wrap_parameters.rb +14 -0
- data/spec/TestApp/config/locales/en.yml +5 -0
- data/spec/TestApp/config/routes.rb +5 -0
- data/spec/TestApp/config/woopra.yml.example +9 -0
- data/spec/TestApp/db/seeds.rb +7 -0
- data/spec/TestApp/lib/assets/.gitkeep +0 -0
- data/spec/TestApp/lib/tasks/.gitkeep +0 -0
- data/spec/TestApp/log/.gitkeep +0 -0
- data/spec/TestApp/public/404.html +26 -0
- data/spec/TestApp/public/422.html +26 -0
- data/spec/TestApp/public/500.html +25 -0
- data/spec/TestApp/public/favicon.ico +0 -0
- data/spec/TestApp/public/robots.txt +5 -0
- data/spec/TestApp/script/rails +6 -0
- data/spec/TestApp/test/fixtures/.gitkeep +0 -0
- data/spec/TestApp/test/functional/.gitkeep +0 -0
- data/spec/TestApp/test/integration/.gitkeep +0 -0
- data/spec/TestApp/test/performance/browsing_test.rb +12 -0
- data/spec/TestApp/test/test_helper.rb +13 -0
- data/spec/TestApp/test/unit/.gitkeep +0 -0
- data/spec/TestApp/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/TestApp/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/TestApp/vendor/plugins/.gitkeep +0 -0
- data/woopra_rails.gemspec +23 -0
- metadata +190 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'rails/performance_test_help'
|
3
|
+
|
4
|
+
class BrowsingTest < ActionDispatch::PerformanceTest
|
5
|
+
# Refer to the documentation for all available options
|
6
|
+
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
7
|
+
# :output => 'tmp/performance', :formats => [:flat] }
|
8
|
+
|
9
|
+
def test_homepage
|
10
|
+
get '/'
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
7
|
+
#
|
8
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
9
|
+
# -- they do not yet inherit this setting
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'woopra_rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "woopra_rails"
|
8
|
+
spec.version = WoopraRails::VERSION
|
9
|
+
spec.authors = ["Kevin Hopkins"]
|
10
|
+
spec.email = ["kevin@h-pk-ns.com"]
|
11
|
+
spec.description = %q{Woopra for Ruby on Rails}
|
12
|
+
spec.summary = %q{Server side integration of Woopra HTTP API for Ruby on Rails applications}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: woopra_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Kevin Hopkins
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-04-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Woopra for Ruby on Rails
|
47
|
+
email:
|
48
|
+
- kevin@h-pk-ns.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- Gemfile
|
55
|
+
- LICENSE.txt
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- lib/woopra_rails.rb
|
59
|
+
- lib/woopra_rails/api.rb
|
60
|
+
- lib/woopra_rails/engine.rb
|
61
|
+
- lib/woopra_rails/error.rb
|
62
|
+
- lib/woopra_rails/response.rb
|
63
|
+
- lib/woopra_rails/session.rb
|
64
|
+
- lib/woopra_rails/version.rb
|
65
|
+
- spec/TestApp/.gitignore
|
66
|
+
- spec/TestApp/Gemfile
|
67
|
+
- spec/TestApp/README.rdoc
|
68
|
+
- spec/TestApp/Rakefile
|
69
|
+
- spec/TestApp/app/assets/images/rails.png
|
70
|
+
- spec/TestApp/app/assets/javascripts/application.js
|
71
|
+
- spec/TestApp/app/assets/stylesheets/application.css
|
72
|
+
- spec/TestApp/app/controllers/application_controller.rb
|
73
|
+
- spec/TestApp/app/helpers/application_helper.rb
|
74
|
+
- spec/TestApp/app/mailers/.gitkeep
|
75
|
+
- spec/TestApp/app/models/.gitkeep
|
76
|
+
- spec/TestApp/app/views/application/index.html.erb
|
77
|
+
- spec/TestApp/app/views/layouts/application.html.erb
|
78
|
+
- spec/TestApp/config.ru
|
79
|
+
- spec/TestApp/config/application.rb
|
80
|
+
- spec/TestApp/config/boot.rb
|
81
|
+
- spec/TestApp/config/database.yml
|
82
|
+
- spec/TestApp/config/environment.rb
|
83
|
+
- spec/TestApp/config/environments/development.rb
|
84
|
+
- spec/TestApp/config/environments/production.rb
|
85
|
+
- spec/TestApp/config/environments/test.rb
|
86
|
+
- spec/TestApp/config/initializers/backtrace_silencers.rb
|
87
|
+
- spec/TestApp/config/initializers/inflections.rb
|
88
|
+
- spec/TestApp/config/initializers/mime_types.rb
|
89
|
+
- spec/TestApp/config/initializers/secret_token.rb
|
90
|
+
- spec/TestApp/config/initializers/session_store.rb
|
91
|
+
- spec/TestApp/config/initializers/wrap_parameters.rb
|
92
|
+
- spec/TestApp/config/locales/en.yml
|
93
|
+
- spec/TestApp/config/routes.rb
|
94
|
+
- spec/TestApp/config/woopra.yml.example
|
95
|
+
- spec/TestApp/db/seeds.rb
|
96
|
+
- spec/TestApp/lib/assets/.gitkeep
|
97
|
+
- spec/TestApp/lib/tasks/.gitkeep
|
98
|
+
- spec/TestApp/log/.gitkeep
|
99
|
+
- spec/TestApp/public/404.html
|
100
|
+
- spec/TestApp/public/422.html
|
101
|
+
- spec/TestApp/public/500.html
|
102
|
+
- spec/TestApp/public/favicon.ico
|
103
|
+
- spec/TestApp/public/robots.txt
|
104
|
+
- spec/TestApp/script/rails
|
105
|
+
- spec/TestApp/test/fixtures/.gitkeep
|
106
|
+
- spec/TestApp/test/functional/.gitkeep
|
107
|
+
- spec/TestApp/test/integration/.gitkeep
|
108
|
+
- spec/TestApp/test/performance/browsing_test.rb
|
109
|
+
- spec/TestApp/test/test_helper.rb
|
110
|
+
- spec/TestApp/test/unit/.gitkeep
|
111
|
+
- spec/TestApp/vendor/assets/javascripts/.gitkeep
|
112
|
+
- spec/TestApp/vendor/assets/stylesheets/.gitkeep
|
113
|
+
- spec/TestApp/vendor/plugins/.gitkeep
|
114
|
+
- woopra_rails.gemspec
|
115
|
+
homepage: ''
|
116
|
+
licenses:
|
117
|
+
- MIT
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ! '>='
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 1.8.25
|
137
|
+
signing_key:
|
138
|
+
specification_version: 3
|
139
|
+
summary: Server side integration of Woopra HTTP API for Ruby on Rails applications
|
140
|
+
test_files:
|
141
|
+
- spec/TestApp/.gitignore
|
142
|
+
- spec/TestApp/Gemfile
|
143
|
+
- spec/TestApp/README.rdoc
|
144
|
+
- spec/TestApp/Rakefile
|
145
|
+
- spec/TestApp/app/assets/images/rails.png
|
146
|
+
- spec/TestApp/app/assets/javascripts/application.js
|
147
|
+
- spec/TestApp/app/assets/stylesheets/application.css
|
148
|
+
- spec/TestApp/app/controllers/application_controller.rb
|
149
|
+
- spec/TestApp/app/helpers/application_helper.rb
|
150
|
+
- spec/TestApp/app/mailers/.gitkeep
|
151
|
+
- spec/TestApp/app/models/.gitkeep
|
152
|
+
- spec/TestApp/app/views/application/index.html.erb
|
153
|
+
- spec/TestApp/app/views/layouts/application.html.erb
|
154
|
+
- spec/TestApp/config.ru
|
155
|
+
- spec/TestApp/config/application.rb
|
156
|
+
- spec/TestApp/config/boot.rb
|
157
|
+
- spec/TestApp/config/database.yml
|
158
|
+
- spec/TestApp/config/environment.rb
|
159
|
+
- spec/TestApp/config/environments/development.rb
|
160
|
+
- spec/TestApp/config/environments/production.rb
|
161
|
+
- spec/TestApp/config/environments/test.rb
|
162
|
+
- spec/TestApp/config/initializers/backtrace_silencers.rb
|
163
|
+
- spec/TestApp/config/initializers/inflections.rb
|
164
|
+
- spec/TestApp/config/initializers/mime_types.rb
|
165
|
+
- spec/TestApp/config/initializers/secret_token.rb
|
166
|
+
- spec/TestApp/config/initializers/session_store.rb
|
167
|
+
- spec/TestApp/config/initializers/wrap_parameters.rb
|
168
|
+
- spec/TestApp/config/locales/en.yml
|
169
|
+
- spec/TestApp/config/routes.rb
|
170
|
+
- spec/TestApp/config/woopra.yml.example
|
171
|
+
- spec/TestApp/db/seeds.rb
|
172
|
+
- spec/TestApp/lib/assets/.gitkeep
|
173
|
+
- spec/TestApp/lib/tasks/.gitkeep
|
174
|
+
- spec/TestApp/log/.gitkeep
|
175
|
+
- spec/TestApp/public/404.html
|
176
|
+
- spec/TestApp/public/422.html
|
177
|
+
- spec/TestApp/public/500.html
|
178
|
+
- spec/TestApp/public/favicon.ico
|
179
|
+
- spec/TestApp/public/robots.txt
|
180
|
+
- spec/TestApp/script/rails
|
181
|
+
- spec/TestApp/test/fixtures/.gitkeep
|
182
|
+
- spec/TestApp/test/functional/.gitkeep
|
183
|
+
- spec/TestApp/test/integration/.gitkeep
|
184
|
+
- spec/TestApp/test/performance/browsing_test.rb
|
185
|
+
- spec/TestApp/test/test_helper.rb
|
186
|
+
- spec/TestApp/test/unit/.gitkeep
|
187
|
+
- spec/TestApp/vendor/assets/javascripts/.gitkeep
|
188
|
+
- spec/TestApp/vendor/assets/stylesheets/.gitkeep
|
189
|
+
- spec/TestApp/vendor/plugins/.gitkeep
|
190
|
+
has_rdoc:
|