attic 0.3

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.
Files changed (6) hide show
  1. data/CHANGES.txt +13 -0
  2. data/LICENSE.txt +19 -0
  3. data/README.rdoc +42 -0
  4. data/Rakefile +81 -0
  5. data/attic.gemspec +48 -0
  6. metadata +65 -0
@@ -0,0 +1,13 @@
1
+ ATTIC, CHANGES
2
+
3
+
4
+ #### 0.3 (2009-07-11) ###############################
5
+
6
+ NOTE: A complete re-write from 0.2
7
+
8
+ * FIXED: Now works on any Object except Symbol and Fixnum
9
+ * ADDED: attic_vars method
10
+
11
+ #### 0.2 (2009-07-08) ###############################
12
+
13
+ NOTE: Initial public release
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2009 Solutious Inc, Delano Mandelbaum
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,42 @@
1
+ = Attic - v0.3 ALPHA
2
+
3
+ A place for Ruby objects to hide instance variables.
4
+
5
+ == Alpha Notice
6
+
7
+ This library is fresh (est 2009-07-06) and barely tested. It's fun to use but not reliable yet. In particular:
8
+
9
+ * Does not work with Symbols or Fixnum object
10
+
11
+ == Example
12
+
13
+ require 'attic'
14
+
15
+ String.extend Attic
16
+ String.attic :timestamp
17
+
18
+ a = "anything"
19
+ a.timestamp = "1980-11-18"
20
+ a.instance_variables # => []
21
+ a.timestamp # 1980-11-18
22
+
23
+
24
+ == Installation
25
+
26
+ Via Rubygems, one of:
27
+
28
+ $ gem install attic
29
+ $ gem install delano-attic --source http://gems.github.com/
30
+
31
+ or via download:
32
+ * attic-latest.tar.gz[http://github.com/delano/attic/tarball/latest]
33
+ * attic-latest.zip[http://github.com/delano/attic/zipball/latest]
34
+
35
+
36
+ == Credits
37
+
38
+ * Delano (@solutious.com)
39
+
40
+ == License
41
+
42
+ See: LICENSE.txt
@@ -0,0 +1,81 @@
1
+ require 'rubygems'
2
+ require 'rake/clean'
3
+ require 'rake/gempackagetask'
4
+ require 'rake/rdoctask'
5
+ require 'fileutils'
6
+ include FileUtils
7
+
8
+ task :default => :package
9
+
10
+ # CONFIG =============================================================
11
+
12
+ # Change the following according to your needs
13
+ README = "README.rdoc"
14
+ CHANGES = "CHANGES.txt"
15
+ LICENSE = "LICENSE.txt"
16
+
17
+ # Files and directories to be deleted when you run "rake clean"
18
+ CLEAN.include [ 'pkg', '*.gem', '.config']
19
+
20
+ # Virginia assumes your project and gemspec have the same name
21
+ name = 'attic'
22
+ load "#{name}.gemspec"
23
+ version = @spec.version
24
+
25
+ # That's it! The following defaults should allow you to get started
26
+ # on other things.
27
+
28
+
29
+ # TESTS/SPECS =========================================================
30
+
31
+
32
+
33
+ # INSTALL =============================================================
34
+
35
+ Rake::GemPackageTask.new(@spec) do |p|
36
+ p.need_tar = true if RUBY_PLATFORM !~ /mswin/
37
+ end
38
+
39
+ task :release => [ :rdoc, :package ]
40
+ task :install => [ :rdoc, :package ] do
41
+ sh %{sudo gem install pkg/#{name}-#{version}.gem}
42
+ end
43
+ task :uninstall => [ :clean ] do
44
+ sh %{sudo gem uninstall #{name}}
45
+ end
46
+
47
+
48
+ # RUBYFORGE RELEASE / PUBLISH TASKS ==================================
49
+
50
+ if @spec.rubyforge_project
51
+ desc 'Publish website to rubyforge'
52
+ task 'publish:rdoc' => 'doc/index.html' do
53
+ sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
54
+ end
55
+
56
+ desc 'Public release to rubyforge'
57
+ task 'publish:gem' => [:package] do |t|
58
+ sh <<-end
59
+ rubyforge add_release -o Any -a #{CHANGES} -f -n #{README} #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
60
+ rubyforge add_file -o Any -a #{CHANGES} -f -n #{README} #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz
61
+ end
62
+ end
63
+ end
64
+
65
+
66
+
67
+ # RUBY DOCS TASK ==================================
68
+
69
+ Rake::RDocTask.new do |t|
70
+ t.rdoc_dir = 'doc'
71
+ t.title = @spec.summary
72
+ t.options << '--line-numbers' << '-A cattr_accessor=object'
73
+ t.options << '--charset' << 'utf-8'
74
+ t.rdoc_files.include(LICENSE)
75
+ t.rdoc_files.include(README)
76
+ t.rdoc_files.include(CHANGES)
77
+ #t.rdoc_files.include('bin/*')
78
+ t.rdoc_files.include('lib/**/*.rb')
79
+ end
80
+
81
+
@@ -0,0 +1,48 @@
1
+ @spec = Gem::Specification.new do |s|
2
+ s.name = "attic"
3
+ s.rubyforge_project = "attic"
4
+ s.version = "0.3"
5
+ s.summary = "A place for Ruby objects to hide instance variables."
6
+ s.description = s.summary
7
+ s.author = "Delano Mandelbaum"
8
+ s.email = "delano@solutious.com"
9
+ s.homepage = "http://github.com/delano/attic"
10
+
11
+ # = EXECUTABLES =
12
+ # The list of executables in your project (if any). Don't include the path,
13
+ # just the base filename.
14
+ s.executables = %w[]
15
+
16
+ # Directories to extract rdocs from
17
+ s.require_paths = %w[lib]
18
+
19
+ # Specific files to include rdocs from
20
+ s.extra_rdoc_files = %w[README.rdoc LICENSE.txt CHANGES.txt]
21
+
22
+ # Update --main to reflect the default page to display
23
+ s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.rdoc"]
24
+
25
+ # = DEPENDENCIES =
26
+ # Add all gem dependencies
27
+ #s.add_dependency 'name1'
28
+ #s.add_dependency 'name2', '>= 0.0.0'
29
+
30
+ # = MANIFEST =
31
+ # The complete list of files to be included in the release. When GitHub packages your gem,
32
+ # it doesn't allow you to run any command that accesses the filesystem. You will get an
33
+ # error. You can ask your VCS for the list of versioned files:
34
+ # git ls-files
35
+ # svn list -R
36
+ s.files = %w(
37
+ CHANGES.txt
38
+ LICENSE.txt
39
+ README.rdoc
40
+ Rakefile
41
+ attic.gemspec
42
+ )
43
+
44
+ s.has_rdoc = true
45
+ s.rubygems_version = '1.3.0'
46
+
47
+
48
+ end
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: attic
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.3"
5
+ platform: ruby
6
+ authors:
7
+ - Delano Mandelbaum
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-07-12 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A place for Ruby objects to hide instance variables.
17
+ email: delano@solutious.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.rdoc
24
+ - LICENSE.txt
25
+ - CHANGES.txt
26
+ files:
27
+ - CHANGES.txt
28
+ - LICENSE.txt
29
+ - README.rdoc
30
+ - Rakefile
31
+ - attic.gemspec
32
+ has_rdoc: true
33
+ homepage: http://github.com/delano/attic
34
+ licenses: []
35
+
36
+ post_install_message:
37
+ rdoc_options:
38
+ - --line-numbers
39
+ - --title
40
+ - A place for Ruby objects to hide instance variables.
41
+ - --main
42
+ - README.rdoc
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ version:
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ version:
57
+ requirements: []
58
+
59
+ rubyforge_project: attic
60
+ rubygems_version: 1.3.2
61
+ signing_key:
62
+ specification_version: 3
63
+ summary: A place for Ruby objects to hide instance variables.
64
+ test_files: []
65
+