has_machine_tags 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemspec +7 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +12 -0
- data/lib/has_machine_tags/version.rb +1 -1
- data/test/deps.rip +5 -1
- data/test/test_helper.rb +3 -8
- metadata +86 -38
data/.gemspec
CHANGED
@@ -9,12 +9,15 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = "gabriel.horner@gmail.com"
|
10
10
|
s.homepage = "http://tagaholic.me/has_machine_tags/"
|
11
11
|
s.summary = "A rails tagging gem which implements flickr's machine tags and maybe more (semantic tags)."
|
12
|
-
s.description = "This
|
12
|
+
s.description = "This plugin implements Flickr's machine tags as explained here[http://www.flickr.com/groups/api/discuss/72157594497877875] while still maintaining standard tagging behavior. Basically, a machine tag has a namespace, a predicate and a value in the format [namespace]:[predicate]=[value] This allows for more precise tagging as tags can have unlimited contexts provided by combinations of namespaces and predicates. These unlimited contexts also make machine tags ripe for modeling relationships between objects. Read the HasMachineTags::TagMethods class documentation for a more thorough explanation. A demo app using this plugin is here. This gem should run on all major Ruby versions and work with Rails 2.3.x and up."
|
13
13
|
s.required_rubygems_version = ">= 1.3.6"
|
14
|
-
s.rubyforge_project = 'tagaholic'
|
15
14
|
s.add_development_dependency 'bacon', '>= 1.1.0'
|
16
|
-
s.
|
17
|
-
s.
|
15
|
+
s.add_development_dependency 'bacon-bits'
|
16
|
+
s.add_development_dependency 'activerecord', '~> 3.2.0'
|
17
|
+
s.add_development_dependency 'sqlite3', '~> 1.3.0'
|
18
|
+
s.add_development_dependency 'activerecord-jdbcsqlite3-adapter', '~> 1.2.2'
|
19
|
+
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec .travis.yml}
|
20
|
+
s.files += Dir.glob('generators/**/*.rb') + ['init.rb', '.gitignore', 'Gemfile']
|
18
21
|
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
|
19
22
|
s.license = 'MIT'
|
20
23
|
end
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.lock
|
data/.travis.yml
ADDED
data/CHANGELOG.rdoc
CHANGED
data/Gemfile
ADDED
data/test/deps.rip
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
require 'active_record'
|
2
|
-
begin
|
3
|
-
# for rip
|
4
|
-
require 'initializer'
|
5
|
-
rescue LoadError
|
6
|
-
require 'rails'
|
7
|
-
end
|
8
2
|
require 'bacon'
|
3
|
+
require 'bacon/bits'
|
9
4
|
require 'has_machine_tags'
|
10
5
|
require File.join(File.dirname(__FILE__), '..', 'init')
|
11
6
|
|
@@ -16,8 +11,8 @@ ActiveRecord::Base.logger = Logger.new(STDERR)
|
|
16
11
|
ActiveRecord::Base.logger.level = Logger::WARN
|
17
12
|
|
18
13
|
#Setup db
|
19
|
-
|
20
|
-
ActiveRecord::Base.establish_connection('
|
14
|
+
adapter = RUBY_DESCRIPTION[/java/] ? 'jdbcsqlite3' : 'sqlite3'
|
15
|
+
ActiveRecord::Base.establish_connection(:adapter => adapter, :database => ':memory:')
|
21
16
|
|
22
17
|
#Define schema
|
23
18
|
require File.join(File.dirname(__FILE__), 'schema')
|
metadata
CHANGED
@@ -1,39 +1,87 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_machine_tags
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Gabriel Horner
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: bacon
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70195213915700 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
24
21
|
version: 1.1.0
|
25
22
|
type: :development
|
26
|
-
|
27
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70195213915700
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bacon-bits
|
27
|
+
requirement: &70195213915280 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70195213915280
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: activerecord
|
38
|
+
requirement: &70195213914740 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.2.0
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70195213914740
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sqlite3
|
49
|
+
requirement: &70195213914220 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.3.0
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70195213914220
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: activerecord-jdbcsqlite3-adapter
|
60
|
+
requirement: &70195213913760 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.2.2
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70195213913760
|
69
|
+
description: This plugin implements Flickr's machine tags as explained here[http://www.flickr.com/groups/api/discuss/72157594497877875]
|
70
|
+
while still maintaining standard tagging behavior. Basically, a machine tag has
|
71
|
+
a namespace, a predicate and a value in the format [namespace]:[predicate]=[value] This
|
72
|
+
allows for more precise tagging as tags can have unlimited contexts provided by
|
73
|
+
combinations of namespaces and predicates. These unlimited contexts also make machine
|
74
|
+
tags ripe for modeling relationships between objects. Read the HasMachineTags::TagMethods
|
75
|
+
class documentation for a more thorough explanation. A demo app using this plugin
|
76
|
+
is here. This gem should run on all major Ruby versions and work with Rails 2.3.x
|
77
|
+
and up.
|
28
78
|
email: gabriel.horner@gmail.com
|
29
79
|
executables: []
|
30
|
-
|
31
80
|
extensions: []
|
32
|
-
|
33
|
-
extra_rdoc_files:
|
81
|
+
extra_rdoc_files:
|
34
82
|
- README.rdoc
|
35
83
|
- LICENSE.txt
|
36
|
-
files:
|
84
|
+
files:
|
37
85
|
- lib/has_machine_tags/console.rb
|
38
86
|
- lib/has_machine_tags/finder.rb
|
39
87
|
- lib/has_machine_tags/tag.rb
|
@@ -54,36 +102,36 @@ files:
|
|
54
102
|
- test/deps.rip
|
55
103
|
- Rakefile
|
56
104
|
- .gemspec
|
105
|
+
- .travis.yml
|
57
106
|
- generators/has_machine_tags_migration/has_machine_tags_migration_generator.rb
|
58
107
|
- generators/has_machine_tags_migration/templates/migration.rb
|
59
108
|
- init.rb
|
60
|
-
|
109
|
+
- .gitignore
|
110
|
+
- Gemfile
|
61
111
|
homepage: http://tagaholic.me/has_machine_tags/
|
62
|
-
licenses:
|
112
|
+
licenses:
|
63
113
|
- MIT
|
64
114
|
post_install_message:
|
65
115
|
rdoc_options: []
|
66
|
-
|
67
|
-
require_paths:
|
116
|
+
require_paths:
|
68
117
|
- lib
|
69
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
119
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version:
|
75
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
125
|
none: false
|
77
|
-
requirements:
|
78
|
-
- -
|
79
|
-
- !ruby/object:Gem::Version
|
126
|
+
requirements:
|
127
|
+
- - ! '>='
|
128
|
+
- !ruby/object:Gem::Version
|
80
129
|
version: 1.3.6
|
81
130
|
requirements: []
|
82
|
-
|
83
|
-
|
84
|
-
rubygems_version: 1.6.2
|
131
|
+
rubyforge_project:
|
132
|
+
rubygems_version: 1.8.11
|
85
133
|
signing_key:
|
86
134
|
specification_version: 3
|
87
|
-
summary: A rails tagging gem which implements flickr's machine tags and maybe more
|
135
|
+
summary: A rails tagging gem which implements flickr's machine tags and maybe more
|
136
|
+
(semantic tags).
|
88
137
|
test_files: []
|
89
|
-
|