Get_Set 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Get_Set.gemspec +1 -1
  2. data/README.md +45 -0
  3. data/lib/Get_Set/version.rb +1 -1
  4. metadata +33 -12
data/Get_Set.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Get_Set::VERSION
8
8
  s.authors = ["da99"]
9
9
  s.email = ["i-hate-spam-45671204@mailinator.com"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/da99/Get_Set"
11
11
  s.summary = %q{An alternative to :attr_accessor}
12
12
  s.description = %q{
13
13
  Creates instance method that can both get or set an instance variable.
data/README.md ADDED
@@ -0,0 +1,45 @@
1
+
2
+ Get\_Set
3
+ ========
4
+
5
+ A Ruby gem that provides an alternative to :attr\_accessor.
6
+ The difference is the setters lack *=* sign.
7
+
8
+ Use It
9
+ -----
10
+
11
+ Install:
12
+
13
+ gem install Get_Set
14
+
15
+ Use:
16
+
17
+ require "Get_Set"
18
+
19
+ class Uni_Bash
20
+ include Get_Set::DSL
21
+
22
+ attr_get_set :name, :age
23
+ end
24
+
25
+
26
+ o = Uni_Bash.new
27
+
28
+ # --- Setters
29
+ o.name "Uncle Martin"
30
+ o.age 190
31
+
32
+ # ---- Getters
33
+ o.name
34
+ o.age
35
+
36
+
37
+ Note
38
+ ----
39
+
40
+ If you now of another gem that does the same thing, let me
41
+ know through github: "Edit this file", submit project issue, or
42
+ send me a message. I always love to make my stuff obsolete so I can delete
43
+ it and use something better.
44
+
45
+
@@ -1,3 +1,3 @@
1
1
  module Get_Set
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Get_Set
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-30 00:00:00.000000000 Z
12
+ date: 2012-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bacon
16
- requirement: &8273900 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *8273900
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rake
27
- requirement: &8273320 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *8273320
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: Bacon_Colored
38
- requirement: &8272780 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *8272780
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: Checked
49
- requirement: &8272120 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *8272120
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  description: ! "\n Creates instance method that can both get or set an instance
59
79
  variable. \n It's like squeezing :attr_writer into :attr_reader.\n "
60
80
  email:
@@ -66,13 +86,14 @@ files:
66
86
  - .gitignore
67
87
  - Gemfile
68
88
  - Get_Set.gemspec
89
+ - README.md
69
90
  - Rakefile
70
91
  - lib/Get_Set.rb
71
92
  - lib/Get_Set/version.rb
72
93
  - spec/helper.rb
73
94
  - spec/main.rb
74
95
  - spec/tests/DSL.rb
75
- homepage: ''
96
+ homepage: https://github.com/da99/Get_Set
76
97
  licenses: []
77
98
  post_install_message:
78
99
  rdoc_options: []
@@ -92,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
113
  version: '0'
93
114
  requirements: []
94
115
  rubyforge_project:
95
- rubygems_version: 1.8.15
116
+ rubygems_version: 1.8.19
96
117
  signing_key:
97
118
  specification_version: 3
98
119
  summary: An alternative to :attr_accessor