boxey 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/boxey.rb +0 -3
  2. metadata +14 -5
@@ -1,7 +1,4 @@
1
1
  require 'active_record_extensions'
2
2
 
3
3
  class Boxey
4
- def self.hi
5
- puts "Hello world!"
6
- end
7
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-11 00:00:00.000000000 Z
13
+ date: 2012-10-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -60,14 +60,23 @@ dependencies:
60
60
  - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
- description: Boxey provides element reference (the [] operator) to ActiveRecord classes.
63
+ description: ! "Boxey provides the [] element reference operator to ActiveRecord classes.\n\n#
64
+ Installation\n\nAdd this line to your Gemfile:\n\n`gem 'boxey'`\n\n# Configuration\n\nWith
65
+ the boxey gem installed, all ActiveRecord classes gain the [] method, which fetches
66
+ by the class's primary_key by default.\n\nYou may specify additional fields, presumably
67
+ fields that validate uniqueness, by calling the boxey method.\n\n class User
68
+ < ActiveRecord::Base\n boxey :id, :login, :email\n validates :login, uniqueness:
69
+ true\n validates :email, uniqueness: true\n end\n\n# Use\n\nGiven the configuration
70
+ above:\n\n`User[1]` returns the first User with an id (or login or email) of `1`.\n\n`User['me@example.com']`
71
+ returns the first User with an email (or id or login) of `'me@example.com'`.\n\n`[]`
72
+ returns `nil` if no match is found.\n"
64
73
  email: robert.head@gmail.com
65
74
  executables: []
66
75
  extensions: []
67
76
  extra_rdoc_files: []
68
77
  files:
69
78
  - lib/boxey.rb
70
- homepage:
79
+ homepage: http://github.com/roguevalley/boxey
71
80
  licenses: []
72
81
  post_install_message:
73
82
  rdoc_options: []
@@ -90,5 +99,5 @@ rubyforge_project:
90
99
  rubygems_version: 1.8.24
91
100
  signing_key:
92
101
  specification_version: 3
93
- summary: Boxey provides element reference (the [] operator) to ActiveRecord classes.
102
+ summary: Provides the [] element reference operator to ActiveRecord classes.
94
103
  test_files: []