tags 1.0.0 → 1.0.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 CHANGED
@@ -1,6 +1,18 @@
1
1
  *.gem
2
+ *.rbc
2
3
  .bundle
4
+ .config
3
5
  .rspec
4
- .rvmrc
6
+ .yardoc
5
7
  Gemfile.lock
6
- pkg/*
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Austin Schneider
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # Tags
2
+
3
+ A Ruby object that acts like a set of tags.
4
+
5
+ ## Current API
6
+
7
+ ### Removing tags
8
+
9
+ ``` ruby
10
+ Tags.new("one two three") - Tags.new("one three")
11
+ # Tags.new("two")
12
+ ```
13
+
14
+ ### Adding tags
15
+
16
+ ``` ruby
17
+ Tags.new("one two three") - Tags.new("three four five")
18
+ # Tags.new("one two three four five")
19
+ ```
20
+
21
+ ### Conversions
22
+
23
+ ``` ruby
24
+ Tags.new("one two three").to_s
25
+ # "one two three"
26
+
27
+ Tags.new("one two three").to_a
28
+ # ["one", "two", "three"]
29
+
30
+ Tags.new("one two three").to_set
31
+ # #<Set: {"one", "two", "three"}>
32
+ ```
data/Rakefile CHANGED
@@ -1,2 +1,2 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/lib/tags/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Tags
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1 +1,6 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../lib/tags')
1
+ require 'rspec'
2
+ require 'tags'
3
+
4
+ RSpec.configure do |c|
5
+ c.mock_with :rspec
6
+ end
File without changes
data/tags.gemspec CHANGED
@@ -1,24 +1,21 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "tags/version"
2
+ require File.expand_path('../lib/tags/version', __FILE__)
4
3
 
5
- Gem::Specification.new do |s|
6
- s.name= "tags"
7
- s.version = Tags::VERSION
8
- s.platform= Gem::Platform::RUBY
9
- s.authors = ["Austin Schneider"]
10
- s.email = ["soccer022483@gmail.com"]
11
- s.homepage= "http://github.com/soccer022483/tags"
12
- s.summary = "A Ruby object with the behavior of a list of tags."
13
- s.description = "A Ruby object with the behavior of a list of tags."
14
- s.rubyforge_project = "tags"
15
- s.post_install_message = "Thanks for installing Tags!"
16
- s.files = `git ls-files`.split("\n")
17
- s.test_files= `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
4
+ Gem::Specification.new do |spec|
5
+ spec.authors = ["Austin Schneider"]
6
+ spec.email = ["austinthecoder@gmail.com"]
7
+ spec.description = "A Ruby object with the behavior of a list of tags."
8
+ spec.summary = "A Ruby object with the behavior of a list of tags."
9
+ spec.homepage = "https://github.com/austinthecoder/tags"
20
10
 
21
- s.add_development_dependency "rspec", "~> 2"
11
+ spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ spec.files = `git ls-files`.split("\n")
13
+ spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ spec.name = "tags"
15
+ spec.require_paths = ["lib"]
16
+ spec.version = Tags::VERSION
22
17
 
23
- s.add_dependency "activesupport", "~> 3"
18
+ spec.add_development_dependency "rspec", ">= 2.8"
19
+
20
+ spec.add_dependency "activesupport", ">= 3"
24
21
  end
metadata CHANGED
@@ -1,99 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tags
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 0
9
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Austin Schneider
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-02-16 00:00:00 -05:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70244872203780 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- version: "2"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '2.8'
31
22
  type: :development
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: activesupport
35
23
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70244872203780
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ requirement: &70244872202800 !ruby/object:Gem::Requirement
37
28
  none: false
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 3
43
- version: "3"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '3'
44
33
  type: :runtime
45
- version_requirements: *id002
34
+ prerelease: false
35
+ version_requirements: *70244872202800
46
36
  description: A Ruby object with the behavior of a list of tags.
47
- email:
48
- - soccer022483@gmail.com
37
+ email:
38
+ - austinthecoder@gmail.com
49
39
  executables: []
50
-
51
40
  extensions: []
52
-
53
41
  extra_rdoc_files: []
54
-
55
- files:
42
+ files:
56
43
  - .gitignore
57
44
  - Gemfile
58
- - README.rdoc
45
+ - LICENSE
46
+ - README.md
59
47
  - Rakefile
60
48
  - lib/tags.rb
61
49
  - lib/tags/version.rb
62
- - spec/lib/tags_spec.rb
63
50
  - spec/spec_helper.rb
51
+ - spec/tags_spec.rb
64
52
  - tags.gemspec
65
- has_rdoc: true
66
- homepage: http://github.com/soccer022483/tags
53
+ homepage: https://github.com/austinthecoder/tags
67
54
  licenses: []
68
-
69
- post_install_message: Thanks for installing Tags!
55
+ post_install_message:
70
56
  rdoc_options: []
71
-
72
- require_paths:
57
+ require_paths:
73
58
  - lib
74
- required_ruby_version: !ruby/object:Gem::Requirement
59
+ required_ruby_version: !ruby/object:Gem::Requirement
75
60
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- segments:
80
- - 0
81
- version: "0"
82
- required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
66
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
- version: "0"
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
90
71
  requirements: []
91
-
92
- rubyforge_project: tags
93
- rubygems_version: 1.3.7
72
+ rubyforge_project:
73
+ rubygems_version: 1.8.10
94
74
  signing_key:
95
75
  specification_version: 3
96
76
  summary: A Ruby object with the behavior of a list of tags.
97
- test_files:
98
- - spec/lib/tags_spec.rb
77
+ test_files:
99
78
  - spec/spec_helper.rb
79
+ - spec/tags_spec.rb
data/README.rdoc DELETED
@@ -1,34 +0,0 @@
1
- = Tags
2
-
3
- A Ruby object that acts like a set of tags.
4
-
5
- == Notice
6
-
7
- This gem is still an infant. Although at a stable version, many expected features aren't available. See "Future API" below.
8
-
9
- == Current API
10
-
11
- === Removing tags
12
-
13
- Tags.new("one two three") - Tags.new("one three")
14
- # Tags.new("two")
15
-
16
- === Adding tags
17
-
18
- Tags.new("one two three") - Tags.new("three four five")
19
- # Tags.new("one two three four five")
20
-
21
- === Conversions
22
-
23
- Tags.new("one two three").to_s
24
- # "one two three"
25
-
26
- Tags.new("one two three").to_a
27
- # ["one", "two", "three"]
28
-
29
- Tags.new("one two three").to_set
30
- # #<Set: {"one", "two", "three"}>
31
-
32
- == Future API
33
-
34
- - I will fill this out soon