r 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +3 -0
  2. data/Rakefile +1 -1
  3. data/lib/r.rb +19 -13
  4. data/r.gemspec +1 -1
  5. metadata +3 -3
data/README CHANGED
@@ -0,0 +1,3 @@
1
+
2
+
3
+ See https://rubygems.org/gems/r
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'echoe'
4
4
 
5
5
  # Copied from RyanBates: http://railscasts.com/episodes/135-making-a-gem
6
6
 
7
- Echoe.new('r', '0.0.2' ) do |p|
7
+ Echoe.new('r', '0.0.3' ) do |p|
8
8
  p.description = "My second gem, and most minimalistic."
9
9
  p.url = "http://github.com/palladius/r"
10
10
  p.author = "Riccardo C."
data/lib/r.rb CHANGED
@@ -1,17 +1,18 @@
1
1
 
2
2
  # lib/r.rb
3
3
  module R
4
- # def self.included(base)
5
- # base.extend ClassMethods
6
- # end
7
- #
8
- # def ensure_unique(name)
9
- # begin
10
- # self[name] = yield
11
- # end while self.class.exists?(name => self[name])
12
- # end
13
- #
14
- # module ClassMethods
4
+
5
+ def self.included(base)
6
+ base.extend ClassMethods
7
+ end
8
+
9
+ def ensure_unique(name)
10
+ begin
11
+ self[name] = yield
12
+ end while self.class.exists?(name => self[name])
13
+ end
14
+
15
+ module ClassMethods
15
16
  #
16
17
  # def uniquify(*args, &block)
17
18
  # options = { :length => 8, :chars => ('a'..'z').to_a + ('A'..'Z').to_a + ('0'..'9').to_a }
@@ -28,8 +29,13 @@ module R
28
29
  # end
29
30
  # end
30
31
  # end
31
- #
32
- # end
32
+ #
33
+
34
+ def carlessify
35
+ puts 'TODO :)'
36
+ end
37
+
38
+ end
33
39
  end
34
40
 
35
41
  class ActiveRecord::Base
data/r.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{r}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Riccardo C."]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Riccardo C.