bdimcheff-is_taggable 0.1.0 → 0.1.1

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 ADDED
@@ -0,0 +1 @@
1
+ pkg/*
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 Daniel Haran, James Golick, GiraffeSoft Inc.
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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'is_taggable'
@@ -0,0 +1,54 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{is_taggable}
5
+ s.version = "0.1.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Daniel Haran", "James Golick", "GiraffeSoft Inc."]
9
+ s.date = %q{2009-07-07}
10
+ s.email = %q{chebuctonian@mgmail.com}
11
+ s.extra_rdoc_files = [
12
+ "LICENSE",
13
+ "README.rdoc"
14
+ ]
15
+ s.files = [
16
+ ".gitignore",
17
+ "LICENSE",
18
+ "README.rdoc",
19
+ "VERSION.yml",
20
+ "generators/is_taggable_migration/is_taggable_migration_generator.rb",
21
+ "generators/is_taggable_migration/templates/migration.rb",
22
+ "init.rb",
23
+ "is_taggable.gemspec",
24
+ "lib/is_taggable.rb",
25
+ "lib/is_taggable/tag.rb",
26
+ "lib/is_taggable/tagging.rb",
27
+ "rakefile",
28
+ "test/is_taggable_test.rb",
29
+ "test/tag_test.rb",
30
+ "test/tagging_test.rb",
31
+ "test/test_helper.rb"
32
+ ]
33
+ s.homepage = %q{http://github.com/giraffesoft/is_taggable}
34
+ s.rdoc_options = ["--charset=UTF-8"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.3.4}
37
+ s.summary = %q{tagging that doesn't want to be on steroids. it's skinny and happy to stay that way.}
38
+ s.test_files = [
39
+ "test/is_taggable_test.rb",
40
+ "test/tag_test.rb",
41
+ "test/tagging_test.rb",
42
+ "test/test_helper.rb"
43
+ ]
44
+
45
+ if s.respond_to? :specification_version then
46
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
47
+ s.specification_version = 3
48
+
49
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
50
+ else
51
+ end
52
+ else
53
+ end
54
+ end
data/lib/is_taggable.rb CHANGED
@@ -1,7 +1,17 @@
1
1
  path = File.expand_path(File.dirname(__FILE__))
2
2
  $LOAD_PATH << path unless $LOAD_PATH.include?(path)
3
- require 'tag'
4
- require 'tagging'
3
+
4
+ begin
5
+ Tag
6
+ rescue NameError
7
+ require 'is_taggable/tag'
8
+ end
9
+
10
+ begin
11
+ Tagging
12
+ rescue NameError
13
+ require 'is_taggable/tagging'
14
+ end
5
15
 
6
16
  module IsTaggable
7
17
  class TagList < Array
File without changes
File without changes
data/rakefile ADDED
@@ -0,0 +1,50 @@
1
+ require 'rake'
2
+
3
+ begin
4
+ require 'jeweler'
5
+ Jeweler::Tasks.new do |s|
6
+ s.name = "is_taggable"
7
+ s.summary = %Q{tagging that doesn't want to be on steroids. it's skinny and happy to stay that way.}
8
+ s.email = "chebuctonian@mgmail.com"
9
+ s.homepage = "http://github.com/giraffesoft/is_taggable"
10
+ s.authors = ["Daniel Haran", "James Golick", "GiraffeSoft Inc."]
11
+ end
12
+ rescue LoadError
13
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
14
+ end
15
+
16
+ require 'rake/rdoctask'
17
+ Rake::RDocTask.new do |rdoc|
18
+ rdoc.rdoc_dir = 'rdoc'
19
+ rdoc.title = 'testgem'
20
+ rdoc.options << '--line-numbers' << '--inline-source'
21
+ rdoc.rdoc_files.include('README*')
22
+ rdoc.rdoc_files.include('lib/**/*.rb')
23
+ end
24
+
25
+ require 'rake/testtask'
26
+ Rake::TestTask.new(:test) do |t|
27
+ t.libs << 'lib' << 'test'
28
+ t.pattern = 'test/**/*_test.rb'
29
+ t.verbose = false
30
+ end
31
+
32
+ begin
33
+ require 'rcov/rcovtask'
34
+ Rcov::RcovTask.new do |t|
35
+ t.libs << 'test'
36
+ t.test_files = FileList['test/**/*_test.rb']
37
+ t.verbose = true
38
+ end
39
+ rescue LoadError
40
+ puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
41
+ end
42
+
43
+ begin
44
+ require 'cucumber/rake/task'
45
+ Cucumber::Rake::Task.new(:features)
46
+ rescue LoadError
47
+ puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
48
+ end
49
+
50
+ task :default => :test
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bdimcheff-is_taggable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Haran
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-02-16 00:00:00 -08:00
14
+ date: 2009-07-07 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies: []
17
17
 
@@ -21,27 +21,30 @@ executables: []
21
21
 
22
22
  extensions: []
23
23
 
24
- extra_rdoc_files: []
25
-
24
+ extra_rdoc_files:
25
+ - LICENSE
26
+ - README.rdoc
26
27
  files:
28
+ - .gitignore
29
+ - LICENSE
27
30
  - README.rdoc
28
31
  - VERSION.yml
29
- - generators/is_taggable_migration
30
32
  - generators/is_taggable_migration/is_taggable_migration_generator.rb
31
- - generators/is_taggable_migration/templates
32
33
  - generators/is_taggable_migration/templates/migration.rb
34
+ - init.rb
35
+ - is_taggable.gemspec
33
36
  - lib/is_taggable.rb
34
- - lib/tag.rb
35
- - lib/tagging.rb
37
+ - lib/is_taggable/tag.rb
38
+ - lib/is_taggable/tagging.rb
39
+ - rakefile
36
40
  - test/is_taggable_test.rb
37
41
  - test/tag_test.rb
38
42
  - test/tagging_test.rb
39
43
  - test/test_helper.rb
40
- has_rdoc: true
44
+ has_rdoc: false
41
45
  homepage: http://github.com/giraffesoft/is_taggable
42
46
  post_install_message:
43
47
  rdoc_options:
44
- - --inline-source
45
48
  - --charset=UTF-8
46
49
  require_paths:
47
50
  - lib
@@ -62,7 +65,10 @@ requirements: []
62
65
  rubyforge_project:
63
66
  rubygems_version: 1.2.0
64
67
  signing_key:
65
- specification_version: 2
68
+ specification_version: 3
66
69
  summary: tagging that doesn't want to be on steroids. it's skinny and happy to stay that way.
67
- test_files: []
68
-
70
+ test_files:
71
+ - test/is_taggable_test.rb
72
+ - test/tag_test.rb
73
+ - test/tagging_test.rb
74
+ - test/test_helper.rb