rails_wink 0.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/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 Darryl Pogue
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Wink (for Rails)
2
+
3
+ <img style="float:right;" src="http://denimandsteel.com/blog/images/winkerbean.png" />
4
+
5
+ ## About
6
+ We got tired of asking people to send us their browser information, screen size, and plugins... so we made it easier for everybody.
7
+ Wink grabs a snapshot of the current browser and sends it away.
8
+
9
+ Please fork and make it better!
10
+
11
+ This was originally implemented for PHP by Denim & Steel: https://github.com/denimandsteel/wink
12
+
13
+ ##Installation
14
+ Add `gem 'rails_wink'` to your Gemfile.
15
+
16
+ Generate the wink.yml configuration file with `rails g rails_wink:config`.
17
+ Edit the values to point to your support/bug tracking email address.
18
+
19
+ Mount the engine in your Rails application's config/routes.rb, like this:
20
+
21
+ ```ruby
22
+ Rails.application.routes.draw do
23
+
24
+ # Mount the engine at /wink
25
+ mount RailsWink::Engine => '/wink', :as => 'wink'
26
+
27
+ end
28
+ ```
29
+
30
+ Run your application, and visit /wink.
31
+
32
+ You can now do cool things like `link_to 'Report a Bug', wink.root_url` in your
33
+ application's views.
34
+
35
+ ##License
36
+ MIT License
37
+ Copyright (C) 2012 Darryl Pogue
data/Rakefile ADDED
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'RailsWink'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ Bundler::GemHelper.install_tasks
24
+
25
+ task :default => :build
@@ -0,0 +1,3 @@
1
+ //= require jquery
2
+ //= require jquery_ujs
3
+ //= require_tree .