tinted_tags 0.0.2
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 +8 -0
- data/.rspec +1 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +133 -0
- data/MIT-LICENSE.md +20 -0
- data/README.md +67 -0
- data/Rakefile +24 -0
- data/app/assets/images/tinted_tags/.gitkeep +0 -0
- data/app/assets/javascripts/tinted_tags/application.js +15 -0
- data/app/assets/stylesheets/tinted_tags/application.css +13 -0
- data/app/controllers/tinted_tags/application_controller.rb +4 -0
- data/app/helpers/tinted_tags/application_helper.rb +4 -0
- data/app/views/layouts/tinted_tags/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/generators/tinted_tags/migration/migration_generator.rb +38 -0
- data/lib/generators/tinted_tags/migration/templates/active_record/migration.rb +5 -0
- data/lib/tinted_tags.rb +28 -0
- data/lib/tinted_tags/engine.rb +8 -0
- data/lib/tinted_tags/tag_tinter.rb +42 -0
- data/lib/tinted_tags/version.rb +3 -0
- data/lib/view_helpers/view_helpers.rb +11 -0
- data/script/rails +8 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/javascripts/posts.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/assets/stylesheets/posts.css +4 -0
- data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/posts_controller.rb +83 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/helpers/posts_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/post.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/posts/_form.html.erb +21 -0
- data/spec/dummy/app/views/posts/edit.html.erb +6 -0
- data/spec/dummy/app/views/posts/index.html.erb +23 -0
- data/spec/dummy/app/views/posts/new.html.erb +5 -0
- data/spec/dummy/app/views/posts/show.html.erb +10 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +59 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +7 -0
- data/spec/dummy/db/migrate/20130128180847_acts_as_taggable_on_migration.rb +30 -0
- data/spec/dummy/db/migrate/20130128181205_create_posts.rb +9 -0
- data/spec/dummy/db/migrate/20130128184436_add_tint_to_tags.rb +5 -0
- data/spec/dummy/db/schema.rb +40 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/generators/tinted_tags/migration/migration_generator_spec.rb +22 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/tinted_tags/tag_tinter_spec.rb +43 -0
- data/spec/tinted_tags/tinted_tags_spec.rb +16 -0
- data/tinted_tags.gemspec +26 -0
- metadata +200 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
class ActsAsTaggableOnMigration < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :tags do |t|
|
4
|
+
t.string :name
|
5
|
+
end
|
6
|
+
|
7
|
+
create_table :taggings do |t|
|
8
|
+
t.references :tag
|
9
|
+
|
10
|
+
# You should make sure that the column created is
|
11
|
+
# long enough to store the required class names.
|
12
|
+
t.references :taggable, :polymorphic => true
|
13
|
+
t.references :tagger, :polymorphic => true
|
14
|
+
|
15
|
+
# Limit is created to prevent MySQL error on index
|
16
|
+
# length for MyISAM table type: http://bit.ly/vgW2Ql
|
17
|
+
t.string :context, :limit => 128
|
18
|
+
|
19
|
+
t.datetime :created_at
|
20
|
+
end
|
21
|
+
|
22
|
+
add_index :taggings, :tag_id
|
23
|
+
add_index :taggings, [:taggable_id, :taggable_type, :context]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.down
|
27
|
+
drop_table :taggings
|
28
|
+
drop_table :tags
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20130128184436) do
|
15
|
+
|
16
|
+
create_table "posts", :force => true do |t|
|
17
|
+
t.string "title"
|
18
|
+
t.datetime "created_at", :null => false
|
19
|
+
t.datetime "updated_at", :null => false
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table "taggings", :force => true do |t|
|
23
|
+
t.integer "tag_id"
|
24
|
+
t.integer "taggable_id"
|
25
|
+
t.string "taggable_type"
|
26
|
+
t.integer "tagger_id"
|
27
|
+
t.string "tagger_type"
|
28
|
+
t.string "context", :limit => 128
|
29
|
+
t.datetime "created_at"
|
30
|
+
end
|
31
|
+
|
32
|
+
add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
|
33
|
+
add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
|
34
|
+
|
35
|
+
create_table "tags", :force => true do |t|
|
36
|
+
t.string "name"
|
37
|
+
t.string "tint"
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
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'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Generators are not automatically loaded by Rails
|
4
|
+
require 'generators/tinted_tags/migration/migration_generator'
|
5
|
+
|
6
|
+
describe TintedTags::MigrationGenerator do
|
7
|
+
# Tell the generator where to put its output (what it thinks of as Rails.root)
|
8
|
+
destination File.expand_path("../../../../../tmp", __FILE__)
|
9
|
+
|
10
|
+
before do
|
11
|
+
prepare_destination
|
12
|
+
Rails::Generators.options[:rails][:orm] = :active_record
|
13
|
+
end
|
14
|
+
describe 'no arguments' do
|
15
|
+
before { run_generator }
|
16
|
+
|
17
|
+
describe 'db/migrate/tinted_tags_migration.rb' do
|
18
|
+
subject { file('db/migrate/tinted_tags_migration.rb') }
|
19
|
+
it { should be_a_migration }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
2
|
+
require 'rspec/rails'
|
3
|
+
require 'ammeter/init'
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'rails'
|
7
|
+
require 'bundler'
|
8
|
+
|
9
|
+
if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.5")
|
10
|
+
raise RuntimeError, "Your bundler version is too old." +
|
11
|
+
"Run `gem install bundler` to upgrade."
|
12
|
+
end
|
13
|
+
|
14
|
+
# Set up load paths for all bundled gems
|
15
|
+
Bundler.setup
|
16
|
+
rescue Bundler::GemNotFound
|
17
|
+
raise RuntimeError, "Bundler couldn't find some gems." +
|
18
|
+
"Did you run \`bundlee install\`?"
|
19
|
+
end
|
20
|
+
|
21
|
+
Bundler.require
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
config.use_transactional_fixtures = true
|
25
|
+
config.order = "random"
|
26
|
+
end
|
27
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Tag Tinter" do
|
4
|
+
|
5
|
+
before(:each) do
|
6
|
+
Post.delete_all
|
7
|
+
ActsAsTaggableOn::Tag.delete_all
|
8
|
+
ActsAsTaggableOn::Tagging.delete_all
|
9
|
+
end
|
10
|
+
|
11
|
+
context "calculate hex color to represent tag use as percentage of total taggings" do
|
12
|
+
|
13
|
+
it "should give mix 25% white into black with four tags" do
|
14
|
+
tags = ['red', 'yellow', 'green', 'blue']
|
15
|
+
tags.each do |tag|
|
16
|
+
Post.create(title: 'title', tag_list: tag)
|
17
|
+
end
|
18
|
+
TintedTags::TagTinter.new(Post, base: 'black', tint: 'white').update_tints
|
19
|
+
ActsAsTaggableOn::Tag.first.tint.should eq '#bfbfbf'
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should give mix 20% white into black with five tags" do
|
23
|
+
tags = ['red', 'yellow', 'green', 'blue', 'orange']
|
24
|
+
tags.each do |tag|
|
25
|
+
Post.create(title: 'title', tag_list: tag)
|
26
|
+
end
|
27
|
+
TintedTags::TagTinter.new(Post, base: 'black', tint: 'white').update_tints
|
28
|
+
ActsAsTaggableOn::Tag.first.tint.should eq '#cccccc'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
context "calculate percentage value from position within range" do
|
33
|
+
it "should calculate hex color percentage as position within min-max tag usage range" do
|
34
|
+
10.times { Post.create(title: 'title', tag_list: 'max') }
|
35
|
+
5.times { Post.create(title: 'title', tag_list: 'median') }
|
36
|
+
1.times { Post.create(title: 'title', tag_list: 'min') }
|
37
|
+
TintedTags::TagTinter.new(Post, base:'black', tint:'white', strategy: :rated_as_range).update_tints
|
38
|
+
# 'median' tag should be 44% (1 being 0%, 10 being 100%)
|
39
|
+
t = ActsAsTaggableOn::Tag.where(name: 'median').first
|
40
|
+
t.tint.should eq '#8e8e8e'
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Tinted Tags" do
|
4
|
+
before(:each) do
|
5
|
+
Post.delete_all
|
6
|
+
ActsAsTaggableOn::Tag.delete_all
|
7
|
+
ActsAsTaggableOn::Tagging.delete_all
|
8
|
+
end
|
9
|
+
|
10
|
+
it "updates tag tints after save" do
|
11
|
+
p = Post.new
|
12
|
+
p.tag_list = 'one, two, three'
|
13
|
+
p.save
|
14
|
+
ActsAsTaggableOn::Tag.first.tint.should_not be_nil
|
15
|
+
end
|
16
|
+
end
|
data/tinted_tags.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
# Maintain your gem's version:
|
4
|
+
require "tinted_tags/version"
|
5
|
+
|
6
|
+
# Describe your gem and declare its dependencies:
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "tinted_tags"
|
9
|
+
s.version = TintedTags::VERSION
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = ["Ben Woodward"]
|
12
|
+
s.email = ["b@benw.me"]
|
13
|
+
s.homepage = "http://github.com/benwoodward/tinted_tags"
|
14
|
+
s.summary = "A Rails 3 engine for creating colour-tinted tag clouds."
|
15
|
+
s.description = "TintedTags is a Rails Gem that extends functionality of ActsAsTaggableOn with the ability to assign colours to tags based upon their usage."
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
19
|
+
|
20
|
+
s.add_dependency "rails", ">= 3.2.11"
|
21
|
+
s.add_dependency 'acts-as-taggable-on', '~> 2.3.1'
|
22
|
+
s.add_dependency 'compass'
|
23
|
+
s.add_development_dependency 'rspec-rails', '~> 2.0'
|
24
|
+
|
25
|
+
s.add_development_dependency "sqlite3"
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,200 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tinted_tags
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ben Woodward
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.11
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.11
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: acts-as-taggable-on
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.3.1
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.3.1
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: compass
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec-rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: sqlite3
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: TintedTags is a Rails Gem that extends functionality of ActsAsTaggableOn
|
95
|
+
with the ability to assign colours to tags based upon their usage.
|
96
|
+
email:
|
97
|
+
- b@benw.me
|
98
|
+
executables: []
|
99
|
+
extensions: []
|
100
|
+
extra_rdoc_files: []
|
101
|
+
files:
|
102
|
+
- .gitignore
|
103
|
+
- .rspec
|
104
|
+
- Gemfile
|
105
|
+
- Gemfile.lock
|
106
|
+
- MIT-LICENSE.md
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- app/assets/images/tinted_tags/.gitkeep
|
110
|
+
- app/assets/javascripts/tinted_tags/application.js
|
111
|
+
- app/assets/stylesheets/tinted_tags/application.css
|
112
|
+
- app/controllers/tinted_tags/application_controller.rb
|
113
|
+
- app/helpers/tinted_tags/application_helper.rb
|
114
|
+
- app/views/layouts/tinted_tags/application.html.erb
|
115
|
+
- config/routes.rb
|
116
|
+
- lib/generators/tinted_tags/migration/migration_generator.rb
|
117
|
+
- lib/generators/tinted_tags/migration/templates/active_record/migration.rb
|
118
|
+
- lib/tinted_tags.rb
|
119
|
+
- lib/tinted_tags/engine.rb
|
120
|
+
- lib/tinted_tags/tag_tinter.rb
|
121
|
+
- lib/tinted_tags/version.rb
|
122
|
+
- lib/view_helpers/view_helpers.rb
|
123
|
+
- script/rails
|
124
|
+
- spec/dummy/README.rdoc
|
125
|
+
- spec/dummy/Rakefile
|
126
|
+
- spec/dummy/app/assets/javascripts/application.js
|
127
|
+
- spec/dummy/app/assets/javascripts/posts.js
|
128
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
129
|
+
- spec/dummy/app/assets/stylesheets/posts.css
|
130
|
+
- spec/dummy/app/assets/stylesheets/scaffold.css
|
131
|
+
- spec/dummy/app/controllers/application_controller.rb
|
132
|
+
- spec/dummy/app/controllers/posts_controller.rb
|
133
|
+
- spec/dummy/app/helpers/application_helper.rb
|
134
|
+
- spec/dummy/app/helpers/posts_helper.rb
|
135
|
+
- spec/dummy/app/mailers/.gitkeep
|
136
|
+
- spec/dummy/app/models/.gitkeep
|
137
|
+
- spec/dummy/app/models/post.rb
|
138
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
139
|
+
- spec/dummy/app/views/posts/_form.html.erb
|
140
|
+
- spec/dummy/app/views/posts/edit.html.erb
|
141
|
+
- spec/dummy/app/views/posts/index.html.erb
|
142
|
+
- spec/dummy/app/views/posts/new.html.erb
|
143
|
+
- spec/dummy/app/views/posts/show.html.erb
|
144
|
+
- spec/dummy/config.ru
|
145
|
+
- spec/dummy/config/application.rb
|
146
|
+
- spec/dummy/config/boot.rb
|
147
|
+
- spec/dummy/config/database.yml
|
148
|
+
- spec/dummy/config/environment.rb
|
149
|
+
- spec/dummy/config/environments/development.rb
|
150
|
+
- spec/dummy/config/environments/production.rb
|
151
|
+
- spec/dummy/config/environments/test.rb
|
152
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
153
|
+
- spec/dummy/config/initializers/inflections.rb
|
154
|
+
- spec/dummy/config/initializers/mime_types.rb
|
155
|
+
- spec/dummy/config/initializers/secret_token.rb
|
156
|
+
- spec/dummy/config/initializers/session_store.rb
|
157
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
158
|
+
- spec/dummy/config/locales/en.yml
|
159
|
+
- spec/dummy/config/routes.rb
|
160
|
+
- spec/dummy/db/migrate/20130128180847_acts_as_taggable_on_migration.rb
|
161
|
+
- spec/dummy/db/migrate/20130128181205_create_posts.rb
|
162
|
+
- spec/dummy/db/migrate/20130128184436_add_tint_to_tags.rb
|
163
|
+
- spec/dummy/db/schema.rb
|
164
|
+
- spec/dummy/lib/assets/.gitkeep
|
165
|
+
- spec/dummy/log/.gitkeep
|
166
|
+
- spec/dummy/public/404.html
|
167
|
+
- spec/dummy/public/422.html
|
168
|
+
- spec/dummy/public/500.html
|
169
|
+
- spec/dummy/public/favicon.ico
|
170
|
+
- spec/dummy/script/rails
|
171
|
+
- spec/generators/tinted_tags/migration/migration_generator_spec.rb
|
172
|
+
- spec/spec_helper.rb
|
173
|
+
- spec/tinted_tags/tag_tinter_spec.rb
|
174
|
+
- spec/tinted_tags/tinted_tags_spec.rb
|
175
|
+
- tinted_tags.gemspec
|
176
|
+
homepage: http://github.com/benwoodward/tinted_tags
|
177
|
+
licenses: []
|
178
|
+
post_install_message:
|
179
|
+
rdoc_options: []
|
180
|
+
require_paths:
|
181
|
+
- lib
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
+
none: false
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
none: false
|
190
|
+
requirements:
|
191
|
+
- - ! '>='
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
requirements: []
|
195
|
+
rubyforge_project:
|
196
|
+
rubygems_version: 1.8.23
|
197
|
+
signing_key:
|
198
|
+
specification_version: 3
|
199
|
+
summary: A Rails 3 engine for creating colour-tinted tag clouds.
|
200
|
+
test_files: []
|