attr 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +8 -0
- data/Rakefile +35 -0
- data/VERSION +1 -0
- data/attr.gemspec +30 -0
- data/lib/attr.rb +20 -0
- data/spec/attr_spec.rb +5 -0
- data/spec/spec_helper.rb +1 -0
- metadata +73 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'rake/version_task'
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
require 'rubygems/package_task'
|
4
|
+
require 'pathname'
|
5
|
+
|
6
|
+
spec = Gem::Specification.new do |s|
|
7
|
+
s.name = 'attr'
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.version = Pathname.new(__FILE__).dirname.join('VERSION').read.strip
|
10
|
+
s.author = 'Ryan Scott Lewis'
|
11
|
+
s.email = 'ryan@rynet.us'
|
12
|
+
s.homepage = "http://github.com/c00lryguy/#{s.name}"
|
13
|
+
s.summary = 'Easily extend the `attr_reader`, `attr_writer`, and `attr_accessor` Module methods.'
|
14
|
+
s.description = 'This gem allows you to easily extend the `attr_reader`, `attr_writer`, and `attr_accessor` Module methods.'
|
15
|
+
s.require_path = 'lib'
|
16
|
+
s.post_install_message = "This is a placeholder gem... for now. Check back in a few versions!"
|
17
|
+
s.files = `git ls-files`.lines.to_a.collect { |s| s.strip }
|
18
|
+
s.executables = `git ls-files -- bin/*`.lines.to_a.collect { |s| File.basename(s.strip) }
|
19
|
+
|
20
|
+
s.add_dependency 'version', '~> 1'
|
21
|
+
end
|
22
|
+
|
23
|
+
Rake::VersionTask.new do |t|
|
24
|
+
t.with_git_tag = true
|
25
|
+
t.with_gemspec = spec
|
26
|
+
end
|
27
|
+
|
28
|
+
RSpec::Core::RakeTask.new
|
29
|
+
|
30
|
+
Gem::PackageTask.new(spec) do |t|
|
31
|
+
t.need_zip = true
|
32
|
+
t.need_tar = true
|
33
|
+
end
|
34
|
+
|
35
|
+
task :default => :spec
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
data/attr.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "attr"
|
5
|
+
s.version = "0.0.2"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Ryan Scott Lewis"]
|
9
|
+
s.date = "2012-10-09"
|
10
|
+
s.description = "This gem allows you to easily extend the `attr_reader`, `attr_writer`, and `attr_accessor` Module methods."
|
11
|
+
s.email = "ryan@rynet.us"
|
12
|
+
s.files = [".gitignore", "Gemfile", "Rakefile", "VERSION", "attr.gemspec", "lib/wallpaper.rb", "spec/spec_helper.rb", "spec/wallpaper_spec.rb", "wallpaper.gemspec"]
|
13
|
+
s.homepage = "http://github.com/c00lryguy/attr"
|
14
|
+
s.post_install_message = "This is a placeholder gem... for now. Check back in a few versions!"
|
15
|
+
s.require_paths = ["lib"]
|
16
|
+
s.rubygems_version = "1.8.24"
|
17
|
+
s.summary = "Easily extend the `attr_reader`, `attr_writer`, and `attr_accessor` Module methods."
|
18
|
+
|
19
|
+
if s.respond_to? :specification_version then
|
20
|
+
s.specification_version = 3
|
21
|
+
|
22
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
23
|
+
s.add_runtime_dependency(%q<version>, ["~> 1"])
|
24
|
+
else
|
25
|
+
s.add_dependency(%q<version>, ["~> 1"])
|
26
|
+
end
|
27
|
+
else
|
28
|
+
s.add_dependency(%q<version>, ["~> 1"])
|
29
|
+
end
|
30
|
+
end
|
data/lib/attr.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
require 'bundler/setup'
|
3
|
+
require 'version'
|
4
|
+
|
5
|
+
__PATH__ = Pathname.new(__FILE__)
|
6
|
+
$:.unshift(__PATH__.dirname.to_s) unless $:.include?(__PATH__.dirname.to_s)
|
7
|
+
|
8
|
+
module Attr
|
9
|
+
VERSION = Version.current rescue '0.0.0'
|
10
|
+
end
|
11
|
+
|
12
|
+
# require 'attr/chainable'
|
13
|
+
# require 'attr/cleanable'
|
14
|
+
# require 'attr/encryptable'
|
15
|
+
# require 'attr/immutable'
|
16
|
+
# require 'attr/serializable'
|
17
|
+
# require 'attr/sortable'
|
18
|
+
# require 'attr/translatable'
|
19
|
+
# require 'attr/uninheritable'
|
20
|
+
# require 'attr/validateable'
|
data/spec/attr_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'attr'
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: attr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ryan Scott Lewis
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: version
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1'
|
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: '1'
|
30
|
+
description: This gem allows you to easily extend the `attr_reader`, `attr_writer`,
|
31
|
+
and `attr_accessor` Module methods.
|
32
|
+
email: ryan@rynet.us
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- .gitignore
|
38
|
+
- Gemfile
|
39
|
+
- Rakefile
|
40
|
+
- VERSION
|
41
|
+
- attr.gemspec
|
42
|
+
- lib/attr.rb
|
43
|
+
- spec/attr_spec.rb
|
44
|
+
- spec/spec_helper.rb
|
45
|
+
homepage: http://github.com/c00lryguy/attr
|
46
|
+
licenses: []
|
47
|
+
post_install_message: This is a placeholder gem... for now. Check back in a few versions!
|
48
|
+
rdoc_options: []
|
49
|
+
require_paths:
|
50
|
+
- lib
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
hash: 4070320782230472904
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
requirements: []
|
67
|
+
rubyforge_project:
|
68
|
+
rubygems_version: 1.8.24
|
69
|
+
signing_key:
|
70
|
+
specification_version: 3
|
71
|
+
summary: Easily extend the `attr_reader`, `attr_writer`, and `attr_accessor` Module
|
72
|
+
methods.
|
73
|
+
test_files: []
|