ubiquitously 0.0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.markdown +3 -0
- data/Rakefile +68 -0
- data/init.rb +1 -0
- data/lib/ubiquitously.rb +28 -0
- data/rails/init.rb +1 -0
- data/test/config.yml +2 -0
- data/test/test_helper.rb +7 -0
- metadata +90 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Lance Pollard and David Crockett
|
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.markdown
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require "rake/rdoctask"
|
3
|
+
require 'rake/gempackagetask'
|
4
|
+
|
5
|
+
# http://docs.rubygems.org/read/chapter/20
|
6
|
+
spec = Gem::Specification.new do |s|
|
7
|
+
s.name = "ubiquitously"
|
8
|
+
s.version = "0.0.1.5"
|
9
|
+
s.author = "Lance Pollard"
|
10
|
+
s.summary = "Ubiquitously: Making it easy for you to be everywhere, even if there's no API"
|
11
|
+
s.homepage = "http://github.com/viatropos/ubiquitously"
|
12
|
+
s.email = "lancejpollard@gmail.com"
|
13
|
+
s.description = "Making it easy for you to be everywhere, even if there's no API"
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.rubyforge_project = "ubiquitously"
|
16
|
+
s.platform = Gem::Platform::RUBY
|
17
|
+
s.files = %w(README.markdown Rakefile init.rb MIT-LICENSE) + Dir["{lib,rails,test}/**/*"] - Dir["test/tmp"]
|
18
|
+
s.require_path = "lib"
|
19
|
+
s.add_dependency("activesupport", ">= 2.3.5")
|
20
|
+
end
|
21
|
+
|
22
|
+
Rake::GemPackageTask.new(spec) do |pkg|
|
23
|
+
pkg.gem_spec = spec
|
24
|
+
pkg.package_dir = "pkg"
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "Create .gemspec file (useful for github)"
|
28
|
+
task :gemspec do
|
29
|
+
File.open("pkg/#{spec.name}.gemspec", "w") do |f|
|
30
|
+
f.puts spec.to_ruby
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Build the gem into the current directory"
|
35
|
+
task :gem => :gemspec do
|
36
|
+
`gem build pkg/#{spec.name}.gemspec`
|
37
|
+
end
|
38
|
+
|
39
|
+
desc "Publish gem to rubygems"
|
40
|
+
task :publish => [:package] do
|
41
|
+
%x[gem push pkg/#{spec.name}-#{spec.version}.gem]
|
42
|
+
end
|
43
|
+
|
44
|
+
desc "Print a list of the files to be put into the gem"
|
45
|
+
task :manifest do
|
46
|
+
File.open("Manifest", "w") do |f|
|
47
|
+
spec.files.each do |file|
|
48
|
+
f.puts file
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
desc "Install the gem locally"
|
54
|
+
task :install => [:package] do
|
55
|
+
sh %{gem install pkg/#{spec.name}-#{spec.version} --no-ri --no-rdoc}
|
56
|
+
end
|
57
|
+
|
58
|
+
desc "Generate the rdoc"
|
59
|
+
Rake::RDocTask.new do |rdoc|
|
60
|
+
files = ["README.markdown", "lib/**/*.rb"]
|
61
|
+
rdoc.rdoc_files.add(files)
|
62
|
+
rdoc.main = "README.markdown"
|
63
|
+
rdoc.title = spec.summary
|
64
|
+
end
|
65
|
+
|
66
|
+
task :yank do
|
67
|
+
`gem yank #{spec.name} -v #{spec.version}`
|
68
|
+
end
|
data/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
File.dirname(__FILE__) + "/rails/init.rb"
|
data/lib/ubiquitously.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'yaml'
|
3
|
+
require 'active_support'
|
4
|
+
|
5
|
+
this = File.dirname(__FILE__)
|
6
|
+
require File.join(this, "ext.rb")
|
7
|
+
|
8
|
+
module Compressible
|
9
|
+
|
10
|
+
KEYS = {
|
11
|
+
:css => :stylesheet,
|
12
|
+
:stylesheet => :css,
|
13
|
+
:js => :javascript,
|
14
|
+
:javascript => :js
|
15
|
+
}
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
Dir["#{this}/compressible/*"].each { |c| require c }
|
20
|
+
|
21
|
+
Compressible.send(:include, Compressible::Configurable)
|
22
|
+
Compressible.send(:include, Compressible::Assetable)
|
23
|
+
Compressible.send(:include, Compressible::Readable)
|
24
|
+
Compressible.send(:include, Compressible::Writable)
|
25
|
+
|
26
|
+
def Compressible(*args, &block)
|
27
|
+
Compressible.define!(*args, &block)
|
28
|
+
end
|
data/rails/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "ubiquitously"
|
data/test/config.yml
ADDED
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ubiquitously
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 65
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
- 5
|
11
|
+
version: 0.0.1.5
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- Lance Pollard
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2010-07-31 00:00:00 -07:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: activesupport
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 9
|
31
|
+
segments:
|
32
|
+
- 2
|
33
|
+
- 3
|
34
|
+
- 5
|
35
|
+
version: 2.3.5
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
description: Making it easy for you to be everywhere, even if there's no API
|
39
|
+
email: lancejpollard@gmail.com
|
40
|
+
executables: []
|
41
|
+
|
42
|
+
extensions: []
|
43
|
+
|
44
|
+
extra_rdoc_files: []
|
45
|
+
|
46
|
+
files:
|
47
|
+
- README.markdown
|
48
|
+
- Rakefile
|
49
|
+
- init.rb
|
50
|
+
- MIT-LICENSE
|
51
|
+
- lib/ubiquitously.rb
|
52
|
+
- rails/init.rb
|
53
|
+
- test/config.yml
|
54
|
+
- test/test_helper.rb
|
55
|
+
has_rdoc: true
|
56
|
+
homepage: http://github.com/viatropos/ubiquitously
|
57
|
+
licenses: []
|
58
|
+
|
59
|
+
post_install_message:
|
60
|
+
rdoc_options: []
|
61
|
+
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
hash: 3
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
version: "0"
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
hash: 3
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
version: "0"
|
82
|
+
requirements: []
|
83
|
+
|
84
|
+
rubyforge_project: ubiquitously
|
85
|
+
rubygems_version: 1.3.7
|
86
|
+
signing_key:
|
87
|
+
specification_version: 3
|
88
|
+
summary: "Ubiquitously: Making it easy for you to be everywhere, even if there's no API"
|
89
|
+
test_files: []
|
90
|
+
|